aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-09-16 02:34:02 +0300
committerHenry Jameson <me@hjkos.com>2024-09-17 22:57:39 +0300
commit00df9c9c32832feea80d6cd6d66c69fabacfab42 (patch)
tree7458d910a8493cf0409512e392f287837b0878fa /src/App.js
parent8ee51229090ba323ceacf2cb8c6b50f2b1309560 (diff)
initial splashscreen implementation
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/App.js b/src/App.js
index b7eb2f72..6f140612 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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 [
{