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
bbe64ef6
You need to sign in or sign up before continuing.
Commit
bbe64ef6
authored
Apr 25, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: static navigation menu option
parent
a1515e3f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
admin-navigation.vue
client/components/admin/admin-navigation.vue
+10
-1
icon-features-list.svg
client/static/svg/icon-features-list.svg
+2
-0
nav-sidebar.vue
client/themes/default/components/nav-sidebar.vue
+2
-0
navigation.graphql
server/graph/schemas/navigation.graphql
+1
-0
No files found.
client/components/admin/admin-navigation.vue
View file @
bbe64ef6
...
@@ -39,6 +39,15 @@
...
@@ -39,6 +39,15 @@
v-list-item-avatar
v-list-item-avatar
v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `MIXED` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle
v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `MIXED` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle
v-icon(v-else, :color='config.mode === `MIXED` ? `teal` : `grey lighten-3`') mdi-check-circle
v-icon(v-else, :color='config.mode === `MIXED` ? `teal` : `grey lighten-3`') mdi-check-circle
v-list-item(value='STATIC')
v-list-item-avatar
img(src='/svg/icon-features-list.svg', alt='Static Navigation')
v-list-item-content
v-list-item-title
{{
$t
(
'admin:navigation.modeStatic.title'
)
}}
v-list-item-subtitle
{{
$t
(
'admin:navigation.modeStatic.description'
)
}}
v-list-item-avatar
v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `STATIC` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle
v-icon(v-else, :color='config.mode === `STATIC` ? `teal` : `grey lighten-3`') mdi-check-circle
v-list-item(value='NONE')
v-list-item(value='NONE')
v-list-item-avatar
v-list-item-avatar
img(src='/svg/icon-cancel-dotted.svg', alt='None')
img(src='/svg/icon-cancel-dotted.svg', alt='None')
...
@@ -48,7 +57,7 @@
...
@@ -48,7 +57,7 @@
v-list-item-avatar
v-list-item-avatar
v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `none` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle
v-icon(v-if='$vuetify.theme.dark', :color='config.mode === `none` ? `teal lighten-3` : `grey darken-2`') mdi-check-circle
v-icon(v-else, :color='config.mode === `none` ? `teal` : `grey lighten-3`') mdi-check-circle
v-icon(v-else, :color='config.mode === `none` ? `teal` : `grey lighten-3`') mdi-check-circle
v-col(cols='9', v-if='config.mode === `MIXED`')
v-col(cols='9', v-if='config.mode === `MIXED`
|| config.mode === `STATIC`
')
v-card.animated.fadeInUp.wait-p2s
v-card.animated.fadeInUp.wait-p2s
v-row(no-gutters, align='stretch')
v-row(no-gutters, align='stretch')
v-col(style='flex: 0 0 350px;')
v-col(style='flex: 0 0 350px;')
...
...
client/static/svg/icon-features-list.svg
0 → 100644
View file @
bbe64ef6
<svg
fill=
"#000000"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 80 80"
width=
"80px"
height=
"80px"
><path
d=
"M 13 13 C 12.460108 13 11.963805 13.322162 11.744141 13.816406 L 10.433594 16.755859 L 7.2304688 17.09375 L 7.2285156 17.095703 C 6.6960795 17.153653 6.2354672 17.522935 6.0683594 18.035156 C 5.9014302 18.546831 6.0536344 19.121122 6.4550781 19.482422 L 8.8476562 21.638672 L 8.1796875 24.789062 C 8.0670258 25.319762 8.2839696 25.872284 8.71875 26.1875 C 9.153641 26.502796 9.7453702 26.536952 10.216797 26.261719 L 10.21875 26.261719 L 13 24.658203 L 15.792969 26.267578 L 15.794922 26.267578 C 16.003736 26.386386 16.23548 26.449219 16.476562 26.449219 C 16.757652 26.449219 17.045726 26.358629 17.285156 26.183594 C 17.720013 25.866008 17.930405 25.315643 17.822266 24.792969 L 17.822266 24.791016 L 17.154297 21.638672 L 19.544922 19.482422 C 19.948855 19.118882 20.098545 18.552245 19.933594 18.039062 L 19.933594 18.037109 L 19.933594 18.035156 C 19.766486 17.522935 19.305874 17.153655 18.773438 17.095703 L 18.771484 17.09375 L 15.568359 16.755859 L 14.255859 13.810547 L 14.251953 13.804688 C 14.029882 13.321388 13.539892 13 13 13 z M 13 15.910156 L 14.210938 18.623047 L 17.164062 18.935547 L 14.958984 20.925781 L 15.574219 23.833984 L 13 22.349609 L 10.427734 23.832031 L 11.042969 20.925781 L 8.8378906 18.935547 L 11.791016 18.623047 L 13 15.910156 z M 24 17 L 24 19 L 74 19 L 74 17 L 24 17 z M 25 21 A 1 1 0 0 0 24 22 A 1 1 0 0 0 25 23 A 1 1 0 0 0 26 22 A 1 1 0 0 0 25 21 z M 29 21 A 1 1 0 0 0 28 22 A 1 1 0 0 0 29 23 A 1 1 0 0 0 30 22 A 1 1 0 0 0 29 21 z M 33 21 A 1 1 0 0 0 32 22 A 1 1 0 0 0 33 23 A 1 1 0 0 0 34 22 A 1 1 0 0 0 33 21 z M 37 21 A 1 1 0 0 0 36 22 A 1 1 0 0 0 37 23 A 1 1 0 0 0 38 22 A 1 1 0 0 0 37 21 z M 41 21 A 1 1 0 0 0 40 22 A 1 1 0 0 0 41 23 A 1 1 0 0 0 42 22 A 1 1 0 0 0 41 21 z M 45 21 A 1 1 0 0 0 44 22 A 1 1 0 0 0 45 23 A 1 1 0 0 0 46 22 A 1 1 0 0 0 45 21 z M 49 21 A 1 1 0 0 0 48 22 A 1 1 0 0 0 49 23 A 1 1 0 0 0 50 22 A 1 1 0 0 0 49 21 z M 53 21 A 1 1 0 0 0 52 22 A 1 1 0 0 0 53 23 A 1 1 0 0 0 54 22 A 1 1 0 0 0 53 21 z M 57 21 A 1 1 0 0 0 56 22 A 1 1 0 0 0 57 23 A 1 1 0 0 0 58 22 A 1 1 0 0 0 57 21 z M 61 21 A 1 1 0 0 0 60 22 A 1 1 0 0 0 61 23 A 1 1 0 0 0 62 22 A 1 1 0 0 0 61 21 z M 65 21 A 1 1 0 0 0 64 22 A 1 1 0 0 0 65 23 A 1 1 0 0 0 66 22 A 1 1 0 0 0 65 21 z M 69 21 A 1 1 0 0 0 68 22 A 1 1 0 0 0 69 23 A 1 1 0 0 0 70 22 A 1 1 0 0 0 69 21 z M 13 33 C 12.460108 33 11.963805 33.322162 11.744141 33.816406 L 10.433594 36.755859 L 7.2304688 37.09375 L 7.2285156 37.095703 C 6.6960795 37.153653 6.2354672 37.522935 6.0683594 38.035156 C 5.9014302 38.546831 6.0536344 39.121122 6.4550781 39.482422 L 8.8476562 41.638672 L 8.1796875 44.789062 C 8.0670258 45.319761 8.2839696 45.872284 8.71875 46.1875 C 9.153641 46.502796 9.7453702 46.536952 10.216797 46.261719 L 10.21875 46.261719 L 13 44.658203 L 15.792969 46.267578 L 15.794922 46.267578 C 16.003736 46.386386 16.23548 46.449219 16.476562 46.449219 C 16.757652 46.449219 17.045726 46.358629 17.285156 46.183594 C 17.720013 45.866008 17.930405 45.315643 17.822266 44.792969 L 17.822266 44.791016 L 17.154297 41.638672 L 19.544922 39.482422 C 19.948855 39.118882 20.098545 38.552245 19.933594 38.039062 L 19.933594 38.037109 L 19.933594 38.035156 C 19.766871 37.524401 19.307114 37.149004 18.765625 37.09375 L 15.568359 36.755859 L 14.255859 33.810547 L 14.251953 33.804688 C 14.029883 33.321201 13.539892 33 13 33 z M 13 35.910156 L 14.210938 38.623047 L 17.164062 38.935547 L 14.958984 40.925781 L 15.574219 43.833984 L 13 42.349609 L 10.427734 43.832031 L 11.042969 40.925781 L 8.8378906 38.935547 L 11.791016 38.623047 L 13 35.910156 z M 24 37 L 24 39 L 74 39 L 74 37 L 24 37 z M 25 41 A 1 1 0 0 0 24 42 A 1 1 0 0 0 25 43 A 1 1 0 0 0 26 42 A 1 1 0 0 0 25 41 z M 29 41 A 1 1 0 0 0 28 42 A 1 1 0 0 0 29 43 A 1 1 0 0 0 30 42 A 1 1 0 0 0 29 41 z M 33 41 A 1 1 0 0 0 32 42 A 1 1 0 0 0 33 43 A 1 1 0 0 0 34 42 A 1 1 0 0 0 33 41 z M 37 41 A 1 1 0 0 0 36 42 A 1 1 0 0 0 37 43 A 1 1 0 0 0 38 42 A 1 1 0 0 0 37 41 z M 41 41 A 1 1 0 0 0 40 42 A 1 1 0 0 0 41 43 A 1 1 0 0 0 42 42 A 1 1 0 0 0 41 41 z M 45 41 A 1 1 0 0 0 44 42 A 1 1 0 0 0 45 43 A 1 1 0 0 0 46 42 A 1 1 0 0 0 45 41 z M 49 41 A 1 1 0 0 0 48 42 A 1 1 0 0 0 49 43 A 1 1 0 0 0 50 42 A 1 1 0 0 0 49 41 z M 53 41 A 1 1 0 0 0 52 42 A 1 1 0 0 0 53 43 A 1 1 0 0 0 54 42 A 1 1 0 0 0 53 41 z M 57 41 A 1 1 0 0 0 56 42 A 1 1 0 0 0 57 43 A 1 1 0 0 0 58 42 A 1 1 0 0 0 57 41 z M 61 41 A 1 1 0 0 0 60 42 A 1 1 0 0 0 61 43 A 1 1 0 0 0 62 42 A 1 1 0 0 0 61 41 z M 65 41 A 1 1 0 0 0 64 42 A 1 1 0 0 0 65 43 A 1 1 0 0 0 66 42 A 1 1 0 0 0 65 41 z M 69 41 A 1 1 0 0 0 68 42 A 1 1 0 0 0 69 43 A 1 1 0 0 0 70 42 A 1 1 0 0 0 69 41 z M 13 53 C 12.460108 53 11.963805 53.322162 11.744141 53.816406 L 10.433594 56.755859 L 7.2304688 57.09375 L 7.2285156 57.095703 C 6.6960795 57.153653 6.2354672 57.522935 6.0683594 58.035156 C 5.9014302 58.546831 6.0536344 59.121122 6.4550781 59.482422 L 8.8476562 61.638672 L 8.1796875 64.789062 C 8.0670258 65.319761 8.2839696 65.872284 8.71875 66.1875 C 9.153641 66.502796 9.7453702 66.536952 10.216797 66.261719 L 10.21875 66.261719 L 13 64.658203 L 15.792969 66.267578 L 15.794922 66.267578 C 16.003736 66.386386 16.23548 66.449219 16.476562 66.449219 C 16.757652 66.449219 17.045726 66.358629 17.285156 66.183594 C 17.720013 65.866008 17.930405 65.315643 17.822266 64.792969 L 17.822266 64.791016 L 17.154297 61.638672 L 19.544922 59.482422 C 19.948855 59.118882 20.098545 58.552245 19.933594 58.039062 L 19.933594 58.037109 L 19.933594 58.035156 C 19.766871 57.524401 19.307114 57.149004 18.765625 57.09375 L 15.568359 56.755859 L 14.255859 53.810547 L 14.251953 53.804688 C 14.029883 53.321201 13.539892 53 13 53 z M 13 55.910156 L 14.210938 58.623047 L 17.164062 58.935547 L 14.958984 60.925781 L 15.574219 63.833984 L 13 62.349609 L 10.427734 63.832031 L 11.042969 60.925781 L 8.8378906 58.935547 L 11.791016 58.623047 L 13 55.910156 z M 24 57 L 24 59 L 74 59 L 74 57 L 24 57 z M 25 61 A 1 1 0 0 0 24 62 A 1 1 0 0 0 25 63 A 1 1 0 0 0 26 62 A 1 1 0 0 0 25 61 z M 29 61 A 1 1 0 0 0 28 62 A 1 1 0 0 0 29 63 A 1 1 0 0 0 30 62 A 1 1 0 0 0 29 61 z M 33 61 A 1 1 0 0 0 32 62 A 1 1 0 0 0 33 63 A 1 1 0 0 0 34 62 A 1 1 0 0 0 33 61 z M 37 61 A 1 1 0 0 0 36 62 A 1 1 0 0 0 37 63 A 1 1 0 0 0 38 62 A 1 1 0 0 0 37 61 z M 41 61 A 1 1 0 0 0 40 62 A 1 1 0 0 0 41 63 A 1 1 0 0 0 42 62 A 1 1 0 0 0 41 61 z M 45 61 A 1 1 0 0 0 44 62 A 1 1 0 0 0 45 63 A 1 1 0 0 0 46 62 A 1 1 0 0 0 45 61 z M 49 61 A 1 1 0 0 0 48 62 A 1 1 0 0 0 49 63 A 1 1 0 0 0 50 62 A 1 1 0 0 0 49 61 z M 53 61 A 1 1 0 0 0 52 62 A 1 1 0 0 0 53 63 A 1 1 0 0 0 54 62 A 1 1 0 0 0 53 61 z M 57 61 A 1 1 0 0 0 56 62 A 1 1 0 0 0 57 63 A 1 1 0 0 0 58 62 A 1 1 0 0 0 57 61 z M 61 61 A 1 1 0 0 0 60 62 A 1 1 0 0 0 61 63 A 1 1 0 0 0 62 62 A 1 1 0 0 0 61 61 z M 65 61 A 1 1 0 0 0 64 62 A 1 1 0 0 0 65 63 A 1 1 0 0 0 66 62 A 1 1 0 0 0 65 61 z M 69 61 A 1 1 0 0 0 68 62 A 1 1 0 0 0 69 63 A 1 1 0 0 0 70 62 A 1 1 0 0 0 69 61 z"
/></svg>
\ No newline at end of file
client/themes/default/components/nav-sidebar.vue
View file @
bbe64ef6
...
@@ -198,6 +198,8 @@ export default {
...
@@ -198,6 +198,8 @@ export default {
this
.
currentParent
.
title
=
`/
${
this
.
$t
(
'common:sidebar.root'
)}
`
this
.
currentParent
.
title
=
`/
${
this
.
$t
(
'common:sidebar.root'
)}
`
if
(
this
.
navMode
===
'TREE'
)
{
if
(
this
.
navMode
===
'TREE'
)
{
this
.
currentMode
=
'browse'
this
.
currentMode
=
'browse'
}
else
if
(
this
.
navMode
===
'STATIC'
)
{
this
.
currentMode
=
'custom'
}
else
{
}
else
{
this
.
currentMode
=
window
.
localStorage
.
getItem
(
'navPref'
)
||
'custom'
this
.
currentMode
=
window
.
localStorage
.
getItem
(
'navPref'
)
||
'custom'
}
}
...
...
server/graph/schemas/navigation.graphql
View file @
bbe64ef6
...
@@ -76,4 +76,5 @@ enum NavigationMode {
...
@@ -76,4 +76,5 @@ enum NavigationMode {
NONE
NONE
TREE
TREE
MIXED
MIXED
STATIC
}
}
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