Skip to content

Commit

Permalink
fix: add technology icons and update word contents (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fine0830 committed Apr 6, 2022
1 parent e955c91 commit a37bf62
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 43 deletions.
Binary file added src/assets/img/technologies/EXPRESS.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/technologies/SPRINGWEBFLUX.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/locales/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ const msg = {
noRoot: "Please set a root dashboard for",
noWidget: "Please add widgets.",
rename: "Rename",
deleteTitle: "Are you sure to delete this?",
rootTitle: "Are you sure to set this?",
selfObservability: "Self Observability",
satellite: "Satellite",
skyWalkingServer: "SkyWalking Server",
Expand Down Expand Up @@ -197,7 +199,7 @@ const msg = {
dayCutTip: "Last 1 day",
weekCutTip: "Last 1 week",
monthCutTip: "Last 1 month",
serverZone: "Server Zone",
serverZone: "OAP Server Time Zone",
exportImage: "Export image",
object: "Object",
profile: "Profile",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/lang/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ const msg = {
showGroup: "显示分组",
noWidget: "请添加组件",
rename: "重命名",
deleteTitle: "确定删除吗?",
rootTitle: "确定设置为Root吗?",
selfObservability: "自监控",
satellite: "Satellite",
skyWalkingServer: "SkyWalking服务",
Expand Down Expand Up @@ -199,7 +201,7 @@ const msg = {
dayCutTip: "最近1天",
weekCutTip: "最近1周",
monthCutTip: "最近1月",
serverZone: "服务器时区",
serverZone: "OAP Server 时区",
exportImage: "导出为图片",
object: "粒度",
profile: "性能剖析",
Expand Down
24 changes: 0 additions & 24 deletions src/views/Log.vue

This file was deleted.

7 changes: 4 additions & 3 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ const setUTCMin = () => {
}
.settings {
color: #222;
font-size: 14px;
color: #606266;
font-size: 13px;
padding: 20px;
.item {
Expand All @@ -195,9 +195,10 @@ const setUTCMin = () => {
}
.label {
width: 100px;
width: 160px;
display: inline-block;
font-weight: 500;
color: #000;
}
}
</style>
14 changes: 7 additions & 7 deletions src/views/dashboard/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ limitations under the License. -->
<el-table-column type="selection" width="55" />
<el-table-column prop="name" label="Name">
<template #default="scope">
<span class="cp name" @click="handleView(scope.row)">{{
scope.row.name
}}</span>
<span class="cp name" @click="handleView(scope.row)">
{{ scope.row.name }}
</span>
</template>
</el-table-column>
<el-table-column prop="layer" label="Layer" width="200" />
<el-table-column prop="layer" label="Layer" width="120" />
<el-table-column prop="entity" label="Entity" width="200" />
<el-table-column prop="isRoot" label="Root" width="60">
<template #default="scope">
Expand All @@ -74,7 +74,7 @@ limitations under the License. -->
{{ t("rename") }}
</el-button>
<el-popconfirm
title="Are you sure to delete this?"
:title="t('deleteTitle')"
@confirm="handleDelete(scope.row)"
>
<template #reference>
Expand All @@ -84,7 +84,7 @@ limitations under the License. -->
</template>
</el-popconfirm>
<el-popconfirm
title="Are you sure to set this?"
:title="t('rootTitle')"
@confirm="setRoot(scope.row)"
v-if="
[EntityType[0].value, EntityType[1].value].includes(
Expand All @@ -93,7 +93,7 @@ limitations under the License. -->
"
>
<template #reference>
<el-button size="small" style="width: 120px" type="danger">
<el-button size="small" style="width: 110px" type="danger">
{{ scope.row.isRoot ? t("setNormal") : t("setRoot") }}
</el-button>
</template>
Expand Down
9 changes: 2 additions & 7 deletions tests/unit/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { shallowMount } from "@vue/test-utils";
import Log from "@/views/Log.vue";

describe("Log.vue", () => {
describe("My First Test", () => {
it("renders props.msg when passed", () => {
const msg = "new message";
const wrapper = shallowMount(Log, {
props: { msg },
});
expect(wrapper.text()).toMatch(msg);
console.log(msg);
});
});

0 comments on commit a37bf62

Please sign in to comment.