Skip to content

Commit d7a3c04

Browse files
committed
chore: update
1 parent bc32f5a commit d7a3c04

File tree

4 files changed

+93
-6
lines changed

4 files changed

+93
-6
lines changed

jsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"@/*": ["./*"],
77
"~~/*": ["./*"],
88
"@@/*": ["./*"]
9-
}
9+
},
10+
"types": ["@nuxtjs/auth-next"]
1011
},
1112
"exclude": ["node_modules", ".nuxt", "dist"]
1213
}

nuxt.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export default {
4242
'@nuxtjs/axios',
4343
// https://go.nuxtjs.dev/content
4444
'@nuxt/content',
45+
// https://auth.nuxtjs.org/guide/setup
46+
'@nuxtjs/auth-next',
4547
],
4648

4749
// Axios module configuration: https://go.nuxtjs.dev/config-axios
@@ -50,6 +52,14 @@ export default {
5052
baseURL: '/',
5153
},
5254

55+
auth: {
56+
// Options
57+
},
58+
59+
router: {
60+
middleware: ['auth'],
61+
},
62+
5363
// Content module configuration: https://go.nuxtjs.dev/config-content
5464
content: {},
5565

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"dependencies": {
2424
"@nuxt/content": "^1.15.1",
25+
"@nuxtjs/auth-next": "5.0.0-1667386184.dfbbb54",
2526
"@nuxtjs/axios": "^5.13.6",
2627
"core-js": "^3.19.3",
2728
"nuxt": "^2.15.8",

yarn.lock

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,21 @@
18491849
webpack-node-externals "^3.0.0"
18501850
webpackbar "^4.0.0"
18511851

1852+
"@nuxtjs/auth-next@5.0.0-1667386184.dfbbb54":
1853+
version "5.0.0-1667386184.dfbbb54"
1854+
resolved "https://registry.yarnpkg.com/@nuxtjs/auth-next/-/auth-next-5.0.0-1667386184.dfbbb54.tgz#54404436adda39bf2fe751e799551b2cf626b7c1"
1855+
integrity sha512-ODUw/y7oTRGvzOQbtoJg7yqOiJ1XuPecmtdSnZukx1x942HL5dRNIarfjdsANP8B3zsyjZ3qyzmo/dzhsJYD6g==
1856+
dependencies:
1857+
"@nuxtjs/axios" "^5.13.6"
1858+
axios "^0.26.1"
1859+
body-parser "^1.19.2"
1860+
consola "^2.15.3"
1861+
cookie "^0.4.2"
1862+
defu "^5.0.1"
1863+
hasha "^5.2.2"
1864+
jwt-decode "^3.1.2"
1865+
requrl "^3.0.2"
1866+
18521867
"@nuxtjs/axios@^5.13.6":
18531868
version "5.13.6"
18541869
resolved "https://registry.yarnpkg.com/@nuxtjs/axios/-/axios-5.13.6.tgz#6f4bbd98a3a7799a5d2c0726c6ad2a98aa111881"
@@ -3104,6 +3119,13 @@ axios@^0.21.1:
31043119
dependencies:
31053120
follow-redirects "^1.14.0"
31063121

3122+
axios@^0.26.1:
3123+
version "0.26.1"
3124+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
3125+
integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==
3126+
dependencies:
3127+
follow-redirects "^1.14.8"
3128+
31073129
babel-code-frame@^6.26.0:
31083130
version "6.26.0"
31093131
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
@@ -3357,6 +3379,24 @@ bn.js@^5.0.0, bn.js@^5.1.1:
33573379
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70"
33583380
integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==
33593381

3382+
body-parser@^1.19.2:
3383+
version "1.20.1"
3384+
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668"
3385+
integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==
3386+
dependencies:
3387+
bytes "3.1.2"
3388+
content-type "~1.0.4"
3389+
debug "2.6.9"
3390+
depd "2.0.0"
3391+
destroy "1.2.0"
3392+
http-errors "2.0.0"
3393+
iconv-lite "0.4.24"
3394+
on-finished "2.4.1"
3395+
qs "6.11.0"
3396+
raw-body "2.5.1"
3397+
type-is "~1.6.18"
3398+
unpipe "1.0.0"
3399+
33603400
boolbase@^1.0.0, boolbase@~1.0.0:
33613401
version "1.0.0"
33623402
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
@@ -3549,6 +3589,11 @@ bytes@3.0.0:
35493589
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
35503590
integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==
35513591

3592+
bytes@3.1.2:
3593+
version "3.1.2"
3594+
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
3595+
integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==
3596+
35523597
cacache@^12.0.2:
35533598
version "12.0.4"
35543599
resolved "https://registry.yarnpkg.com/cacache/-/cacache-12.0.4.tgz#668bcbd105aeb5f1d92fe25570ec9525c8faa40c"
@@ -4170,6 +4215,11 @@ constants-browserify@^1.0.0:
41704215
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
41714216
integrity sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==
41724217

4218+
content-type@~1.0.4:
4219+
version "1.0.4"
4220+
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
4221+
integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==
4222+
41734223
conventional-changelog-angular@^5.0.11:
41744224
version "5.0.13"
41754225
resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c"
@@ -4209,6 +4259,11 @@ cookie@^0.3.1:
42094259
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb"
42104260
integrity sha512-+IJOX0OqlHCszo2mBUq+SrEbCj6w7Kpffqx60zYbPTFaO4+yYgRjHwcZNpWvaTylDHaV7PPmBHzSecZiMhtPgw==
42114261

4262+
cookie@^0.4.2:
4263+
version "0.4.2"
4264+
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
4265+
integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==
4266+
42124267
copy-concurrently@^1.0.0:
42134268
version "1.0.5"
42144269
resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0"
@@ -4722,7 +4777,7 @@ defu@^4.0.1:
47224777
resolved "https://registry.yarnpkg.com/defu/-/defu-4.0.1.tgz#9d7d7a48f9295f08285d153dcff174c89b9bcb22"
47234778
integrity sha512-lC+G0KvvWRbisQa50+iFelm3/eMmwo4IlBmfASOVlw9MZpHHyQeVsZxc5j23+TQy5ydgEoTVSrWl7ptou1kzJQ==
47244779

4725-
defu@^5.0.0:
4780+
defu@^5.0.0, defu@^5.0.1:
47264781
version "5.0.1"
47274782
resolved "https://registry.yarnpkg.com/defu/-/defu-5.0.1.tgz#a034278f9b032bf0845d261aa75e9ad98da878ac"
47284783
integrity sha512-EPS1carKg+dkEVy3qNTqIdp2qV7mUP08nIsupfwQpz++slCVRw7qbQyWvSTig+kFPwz2XXp5/kIIkH+CwrJKkQ==
@@ -5755,7 +5810,7 @@ flush-write-stream@^1.0.0:
57555810
inherits "^2.0.3"
57565811
readable-stream "^2.3.6"
57575812

5758-
follow-redirects@^1.0.0, follow-redirects@^1.14.0:
5813+
follow-redirects@^1.0.0, follow-redirects@^1.14.0, follow-redirects@^1.14.8:
57595814
version "1.15.2"
57605815
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13"
57615816
integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==
@@ -7731,6 +7786,11 @@ jsonparse@^1.2.0:
77317786
resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
77327787
integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==
77337788

7789+
jwt-decode@^3.1.2:
7790+
version "3.1.2"
7791+
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
7792+
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==
7793+
77347794
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
77357795
version "3.2.2"
77367796
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
@@ -10227,7 +10287,7 @@ q@^1.1.2, q@^1.5.1:
1022710287
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
1022810288
integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==
1022910289

10230-
qs@^6.5.2:
10290+
qs@6.11.0, qs@^6.5.2:
1023110291
version "6.11.0"
1023210292
resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a"
1023310293
integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==
@@ -10287,6 +10347,16 @@ range-parser@^1.2.1, range-parser@~1.2.1:
1028710347
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
1028810348
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
1028910349

10350+
raw-body@2.5.1:
10351+
version "2.5.1"
10352+
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857"
10353+
integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==
10354+
dependencies:
10355+
bytes "3.1.2"
10356+
http-errors "2.0.0"
10357+
iconv-lite "0.4.24"
10358+
unpipe "1.0.0"
10359+
1029010360
rc9@^1.2.0:
1029110361
version "1.2.2"
1029210362
resolved "https://registry.yarnpkg.com/rc9/-/rc9-1.2.2.tgz#0d79202e088dd80e2e0f77ac36f520247d2d3964"
@@ -10589,6 +10659,11 @@ requires-port@^1.0.0:
1058910659
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
1059010660
integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==
1059110661

10662+
requrl@^3.0.2:
10663+
version "3.0.2"
10664+
resolved "https://registry.yarnpkg.com/requrl/-/requrl-3.0.2.tgz#d376104193b02a2d874dde68454c2db2dfeb0fac"
10665+
integrity sha512-f3gjR6d8MhOpn46PP+DSJywbmxi95fxQm3coXBFwognjFLla9X6tr8BdNyaIKNOEkaRbRcm0/zYAqN19N1oyhg==
10666+
1059210667
resolve-cwd@^3.0.0:
1059310668
version "3.0.0"
1059410669
resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d"
@@ -11999,7 +12074,7 @@ type-fest@^0.8.0, type-fest@^0.8.1:
1199912074
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
1200012075
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
1200112076

12002-
type-is@^1.6.16:
12077+
type-is@^1.6.16, type-is@~1.6.18:
1200312078
version "1.6.18"
1200412079
resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"
1200512080
integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==
@@ -12189,7 +12264,7 @@ universalify@^2.0.0:
1218912264
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
1219012265
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
1219112266

12192-
unpipe@~1.0.0:
12267+
unpipe@1.0.0, unpipe@~1.0.0:
1219312268
version "1.0.0"
1219412269
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
1219512270
integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==

0 commit comments

Comments
 (0)