Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
c9e7811c
Commit
c9e7811c
authored
Apr 24, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: theme loading optimizations
parent
866cdd59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
client-app.js
client/client-app.js
+3
-10
index-app.js
client/index-app.js
+8
-5
index-setup.js
client/index-setup.js
+3
-1
No files found.
client/client-app.js
View file @
c9e7811c
...
...
@@ -168,9 +168,9 @@ Vue.component('unauthorized', () => import(/* webpackChunkName: "unauthorized" *
Vue
.
component
(
'v-card-chin'
,
()
=>
import
(
/* webpackPrefetch: true, webpackChunkName: "ui-extra" */
'./components/common/v-card-chin.vue'
))
Vue
.
component
(
'welcome'
,
()
=>
import
(
/* webpackChunkName: "welcome" */
'./components/welcome.vue'
))
Vue
.
component
(
'nav-footer'
,
()
=>
import
(
/* webpackChunkName: "theme
-page" */
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/components/nav-footer.vue'
))
Vue
.
component
(
'nav-sidebar'
,
()
=>
import
(
/* webpackChunkName: "theme
-page" */
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/components/nav-sidebar.vue'
))
Vue
.
component
(
'page'
,
()
=>
import
(
/* webpackChunkName: "theme
-page" */
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/components/page.vue'
))
Vue
.
component
(
'nav-footer'
,
()
=>
import
(
/* webpackChunkName: "theme
" */
'./themes/'
+
siteConfig
.
theme
+
'/components/nav-footer.vue'
))
Vue
.
component
(
'nav-sidebar'
,
()
=>
import
(
/* webpackChunkName: "theme
" */
'./themes/'
+
siteConfig
.
theme
+
'/components/nav-sidebar.vue'
))
Vue
.
component
(
'page'
,
()
=>
import
(
/* webpackChunkName: "theme
" */
'./themes/'
+
siteConfig
.
theme
+
'/components/page.vue'
))
let
bootstrap
=
()
=>
{
// ====================================
...
...
@@ -210,13 +210,6 @@ let bootstrap = () => {
// ----------------------------------
window
.
boot
.
notify
(
'vue'
)
// ====================================
// Load theme-specific code
// ====================================
// eslint-disable-next-line no-unused-expressions
import
(
/* webpackChunkName: "theme-page" */
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/js/app.js'
)
}
window
.
boot
.
onDOMReady
(
bootstrap
)
client/index-app.js
View file @
c9e7811c
require
(
'core-js/stable'
)
require
(
'regenerator-runtime/runtime'
)
/* global siteConfig */
/* eslint-disable no-unused-expressions */
switch
(
window
.
document
.
documentElement
.
lang
)
{
case
'ar'
:
case
'fa'
:
require
(
'./scss/fonts/arabic.scss'
)
import
(
/* webpackChunkName: "fonts-arabic" */
'./scss/fonts/arabic.scss'
)
break
default
:
require
(
'./scss/fonts/default.scss'
)
import
(
/* webpackChunkName: "fonts-default" */
'./scss/fonts/default.scss'
)
break
}
require
(
'./scss/app.scss'
)
require
(
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/scss/app.scss'
)
import
(
/* webpackChunkName: "theme" */
'./themes/'
+
siteConfig
.
theme
+
'/scss/app.scss'
)
require
(
'@mdi/font/css/materialdesignicons.css'
)
import
(
/* webpackChunkName: "mdi" */
'@mdi/font/css/materialdesignicons.css'
)
require
(
'./helpers/compatibility.js'
)
require
(
'./client-app.js'
)
require
(
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/js/app.js'
)
import
(
/* webpackChunkName: "theme" */
'./themes/'
+
siteConfig
.
theme
+
'/js/app.js'
)
client/index-setup.js
View file @
c9e7811c
require
(
'core-js/stable'
)
require
(
'regenerator-runtime/runtime'
)
/* eslint-disable no-unused-expressions */
require
(
'./scss/app.scss'
)
require
(
'@mdi/font/css/materialdesignicons.css'
)
import
(
/* webpackChunkName: "mdi" */
'@mdi/font/css/materialdesignicons.css'
)
require
(
'./helpers/compatibility.js'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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