Skip to content

Commit 3783c3b

Browse files
authored
perf: perf icon (#3)
* test: test workflow * fix: recover branch
1 parent 4fa2d11 commit 3783c3b

File tree

6 files changed

+38
-13
lines changed

6 files changed

+38
-13
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,23 @@ jobs:
3838
key: ${{ runner.os }}-node-${{ hashFiles('**/packagge-lock.json')}}
3939
restore-keys: |
4040
${{ runner.os }}-node-
41-
- name: Bootstrap
42-
run: |
43-
npm install
44-
- run: npm i -g @quasar/cli
41+
- name: Install
42+
run: npm i -g @quasar/cli
4543
- run: npm install
44+
- name: Install fonttools
45+
run: pip3 install fonttools brotli
46+
- name: Download fonttools Files
47+
run: |
48+
pwd
49+
curl -L -o fonttools.zip https://cdn.bttcdn.com/common/fonttools.zip
50+
unzip fonttools.zip
51+
- name: Python Icon
52+
run: pwd; cd ./fonttools; sudo node python-icon.js
53+
- name: subset Icon
54+
run: |
55+
sudo chmod 755 fonttools
56+
cd ./fonttools
57+
./subset_font.sh nyTnjDwKNJ_190FjzaqkNCeE.woff2 unicodes.txt MaterialSymbolsRounded.woff2 ../packages/web/src/assets/fonts
4658
- name: Build
4759
run: npm run app:build
4860
- name: Build and push Docker image

packages/web/quasar.config.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = configure(function (ctx) {
3939
boot: ["monacoplugin", "markdown", "axios", "bytetrade-ui"],
4040

4141
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
42-
css: ["app.scss"],
42+
css: ["app.scss", ctx.dev ? "font.dev.scss" : "font.pro.scss"],
4343

4444
// https://github.com/quasarframework/quasar/tree/dev/extras
4545
extras: [
@@ -50,14 +50,13 @@ module.exports = configure(function (ctx) {
5050
// 'themify',
5151
// 'line-awesome',
5252
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
53-
54-
"roboto-font", // optional, you are not bound to it
55-
"material-icons", // optional, you are not bound to it
56-
"bootstrap-icons",
57-
"themify",
53+
// "roboto-font", // optional, you are not bound to it
54+
// "material-icons", // optional, you are not bound to it
55+
// "bootstrap-icons",
56+
// "themify",
5857
"material-icons",
59-
"material-symbols-outlined",
60-
"material-symbols-rounded",
58+
// "material-symbols-outlined",
59+
// "material-symbols-rounded",
6160
],
6261

6362
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
4.07 MB
Binary file not shown.

packages/web/src/components/EditComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
/>
4747
</q-icon>
4848

49-
<q-icon rounded clickable name="bi-three-dots" size="18px">
49+
<q-icon rounded clickable name="sym_r_more_horiz" size="18px">
5050
<PopupMenu
5151
:items="oprateMenu"
5252
:path="nod.path"

packages/web/src/css/font.dev.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@font-face {
2+
font-display: block;
3+
font-family: 'Material Symbols Rounded';
4+
font-style: normal;
5+
font-weight: 100 700;
6+
src: url('../assets/fonts/nyTnjDwKNJ_190FjzaqkNCeE.woff2') format('woff2');
7+
}

packages/web/src/css/font.pro.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@font-face {
2+
font-display: block;
3+
font-family: 'Material Symbols Rounded';
4+
font-style: normal;
5+
font-weight: 100 700;
6+
src: url('../assets/fonts/MaterialSymbolsRounded.woff2') format('woff2');
7+
}

0 commit comments

Comments
 (0)