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

556 строки
16 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/piper/",
  237. files: [
  238. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/" }
  239. ],
  240. authors: [
  241. "brit-bork"
  242. ],
  243. owners: [
  244. "flyhar"
  245. ]
  246. },
  247. {
  248. prefix: "./media/characters/rikky/",
  249. files: [
  250. { name: "side.svg", source: null }
  251. ],
  252. authors: [
  253. "ethan64"
  254. ],
  255. owners: [
  256. "quake-yote"
  257. ]
  258. },
  259. {
  260. prefix: "./media/characters/rogue/",
  261. files: [
  262. { name: "front.svg", source: "http://rogue.macrophile.com/ken" }
  263. ],
  264. authors: [
  265. "cougr"
  266. ],
  267. owners: [
  268. "rogue"
  269. ]
  270. },
  271. {
  272. prefix: "./media/characters/surgo/",
  273. files: [
  274. { name: "front.svg", source: "https://www.furaffinity.net/view/33348481/" },
  275. { name: "back.svg", source: "https://www.furaffinity.net/view/33348481/" },
  276. { name: "laying.svg", source: "https://www.furaffinity.net/view/33348481/" },
  277. ],
  278. authors: [
  279. "gaiawolfess",
  280. "malakhael"
  281. ],
  282. owners: [
  283. "movler"
  284. ]
  285. },
  286. {
  287. prefix: "./media/characters/tiberius/",
  288. files: [
  289. { name: "front.svg", source: "https://www.furaffinity.net/view/34977812/" },
  290. { name: "back.svg", source: "https://www.furaffinity.net/view/34977812/" }
  291. ],
  292. authors: [
  293. "Rebonica"
  294. ],
  295. owners: [
  296. "movler"
  297. ]
  298. },
  299. {
  300. prefix: "./media/characters/",
  301. files: [
  302. { name: "", source: "" }
  303. ],
  304. authors: [
  305. ]
  306. },
  307. {
  308. prefix: "./media/objects/humans/",
  309. files: [
  310. { name: "woman-1.svg", source: "https://commons.wikimedia.org/wiki/File:1Silhouette_Female.svg" }
  311. ],
  312. authors: [
  313. "phil-bronnery",
  314. "beao"
  315. ]
  316. },
  317. {
  318. prefix: "./media/objects/humans/",
  319. files: [
  320. { name: "man-1.svg", source: "https://commons.wikimedia.org/wiki/File:Silhouette.svg" }
  321. ],
  322. authors: [
  323. ]
  324. },
  325. {
  326. prefix: "./media/vehicles/",
  327. files: [
  328. { name: "titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" },
  329. { name: "vertical-titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" }
  330. ],
  331. authors: [
  332. ]
  333. },
  334. ],
  335. people: {
  336. "appledectomy": {
  337. name: "Appledectomy",
  338. url: "https://www.furaffinity.net/user/appledectomy"
  339. },
  340. "ashtrek": {
  341. name: "Ashtrek",
  342. url: "https://www.furaffinity.net/user/ashtrek/"
  343. },
  344. "aviraptia": {
  345. name: "Aviraptia",
  346. url: "https://www.furaffinity.net/user/aviraptia/"
  347. },
  348. "beao": {
  349. name: "Beao",
  350. url: "https://commons.wikimedia.org/wiki/User:Beao"
  351. },
  352. "brit-bork": {
  353. name: "Koijot",
  354. url: "https://twitter.com/Brit_Bork",
  355. },
  356. "cardboardhead": {
  357. name: "cardboardhead",
  358. url: "https://twitter.com/cardboardhead"
  359. },
  360. "chemicalcrux": {
  361. name: "chemicalcrux",
  362. url: "https://www.furaffinity.net/user/chemicalcrux"
  363. },
  364. "clown-grin": {
  365. name: "clown-grin",
  366. url: "https://www.furaffinity.net/user/clown-grin"
  367. },
  368. "cougr": {
  369. name: "Cougr",
  370. url: "https://www.furaffinity.net/user/cougr"
  371. },
  372. "d-eath-tail": {
  373. name: "Deathy",
  374. url: "https://www.furaffinity.net/user/d-eath-tail"
  375. },
  376. "Dialuca01": {
  377. name: "Dialuca",
  378. url: "https://www.furaffinity.net/user/dialuca01"
  379. },
  380. "dragga": {
  381. name: "Dragga",
  382. url: "https://www.furaffinity.net/user/dragga"
  383. },
  384. "ethan64": {
  385. name: "Ethan64",
  386. url: "https://www.furaffinity.net/user/ethan64/"
  387. },
  388. "flyhar": {
  389. name: "Flyhar",
  390. url: "https://www.furaffinity.net/user/flyfeline/"
  391. },
  392. "gaiawolfess": {
  393. name: "Gaiawolfess",
  394. url: "https://www.furaffinity.net/user/gaiawolfess"
  395. },
  396. "jaro-the-dragon": {
  397. name: "Jaro",
  398. url: "https://www.furaffinity.net/user/jarothedragon/"
  399. },
  400. "jaydom": {
  401. name: "Jaydom",
  402. url: "https://www.furaffinity.net/user/jaydom"
  403. },
  404. "just-a-little-mixed-up": {
  405. name: "just-a-little-mixed-up",
  406. url: "https://www.furaffinity.net/user/just-a-little-mixed-up"
  407. },
  408. "kerneldecoy": {
  409. name: "Kernel Decoy",
  410. url: "https://www.furaffinity.net/user/kerneldecoy/"
  411. },
  412. "kurrikage": {
  413. name: "Kurrikage",
  414. url: "https://www.furaffinity.net/user/kurrikage/"
  415. },
  416. "labratkuma": {
  417. name: "labratkuma",
  418. url: "https://www.furaffinity.net/user/labratkuma"
  419. },
  420. "malakhael": {
  421. name: "Malakhael",
  422. url: "https://www.furaffinity.net/user/malakhael"
  423. },
  424. "mallowchu": {
  425. name: "Mallowchu",
  426. url: "https://www.furaffinity.net/user/mallowchu"
  427. },
  428. "mizumisensei": {
  429. name: "Mizumisensei",
  430. url: "https://twitter.com/mizumisensei"
  431. },
  432. "movler": {
  433. name: "Movler",
  434. url: "https://www.furaffinity.net/user/movler/"
  435. },
  436. "oselotti": {
  437. name: "Oselotti",
  438. url: "https://www.furaffinity.net/user/oselotti"
  439. },
  440. "phil-bronnery": {
  441. name: "Phil Bronnery",
  442. url: "https://www.flickr.com/people/27919241@N02"
  443. },
  444. "quake-yote": {
  445. name: "Quake Yote",
  446. url: "https://www.furaffinity.net/user/rokossovskiy"
  447. },
  448. "Rebonica": {
  449. name: "Rebonica",
  450. url: "https://www.furaffinity.net/user/rebonica"
  451. },
  452. "rogue": {
  453. name: "Rogue Megawolf",
  454. url: "https://twitter.com/roguemegawolf"
  455. },
  456. "scareye": {
  457. name: "Scareye",
  458. url: "https://www.furaffinity.net/user/scareye/"
  459. },
  460. "silverwingink": {
  461. name: "silverwingink",
  462. url: "https://www.furaffinity.net/gallery/silverwingink/"
  463. },
  464. "spyropurple": {
  465. name: "spyropurple",
  466. url: "https://www.furaffinity.net/user/spyropurple/"
  467. },
  468. "stonerabbit": {
  469. name: "stonerabbit",
  470. url: "https://www.furaffinity.net/user/stonerabbit/"
  471. },
  472. "zyraxus": {
  473. name: "Zyraxus",
  474. url: "https://www.furaffinity.net/user/zyraxus"
  475. }
  476. }
  477. }
  478. const attribution = {};
  479. function prepareAttribution() {
  480. attribution["files"] = {};
  481. attributionData.sources.forEach(citation => {
  482. citation.files.forEach(file => {
  483. attribution.files[citation.prefix + file.name] = {
  484. authors: citation.authors,
  485. owners: citation.owners,
  486. source: file.source
  487. }
  488. })
  489. });
  490. }
  491. function authorsOf(file) {
  492. if (attribution.files[file])
  493. return attribution.files[file].authors;
  494. else
  495. return undefined;
  496. }
  497. function authorsOfFull(file) {
  498. if (attribution.files[file]) {
  499. const result = [];
  500. attribution.files[file].authors.forEach(author => {
  501. result.push(attributionData.people[author]);
  502. });
  503. return result;
  504. }
  505. else
  506. return undefined;
  507. }
  508. function ownersOf(file) {
  509. if (attribution.files[file])
  510. return attribution.files[file].owners;
  511. else
  512. return undefined;
  513. }
  514. function ownersOfFull(file) {
  515. if (attribution.files[file]) {
  516. if (attribution.files[file].owners !== undefined) {
  517. const result = [];
  518. attribution.files[file].owners.forEach(owner => {
  519. result.push(attributionData.people[owner]);
  520. });
  521. return result;
  522. } else {
  523. return [];
  524. }
  525. }
  526. else
  527. return undefined;
  528. }
  529. function sourceOf(file) {
  530. if (attribution.files[file])
  531. return attribution.files[file].source;
  532. else
  533. return undefined;
  534. }
  535. prepareAttribution();