Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
funkwhale
Commits
3337ec9a
Commit
3337ec9a
authored
Apr 23, 2022
by
Kasper Seweryn
🥞
Committed by
Kasper Seweryn
Jul 03, 2022
Browse files
Load theme as fast as possible
parent
1d4f2e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/src/main.ts
View file @
3337ec9a
...
...
@@ -5,6 +5,8 @@ import store from '~/store'
import
{
sync
}
from
'
vuex-router-sync
'
import
VueCompositionAPI
,
{
createApp
}
from
'
@vue/composition-api
'
import
Vue
,
{
CreateElement
}
from
'
vue
'
import
useTheme
from
'
~/composables/useTheme
'
useTheme
()
Vue
.
config
.
devtools
=
true
...
...
@@ -19,16 +21,17 @@ const app = createApp({
components
:
{
App
:
()
=>
import
(
'
~/App.vue
'
)
},
setup
()
{
},
data
:
()
=>
({
isMounted
:
false
}),
async
mounted
()
{
this
.
isMounted
=
true
},
render
(
h
:
CreateElement
)
{
if
(
this
.
isMounted
)
{
return
h
(
'
app
'
)
//
return h('app')
}
// TODO (wvffle): Import fake app component
return
h
()
}
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment