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
bae96fbc
Unverified
Commit
bae96fbc
authored
Jul 10, 2022
by
Nicolas Giard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: router load indicator + UI fixes
parent
c3bd7ff9
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
45 additions
and
34 deletions
+45
-34
3.0.0.js
server/db/migrations/3.0.0.js
+4
-4
sites.js
server/models/sites.js
+5
-4
App.vue
ux/src/App.vue
+2
-0
HeaderNav.vue
ux/src/components/HeaderNav.vue
+3
-16
UserEditOverlay.vue
ux/src/components/UserEditOverlay.vue
+1
-1
app.scss
ux/src/css/app.scss
+20
-1
AdminLayout.vue
ux/src/layouts/AdminLayout.vue
+5
-4
AdminGroups.vue
ux/src/pages/AdminGroups.vue
+1
-1
AdminSites.vue
ux/src/pages/AdminSites.vue
+1
-1
AdminSystem.vue
ux/src/pages/AdminSystem.vue
+1
-0
AdminTheme.vue
ux/src/pages/AdminTheme.vue
+1
-1
AdminUsers.vue
ux/src/pages/AdminUsers.vue
+1
-1
No files found.
server/db/migrations/3.0.0.js
View file @
bae96fbc
...
...
@@ -478,11 +478,11 @@ exports.up = async knex => {
localeNamespaces
:
[],
theme
:
{
dark
:
false
,
colorPrimary
:
'#1976
d
2'
,
colorSecondary
:
'#02
c39a
'
,
colorAccent
:
'#
f03a47
'
,
colorPrimary
:
'#1976
D
2'
,
colorSecondary
:
'#02
C39A
'
,
colorAccent
:
'#
FF9800
'
,
colorHeader
:
'#000000'
,
colorSidebar
:
'#1976
d
2'
,
colorSidebar
:
'#1976
D
2'
,
injectCSS
:
''
,
injectHead
:
''
,
injectBody
:
''
,
...
...
server/models/sites.js
View file @
bae96fbc
...
...
@@ -86,14 +86,15 @@ module.exports = class Site extends Model {
localeNamespaces
:
[],
theme
:
{
dark
:
false
,
colorPrimary
:
'#1976
d
2'
,
colorSecondary
:
'#02
c39a
'
,
colorAccent
:
'#
f03a47
'
,
colorPrimary
:
'#1976
D
2'
,
colorSecondary
:
'#02
C39A
'
,
colorAccent
:
'#
FF9800
'
,
colorHeader
:
'#000000'
,
colorSidebar
:
'#1976
d
2'
,
colorSidebar
:
'#1976
D
2'
,
injectCSS
:
''
,
injectHead
:
''
,
injectBody
:
''
,
contentWidth
:
'full'
,
sidebarPosition
:
'left'
,
tocPosition
:
'right'
,
showSharingMenu
:
true
,
...
...
ux/src/App.vue
View file @
bae96fbc
...
...
@@ -50,6 +50,7 @@ if (typeof siteConfig !== 'undefined') {
}
router
.
beforeEach
(
async
(
to
,
from
)
=>
{
siteStore
.
routerLoading
=
true
if
(
!
siteStore
.
id
)
{
console
.
info
(
'No pre-cached site config. Loading site info...'
)
await
siteStore
.
loadSite
(
window
.
location
.
hostname
)
...
...
@@ -62,5 +63,6 @@ router.afterEach(() => {
state
.
isInitialized
=
true
document
.
querySelector
(
'.init-loading'
).
remove
()
}
siteStore
.
routerLoading
=
false
})
</
script
>
ux/src/components/HeaderNav.vue
View file @
bae96fbc
...
...
@@ -55,9 +55,9 @@ q-header.bg-header.text-white.site-header(
)
q-space
transition(name='syncing')
q-spinner-rings
.q-mr-sm
(
q-spinner-rings(
v-show='siteStore.routerLoading'
color='
orange
'
color='
accent
'
size='34px'
)
q-btn.q-ml-md(
...
...
@@ -113,18 +113,5 @@ const state = reactive({
</
script
>
<
style
lang=
"scss"
>
.syncing-enter-active
{
animation
:
syncing-anim
.1s
;
}
.syncing-leave-active
{
animation
:
syncing-anim
1s
reverse
;
}
@keyframes
syncing-anim
{
0
%
{
opacity
:
0
;
}
100
%
{
opacity
:
1
;
}
}
</
style
>
ux/src/components/UserEditOverlay.vue
View file @
bae96fbc
...
...
@@ -564,7 +564,7 @@ const localAuthId = computed(() => {
const
localAuth
=
computed
({
get
()
{
return
localAuthId
.
value
?
_get
(
state
.
user
.
auth
,
localAuthId
.
value
,
{})
:
{}
return
localAuthId
.
value
?
state
.
user
.
auth
?.[
localAuthId
.
value
]
||
{}
:
{}
},
set
(
val
)
{
if
(
localAuthId
.
value
)
{
...
...
ux/src/css/app.scss
View file @
bae96fbc
...
...
@@ -108,7 +108,7 @@ body::-webkit-scrollbar-thumb {
// BUTTONS
// ------------------------------------------------------------------
#app
.acrylic-btn
{
.q-btn
.acrylic-btn
{
.q-focus-helper
{
background-color
:
currentColor
;
opacity
:
.1
;
...
...
@@ -169,6 +169,25 @@ body::-webkit-scrollbar-thumb {
}
// ------------------------------------------------------------------
// LOADING ANIMATIONS
// ------------------------------------------------------------------
.syncing-enter-active
{
animation
:
syncing-anim
.1s
;
}
.syncing-leave-active
{
animation
:
syncing-anim
1s
reverse
;
}
@keyframes
syncing-anim
{
0
%
{
opacity
:
0
;
}
100
%
{
opacity
:
1
;
}
}
// ------------------------------------------------------------------
// IMPORTS
// ------------------------------------------------------------------
...
...
ux/src/layouts/AdminLayout.vue
View file @
bae96fbc
...
...
@@ -16,10 +16,11 @@ q-layout.admin(view='hHh Lpr lff')
)
q-toolbar(style='height: 64px;', dark)
q-space
q-spinner-tail(
v-show='siteStore.routerLoading'
color='blue'
size='sm'
transition(name='syncing')
q-spinner-rings(
v-show='siteStore.routerLoading'
color='accent'
size='34px'
)
q-btn.q-ml-md(flat, dense, icon='las la-times-circle', label='Exit' color='pink', to='/')
account-menu
...
...
ux/src/pages/AdminGroups.vue
View file @
bae96fbc
...
...
@@ -85,7 +85,7 @@ q-page.admin-groups
q
-
btn
.
acrylic
-
btn
(
flat
icon
=
'las la-trash'
:
color
=
'props.row.isSystem ? `grey` : `
accent
`'
:
color
=
'props.row.isSystem ? `grey` : `
negative
`'
:
disabled
=
'props.row.isSystem'
@
click
=
'deleteGroup(props.row)'
)
...
...
ux/src/pages/AdminSites.vue
View file @
bae96fbc
...
...
@@ -92,7 +92,7 @@ q-page.admin-locale
q-btn.acrylic-btn(
flat
icon='las la-trash'
color='
accent
'
color='
negative
'
@click='deleteSite(site)'
)
</
template
>
...
...
ux/src/pages/AdminSystem.vue
View file @
bae96fbc
...
...
@@ -400,6 +400,7 @@ Total RAM: ${state.info.ramTotal}`
clip
.
on
(
'success'
,
()
=>
{
$q
.
notify
({
type
:
'positive'
,
message
:
'Info copied successfully'
,
icon
:
'las la-clipboard'
})
...
...
ux/src/pages/AdminTheme.vue
View file @
bae96fbc
...
...
@@ -358,7 +358,7 @@ function resetColors () {
state
.
config
.
dark
=
false
state
.
config
.
colorPrimary
=
'#1976D2'
state
.
config
.
colorSecondary
=
'#02C39A'
state
.
config
.
colorAccent
=
'#
f03a47
'
state
.
config
.
colorAccent
=
'#
FF9800
'
state
.
config
.
colorHeader
=
'#000'
state
.
config
.
colorSidebar
=
'#1976D2'
}
...
...
ux/src/pages/AdminUsers.vue
View file @
bae96fbc
...
...
@@ -99,7 +99,7 @@ q-page.admin-groups
v-if='!props.row.isSystem'
flat
icon='las la-trash'
color='
accent
'
color='
negative
'
@click='deleteUser(props.row)'
)
</
template
>
...
...
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