Skip to content

Commit

Permalink
feat(market): add portable icon and translation
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jul 17, 2023
1 parent 3679cbb commit ede5428
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/market/client/components/filter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ function toggleQuery(item: Badge, event: MouseEvent) {
&.verified, &.newborn {
color: var(--k-color-success);
}
&.preview {
&.preview, &.portable {
color: var(--k-color-warning);
}
&.insecure {
color: var(--k-color-danger);
}
Expand Down
2 changes: 2 additions & 0 deletions packages/market/client/icons/misc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import HeartPulse from './heart-pulse.vue'
import Insecure from './insecure.vue'
import Installed from './installed.vue'
import Newborn from './newborn.vue'
import Portable from './portable.vue'
import Preview from './preview.vue'
import Search from './search.vue'
import StarEmpty from './star-empty.vue'
Expand All @@ -29,6 +30,7 @@ export default {
'insecure': Insecure,
'installed': Installed,
'newborn': Newborn,
'portable': Portable,
'preview': Preview,
'search': Search,
'star-empty': StarEmpty,
Expand Down
5 changes: 5 additions & 0 deletions packages/market/client/icons/misc/portable.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
<path fill="currentColor" d="M381.2 172.8C377.1 164.9 368.9 160 360 160h-156.6l50.84-127.1c2.969-7.375 2.062-15.78-2.406-22.38S239.1 0 232 0h-176C43.97 0 33.81 8.906 32.22 20.84l-32 240C-.7179 267.7 1.376 274.6 5.938 279.8C10.5 285 17.09 288 24 288h146.3l-41.78 194.1c-2.406 11.22 3.469 22.56 14 27.09C145.6 511.4 148.8 512 152 512c7.719 0 15.22-3.75 19.81-10.44l208-304C384.8 190.2 385.4 180.7 381.2 172.8z"/>
</svg>
</template>
1 change: 1 addition & 0 deletions packages/market/client/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ badge:
insecure: 不安全
preview: 开发中
newborn: 近期新增
portable: 快速体验

sort:
default: 综合
Expand Down

0 comments on commit ede5428

Please sign in to comment.