Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(assets): add save icon #1612

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/assets/font/iconfont.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 1257443 */
src: url('iconfont.woff2?t=1706248596667') format('woff2'),
url('iconfont.woff?t=1706248596667') format('woff'),
url('iconfont.ttf?t=1706248596667') format('truetype');
src: url('iconfont.woff2?t=1711556341747') format('woff2'),
url('iconfont.woff?t=1711556341747') format('woff'),
url('iconfont.ttf?t=1711556341747') format('truetype');
}

.iconfont {
Expand All @@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}

.icon-save:before {
content: "\e802";
}

.icon-create-new:before {
content: "\e7fa";
}
Expand Down
67 changes: 1 addition & 66 deletions src/assets/font/iconfont.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/assets/font/iconfont.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "39719291",
"name": "save",
"font_class": "save",
"unicode": "e802",
"unicode_decimal": 59394
},
{
"icon_id": "39123757",
"name": "create new",
Expand Down
Binary file modified src/assets/font/iconfont.ttf
Binary file not shown.
Binary file modified src/assets/font/iconfont.woff
Binary file not shown.
Binary file modified src/assets/font/iconfont.woff2
Binary file not shown.
7 changes: 7 additions & 0 deletions src/lang/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export default {
ja: '保存',
hu: 'Mentés',
},
saveOnly: {
zh: '仅保存',
en: 'Save Only',
tr: 'Sadece Kaydet',
ja: '保存のみ',
hu: 'Csak Mentés',
},
reset: {
zh: '重置',
en: 'Reset',
Expand Down
4 changes: 3 additions & 1 deletion src/views/connections/ConnectionForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<i class="el-icon-arrow-down"></i>
</a>
<el-dropdown-menu class="connection-oper-item" slot="dropdown">
<el-dropdown-item command="save"> <i class="el-icon-folder"></i>{{ $t('common.save') }} </el-dropdown-item>
<el-dropdown-item command="save">
<i class="iconfont icon-save"></i>{{ $t('common.saveOnly') }}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
Expand Down
10 changes: 7 additions & 3 deletions web/src/assets/font/iconfont.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 1257443 */
src: url('iconfont.woff2?t=1706248596667') format('woff2'),
url('iconfont.woff?t=1706248596667') format('woff'),
url('iconfont.ttf?t=1706248596667') format('truetype');
src: url('iconfont.woff2?t=1711556341747') format('woff2'),
url('iconfont.woff?t=1711556341747') format('woff'),
url('iconfont.ttf?t=1711556341747') format('truetype');
}

.iconfont {
Expand All @@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}

.icon-save:before {
content: "\e802";
}

.icon-create-new:before {
content: "\e7fa";
}
Expand Down
67 changes: 1 addition & 66 deletions web/src/assets/font/iconfont.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions web/src/assets/font/iconfont.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "39719291",
"name": "save",
"font_class": "save",
"unicode": "e802",
"unicode_decimal": 59394
},
{
"icon_id": "39123757",
"name": "create new",
Expand Down
Binary file modified web/src/assets/font/iconfont.ttf
Binary file not shown.
Binary file modified web/src/assets/font/iconfont.woff
Binary file not shown.
Binary file modified web/src/assets/font/iconfont.woff2
Binary file not shown.
5 changes: 5 additions & 0 deletions web/src/lang/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export default {
en: 'Save',
ja: '保存',
},
saveOnly: {
zh: '仅保存',
en: 'Save Only',
ja: '保存のみ',
},
reset: {
zh: '重置',
en: 'Reset',
Expand Down
4 changes: 3 additions & 1 deletion web/src/views/connections/ConnectionForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<i class="el-icon-arrow-down"></i>
</a>
<el-dropdown-menu class="connection-oper-item" slot="dropdown">
<el-dropdown-item command="save"> <i class="el-icon-folder"></i>{{ $t('common.save') }} </el-dropdown-item>
<el-dropdown-item command="save">
<i class="iconfont icon-save"></i>{{ $t('common.saveOnly') }}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
Expand Down
Loading