Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
404c73de
Commit
404c73de
authored
Oct 29, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: pwa icon
parent
abde5c3a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
20 deletions
+35
-20
index.ts
build/vite/plugin/index.ts
+20
-4
package.json
package.json
+3
-3
pwa-192x192.png
public/resource/img/pwa-192x192.png
+0
-0
pwa-512x512.png
public/resource/img/pwa-512x512.png
+0
-0
Login.vue
src/views/sys/login/Login.vue
+0
-1
yarn.lock
yarn.lock
+12
-12
No files found.
build/vite/plugin/index.ts
View file @
404c73de
...
@@ -45,10 +45,26 @@ export function createVitePlugins(viteEnv: ViteEnv) {
...
@@ -45,10 +45,26 @@ export function createVitePlugins(viteEnv: ViteEnv) {
vitePlugins
.
push
(
PurgeIcons
());
vitePlugins
.
push
(
PurgeIcons
());
if
(
isProdFn
()
&&
VITE_USE_PWA
)
{
if
(
isProdFn
()
&&
VITE_USE_PWA
)
{
console
.
log
(
'
======================
'
);
vitePlugins
.
push
(
console
.
log
(
VITE_USE_PWA
);
VitePWA
({
console
.
log
(
'
======================
'
);
manifest
:
{
vitePlugins
.
push
(
VitePWA
());
name
:
'
Vben Admin
'
,
short_name
:
'
vben_admin
'
,
icons
:
[
{
src
:
'
./resource/img/pwa-192x192.png
'
,
sizes
:
'
192x192
'
,
type
:
'
image/png
'
,
},
{
src
:
'
./resource/img/pwa-512x512.png
'
,
sizes
:
'
512x512
'
,
type
:
'
image/png
'
,
},
],
},
})
);
}
}
// vite-plugin-mock
// vite-plugin-mock
...
...
package.json
View file @
404c73de
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
"
@iconify/json
"
:
"
^1.1.248
"
,
"
@iconify/json
"
:
"
^1.1.248
"
,
"
@ls-lint/ls-lint
"
:
"
^1.9.2
"
,
"
@ls-lint/ls-lint
"
:
"
^1.9.2
"
,
"
@purge-icons/generated
"
:
"
^0.4.1
"
,
"
@purge-icons/generated
"
:
"
^0.4.1
"
,
"
@types/echarts
"
:
"
^4.
8.3
"
,
"
@types/echarts
"
:
"
^4.
9.0
"
,
"
@types/fs-extra
"
:
"
^9.0.2
"
,
"
@types/fs-extra
"
:
"
^9.0.2
"
,
"
@types/koa-static
"
:
"
^4.0.1
"
,
"
@types/koa-static
"
:
"
^4.0.1
"
,
"
@types/lodash-es
"
:
"
^4.17.3
"
,
"
@types/lodash-es
"
:
"
^4.17.3
"
,
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
"
cross-env
"
:
"
^7.0.2
"
,
"
cross-env
"
:
"
^7.0.2
"
,
"
dotenv
"
:
"
^8.2.0
"
,
"
dotenv
"
:
"
^8.2.0
"
,
"
eslint
"
:
"
^7.12.0
"
,
"
eslint
"
:
"
^7.12.0
"
,
"
eslint-config-prettier
"
:
"
^6.1
4
.0
"
,
"
eslint-config-prettier
"
:
"
^6.1
5
.0
"
,
"
eslint-plugin-prettier
"
:
"
^3.1.4
"
,
"
eslint-plugin-prettier
"
:
"
^3.1.4
"
,
"
eslint-plugin-vue
"
:
"
^7.1.0
"
,
"
eslint-plugin-vue
"
:
"
^7.1.0
"
,
"
esno
"
:
"
^0.2.4
"
,
"
esno
"
:
"
^0.2.4
"
,
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
"
vite-plugin-html
"
:
"
^1.0.0-beta.2
"
,
"
vite-plugin-html
"
:
"
^1.0.0-beta.2
"
,
"
vite-plugin-mock
"
:
"
^1.0.6
"
,
"
vite-plugin-mock
"
:
"
^1.0.6
"
,
"
vite-plugin-purge-icons
"
:
"
^0.4.4
"
,
"
vite-plugin-purge-icons
"
:
"
^0.4.4
"
,
"
vite-plugin-pwa
"
:
"
^0.1.
2
"
,
"
vite-plugin-pwa
"
:
"
^0.1.
3
"
,
"
vue-eslint-parser
"
:
"
^7.1.1
"
,
"
vue-eslint-parser
"
:
"
^7.1.1
"
,
"
yargs
"
:
"
^16.1.0
"
"
yargs
"
:
"
^16.1.0
"
},
},
...
...
public/resource/img/pwa-192x192.png
0 → 100644
View file @
404c73de
11.9 KB
public/resource/img/pwa-512x512.png
0 → 100644
View file @
404c73de
51.4 KB
src/views/sys/login/Login.vue
View file @
404c73de
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
</a-form-item>
</a-form-item>
<a-form-item
name=
"password"
>
<a-form-item
name=
"password"
>
<a-input-password
<a-input-password
autofocus=
"autofocus"
size=
"large"
size=
"large"
visibilityToggle
visibilityToggle
v-model:value=
"formData.password"
v-model:value=
"formData.password"
...
...
yarn.lock
View file @
404c73de
...
@@ -1275,10 +1275,10 @@
...
@@ -1275,10 +1275,10 @@
"@types/keygrip" "*"
"@types/keygrip" "*"
"@types/node" "*"
"@types/node" "*"
"@types/echarts@^4.
8.3
":
"@types/echarts@^4.
9.0
":
version "4.
8.3
"
version "4.
9.0
"
resolved "https://registry.npmjs.org/@types/echarts/-/echarts-4.
8.3.tgz#78ef1ede01c3705b52342da997b3d54571d3604e
"
resolved "https://registry.npmjs.org/@types/echarts/-/echarts-4.
9.0.tgz#e133ea5429ada1d814f9cc1deae855421dcdd2ef
"
integrity sha512-
5aFZ7/6f+SPonLh4Nuso6pEZWwX8VBMYh2e83x1GVEpGkcN3GC0HzxPoF6ZSZPwoe5Rg4bhNwD9f2TVYxgU/QQ
==
integrity sha512-
9QIAUe6cxM5GyGNCIhlEwf7l5oclZDVM0HNRfehPx3dDUt1Jfhbvp/U2wfgwtL/IDqyASBVs1zu4qyaCsuJINA
==
dependencies:
dependencies:
"@types/zrender" "*"
"@types/zrender" "*"
...
@@ -3267,10 +3267,10 @@ escape-string-regexp@^1.0.5:
...
@@ -3267,10 +3267,10 @@ escape-string-regexp@^1.0.5:
resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
eslint-config-prettier@^6.1
4
.0:
eslint-config-prettier@^6.1
5
.0:
version "6.1
4
.0"
version "6.1
5
.0"
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.1
4.0.tgz#390e7863a8ae99970981933826476169285b3a27
"
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.1
5.0.tgz#7f93f6cb7d45a92f1537a70ecc06366e1ac6fed9
"
integrity sha512-
DbVwh0qZhAC7CNDWcq8cBdK6FcVHiMTKmCypOPWeZkp9hJ8xYwTaWSa6bb6cjfi8KOeJy0e9a8Izxyx+O4+gCQ
==
integrity sha512-
a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw
==
dependencies:
dependencies:
get-stdin "^6.0.0"
get-stdin "^6.0.0"
...
@@ -8016,10 +8016,10 @@ vite-plugin-purge-icons@^0.4.4:
...
@@ -8016,10 +8016,10 @@ vite-plugin-purge-icons@^0.4.4:
"@purge-icons/generated" "^0.4.1"
"@purge-icons/generated" "^0.4.1"
rollup-plugin-purge-icons "^0.4.4"
rollup-plugin-purge-icons "^0.4.4"
vite-plugin-pwa@^0.1.
2
:
vite-plugin-pwa@^0.1.
3
:
version "0.1.
2
"
version "0.1.
3
"
resolved "https://registry.npmjs.org/vite-plugin-pwa/-/vite-plugin-pwa-0.1.
2.tgz#286b1b22a3b56268477defcd1e4a0029f09fcd06
"
resolved "https://registry.npmjs.org/vite-plugin-pwa/-/vite-plugin-pwa-0.1.
3.tgz#e3934ffd1c916cd336ae45517d373f8114c740f4
"
integrity sha512-
u+jRU+4q0jHZ/xplsi+QbJA3dJB2/sA6CeH5to48/asxW3Zl3A9byqAnucbgX8mOswYUc/MhpSIK/B1ZartI3A
==
integrity sha512-
WZ1zMQyXpZVprX69zD8KFYb0mcVKtacktXYfSNVPQl3mG1Ucsm6tl398eIZOshVEzhlRvUDH8xcLAB26+2sDeg
==
dependencies:
dependencies:
debug "^4.3.0"
debug "^4.3.0"
fast-glob "^3.2.4"
fast-glob "^3.2.4"
...
...
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