Skip to content

Commit 5a74b19

Browse files
committed
refactor: 图标加载速度优化
1 parent 70399b3 commit 5a74b19

File tree

20 files changed

+198
-140
lines changed

20 files changed

+198
-140
lines changed

build/scriptcat/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "ScriptCat",
4-
"version": "0.7.4",
4+
"version": "0.7.5",
55
"description": "脚本猫,一个用户脚本的框架,可编写脚本每天帮你自动处理事务.",
66
"background": {
77
"page": "background.html"

package-lock.json

Lines changed: 2 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scriptcat",
3-
"version": "0.7.4",
3+
"version": "0.7.5",
44
"description": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!",
55
"scripts": {
66
"test": "jest",
@@ -43,7 +43,6 @@
4343
"@babel/preset-env": "^7.13.10",
4444
"@babel/preset-typescript": "^7.13.0",
4545
"@babel/register": "^7.13.8",
46-
"@mdi/font": "^5.9.55",
4746
"@mdi/js": "^5.9.55",
4847
"@types/adm-zip": "^0.4.34",
4948
"@types/chrome": "0.0.127",

public/confirm.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<title>
99
<%= htmlWebpackPlugin.options.title %>
1010
</title>
11-
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet">
1211
</head>
1312

1413
<body>

public/import.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<title>
99
<%= htmlWebpackPlugin.options.title %>
1010
</title>
11-
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet">
1211
</head>
1312

1413
<body>

public/install.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<title>
99
<%= htmlWebpackPlugin.options.title %>
1010
</title>
11-
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet">
1211
</head>
1312

1413
<body>

public/options.html

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7-
<title>
8-
<%= htmlWebpackPlugin.options.title %>
9-
</title>
10-
<link
11-
href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css"
12-
rel="stylesheet"
13-
/>
14-
</head>
153

16-
<body>
17-
<div id="app"></div>
18-
<iframe src="sandbox.html" name="sandbox" sandbox="allow-scripts" style="display: none;"></iframe>
19-
</body>
20-
<style>
21-
html,
22-
body {
23-
margin: 0;
24-
padding: 0;
25-
border: 0;
26-
height: 100%;
27-
overflow: hidden;
28-
}
29-
</style>
30-
</html>
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
8+
<title>
9+
<%= htmlWebpackPlugin.options.title %>
10+
</title>
11+
</head>
12+
13+
<body>
14+
<div id="app"></div>
15+
<iframe src="sandbox.html" name="sandbox" sandbox="allow-scripts" style="display: none;"></iframe>
16+
</body>
17+
<style>
18+
html,
19+
body {
20+
margin: 0;
21+
padding: 0;
22+
border: 0;
23+
height: 100%;
24+
overflow: hidden;
25+
}
26+
</style>
27+
28+
</html>

public/popup.html

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7-
<title>
8-
<%= htmlWebpackPlugin.options.title %>
9-
</title>
10-
<link
11-
href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css"
12-
rel="stylesheet"
13-
/>
14-
</head>
153

16-
<body>
17-
<div id="app"></div>
18-
</body>
19-
<style>
20-
html,
21-
body {
22-
margin: 0;
23-
padding: 0;
24-
border: 0;
25-
width: 450px;
26-
/* height: 500px; */
27-
min-height: 150px;
28-
max-height: 500px;
29-
/* overflow-y: auto; */
30-
/* overflow: hidden; */
31-
}
32-
</style>
33-
</html>
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
8+
<title>
9+
<%= htmlWebpackPlugin.options.title %>
10+
</title>
11+
</head>
12+
13+
<body>
14+
<div id="app"></div>
15+
</body>
16+
<style>
17+
html,
18+
body {
19+
margin: 0;
20+
padding: 0;
21+
border: 0;
22+
width: 450px;
23+
/* height: 500px; */
24+
min-height: 150px;
25+
max-height: 500px;
26+
/* overflow-y: auto; */
27+
/* overflow: hidden; */
28+
}
29+
</style>
30+
31+
</html>

src/apps/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const ExtVersion = "0.7.4";
1+
export const ExtVersion = "0.7.5";
22

33
export const Server = process.env.NODE_ENV == "production" ? "https://sc.icodef.com/" : "http://localhost:8080/";
44

src/popup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import "reflect-metadata";
22
import Vue from "vue";
33

44
import "vuetify/dist/vuetify.min.css";
5-
65
import App from "@App/views/pages/Popup/index.vue";
76
import { migrate } from "./model/migrate";
87
import { i18n, vuetify } from "../i18n/i18n";

0 commit comments

Comments
 (0)