Skip to content

Commit 2cc40da

Browse files
committed
style: Optimize the styles of dashboard, container, and other pages
1 parent 6744504 commit 2cc40da

File tree

26 files changed

+209
-161
lines changed

26 files changed

+209
-161
lines changed

frontend/src/assets/iconfont/iconfont.css

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
@font-face {
22
font-family: "iconfont"; /* Project id 4776196 */
3-
src: url('iconfont.woff2?t=1734689625014') format('woff2'),
4-
url('iconfont.woff?t=1734689625014') format('woff'),
5-
url('iconfont.ttf?t=1734689625014') format('truetype');
3+
src: url('iconfont.woff2?t=1738832240410') format('woff2'),
4+
url('iconfont.woff?t=1738832240410') format('woff'),
5+
url('iconfont.ttf?t=1738832240410') format('truetype'),
6+
url('iconfont.svg?t=1738832240410#iconfont') format('svg');
67
}
78

89
.iconfont {
@@ -13,6 +14,14 @@
1314
-moz-osx-font-smoothing: grayscale;
1415
}
1516

17+
.p-terminal3:before {
18+
content: "\eace";
19+
}
20+
21+
.p-tuijian:before {
22+
content: "\e627";
23+
}
24+
1625
.p-node-1:before {
1726
content: "\e61a";
1827
}
@@ -61,6 +70,14 @@
6170
content: "\e638";
6271
}
6372

73+
.p-terminal:before {
74+
content: "\e864";
75+
}
76+
77+
.p-terminal1:before {
78+
content: "\e663";
79+
}
80+
6481
.p-arrow-right:before {
6582
content: "\e665";
6683
}
@@ -361,10 +378,6 @@
361378
content: "\e76a";
362379
}
363380

364-
.p-zhongduan:before {
365-
content: "\e731";
366-
}
367-
368381
.p-alert-1:before {
369382
content: "\e615";
370383
}
@@ -373,7 +386,7 @@
373386
content: "\e701";
374387
}
375388

376-
.p-minglinghang:before {
389+
.p-zhongduan:before {
377390
content: "\e61e";
378391
}
379392

frontend/src/assets/iconfont/iconfont.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/assets/iconfont/iconfont.json

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
"css_prefix_text": "p-",
66
"description": "",
77
"glyphs": [
8+
{
9+
"icon_id": "40071541",
10+
"name": "terminal",
11+
"font_class": "terminal3",
12+
"unicode": "eace",
13+
"unicode_decimal": 60110
14+
},
15+
{
16+
"icon_id": "34213658",
17+
"name": "推荐",
18+
"font_class": "tuijian",
19+
"unicode": "e627",
20+
"unicode_decimal": 58919
21+
},
822
{
923
"icon_id": "17895547",
1024
"name": "node-1",
@@ -89,6 +103,20 @@
89103
"unicode": "e638",
90104
"unicode_decimal": 58936
91105
},
106+
{
107+
"icon_id": "6172786",
108+
"name": "terminal",
109+
"font_class": "terminal",
110+
"unicode": "e864",
111+
"unicode_decimal": 59492
112+
},
113+
{
114+
"icon_id": "14772948",
115+
"name": "terminal",
116+
"font_class": "terminal1",
117+
"unicode": "e663",
118+
"unicode_decimal": 58979
119+
},
92120
{
93121
"icon_id": "15838431",
94122
"name": "arrow-right",
@@ -614,13 +642,6 @@
614642
"unicode": "e76a",
615643
"unicode_decimal": 59242
616644
},
617-
{
618-
"icon_id": "30053592",
619-
"name": "终端",
620-
"font_class": "zhongduan",
621-
"unicode": "e731",
622-
"unicode_decimal": 59185
623-
},
624645
{
625646
"icon_id": "29851742",
626647
"name": "短信告警",
@@ -638,7 +659,7 @@
638659
{
639660
"icon_id": "11052436",
640661
"name": "命令行",
641-
"font_class": "minglinghang",
662+
"font_class": "zhongduan",
642663
"unicode": "e61e",
643664
"unicode_decimal": 58910
644665
},

frontend/src/assets/iconfont/iconfont.svg

Lines changed: 105 additions & 87 deletions
Loading
480 Bytes
Binary file not shown.
276 Bytes
Binary file not shown.
180 Bytes
Binary file not shown.

frontend/src/components/card-with-header/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<div>
33
<el-card :style="{ height: height }" class="home-card">
44
<div class="header">
5-
<span>{{ header }}</span>
5+
<span class="header-span">{{ header }}</span>
6+
<slot name="header-l" />
67
<slot name="header-r" />
78
</div>
89

@@ -24,7 +25,7 @@ defineProps({
2425
<style scoped lang="scss">
2526
.home-card {
2627
.header {
27-
span {
28+
.header-span {
2829
position: relative;
2930
font-size: 16px;
3031
font-weight: 500;

frontend/src/lang/modules/en.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ const message = {
382382
used: 'Used',
383383
free: 'Free',
384384
percent: 'Percent',
385-
app: 'Recommended Apps',
386385
goInstall: 'Go install',
387386

388387
networkCard: 'NetworkCard',

frontend/src/lang/modules/ja.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ const message = {
374374
used: '使用済み',
375375
free: '無料',
376376
percent: '利用',
377-
app: '推奨アプリケーション',
378377
goInstall: 'インストールします',
379378

380379
networkCard: 'ネットワークカード',

0 commit comments

Comments
 (0)