Codebase
Jump to navigation
Jump to search
Navigate the codebase
Global variables
wikidocumentaries
Reads all values at time of page load from Wikipedia and Wikidata and prepares for the app. Stored, updated add addressed at @/store/store.js
- title - Wikidata title in the user's language. Add a fallback option and create a new property with knowledge about the original value (boolean exists or empty data).
- description - Wikidata title in the user's language. Add a fallback option and create a new property with knowledge about the original value (boolean exists or empty data).
- headerImageURL
- wikipedia
- excerptHTML - summary part of the Wikipedia article
- remainingHTML - remaining part of the Wikipedia article as a separate object.
- wikipediaURL - link to the Wikipedia article in the user's language
- wikidata
- id
- instance_of
- id
- value
- url
- statements
- id
- label
- value - This returns a string for an object, and the QID is only in the URL. The QID should be extracted already before this?
- url
- dates
- images
- id
- source
- imageURL
- title
- authors
- institutions
- infoURL
- location
- geoLocations
- year
- license
- geo
- location
- admin
- topicStartYear
basemaps
- id
- title
- imageURL
- year
- server
- warperID
- municipality
- country
state
- wikidocumentariesDataState: WIKI.STATES.UNINITIALIZED,
- wikidocumentaries: wikidocumentaries
- shownImages (array)
- timelineImages (array)
- historicalMapSearchPageMap (array)
- historicalMaps (array)
- basemaps: basemaps
- selectedBasemaps (array)
- selectedBasemapOpacity (float)
- shouldFitMapToBasemap (boolean)
- photoOfTheDay (string) "https://upload.wikimedia.org/wikipedia/commons/a/ad/Kulutusosuuskuntien_Keskusliiton_kokoelma_D1974_11333A_%2830804608561%29.jpg",
- mapOfTheDay
- id (string) "File:1900_Plan_af_Helsingfors_stad.tif"
- warperID (integer) 148
- server (string) "http://warper.wmflabs.org/"
- coordinates (array) [24.9351, 60.1658]
- nearbyWikiItems (array)
Router
-
- path: '/dev'
- name: 'DevPage'
- component: devpage
-
- path: '/'
- name: 'LandingPage'
- component: LandingPage
-
- path: '/wikipedia/:language/:topic'
- component: MainPage
-
- path: '/:wikidata/:language?/:topic?'
- name: 'TopicPage'
- component: MainPage