Services
Included are a number of services, which have also been implemented into the code, providing simple examples. It is expected that in the main that there will be no updates to these services directly
theme
Contains the initialization of the latest SKAO Theme. The code for this has already been provided and ensures that styling adhere’s to SKAO standards
i18n
Allows for text to be displayed in the language of the browser, with English as the default. The data is stored in folders under public/locales, with each language in its own folder ( e.g. en ). In this application, all the json files needed to be called sc.json
fetch
Endpoint |
Type |
LocalData |
Parameters |
Purpose |
---|---|---|---|---|
getContinuumData |
GET |
CONTINUUM_DATA_MOCKED |
standardData, advancedData, continuumData |
Obtain the results of a continuum query |
getPSSData |
GET |
PSS_DATA_MOCKED |
standardData, pssData |
Obtain the results of a PSS query |
getSubArrayData |
GET |
SUBARRAY_DATA_LOW_MOCKED. SUBARRAY_DATA_MID_MOCKED |
telescope |
sub arrays for the {low | mid} telescope |
getZoomData |
GET |
ZOOM_DATA_MOCKED |
standardData, advancedData, zoomData |
Obtain the results of a zoom query |