Skip to content

Commit

Permalink
Fix i18n styles (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Germey <[email protected]>
  • Loading branch information
Germey and Germey authored Mar 24, 2024
1 parent 49a0d0c commit bb5b422
Show file tree
Hide file tree
Showing 23 changed files with 3,222 additions and 432 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix translate issues",
"packageName": "@acedatacloud/hub",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Binary file added src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/images/logo.svg

This file was deleted.

2 changes: 2 additions & 0 deletions src/components/application/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
<div v-else-if="application" class="status">
<span class="info">
{{ $t('common.message.usedAmount') }}: {{ application?.used_amount?.toFixed(6) }}
{{ $t(`service.unit.` + application?.service?.unit + 's') }}
{{ $t('common.message.remainingAmount') }}:
{{ application?.remaining_amount?.toFixed(6) }}
{{ $t(`service.unit.` + application?.service?.unit + 's') }}
</span>
<span class="actions">
<el-button size="small" type="primary" @click="onBuyMore(application)">{{
Expand Down
11 changes: 5 additions & 6 deletions src/components/chat/Introduction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ export default defineComponent({

<style lang="scss" scoped>
.introduction {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
margin: auto;
padding: 30px 0;
padding: 60px;
.title {
height: 70px;
Expand All @@ -108,14 +108,13 @@ export default defineComponent({
.introduction-items {
height: fit-content;
margin-bottom: 100px;
.icon {
font-size: 20px;
}
.subtitle {
text-align: center;
font-size: 18px;
margin-bottom: 20px;
margin-bottom: 40px;
}
.introduction-item {
margin-bottom: 15px;
Expand Down
6 changes: 3 additions & 3 deletions src/components/chat/ModelSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<el-button :class="{ group: true, active: group.value === activeGroup }" @click="onSwitchGroup(group)">
<font-awesome-icon :icon="group.icon" :class="'icon ' + group.value" />
<span v-if="group.value === activeGroup">
{{ model.displayName }}
{{ model.getDisplayName() }}
</span>
<span v-else>
{{ group.label }}
Expand All @@ -31,10 +31,10 @@
</div>
<div class="info">
<p class="name">
{{ groupModel.displayName }}
{{ groupModel.getDisplayName() }}
</p>
<p class="description">
{{ groupModel.description }}
{{ groupModel.getDescription() }}
</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/Navigator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<chevron v-else class="chevron" direction="left" @click="onCollapseMenu"></chevron>
<div class="top">
<div v-if="!collapsed">
<img src="@/assets/images/logo.svg" class="logo" @click="onHome" />
<img src="@/assets/images/logo.png" class="logo" @click="onHome" />
</div>
<el-menu v-if="!collapsed" :default-active="activeIndex">
<el-menu-item
Expand Down Expand Up @@ -211,7 +211,7 @@ export default defineComponent({
position: relative;
.el-menu {
width: 150px;
width: 180px;
border-right: none;
.el-menu-item {
height: 50px;
Expand All @@ -228,7 +228,7 @@ export default defineComponent({
.logo {
width: 80%;
max-height: 40px;
max-height: 50px;
cursor: pointer;
margin: 10px auto 20px auto;
display: block;
Expand Down
Loading

0 comments on commit bb5b422

Please sign in to comment.