less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

316 lines
8.7 KiB

  1. const attributionData = {
  2. sources: [
  3. {
  4. prefix: "./media/buildings/",
  5. files: [
  6. { name: "house.svg", source: null },
  7. { name: "mailbox.svg", source: null },
  8. { name: "mobile-home.svg", source: null },
  9. ],
  10. authors: [
  11. "chemicalcrux"
  12. ]
  13. },
  14. {
  15. prefix: "./media/buildings/skyscrapers/",
  16. files: [
  17. { name: "wide.svg", source: null },
  18. { name: "medium.svg", source: null },
  19. { name: "slender.svg", source: null },
  20. { name: "narrow.svg", source: null },
  21. ],
  22. authors: [
  23. "chemicalcrux"
  24. ]
  25. },
  26. {
  27. prefix: "./media/characters/abysgar/",
  28. files: [
  29. { name: "front.svg", source: "https://www.furaffinity.net/view/32424108/"}
  30. ],
  31. authors: [
  32. "clown-grin",
  33. "labratkuma"
  34. ],
  35. owners: [
  36. ]
  37. },
  38. {
  39. prefix: "./media/characters/adake/",
  40. files: [
  41. { name: "front-1.svg", source: "https://www.furaffinity.net/view/26253324/"},
  42. { name: "front-2.svg", source: "https://www.furaffinity.net/view/26253324/"},
  43. { name: "back.svg", source: "https://www.furaffinity.net/view/26253324/"},
  44. { name: "kneel.svg", source: "https://www.furaffinity.net/view/26253324/"},
  45. ],
  46. authors: [
  47. "oselotti"
  48. ],
  49. owners: [
  50. "Dialuca01"
  51. ]
  52. },
  53. {
  54. prefix: "./media/characters/aigey/",
  55. files: [
  56. { name: "side.svg", source: "https://www.furaffinity.net/view/12006265/"}
  57. ],
  58. authors: [
  59. "just-a-little-mixed-up"
  60. ],
  61. owners: [
  62. ]
  63. },
  64. {
  65. prefix: "./media/characters/akari/",
  66. files: [
  67. { name: "front.svg", source: "https://www.furaffinity.net/view/21329356/"}
  68. ],
  69. authors: [
  70. "spyropurple"
  71. ],
  72. owners: [
  73. ]
  74. },
  75. {
  76. prefix: "./media/characters/andy/",
  77. files: [
  78. { name: "front.svg", source: null}
  79. ],
  80. authors: [
  81. "cardboardhead"
  82. ],
  83. owners: [
  84. ]
  85. },
  86. {
  87. prefix: "./media/characters/angelpatamon/",
  88. files: [
  89. { name: "front.svg", source: "http://www.furaffinity.net/view/26475369/"}
  90. ],
  91. authors: [
  92. "mallowchu"
  93. ]
  94. },
  95. {
  96. prefix: "./media/characters/cibus/",
  97. files: [
  98. { name: "side.svg", source: "https://www.furaffinity.net/view/15534343/"}
  99. ],
  100. authors: [
  101. "jaydom"
  102. ],
  103. owners: [
  104. "movler"
  105. ]
  106. },
  107. {
  108. prefix: "./media/characters/nibbles/",
  109. files: [
  110. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/"},
  111. { name: "side.svg", source: "https://www.furaffinity.net/view/22964778/"},
  112. ],
  113. authors: [
  114. "dragga"
  115. ],
  116. owners: [
  117. "movler"
  118. ]
  119. },
  120. {
  121. prefix: "./media/characters/rikky/",
  122. files: [
  123. { name: "side.svg", source: null}
  124. ],
  125. authors: [
  126. "ethan64"
  127. ],
  128. owners: [
  129. "quake-yote"
  130. ]
  131. },
  132. {
  133. prefix: "./media/characters/surgo/",
  134. files: [
  135. { name: "front.svg", source: "https://www.furaffinity.net/view/33348481/"},
  136. { name: "back.svg", source: "https://www.furaffinity.net/view/33348481/"},
  137. { name: "laying.svg", source: "https://www.furaffinity.net/view/33348481/"},
  138. ],
  139. authors: [
  140. "gaiawolfess",
  141. "malakhael"
  142. ],
  143. owners: [
  144. "movler"
  145. ]
  146. },
  147. {
  148. prefix: "./media/characters/tiberius/",
  149. files: [
  150. { name: "front.svg", source: "https://www.furaffinity.net/view/34977812/"},
  151. { name: "back.svg", source: "https://www.furaffinity.net/view/34977812/"}
  152. ],
  153. authors: [
  154. "Rebonica"
  155. ],
  156. owners: [
  157. "movler"
  158. ]
  159. },
  160. {
  161. prefix: "./media/characters/",
  162. files: [
  163. { name: "", source: ""}
  164. ],
  165. authors: [
  166. ]
  167. }
  168. ],
  169. people: {
  170. "cardboardhead": {
  171. name: "cardboardhead",
  172. url: "https://twitter.com/cardboardhead"
  173. },
  174. "chemicalcrux": {
  175. name: "chemicalcrux",
  176. url: "https://www.furaffinity.net/user/chemicalcrux"
  177. },
  178. "clown-grin": {
  179. name: "clown-grin",
  180. url: "https://www.furaffinity.net/user/clown-grin"
  181. },
  182. "Dialuca01": {
  183. name: "Dialuca",
  184. url: "https://www.furaffinity.net/user/dialuca01"
  185. },
  186. "dragga": {
  187. name: "Dragga",
  188. url: "https://www.furaffinity.net/user/dragga"
  189. },
  190. "ethan64": {
  191. name: "Ethan64",
  192. url: "https://www.furaffinity.net/user/ethan64/"
  193. },
  194. "gaiawolfess": {
  195. name: "Gaiawolfess",
  196. url: "https://www.furaffinity.net/user/gaiawolfess"
  197. },
  198. "jaydom": {
  199. name: "Jaydom",
  200. url: "https://www.furaffinity.net/user/jaydom"
  201. },
  202. "just-a-little-mixed-up": {
  203. name: "just-a-little-mixed-up",
  204. url: "https://www.furaffinity.net/user/just-a-little-mixed-up"
  205. },
  206. "labratkuma": {
  207. name: "labratkuma",
  208. url: "https://www.furaffinity.net/user/labratkuma"
  209. },
  210. "malakhael": {
  211. name: "Malakhael",
  212. url: "https://www.furaffinity.net/user/malakhael"
  213. },
  214. "mallowchu": {
  215. name: "Mallowchu",
  216. url: "https://www.furaffinity.net/user/mallowchu"
  217. },
  218. "movler": {
  219. name: "Movler",
  220. url: "https://www.furaffinity.net/user/movler/"
  221. },
  222. "oselotti": {
  223. name: "Oselotti",
  224. url: "https://www.furaffinity.net/user/oselotti"
  225. },
  226. "quake-yote": {
  227. name: "Quake Yote",
  228. url: "https://www.furaffinity.net/user/rokossovskiy"
  229. },
  230. "Rebonica": {
  231. name: "Rebonica",
  232. url: "https://www.furaffinity.net/user/rebonica"
  233. },
  234. "spyropurple": {
  235. name: "spyropurple",
  236. url: "https://www.furaffinity.net/user/spyropurple/"
  237. }
  238. }
  239. }
  240. const attribution = {};
  241. function prepareAttribution() {
  242. attribution["files"] = {};
  243. attributionData.sources.forEach(citation => {
  244. citation.files.forEach(file => {
  245. attribution.files[citation.prefix + file.name] = {
  246. authors: citation.authors,
  247. owners: citation.owners,
  248. source: file.source
  249. }
  250. })
  251. });
  252. }
  253. function authorsOf(file) {
  254. if (attribution.files[file])
  255. return attribution.files[file].authors;
  256. else
  257. return undefined;
  258. }
  259. function authorsOfFull(file) {
  260. if (attribution.files[file]) {
  261. const result = [];
  262. attribution.files[file].authors.forEach(author => {
  263. result.push(attributionData.people[author]);
  264. });
  265. return result;
  266. }
  267. else
  268. return undefined;
  269. }
  270. function ownersOf(file) {
  271. if (attribution.files[file])
  272. return attribution.files[file].owners;
  273. else
  274. return undefined;
  275. }
  276. function ownersOfFull(file) {
  277. if (attribution.files[file]) {
  278. if (attribution.files[file].owners !== undefined) {
  279. const result = [];
  280. attribution.files[file].owners.forEach(owner => {
  281. result.push(attributionData.people[owner]);
  282. });
  283. return result;
  284. } else {
  285. return [];
  286. }
  287. }
  288. else
  289. return undefined;
  290. }
  291. function sourceOf(file) {
  292. if (attribution.files[file])
  293. return attribution.files[file].source;
  294. else
  295. return undefined;
  296. }
  297. prepareAttribution();