Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
vridge-docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
JIRA
JIRA
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Gyeongho Park
vridge-docs
Commits
cd6e2b8d
Commit
cd6e2b8d
authored
Feb 24, 2023
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MOD] vuex-persistedstate 추가
parent
e0c4b126
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
17 deletions
+79
-17
default.vue
docs-front/layouts/default.vue
+4
-4
nuxt.config.js
docs-front/nuxt.config.js
+1
-0
package-lock.json
docs-front/package-lock.json
+58
-7
package.json
docs-front/package.json
+3
-1
vuex-persis.js
docs-front/plugins/vuex-persis.js
+6
-0
index.js
docs-front/store/index.js
+7
-5
No files found.
docs-front/layouts/default.vue
View file @
cd6e2b8d
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
class=
"app-bar-wrap"
class=
"app-bar-wrap"
clipped-left
clipped-left
>
>
<client-only>
<v-row
no-gutters
align=
"center"
>
<v-row
no-gutters
align=
"center"
>
<span
style=
"cursor:pointer;"
class=
"pa-2"
>
<span
style=
"cursor:pointer;"
class=
"pa-2"
>
<img
@
click=
"$router.push('/')"
src=
"/logo_v2/01.png"
cover
height=
"28"
/>
<img
@
click=
"$router.push('/')"
src=
"/logo_v2/01.png"
cover
height=
"28"
/>
...
@@ -108,7 +109,7 @@
...
@@ -108,7 +109,7 @@
<v-btn
<v-btn
v-if=
"$store.state.editMode"
v-if=
"$store.state.editMode"
@
click=
"$store.
state.editMode = false
"
@
click=
"$store.
commit('setEditMode', false)
"
elevation=
"0"
elevation=
"0"
color=
"primary"
color=
"primary"
class=
"ml-4"
class=
"ml-4"
...
@@ -149,10 +150,9 @@
...
@@ -149,10 +150,9 @@
<v-icon
@
click=
"showSearch = !showSearch"
class=
"header-icon"
>
{{showSearch ? 'mdi-close' : 'mdi-magnify'}}
</v-icon>
<v-icon
@
click=
"showSearch = !showSearch"
class=
"header-icon"
>
{{showSearch ? 'mdi-close' : 'mdi-magnify'}}
</v-icon>
<!-- <v-btn @click="$store.state.editMode = !$store.state.editMode" elevation="0">편집</v-btn> -->
<v-app-bar-nav-icon
class=
"mobile-show"
v-if=
"!drawer"
@
click
.
stop=
"drawer = !drawer"
/>
<v-app-bar-nav-icon
class=
"mobile-show"
v-if=
"!drawer"
@
click
.
stop=
"drawer = !drawer"
/>
</v-row>
</v-row>
</client-only>
<v-progress-linear
absolute
bottom
:value=
"scrollPositionRate"
height=
"1"
background-color=
"#eee"
color=
"primary"
style=
"transition:none !important;"
></v-progress-linear>
<v-progress-linear
absolute
bottom
:value=
"scrollPositionRate"
height=
"1"
background-color=
"#eee"
color=
"primary"
style=
"transition:none !important;"
></v-progress-linear>
...
@@ -448,7 +448,7 @@ export default{
...
@@ -448,7 +448,7 @@ export default{
editOn
(){
editOn
(){
if
(
this
.
keyword
===
'열려라 문'
){
if
(
this
.
keyword
===
'열려라 문'
){
this
.
editDialogActive
=
true
this
.
editDialogActive
=
true
this
.
$store
.
state
.
editMode
=
true
this
.
$store
.
commit
(
'setEditMode'
,
true
)
}
}
},
},
createEditModeList
(){
createEditModeList
(){
...
...
docs-front/nuxt.config.js
View file @
cd6e2b8d
...
@@ -42,6 +42,7 @@ export default {
...
@@ -42,6 +42,7 @@ export default {
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins
:
[
plugins
:
[
//'~/plugins/global.js'
//'~/plugins/global.js'
{
src
:
'~/plugins/vuex-persis.js'
,
ssr
:
false
},
],
],
// Auto import components: https://go.nuxtjs.dev/config-components
// Auto import components: https://go.nuxtjs.dev/config-components
...
...
docs-front/package-lock.json
View file @
cd6e2b8d
...
@@ -20,7 +20,9 @@
...
@@ -20,7 +20,9 @@
"vue-no-ssr": "^1.1.1",
"vue-no-ssr": "^1.1.1",
"vue-server-renderer": "^2.7.10",
"vue-server-renderer": "^2.7.10",
"vue-template-compiler": "^2.7.10",
"vue-template-compiler": "^2.7.10",
"vuetify": "^2.6.10"
"vuetify": "^2.6.10",
"vuex": "^3.4.0",
"vuex-persistedstate": "^4.1.0"
},
},
"devDependencies": {
"devDependencies": {
"@nuxtjs/svg": "^0.2.0",
"@nuxtjs/svg": "^0.2.0",
...
@@ -3084,6 +3086,14 @@
...
@@ -3084,6 +3086,14 @@
"vuex": "^3.6.2"
"vuex": "^3.6.2"
}
}
},
},
"node_modules/@nuxt/vue-app/node_modules/vuex": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==",
"peerDependencies": {
"vue": "^2.0.0"
}
},
"node_modules/@nuxt/vue-renderer": {
"node_modules/@nuxt/vue-renderer": {
"version": "2.16.0",
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@nuxt/vue-renderer/-/vue-renderer-2.16.0.tgz",
"resolved": "https://registry.npmjs.org/@nuxt/vue-renderer/-/vue-renderer-2.16.0.tgz",
...
@@ -12202,6 +12212,12 @@
...
@@ -12202,6 +12212,12 @@
"url": "https://github.com/sponsors/ljharb"
"url": "https://github.com/sponsors/ljharb"
}
}
},
},
"node_modules/shvl": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/shvl/-/shvl-2.0.3.tgz",
"integrity": "sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw==",
"deprecated": "older versions vulnerable to prototype pollution"
},
"node_modules/side-channel": {
"node_modules/side-channel": {
"version": "1.0.4",
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
...
@@ -14512,13 +14528,26 @@
...
@@ -14512,13 +14528,26 @@
}
}
},
},
"node_modules/vuex": {
"node_modules/vuex": {
"version": "3.
6.2
",
"version": "3.
4.0
",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.
6.2
.tgz",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.
4.0
.tgz",
"integrity": "sha512-
ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw
==",
"integrity": "sha512-
ajtqwEW/QhnrBZQsZxCLHThZZaa+Db45c92Asf46ZDXu6uHXgbfVuBaJ4gzD2r4UX0oMJHstFwd2r2HM4l8umg
==",
"peerDependencies": {
"peerDependencies": {
"vue": "^2.0.0"
"vue": "^2.0.0"
}
}
},
},
"node_modules/vuex-persistedstate": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz",
"integrity": "sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==",
"deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
"dependencies": {
"deepmerge": "^4.2.2",
"shvl": "^2.0.3"
},
"peerDependencies": {
"vuex": "^3.0 || ^4.0.0-rc"
}
},
"node_modules/watchpack": {
"node_modules/watchpack": {
"version": "2.4.0",
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
...
@@ -17847,6 +17876,14 @@
...
@@ -17847,6 +17876,14 @@
"vue-router": "^3.6.5",
"vue-router": "^3.6.5",
"vue-template-compiler": "^2.7.14",
"vue-template-compiler": "^2.7.14",
"vuex": "^3.6.2"
"vuex": "^3.6.2"
},
"dependencies": {
"vuex": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==",
"requires": {}
}
}
}
},
},
"@nuxt/vue-renderer": {
"@nuxt/vue-renderer": {
...
@@ -24633,6 +24670,11 @@
...
@@ -24633,6 +24670,11 @@
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.0.tgz",
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.0.tgz",
"integrity": "sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ=="
"integrity": "sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ=="
},
},
"shvl": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/shvl/-/shvl-2.0.3.tgz",
"integrity": "sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw=="
},
"side-channel": {
"side-channel": {
"version": "1.0.4",
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
...
@@ -26406,11 +26448,20 @@
...
@@ -26406,11 +26448,20 @@
}
}
},
},
"vuex": {
"vuex": {
"version": "3.
6.2
",
"version": "3.
4.0
",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.
6.2
.tgz",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.
4.0
.tgz",
"integrity": "sha512-
ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw
==",
"integrity": "sha512-
ajtqwEW/QhnrBZQsZxCLHThZZaa+Db45c92Asf46ZDXu6uHXgbfVuBaJ4gzD2r4UX0oMJHstFwd2r2HM4l8umg
==",
"requires": {}
"requires": {}
},
},
"vuex-persistedstate": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz",
"integrity": "sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==",
"requires": {
"deepmerge": "^4.2.2",
"shvl": "^2.0.3"
}
},
"watchpack": {
"watchpack": {
"version": "2.4.0",
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
docs-front/package.json
View file @
cd6e2b8d
...
@@ -21,7 +21,9 @@
...
@@ -21,7 +21,9 @@
"vue-no-ssr"
:
"^1.1.1"
,
"vue-no-ssr"
:
"^1.1.1"
,
"vue-server-renderer"
:
"^2.7.10"
,
"vue-server-renderer"
:
"^2.7.10"
,
"vue-template-compiler"
:
"^2.7.10"
,
"vue-template-compiler"
:
"^2.7.10"
,
"vuetify"
:
"^2.6.10"
"vuetify"
:
"^2.6.10"
,
"vuex"
:
"^3.4.0"
,
"vuex-persistedstate"
:
"^4.1.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@nuxtjs/svg"
:
"^0.2.0"
,
"@nuxtjs/svg"
:
"^0.2.0"
,
...
...
docs-front/plugins/vuex-persis.js
0 → 100644
View file @
cd6e2b8d
import
createPersistedState
from
'vuex-persistedstate'
export
default
({
store
})
=>
{
createPersistedState
({
})(
store
)
}
\ No newline at end of file
docs-front/store/index.js
View file @
cd6e2b8d
...
@@ -13,11 +13,10 @@ const store = () => new Vuex.Store({
...
@@ -13,11 +13,10 @@ const store = () => new Vuex.Store({
theme
:
false
theme
:
false
},
},
mutations
:{
mutations
:{
setEditMode
:
(
state
,
val
)
=>
{
setTheme
:
(
state
,
theme
)
=>
{
state
.
editMode
=
val
state
.
theme
=
theme
},
},
setGuide
:
(
state
,
{
guideId
,
flag
})
=>
{
setGuide
:
(
state
,
{
guideId
,
flag
})
=>
{
state
.
guideId
=
guideId
state
.
guideId
=
guideId
if
(
flag
)
{
if
(
flag
)
{
state
.
guideTreeFlag
=
!
state
.
guideTreeFlag
state
.
guideTreeFlag
=
!
state
.
guideTreeFlag
...
@@ -25,7 +24,10 @@ const store = () => new Vuex.Store({
...
@@ -25,7 +24,10 @@ const store = () => new Vuex.Store({
},
},
setGuideNavigator
:
(
state
,
guideNavigator
)
=>
{
setGuideNavigator
:
(
state
,
guideNavigator
)
=>
{
state
.
guideNavigator
=
guideNavigator
state
.
guideNavigator
=
guideNavigator
}
},
setTheme
:
(
state
,
theme
)
=>
{
state
.
theme
=
theme
},
},
},
actions
:{
actions
:{
...
...
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