less copy protection, more size visualization
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

536 строки
15 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/appledectomy/",
  97. files: [
  98. { name: "front.svg", source: "https://www.furaffinity.net/view/33002197/" }
  99. ],
  100. authors: [
  101. "stonerabbit"
  102. ],
  103. owners: [
  104. "appledectomy"
  105. ]
  106. },
  107. {
  108. prefix: "./media/characters/asana/",
  109. files: [
  110. { name: "front.svg", source: "https://www.furaffinity.net/view/35087729/" },
  111. { name: "back.svg", source: "https://www.furaffinity.net/view/35087729/" },
  112. ],
  113. authors: [
  114. "silverwingink"
  115. ],
  116. owners: [
  117. "aviraptia"
  118. ]
  119. },
  120. {
  121. prefix: "./media/characters/asana/",
  122. files: [
  123. { name: "front.svg", source: "https://www.furaffinity.net/view/35087729/" },
  124. { name: "back.svg", source: "https://www.furaffinity.net/view/35087729/" },
  125. ],
  126. authors: [
  127. "silverwingink"
  128. ],
  129. owners: [
  130. "aviraptia"
  131. ]
  132. },
  133. {
  134. prefix: "./media/characters/asana-mech/",
  135. files: [
  136. { name: "side.svg", source: null }
  137. ],
  138. authors: [
  139. "ashtrek"
  140. ],
  141. owners: [
  142. "aviraptia"
  143. ]
  144. },
  145. {
  146. prefix: "./media/characters/ashtrek/",
  147. files: [
  148. { name: "front.svg", source: null },
  149. { name: "front-armor.svg", source: null },
  150. ],
  151. authors: [
  152. "silverwingink"
  153. ],
  154. owners: [
  155. "ashtrek"
  156. ]
  157. },
  158. {
  159. prefix: "./media/characters/blake/",
  160. files: [
  161. { name: "side.svg", source: "https://www.furaffinity.net/view/30676178/" },
  162. { name: "crouched.svg", source: "https://www.furaffinity.net/view/30676178/" },
  163. { name: "bent.svg", source: "https://www.furaffinity.net/view/30676178/" },
  164. ],
  165. authors: [
  166. "zyraxus"
  167. ],
  168. owners: [
  169. "kurrikage"
  170. ]
  171. },
  172. {
  173. prefix: "./media/characters/cibus/",
  174. files: [
  175. { name: "side.svg", source: "https://www.furaffinity.net/view/15534343/" }
  176. ],
  177. authors: [
  178. "jaydom"
  179. ],
  180. owners: [
  181. "movler"
  182. ]
  183. },
  184. {
  185. prefix: "./media/characters/jaro/",
  186. files: [
  187. { name: "front.svg", source: "https://www.furaffinity.net/view/26084387/" },
  188. { name: "back.svg", source: "https://www.furaffinity.net/view/26084387/" }
  189. ],
  190. authors: [
  191. "mizumisensei"
  192. ],
  193. owners: [
  194. "jaro-the-dragon"
  195. ]
  196. },
  197. {
  198. prefix: "./media/characters/malfressa/",
  199. files: [
  200. { name: "side.svg", source: "https://www.furaffinity.net/view/25377262/" },
  201. { name: "feral.svg", source: "https://www.furaffinity.net/view/25377262/" }
  202. ],
  203. authors: [
  204. "d-eath-tail"
  205. ],
  206. owners: [
  207. "scareye"
  208. ]
  209. },
  210. {
  211. prefix: "./media/characters/malfressa/",
  212. files: [
  213. { name: "walking.svg", source: "https://www.furaffinity.net/view/23877052/" }
  214. ],
  215. authors: [
  216. "kerneldecoy"
  217. ],
  218. owners: [
  219. "scareye"
  220. ]
  221. },
  222. {
  223. prefix: "./media/characters/nibbles/",
  224. files: [
  225. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/" },
  226. { name: "side.svg", source: "https://www.furaffinity.net/view/22964778/" },
  227. ],
  228. authors: [
  229. "dragga"
  230. ],
  231. owners: [
  232. "movler"
  233. ]
  234. },
  235. {
  236. prefix: "./media/characters/rikky/",
  237. files: [
  238. { name: "side.svg", source: null }
  239. ],
  240. authors: [
  241. "ethan64"
  242. ],
  243. owners: [
  244. "quake-yote"
  245. ]
  246. },
  247. {
  248. prefix: "./media/characters/rogue/",
  249. files: [
  250. { name: "front.svg", source: "http://rogue.macrophile.com/ken" }
  251. ],
  252. authors: [
  253. "cougr"
  254. ],
  255. owners: [
  256. "rogue"
  257. ]
  258. },
  259. {
  260. prefix: "./media/characters/surgo/",
  261. files: [
  262. { name: "front.svg", source: "https://www.furaffinity.net/view/33348481/" },
  263. { name: "back.svg", source: "https://www.furaffinity.net/view/33348481/" },
  264. { name: "laying.svg", source: "https://www.furaffinity.net/view/33348481/" },
  265. ],
  266. authors: [
  267. "gaiawolfess",
  268. "malakhael"
  269. ],
  270. owners: [
  271. "movler"
  272. ]
  273. },
  274. {
  275. prefix: "./media/characters/tiberius/",
  276. files: [
  277. { name: "front.svg", source: "https://www.furaffinity.net/view/34977812/" },
  278. { name: "back.svg", source: "https://www.furaffinity.net/view/34977812/" }
  279. ],
  280. authors: [
  281. "Rebonica"
  282. ],
  283. owners: [
  284. "movler"
  285. ]
  286. },
  287. {
  288. prefix: "./media/characters/",
  289. files: [
  290. { name: "", source: "" }
  291. ],
  292. authors: [
  293. ]
  294. },
  295. {
  296. prefix: "./media/objects/humans/",
  297. files: [
  298. { name: "woman-1.svg", source: "https://commons.wikimedia.org/wiki/File:1Silhouette_Female.svg" }
  299. ],
  300. authors: [
  301. "phil-bronnery",
  302. "beao"
  303. ]
  304. },
  305. {
  306. prefix: "./media/objects/humans/",
  307. files: [
  308. { name: "man-1.svg", source: "https://commons.wikimedia.org/wiki/File:Silhouette.svg" }
  309. ],
  310. authors: [
  311. ]
  312. },
  313. {
  314. prefix: "./media/vehicles/",
  315. files: [
  316. { name: "titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" },
  317. { name: "vertical-titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" }
  318. ],
  319. authors: [
  320. ]
  321. },
  322. ],
  323. people: {
  324. "appledectomy": {
  325. name: "Appledectomy",
  326. url: "https://www.furaffinity.net/user/appledectomy"
  327. },
  328. "ashtrek": {
  329. name: "Ashtrek",
  330. url: "https://www.furaffinity.net/user/ashtrek/"
  331. },
  332. "aviraptia": {
  333. name: "Aviraptia",
  334. url: "https://www.furaffinity.net/user/aviraptia/"
  335. },
  336. "beao": {
  337. name: "Beao",
  338. url: "https://commons.wikimedia.org/wiki/User:Beao"
  339. },
  340. "cardboardhead": {
  341. name: "cardboardhead",
  342. url: "https://twitter.com/cardboardhead"
  343. },
  344. "chemicalcrux": {
  345. name: "chemicalcrux",
  346. url: "https://www.furaffinity.net/user/chemicalcrux"
  347. },
  348. "clown-grin": {
  349. name: "clown-grin",
  350. url: "https://www.furaffinity.net/user/clown-grin"
  351. },
  352. "cougr": {
  353. name: "Cougr",
  354. url: "https://www.furaffinity.net/user/cougr"
  355. },
  356. "d-eath-tail": {
  357. name: "Deathy",
  358. url: "https://www.furaffinity.net/user/d-eath-tail"
  359. },
  360. "Dialuca01": {
  361. name: "Dialuca",
  362. url: "https://www.furaffinity.net/user/dialuca01"
  363. },
  364. "dragga": {
  365. name: "Dragga",
  366. url: "https://www.furaffinity.net/user/dragga"
  367. },
  368. "ethan64": {
  369. name: "Ethan64",
  370. url: "https://www.furaffinity.net/user/ethan64/"
  371. },
  372. "gaiawolfess": {
  373. name: "Gaiawolfess",
  374. url: "https://www.furaffinity.net/user/gaiawolfess"
  375. },
  376. "jaro-the-dragon": {
  377. name: "Jaro",
  378. url: "https://www.furaffinity.net/user/jarothedragon/"
  379. },
  380. "jaydom": {
  381. name: "Jaydom",
  382. url: "https://www.furaffinity.net/user/jaydom"
  383. },
  384. "just-a-little-mixed-up": {
  385. name: "just-a-little-mixed-up",
  386. url: "https://www.furaffinity.net/user/just-a-little-mixed-up"
  387. },
  388. "kerneldecoy": {
  389. name: "Kernel Decoy",
  390. url: "https://www.furaffinity.net/user/kerneldecoy/"
  391. },
  392. "kurrikage": {
  393. name: "Kurrikage",
  394. url: "https://www.furaffinity.net/user/kurrikage/"
  395. },
  396. "labratkuma": {
  397. name: "labratkuma",
  398. url: "https://www.furaffinity.net/user/labratkuma"
  399. },
  400. "malakhael": {
  401. name: "Malakhael",
  402. url: "https://www.furaffinity.net/user/malakhael"
  403. },
  404. "mallowchu": {
  405. name: "Mallowchu",
  406. url: "https://www.furaffinity.net/user/mallowchu"
  407. },
  408. "mizumisensei": {
  409. name: "Mizumisensei",
  410. url: "https://twitter.com/mizumisensei"
  411. },
  412. "movler": {
  413. name: "Movler",
  414. url: "https://www.furaffinity.net/user/movler/"
  415. },
  416. "oselotti": {
  417. name: "Oselotti",
  418. url: "https://www.furaffinity.net/user/oselotti"
  419. },
  420. "phil-bronnery": {
  421. name: "Phil Bronnery",
  422. url: "https://www.flickr.com/people/27919241@N02"
  423. },
  424. "quake-yote": {
  425. name: "Quake Yote",
  426. url: "https://www.furaffinity.net/user/rokossovskiy"
  427. },
  428. "Rebonica": {
  429. name: "Rebonica",
  430. url: "https://www.furaffinity.net/user/rebonica"
  431. },
  432. "rogue": {
  433. name: "Rogue Megawolf",
  434. url: "https://twitter.com/roguemegawolf"
  435. },
  436. "scareye": {
  437. name: "Scareye",
  438. url: "https://www.furaffinity.net/user/scareye/"
  439. },
  440. "silverwingink": {
  441. name: "silverwingink",
  442. url: "https://www.furaffinity.net/gallery/silverwingink/"
  443. },
  444. "spyropurple": {
  445. name: "spyropurple",
  446. url: "https://www.furaffinity.net/user/spyropurple/"
  447. },
  448. "stonerabbit": {
  449. name: "stonerabbit",
  450. url: "https://www.furaffinity.net/user/stonerabbit/"
  451. },
  452. "zyraxus": {
  453. name: "Zyraxus",
  454. url: "https://www.furaffinity.net/user/zyraxus"
  455. }
  456. }
  457. }
  458. const attribution = {};
  459. function prepareAttribution() {
  460. attribution["files"] = {};
  461. attributionData.sources.forEach(citation => {
  462. citation.files.forEach(file => {
  463. attribution.files[citation.prefix + file.name] = {
  464. authors: citation.authors,
  465. owners: citation.owners,
  466. source: file.source
  467. }
  468. })
  469. });
  470. }
  471. function authorsOf(file) {
  472. if (attribution.files[file])
  473. return attribution.files[file].authors;
  474. else
  475. return undefined;
  476. }
  477. function authorsOfFull(file) {
  478. if (attribution.files[file]) {
  479. const result = [];
  480. attribution.files[file].authors.forEach(author => {
  481. result.push(attributionData.people[author]);
  482. });
  483. return result;
  484. }
  485. else
  486. return undefined;
  487. }
  488. function ownersOf(file) {
  489. if (attribution.files[file])
  490. return attribution.files[file].owners;
  491. else
  492. return undefined;
  493. }
  494. function ownersOfFull(file) {
  495. if (attribution.files[file]) {
  496. if (attribution.files[file].owners !== undefined) {
  497. const result = [];
  498. attribution.files[file].owners.forEach(owner => {
  499. result.push(attributionData.people[owner]);
  500. });
  501. return result;
  502. } else {
  503. return [];
  504. }
  505. }
  506. else
  507. return undefined;
  508. }
  509. function sourceOf(file) {
  510. if (attribution.files[file])
  511. return attribution.files[file].source;
  512. else
  513. return undefined;
  514. }
  515. prepareAttribution();