diff options
| author | Henry Jameson <me@hjkos.com> | 2024-09-16 02:34:02 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-09-17 22:57:39 +0300 |
| commit | 00df9c9c32832feea80d6cd6d66c69fabacfab42 (patch) | |
| tree | 7458d910a8493cf0409512e392f287837b0878fa /src/App.js | |
| parent | 8ee51229090ba323ceacf2cb8c6b50f2b1309560 (diff) | |
initial splashscreen implementation
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -44,6 +44,13 @@ export default { data: () => ({ mobileActivePanel: 'timeline' }), + watch: { + themeApplied (value) { + document.querySelector('#app').classList.remove('hidden') + document.querySelector('#splash').className = 'hidden' + document.querySelector('#status').textContent = this.$t('splash.fun_' + Math.ceil(Math.random() * 4)) + } + }, created () { // Load the locale from the storage const val = this.$store.getters.mergedConfig.interfaceLanguage @@ -54,6 +61,9 @@ export default { window.removeEventListener('resize', this.updateMobileState) }, computed: { + themeApplied () { + return this.$store.state.interface.themeApplied + }, classes () { return [ { |
