-
Notifications
You must be signed in to change notification settings - Fork 1
the util folder
rothwell.andy@gmail.com edited this page Jul 26, 2024
·
1 revision
The util folder contains files containing functions for determining whether the app user is on a mac or a mobile device:
- is-mac.js
In main.js, is-mac.js is run, and if it returns true, the app imports '@/assets/mac-style.scss', which makes scrollbars on macs stay, even when you are not hovering over them.
- is-mobile-device.js
In App.vue, is-mobile-device.js is run and the answer is stored in the MainStore. Then, throughout the components, MainStore.isMobileDevice is used for styling
The util folder also contains merge-deep.js, used in the config to merge all of the map imagery styling info into each topic's map styling info.