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

710 строки
20 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/alicia/",
  77. files: [
  78. { name: "anthro.svg", source: "https://www.furaffinity.net/view/31363235/" }
  79. ],
  80. authors: [
  81. "helisa-adopts",
  82. "chesta"
  83. ],
  84. owners: [
  85. "little-big-x110"
  86. ]
  87. },
  88. {
  89. prefix: "./media/characters/alicia/",
  90. files: [
  91. { name: "feral.svg", source: "https://www.furaffinity.net/view/34138885/" }
  92. ],
  93. authors: [
  94. "little-big-x110",
  95. "helisa-adopts",
  96. "chesta"
  97. ],
  98. owners: [
  99. "little-big-x110"
  100. ]
  101. },
  102. {
  103. prefix: "./media/characters/andy/",
  104. files: [
  105. { name: "front.svg", source: null }
  106. ],
  107. authors: [
  108. "cardboardhead"
  109. ],
  110. owners: [
  111. ]
  112. },
  113. {
  114. prefix: "./media/characters/angelpatamon/",
  115. files: [
  116. { name: "front.svg", source: "http://www.furaffinity.net/view/26475369/" }
  117. ],
  118. authors: [
  119. "mallowchu"
  120. ]
  121. },
  122. {
  123. prefix: "./media/characters/appledectomy/",
  124. files: [
  125. { name: "front.svg", source: "https://www.furaffinity.net/view/33002197/" }
  126. ],
  127. authors: [
  128. "stonerabbit"
  129. ],
  130. owners: [
  131. "appledectomy"
  132. ]
  133. },
  134. {
  135. prefix: "./media/characters/archy/",
  136. files: [
  137. { name: "front.svg", source: "https://www.furaffinity.net/view/17286706/" }
  138. ],
  139. authors: [
  140. "twitch-the-dragon"
  141. ],
  142. owners: [
  143. "archy-d"
  144. ]
  145. },
  146. {
  147. prefix: "./media/characters/asana/",
  148. files: [
  149. { name: "front.svg", source: "https://www.furaffinity.net/view/35087729/" },
  150. { name: "back.svg", source: "https://www.furaffinity.net/view/35087729/" },
  151. ],
  152. authors: [
  153. "silverwingink"
  154. ],
  155. owners: [
  156. "aviraptia"
  157. ]
  158. },
  159. {
  160. prefix: "./media/characters/asana/",
  161. files: [
  162. { name: "front.svg", source: "https://www.furaffinity.net/view/35087729/" },
  163. { name: "back.svg", source: "https://www.furaffinity.net/view/35087729/" },
  164. ],
  165. authors: [
  166. "silverwingink"
  167. ],
  168. owners: [
  169. "aviraptia"
  170. ]
  171. },
  172. {
  173. prefix: "./media/characters/asana-mech/",
  174. files: [
  175. { name: "side.svg", source: null }
  176. ],
  177. authors: [
  178. "ashtrek"
  179. ],
  180. owners: [
  181. "aviraptia"
  182. ]
  183. },
  184. {
  185. prefix: "./media/characters/ashtrek/",
  186. files: [
  187. { name: "front.svg", source: null },
  188. { name: "front-armor.svg", source: null },
  189. ],
  190. authors: [
  191. "silverwingink"
  192. ],
  193. owners: [
  194. "ashtrek"
  195. ]
  196. },
  197. {
  198. prefix: "./media/characters/berri/",
  199. files: [
  200. { name: "front.svg", source: "https://www.furaffinity.net/view/34510917/" }
  201. ],
  202. authors: [
  203. "lynxsprout",
  204. "sugarbeans"
  205. ],
  206. owners: [
  207. "little-big-x110"
  208. ]
  209. },
  210. {
  211. prefix: "./media/characters/blake/",
  212. files: [
  213. { name: "side.svg", source: "https://www.furaffinity.net/view/30676178/" },
  214. { name: "crouched.svg", source: "https://www.furaffinity.net/view/30676178/" },
  215. { name: "bent.svg", source: "https://www.furaffinity.net/view/30676178/" },
  216. ],
  217. authors: [
  218. "zyraxus"
  219. ],
  220. owners: [
  221. "kurrikage"
  222. ]
  223. },
  224. {
  225. prefix: "./media/characters/cibus/",
  226. files: [
  227. { name: "side.svg", source: "https://www.furaffinity.net/view/15534343/" }
  228. ],
  229. authors: [
  230. "jaydom"
  231. ],
  232. owners: [
  233. "movler"
  234. ]
  235. },
  236. {
  237. prefix: "./media/characters/gemini/",
  238. files: [
  239. { name: "front.svg", source: "https://www.furaffinity.net/view/31363584/" },
  240. { name: "back.svg", source: "https://www.furaffinity.net/view/31363584/" },
  241. ],
  242. authors: [
  243. "rebonica"
  244. ],
  245. owners: [
  246. "geminimacro"
  247. ]
  248. },
  249. {
  250. prefix: "./media/characters/gemini/",
  251. files: [
  252. { name: "kneeling.svg", source: "https://www.furaffinity.net/view/31295122/" },
  253. ],
  254. authors: [
  255. "furrypur"
  256. ],
  257. owners: [
  258. "geminimacro"
  259. ]
  260. },
  261. {
  262. prefix: "./media/characters/jaro/",
  263. files: [
  264. { name: "front.svg", source: "https://www.furaffinity.net/view/26084387/" },
  265. { name: "back.svg", source: "https://www.furaffinity.net/view/26084387/" }
  266. ],
  267. authors: [
  268. "mizumisensei"
  269. ],
  270. owners: [
  271. "jaro-the-dragon"
  272. ]
  273. },
  274. {
  275. prefix: "./media/characters/juno/",
  276. files: [
  277. { name: "front.svg", source: "https://toyhou.se/2991942.juno#16906063" },
  278. ],
  279. authors: [
  280. "gaily"
  281. ],
  282. owners: [
  283. "little-big-x110"
  284. ]
  285. },
  286. {
  287. prefix: "./media/characters/lexi/",
  288. files: [
  289. { name: "front.svg", source: "https://www.furaffinity.net/view/32187352/" }
  290. ],
  291. authors: [
  292. ],
  293. owners: [
  294. "little-big-x110"
  295. ]
  296. },
  297. {
  298. prefix: "./media/characters/malfressa/",
  299. files: [
  300. { name: "side.svg", source: "https://www.furaffinity.net/view/25377262/" },
  301. { name: "feral.svg", source: "https://www.furaffinity.net/view/25377262/" }
  302. ],
  303. authors: [
  304. "d-eath-tail"
  305. ],
  306. owners: [
  307. "scareye"
  308. ]
  309. },
  310. {
  311. prefix: "./media/characters/malfressa/",
  312. files: [
  313. { name: "walking.svg", source: "https://www.furaffinity.net/view/23877052/" }
  314. ],
  315. authors: [
  316. "kerneldecoy"
  317. ],
  318. owners: [
  319. "scareye"
  320. ]
  321. },
  322. {
  323. prefix: "./media/characters/martin/",
  324. files: [
  325. { name: "front.svg", source: "https://www.furaffinity.net/view/30066999" }
  326. ],
  327. authors: [
  328. "little-big-x110"
  329. ],
  330. owners: [
  331. "little-big-x110"
  332. ]
  333. },
  334. {
  335. prefix: "./media/characters/nibbles/",
  336. files: [
  337. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/" },
  338. { name: "side.svg", source: "https://www.furaffinity.net/view/22964778/" },
  339. ],
  340. authors: [
  341. "dragga"
  342. ],
  343. owners: [
  344. "movler"
  345. ]
  346. },
  347. {
  348. prefix: "./media/characters/piper/",
  349. files: [
  350. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/" }
  351. ],
  352. authors: [
  353. "brit-bork"
  354. ],
  355. owners: [
  356. "flyhar"
  357. ]
  358. },
  359. {
  360. prefix: "./media/characters/rikky/",
  361. files: [
  362. { name: "side.svg", source: null }
  363. ],
  364. authors: [
  365. "ethan64"
  366. ],
  367. owners: [
  368. "quake-yote"
  369. ]
  370. },
  371. {
  372. prefix: "./media/characters/rogue/",
  373. files: [
  374. { name: "front.svg", source: "http://rogue.macrophile.com/ken" }
  375. ],
  376. authors: [
  377. "cougr"
  378. ],
  379. owners: [
  380. "rogue"
  381. ]
  382. },
  383. {
  384. prefix: "./media/characters/surgo/",
  385. files: [
  386. { name: "front.svg", source: "https://www.furaffinity.net/view/33348481/" },
  387. { name: "back.svg", source: "https://www.furaffinity.net/view/33348481/" },
  388. { name: "laying.svg", source: "https://www.furaffinity.net/view/33348481/" },
  389. ],
  390. authors: [
  391. "gaiawolfess",
  392. "malakhael"
  393. ],
  394. owners: [
  395. "movler"
  396. ]
  397. },
  398. {
  399. prefix: "./media/characters/tiberius/",
  400. files: [
  401. { name: "front.svg", source: "https://www.furaffinity.net/view/34977812/" },
  402. { name: "back.svg", source: "https://www.furaffinity.net/view/34977812/" }
  403. ],
  404. authors: [
  405. "rebonica"
  406. ],
  407. owners: [
  408. "movler"
  409. ]
  410. },
  411. {
  412. prefix: "./media/characters/",
  413. files: [
  414. { name: "", source: "" }
  415. ],
  416. authors: [
  417. ]
  418. },
  419. {
  420. prefix: "./media/objects/humans/",
  421. files: [
  422. { name: "woman-1.svg", source: "https://commons.wikimedia.org/wiki/File:1Silhouette_Female.svg" }
  423. ],
  424. authors: [
  425. "phil-bronnery",
  426. "beao"
  427. ]
  428. },
  429. {
  430. prefix: "./media/objects/humans/",
  431. files: [
  432. { name: "man-1.svg", source: "https://commons.wikimedia.org/wiki/File:Silhouette.svg" }
  433. ],
  434. authors: [
  435. ]
  436. },
  437. {
  438. prefix: "./media/vehicles/",
  439. files: [
  440. { name: "titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" },
  441. { name: "vertical-titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" }
  442. ],
  443. authors: [
  444. ]
  445. },
  446. ],
  447. people: {
  448. "appledectomy": {
  449. name: "Appledectomy",
  450. url: "https://www.furaffinity.net/user/appledectomy"
  451. },
  452. "archy-d": {
  453. name: "ArchyD",
  454. url: "https://www.furaffinity.net/user/ArchyD"
  455. },
  456. "ashtrek": {
  457. name: "Ashtrek",
  458. url: "https://www.furaffinity.net/user/ashtrek/"
  459. },
  460. "aviraptia": {
  461. name: "Aviraptia",
  462. url: "https://www.furaffinity.net/user/aviraptia/"
  463. },
  464. "beao": {
  465. name: "Beao",
  466. url: "https://commons.wikimedia.org/wiki/User:Beao"
  467. },
  468. "brit-bork": {
  469. name: "Koijot",
  470. url: "https://twitter.com/Brit_Bork",
  471. },
  472. "cardboardhead": {
  473. name: "cardboardhead",
  474. url: "https://twitter.com/cardboardhead"
  475. },
  476. "chemicalcrux": {
  477. name: "chemicalcrux",
  478. url: "https://www.furaffinity.net/user/chemicalcrux"
  479. },
  480. "chesta": {
  481. name: "Chesta",
  482. url: "https://www.furaffinity.net/user/chesta"
  483. },
  484. "clown-grin": {
  485. name: "clown-grin",
  486. url: "https://www.furaffinity.net/user/clown-grin"
  487. },
  488. "cougr": {
  489. name: "Cougr",
  490. url: "https://www.furaffinity.net/user/cougr"
  491. },
  492. "d-eath-tail": {
  493. name: "Deathy",
  494. url: "https://www.furaffinity.net/user/d-eath-tail"
  495. },
  496. "Dialuca01": {
  497. name: "Dialuca",
  498. url: "https://www.furaffinity.net/user/dialuca01"
  499. },
  500. "dragga": {
  501. name: "Dragga",
  502. url: "https://www.furaffinity.net/user/dragga"
  503. },
  504. "ethan64": {
  505. name: "Ethan64",
  506. url: "https://www.furaffinity.net/user/ethan64/"
  507. },
  508. "flyhar": {
  509. name: "Flyhar",
  510. url: "https://www.furaffinity.net/user/flyfeline/"
  511. },
  512. "furrypur": {
  513. name: "FurryPur",
  514. url: "https://www.furaffinity.net/user/furrypur/"
  515. },
  516. "gaiawolfess": {
  517. name: "Gaiawolfess",
  518. url: "https://www.furaffinity.net/user/gaiawolfess"
  519. },
  520. "gaily": {
  521. name: "Gaily",
  522. url: "https://www.furaffinity.net/user/gaily/"
  523. },
  524. "geminimacro": {
  525. name: "geminimacro",
  526. url: "https://www.furaffinity.net/user/lajay"
  527. },
  528. "helisa-adopts": {
  529. name: "Helisa",
  530. url: "https://www.furaffinity.net/user/HelisaAdopts"
  531. },
  532. "jaro-the-dragon": {
  533. name: "Jaro",
  534. url: "https://www.furaffinity.net/user/jarothedragon/"
  535. },
  536. "jaydom": {
  537. name: "Jaydom",
  538. url: "https://www.furaffinity.net/user/jaydom"
  539. },
  540. "just-a-little-mixed-up": {
  541. name: "just-a-little-mixed-up",
  542. url: "https://www.furaffinity.net/user/just-a-little-mixed-up"
  543. },
  544. "kerneldecoy": {
  545. name: "Kernel Decoy",
  546. url: "https://www.furaffinity.net/user/kerneldecoy/"
  547. },
  548. "kurrikage": {
  549. name: "Kurrikage",
  550. url: "https://www.furaffinity.net/user/kurrikage/"
  551. },
  552. "labratkuma": {
  553. name: "labratkuma",
  554. url: "https://www.furaffinity.net/user/labratkuma"
  555. },
  556. "little-big-x110": {
  557. name: "LittleBig",
  558. url: "https://www.furaffinity.net/user/LittlebigX110"
  559. },
  560. "lynxsprout": {
  561. name: "Lynxsprout",
  562. url: "https://lynxsprout.carrd.co/"
  563. },
  564. "malakhael": {
  565. name: "Malakhael",
  566. url: "https://www.furaffinity.net/user/malakhael"
  567. },
  568. "mallowchu": {
  569. name: "Mallowchu",
  570. url: "https://www.furaffinity.net/user/mallowchu"
  571. },
  572. "mizumisensei": {
  573. name: "Mizumisensei",
  574. url: "https://twitter.com/mizumisensei"
  575. },
  576. "movler": {
  577. name: "Movler",
  578. url: "https://www.furaffinity.net/user/movler/"
  579. },
  580. "oselotti": {
  581. name: "Oselotti",
  582. url: "https://www.furaffinity.net/user/oselotti"
  583. },
  584. "phil-bronnery": {
  585. name: "Phil Bronnery",
  586. url: "https://www.flickr.com/people/27919241@N02"
  587. },
  588. "quake-yote": {
  589. name: "Quake Yote",
  590. url: "https://www.furaffinity.net/user/rokossovskiy"
  591. },
  592. "rebonica": {
  593. name: "Rebonica",
  594. url: "https://www.furaffinity.net/user/rebonica"
  595. },
  596. "rogue": {
  597. name: "Rogue Megawolf",
  598. url: "https://twitter.com/roguemegawolf"
  599. },
  600. "scareye": {
  601. name: "Scareye",
  602. url: "https://www.furaffinity.net/user/scareye/"
  603. },
  604. "silverwingink": {
  605. name: "silverwingink",
  606. url: "https://www.furaffinity.net/gallery/silverwingink/"
  607. },
  608. "spyropurple": {
  609. name: "spyropurple",
  610. url: "https://www.furaffinity.net/user/spyropurple/"
  611. },
  612. "stonerabbit": {
  613. name: "stonerabbit",
  614. url: "https://www.furaffinity.net/user/stonerabbit/"
  615. },
  616. "sugarbeans": {
  617. name: "sugarbeans",
  618. url: "https://www.furaffinity.net/user/sugarbeans/"
  619. },
  620. "twitch-the-dragon": {
  621. name: "Twitch",
  622. url: "https://www.furaffinity.net/user/twitchthedragon/"
  623. },
  624. "zyraxus": {
  625. name: "Zyraxus",
  626. url: "https://www.furaffinity.net/user/zyraxus"
  627. }
  628. }
  629. }
  630. const attribution = {};
  631. function prepareAttribution() {
  632. attribution["files"] = {};
  633. attributionData.sources.forEach(citation => {
  634. citation.files.forEach(file => {
  635. attribution.files[citation.prefix + file.name] = {
  636. authors: citation.authors,
  637. owners: citation.owners,
  638. source: file.source
  639. }
  640. })
  641. });
  642. }
  643. function authorsOf(file) {
  644. if (attribution.files[file])
  645. return attribution.files[file].authors;
  646. else
  647. return undefined;
  648. }
  649. function authorsOfFull(file) {
  650. if (attribution.files[file]) {
  651. const result = [];
  652. attribution.files[file].authors.forEach(author => {
  653. result.push(attributionData.people[author]);
  654. });
  655. return result;
  656. }
  657. else
  658. return undefined;
  659. }
  660. function ownersOf(file) {
  661. if (attribution.files[file])
  662. return attribution.files[file].owners;
  663. else
  664. return undefined;
  665. }
  666. function ownersOfFull(file) {
  667. if (attribution.files[file]) {
  668. if (attribution.files[file].owners !== undefined) {
  669. const result = [];
  670. attribution.files[file].owners.forEach(owner => {
  671. result.push(attributionData.people[owner]);
  672. });
  673. return result;
  674. } else {
  675. return [];
  676. }
  677. }
  678. else
  679. return undefined;
  680. }
  681. function sourceOf(file) {
  682. if (attribution.files[file])
  683. return attribution.files[file].source;
  684. else
  685. return undefined;
  686. }
  687. prepareAttribution();