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.
 
 
 

881 lines
25 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/beherit/",
  199. files: [
  200. { name: "front.svg", source: null }
  201. ],
  202. authors: [
  203. "muzz",
  204. ],
  205. owners: [
  206. "beherit"
  207. ]
  208. },
  209. {
  210. prefix: "./media/characters/berri/",
  211. files: [
  212. { name: "front.svg", source: "https://www.furaffinity.net/view/34510917/" }
  213. ],
  214. authors: [
  215. "lynxsprout",
  216. "sugarbeans"
  217. ],
  218. owners: [
  219. "little-big-x110"
  220. ]
  221. },
  222. {
  223. prefix: "./media/characters/blake/",
  224. files: [
  225. { name: "side.svg", source: "https://www.furaffinity.net/view/30676178/" },
  226. { name: "crouched.svg", source: "https://www.furaffinity.net/view/30676178/" },
  227. { name: "bent.svg", source: "https://www.furaffinity.net/view/30676178/" },
  228. ],
  229. authors: [
  230. "zyraxus"
  231. ],
  232. owners: [
  233. "kurrikage"
  234. ]
  235. },
  236. {
  237. prefix: "./media/characters/cibus/",
  238. files: [
  239. { name: "side.svg", source: "https://www.furaffinity.net/view/15534343/" }
  240. ],
  241. authors: [
  242. "jaydom"
  243. ],
  244. owners: [
  245. "movler"
  246. ]
  247. },
  248. {
  249. prefix: "./media/characters/dr-clay/",
  250. files: [
  251. { name: "front.svg", source: "https://www.furaffinity.net/view/15534343/" },
  252. { name: "front-clothed.svg", source: "https://www.furaffinity.net/view/15534343/" }
  253. ],
  254. authors: [
  255. "wonderball"
  256. ],
  257. owners: [
  258. "little-big-x110"
  259. ]
  260. },
  261. {
  262. prefix: "./media/characters/everett/",
  263. files: [
  264. { name: "front.svg", source: null },
  265. { name: "paw.svg", source: null }
  266. ],
  267. authors: [
  268. "beherit",
  269. ],
  270. owners: [
  271. "beherit"
  272. ]
  273. },
  274. {
  275. prefix: "./media/characters/gemini/",
  276. files: [
  277. { name: "front.svg", source: "https://www.furaffinity.net/view/31363584/" },
  278. { name: "back.svg", source: "https://www.furaffinity.net/view/31363584/" },
  279. ],
  280. authors: [
  281. "rebonica"
  282. ],
  283. owners: [
  284. "geminimacro"
  285. ]
  286. },
  287. {
  288. prefix: "./media/characters/gemini/",
  289. files: [
  290. { name: "kneeling.svg", source: "https://www.furaffinity.net/view/31295122/" },
  291. ],
  292. authors: [
  293. "furrypur"
  294. ],
  295. owners: [
  296. "geminimacro"
  297. ]
  298. },
  299. {
  300. prefix: "./media/characters/jaro/",
  301. files: [
  302. { name: "front.svg", source: "https://www.furaffinity.net/view/26084387/" },
  303. { name: "back.svg", source: "https://www.furaffinity.net/view/26084387/" }
  304. ],
  305. authors: [
  306. "mizumisensei"
  307. ],
  308. owners: [
  309. "jaro-the-dragon"
  310. ]
  311. },
  312. {
  313. prefix: "./media/characters/juno/",
  314. files: [
  315. { name: "front.svg", source: "https://toyhou.se/2991942.juno#16906063" },
  316. ],
  317. authors: [
  318. "gaily"
  319. ],
  320. owners: [
  321. "little-big-x110"
  322. ]
  323. },
  324. {
  325. prefix: "./media/characters/lexi/",
  326. files: [
  327. { name: "front.svg", source: "https://www.furaffinity.net/view/32187352/" }
  328. ],
  329. authors: [
  330. ],
  331. owners: [
  332. "little-big-x110"
  333. ]
  334. },
  335. {
  336. prefix: "./media/characters/malfressa/",
  337. files: [
  338. { name: "side.svg", source: "https://www.furaffinity.net/view/25377262/" },
  339. { name: "feral.svg", source: "https://www.furaffinity.net/view/25377262/" }
  340. ],
  341. authors: [
  342. "d-eath-tail"
  343. ],
  344. owners: [
  345. "scareye"
  346. ]
  347. },
  348. {
  349. prefix: "./media/characters/malfressa/",
  350. files: [
  351. { name: "walking.svg", source: "https://www.furaffinity.net/view/23877052/" }
  352. ],
  353. authors: [
  354. "kerneldecoy"
  355. ],
  356. owners: [
  357. "scareye"
  358. ]
  359. },
  360. {
  361. prefix: "./media/characters/martin/",
  362. files: [
  363. { name: "front.svg", source: "https://www.furaffinity.net/view/30066999" }
  364. ],
  365. authors: [
  366. "little-big-x110"
  367. ],
  368. owners: [
  369. "little-big-x110"
  370. ]
  371. },
  372. {
  373. prefix: "./media/characters/nibbles/",
  374. files: [
  375. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/" },
  376. { name: "side.svg", source: "https://www.furaffinity.net/view/22964778/" },
  377. ],
  378. authors: [
  379. "dragga"
  380. ],
  381. owners: [
  382. "movler"
  383. ]
  384. },
  385. {
  386. prefix: "./media/characters/piper/",
  387. files: [
  388. { name: "front.svg", source: "https://www.furaffinity.net/view/22964778/" }
  389. ],
  390. authors: [
  391. "brit-bork"
  392. ],
  393. owners: [
  394. "flyhar"
  395. ]
  396. },
  397. {
  398. prefix: "./media/characters/regal/",
  399. files: [
  400. { name: "front.svg", source: "https://www.furaffinity.net/view/32825133/" },
  401. { name: "back.svg", source: "https://www.furaffinity.net/view/32825133/" }
  402. ],
  403. authors: [
  404. "sixsydes"
  405. ],
  406. owners: [
  407. "cygil"
  408. ]
  409. },
  410. {
  411. prefix: "./media/characters/rikky/",
  412. files: [
  413. { name: "side.svg", source: null }
  414. ],
  415. authors: [
  416. "ethan64"
  417. ],
  418. owners: [
  419. "quake-yote"
  420. ]
  421. },
  422. {
  423. prefix: "./media/characters/rogue/",
  424. files: [
  425. { name: "front.svg", source: "http://rogue.macrophile.com/ken" }
  426. ],
  427. authors: [
  428. "cougr"
  429. ],
  430. owners: [
  431. "rogue"
  432. ]
  433. },
  434. {
  435. prefix: "./media/characters/rose-lion/",
  436. files: [
  437. { name: "front.svg", source: "https://twitter.com/MewMus" }
  438. ],
  439. authors: [
  440. "enormouse"
  441. ],
  442. owners: [
  443. "enormouse"
  444. ]
  445. },
  446. {
  447. prefix: "./media/characters/rose-lion/",
  448. files: [
  449. { name: "bent.svg", source: "https://www.furaffinity.net/view/34392494/" }
  450. ],
  451. authors: [
  452. "princessrei"
  453. ],
  454. owners: [
  455. "enormouse"
  456. ]
  457. },
  458. {
  459. prefix: "./media/characters/samantha/",
  460. files: [
  461. { name: "front.svg", source: "https://www.furaffinity.net/view/31077914/" },
  462. { name: "front-clothed.svg", source: "https://www.furaffinity.net/view/31077914/" },
  463. { name: "back.svg", source: "https://www.furaffinity.net/view/31077914/" },
  464. ],
  465. authors: [
  466. "wonderball"
  467. ],
  468. owners: [
  469. "little-big-x110"
  470. ]
  471. },
  472. {
  473. prefix: "./media/characters/surgo/",
  474. files: [
  475. { name: "front.svg", source: "https://www.furaffinity.net/view/33348481/" },
  476. { name: "back.svg", source: "https://www.furaffinity.net/view/33348481/" },
  477. { name: "laying.svg", source: "https://www.furaffinity.net/view/33348481/" },
  478. ],
  479. authors: [
  480. "gaiawolfess",
  481. "malakhael"
  482. ],
  483. owners: [
  484. "movler"
  485. ]
  486. },
  487. {
  488. prefix: "./media/characters/tiberius/",
  489. files: [
  490. { name: "front.svg", source: "https://www.furaffinity.net/view/34977812/" },
  491. { name: "back.svg", source: "https://www.furaffinity.net/view/34977812/" }
  492. ],
  493. authors: [
  494. "rebonica"
  495. ],
  496. owners: [
  497. "movler"
  498. ]
  499. },
  500. {
  501. prefix: "./media/characters/vemus/",
  502. files: [
  503. { name: "front.svg", source: "https://www.furaffinity.net/view/31833589/" }
  504. ],
  505. authors: [
  506. "eda"
  507. ],
  508. owners: [
  509. "vemus"
  510. ]
  511. },
  512. {
  513. prefix: "./media/characters/wyvern-ripsnarl/",
  514. files: [
  515. { name: "front.svg", source: "https://www.furaffinity.net/view/15418876/" }
  516. ],
  517. authors: [
  518. "teaselbone"
  519. ],
  520. owners: [
  521. "lobo-raptor-lo"
  522. ]
  523. },
  524. {
  525. prefix: "./media/characters/",
  526. files: [
  527. { name: "", source: "" }
  528. ],
  529. authors: [
  530. ]
  531. },
  532. {
  533. prefix: "./media/objects/humans/",
  534. files: [
  535. { name: "woman-1.svg", source: "https://commons.wikimedia.org/wiki/File:1Silhouette_Female.svg" }
  536. ],
  537. authors: [
  538. "phil-bronnery",
  539. "beao"
  540. ]
  541. },
  542. {
  543. prefix: "./media/objects/humans/",
  544. files: [
  545. { name: "man-1.svg", source: "https://commons.wikimedia.org/wiki/File:Silhouette.svg" }
  546. ],
  547. authors: [
  548. ]
  549. },
  550. {
  551. prefix: "./media/vehicles/",
  552. files: [
  553. { name: "titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" },
  554. { name: "vertical-titanic.svg", source: "https://creazilla.com/nodes/873-titanic-silhouette" }
  555. ],
  556. authors: [
  557. ]
  558. },
  559. {
  560. prefix: "./media/vehicles/",
  561. files: [
  562. { name: "18-wheeler.svg", source: "https://commons.wikimedia.org/wiki/File:Conventional_18-wheeler_truck_diagram.svg" },
  563. { name: "18-wheeler-vertical.svg", source: "https://commons.wikimedia.org/wiki/File:Conventional_18-wheeler_truck_diagram.svg" }
  564. ],
  565. authors: [
  566. "h-padleckas"
  567. ]
  568. },
  569. ],
  570. people: {
  571. "appledectomy": {
  572. name: "Appledectomy",
  573. url: "https://www.furaffinity.net/user/appledectomy"
  574. },
  575. "archy-d": {
  576. name: "ArchyD",
  577. url: "https://www.furaffinity.net/user/ArchyD"
  578. },
  579. "ashtrek": {
  580. name: "Ashtrek",
  581. url: "https://www.furaffinity.net/user/ashtrek/"
  582. },
  583. "aviraptia": {
  584. name: "Aviraptia",
  585. url: "https://www.furaffinity.net/user/aviraptia/"
  586. },
  587. "beao": {
  588. name: "Beao",
  589. url: "https://commons.wikimedia.org/wiki/User:Beao"
  590. },
  591. "beherit": {
  592. name: "Beherit",
  593. url: "https://www.furaffinity.net/user/beherit/"
  594. },
  595. "brit-bork": {
  596. name: "Koijot",
  597. url: "https://twitter.com/Brit_Bork",
  598. },
  599. "cardboardhead": {
  600. name: "cardboardhead",
  601. url: "https://twitter.com/cardboardhead"
  602. },
  603. "chemicalcrux": {
  604. name: "chemicalcrux",
  605. url: "https://www.furaffinity.net/user/chemicalcrux"
  606. },
  607. "chesta": {
  608. name: "Chesta",
  609. url: "https://www.furaffinity.net/user/chesta"
  610. },
  611. "clown-grin": {
  612. name: "clown-grin",
  613. url: "https://www.furaffinity.net/user/clown-grin"
  614. },
  615. "cougr": {
  616. name: "Cougr",
  617. url: "https://www.furaffinity.net/user/cougr"
  618. },
  619. "cygil": {
  620. name: "Cygil",
  621. url: "https://www.furaffinity.net/user/cygil"
  622. },
  623. "d-eath-tail": {
  624. name: "Deathy",
  625. url: "https://www.furaffinity.net/user/d-eath-tail"
  626. },
  627. "Dialuca01": {
  628. name: "Dialuca",
  629. url: "https://www.furaffinity.net/user/dialuca01"
  630. },
  631. "dragga": {
  632. name: "Dragga",
  633. url: "https://www.furaffinity.net/user/dragga"
  634. },
  635. "eda": {
  636. name: "Eda",
  637. url: "https://www.furaffinity.net/user/eda/"
  638. },
  639. "enormouse": {
  640. name: "Enormouse",
  641. url: "https://twitter.com/MewMus"
  642. },
  643. "ethan64": {
  644. name: "Ethan64",
  645. url: "https://www.furaffinity.net/user/ethan64/"
  646. },
  647. "flyhar": {
  648. name: "Flyhar",
  649. url: "https://www.furaffinity.net/user/flyfeline/"
  650. },
  651. "furrypur": {
  652. name: "FurryPur",
  653. url: "https://www.furaffinity.net/user/furrypur/"
  654. },
  655. "gaiawolfess": {
  656. name: "Gaiawolfess",
  657. url: "https://www.furaffinity.net/user/gaiawolfess"
  658. },
  659. "gaily": {
  660. name: "Gaily",
  661. url: "https://www.furaffinity.net/user/gaily/"
  662. },
  663. "geminimacro": {
  664. name: "geminimacro",
  665. url: "https://www.furaffinity.net/user/lajay"
  666. },
  667. "h-padleckas": {
  668. name: "H. Padleckas",
  669. url: "https://commons.wikimedia.org/wiki/User:H_Padleckas"
  670. },
  671. "helisa-adopts": {
  672. name: "Helisa",
  673. url: "https://www.furaffinity.net/user/HelisaAdopts"
  674. },
  675. "jaro-the-dragon": {
  676. name: "Jaro",
  677. url: "https://www.furaffinity.net/user/jarothedragon/"
  678. },
  679. "jaydom": {
  680. name: "Jaydom",
  681. url: "https://www.furaffinity.net/user/jaydom"
  682. },
  683. "just-a-little-mixed-up": {
  684. name: "just-a-little-mixed-up",
  685. url: "https://www.furaffinity.net/user/just-a-little-mixed-up"
  686. },
  687. "kerneldecoy": {
  688. name: "Kernel Decoy",
  689. url: "https://www.furaffinity.net/user/kerneldecoy/"
  690. },
  691. "kurrikage": {
  692. name: "Kurrikage",
  693. url: "https://www.furaffinity.net/user/kurrikage/"
  694. },
  695. "labratkuma": {
  696. name: "labratkuma",
  697. url: "https://www.furaffinity.net/user/labratkuma"
  698. },
  699. "little-big-x110": {
  700. name: "LittleBig",
  701. url: "https://www.furaffinity.net/user/LittlebigX110"
  702. },
  703. "lobo-raptor-lo": {
  704. name: "LoboRaptorLo",
  705. url: "https://www.furaffinity.net/user/loboraptorlo/"
  706. },
  707. "lynxsprout": {
  708. name: "Lynxsprout",
  709. url: "https://lynxsprout.carrd.co/"
  710. },
  711. "malakhael": {
  712. name: "Malakhael",
  713. url: "https://www.furaffinity.net/user/malakhael"
  714. },
  715. "mallowchu": {
  716. name: "Mallowchu",
  717. url: "https://www.furaffinity.net/user/mallowchu"
  718. },
  719. "mizumisensei": {
  720. name: "Mizumisensei",
  721. url: "https://twitter.com/mizumisensei"
  722. },
  723. "movler": {
  724. name: "Movler",
  725. url: "https://www.furaffinity.net/user/movler/"
  726. },
  727. "muzz": {
  728. name: "Muzz",
  729. url: "https://www.furaffinity.net/user/muzz/"
  730. },
  731. "oselotti": {
  732. name: "Oselotti",
  733. url: "https://www.furaffinity.net/user/oselotti"
  734. },
  735. "phil-bronnery": {
  736. name: "Phil Bronnery",
  737. url: "https://www.flickr.com/people/27919241@N02"
  738. },
  739. "princessrei": {
  740. name: "Princess Rei",
  741. url: "https://twitter.com/princessrei"
  742. },
  743. "quake-yote": {
  744. name: "Quake Yote",
  745. url: "https://www.furaffinity.net/user/rokossovskiy"
  746. },
  747. "rebonica": {
  748. name: "Rebonica",
  749. url: "https://www.furaffinity.net/user/rebonica"
  750. },
  751. "rogue": {
  752. name: "Rogue Megawolf",
  753. url: "https://twitter.com/roguemegawolf"
  754. },
  755. "scareye": {
  756. name: "Scareye",
  757. url: "https://www.furaffinity.net/user/scareye/"
  758. },
  759. "silverwingink": {
  760. name: "silverwingink",
  761. url: "https://www.furaffinity.net/user/silverwingink/"
  762. },
  763. "sixsydes": {
  764. name: "sixsydes",
  765. url: "https://www.furaffinity.net/user/sixsydes/"
  766. },
  767. "spyropurple": {
  768. name: "spyropurple",
  769. url: "https://www.furaffinity.net/user/spyropurple/"
  770. },
  771. "stonerabbit": {
  772. name: "stonerabbit",
  773. url: "https://www.furaffinity.net/user/stonerabbit/"
  774. },
  775. "sugarbeans": {
  776. name: "sugarbeans",
  777. url: "https://www.furaffinity.net/user/sugarbeans/"
  778. },
  779. "teaselbone": {
  780. name: "Teaselbone",
  781. url: "https://www.furaffinity.net/user/teaselbone/"
  782. },
  783. "twitch-the-dragon": {
  784. name: "Twitch",
  785. url: "https://www.furaffinity.net/user/twitchthedragon/"
  786. },
  787. "vemus": {
  788. name: "vemus",
  789. url: "https://www.furaffinity.net/user/vemus"
  790. },
  791. "wonderball": {
  792. name: "Wonderball",
  793. url: "https://www.furaffinity.net/user/wonderball"
  794. },
  795. "zyraxus": {
  796. name: "Zyraxus",
  797. url: "https://www.furaffinity.net/user/zyraxus"
  798. }
  799. }
  800. }
  801. const attribution = {};
  802. function prepareAttribution() {
  803. attribution["files"] = {};
  804. attributionData.sources.forEach(citation => {
  805. citation.files.forEach(file => {
  806. attribution.files[citation.prefix + file.name] = {
  807. authors: citation.authors,
  808. owners: citation.owners,
  809. source: file.source
  810. }
  811. })
  812. });
  813. }
  814. function authorsOf(file) {
  815. if (attribution.files[file])
  816. return attribution.files[file].authors;
  817. else
  818. return undefined;
  819. }
  820. function authorsOfFull(file) {
  821. if (attribution.files[file]) {
  822. const result = [];
  823. attribution.files[file].authors.forEach(author => {
  824. result.push(attributionData.people[author]);
  825. });
  826. return result;
  827. }
  828. else
  829. return undefined;
  830. }
  831. function ownersOf(file) {
  832. if (attribution.files[file])
  833. return attribution.files[file].owners;
  834. else
  835. return undefined;
  836. }
  837. function ownersOfFull(file) {
  838. if (attribution.files[file]) {
  839. if (attribution.files[file].owners !== undefined) {
  840. const result = [];
  841. attribution.files[file].owners.forEach(owner => {
  842. result.push(attributionData.people[owner]);
  843. });
  844. return result;
  845. } else {
  846. return [];
  847. }
  848. }
  849. else
  850. return undefined;
  851. }
  852. function sourceOf(file) {
  853. if (attribution.files[file])
  854. return attribution.files[file].source;
  855. else
  856. return undefined;
  857. }
  858. prepareAttribution();