Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore: text update
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Aug 16, 2023
1 parent facc2a1 commit 76f3502
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 53 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta http-equiv="Expires" content="0" />
<link rel="shortcut icon" type="image/x-icon" href="./src/assets/images/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SEAL</title>
<title>Walrus</title>
</head>

<body>
Expand Down
14 changes: 0 additions & 14 deletions src/components/ace-editor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,6 @@
const identifer2 =
/([a-zA-Z_0-9$\-\u00A2-\u2000\u2070-\uFFFF]+\.)*([a-zA-Z_0-9$\-\u00A2-\u2000\u2070-\uFFFF]*)$/;
const hintList = [
{
name: 'vulnerability',
value: 'vulnerability',
type: 'seal',
score: 6,
meta: 'custom'
},
{ name: 'cvss3', value: 'cvss3', score: 6, meta: 'custom' },
{ name: 'serverity', value: 'serverity', score: 6, meta: 'custom' },
{ name: 'license', value: 'license', score: 6, meta: 'custom' },
{ name: 'file', value: 'file', score: 6, meta: 'custom' },
{ name: 'myObj', value: 'file', score: 6, meta: 'custom' }
];
const resetGutterDiffDecoration = (row) => {
aceEditor?.session?.removeGutterDecoration(row, 'row-add-icon');
aceEditor?.session?.removeGutterDecoration(row, 'row-delete-icon');
Expand Down
6 changes: 1 addition & 5 deletions src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ const TOKEN_KEY = 'authed';
const LOGIN_INFO = 'LOGIN_INFO';
const LOGIN_HISTORY = 'LOGIN_HISTORY';

const localStore = localForage.createInstance({ name: 'SEAL' });
const localStore = localForage.createInstance({ name: 'walrus' });

// const createLocalStore = () => {
// if (localStore) return
// localStore = localForage.createInstance({ name: 'SEAL' })
// }
const rememberPasswordFn = (data: LoginInfo) => {
if (localStore) {
localStore.setItem(LOGIN_INFO, data);
Expand Down
6 changes: 3 additions & 3 deletions src/views/cost-management/analyse/config/groupby-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ export default [
},
{
label: 'Project',
fieldName: 'label:seal.io/project',
fieldName: 'label:walrus.seal.io/project',
title: 'cost.analyse.table.application'
},
{
label: 'Environment',
fieldName: 'label:seal.io/environment',
fieldName: 'label:walrus.seal.io/environment',
title: 'cost.analyse.table.env'
},
{
label: 'Application',
fieldName: 'label:seal.io/app',
fieldName: 'label:walrus.seal.io/app',
title: 'cost.analyse.table.application'
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default function usePerspectiveCost(props) {
);
const projectFilter = find(
allocationQueries,
(item) => item.groupBy === 'label:seal.io/project-name'
(item) => item.groupBy === 'label:walrus.seal.io/project-name'
);
const clusterFilter = find(
allocationQueries,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function usePerspectiveCost(props) {
projectloading.value = true;
const params = {
...omit(queryParams, ['project']),
fieldName: 'label:seal.io/project-name',
fieldName: 'label:walrus.seal.io/project-name',
fieldType: 'filter',
endTime: setEndTimeAddDay(queryParams.endTime, timeMode.value)
};
Expand Down Expand Up @@ -192,7 +192,7 @@ export default function usePerspectiveCost(props) {

const projectFilter = find(
allocationQueries,
(item) => item.groupBy === 'label:seal.io/service-path'
(item) => item.groupBy === 'label:walrus.seal.io/service-path'
);

projectDailyCostFilters.value = {
Expand Down
6 changes: 2 additions & 4 deletions src/views/dashboard/components/cost-summary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
try {
const params = {
...queryParams.value,
groupBy: 'label:seal.io/project-name',
groupBy: 'label:walrus.seal.io/project-name',
startTime: dayjs().subtract(1, 'month').format('YYYY-MM-01T00:00:00Z'),
endTime: dayjs().format('YYYY-MM-DDTHH:mm:ssZ'),
step: 'day'
Expand All @@ -228,9 +228,7 @@
page: 1,
perPage: 15
},
groupBy: 'label:seal.io/service-path',
// startTime: dayjs().subtract(1, 'month').format('YYYY-MM-01T00:00:00Z'),
// endTime: dayjs().format('YYYY-MM-DDTHH:mm:ssZ'),
groupBy: 'label:walrus.seal.io/service-path',
step: ''
};
const { data } = await queryCostManagemantData(params);
Expand Down
16 changes: 2 additions & 14 deletions src/views/login/components/banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<a-carousel-item v-for="item in carouselItem" :key="item.slogan">
<div :key="item.slogan" class="carousel-item">
<div class="carousel-title">{{ item.slogan }}</div>
<!-- <div class="carousel-sub-title">{{ item.subSlogan }}</div> -->
<!-- <img class="carousel-image" :src="item.image" /> -->
</div>
</a-carousel-item>
</a-carousel>
Expand All @@ -24,18 +22,8 @@
{
slogan: t('login.banner.seal'),
subSlogan: t('login.banner.subSlogan1'),
image: bannerImage,
},
// {
// slogan: t('login.banner.slogan2'),
// subSlogan: t('login.banner.subSlogan2'),
// image: bannerImage,
// },
// {
// slogan: t('login.banner.slogan3'),
// subSlogan: t('login.banner.subSlogan3'),
// image: bannerImage,
// },
image: bannerImage
}
]);
</script>

Expand Down
9 changes: 5 additions & 4 deletions src/views/login/locale/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
export default {
'login.form.title': 'Login to SEAL',
'login.form.title': 'Login to Walrus',
'login.form.userName.errMsg': 'Username cannot be empty',
'login.form.password.errMsg': 'Password cannot be empty',
'login.form.login.errMsg': 'Login error, refresh and try again',
'login.form.login.update': 'Set user settings',
'login.form.login.complete': 'Please complete the user settings',
'login.form.update.serverurl': 'What URL should be used for the Seal server?',
'login.form.update.serverurl':
'What URL should be used for the Walrus server?',
'login.form.update.password': 'Set a strong password for the default user',
'login.form.login.update.tips':
'Please set the basic user configuration before use',
Expand All @@ -31,8 +32,8 @@ export default {
'For the first login, use the following way to get the initial admin password',
'login.config.pswd.specified': 'The initial password is set at startup',
'login.config.pswd.log':
'search "Bootstrap Admin Password" from the logs of seal process',
'search "Bootstrap Admin Password" from the logs of walrus process',
'login.config.user.action':
'Allows collection of <a href={link} target="_blank" class="a-link">anonymous statistics</a>, to help us improve seal',
'Allows collection of <a href={link} target="_blank" class="a-link">anonymous statistics</a>, to help us improve walrus',
'login.config.join.improvement': 'Participate in improvement plans'
};
6 changes: 3 additions & 3 deletions src/views/login/locale/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export default {
'login.form.title': '登录 SEAL',
'login.form.title': '登录 Walrus',
'login.form.userName.errMsg': '用户名不能为空',
'login.form.password.errMsg': '密码不能为空',
'login.form.login.errMsg': '登录出错,轻刷新重试',
'login.form.login.success': '欢迎使用',
'login.form.login.update': '设置用户配置',
'login.form.login.complete': '请完善用户配置',
'login.form.update.serverurl': '配置Seal的访问地址',
'login.form.update.serverurl': '配置walrus的访问地址',
'login.form.update.password': '为默认用户设置一个强密码',
'login.form.login.update.tips': '使用前请设置基本用户配置',
'login.form.userName.placeholder': '用户名',
Expand All @@ -28,6 +28,6 @@ export default {
'login.config.pswd.specified': '启动时已设置初始密码',
'login.config.pswd.log': '从seal进程日志中搜索"Bootstrap Admin Password"',
'login.config.user.action':
'允许收集<a href={link} target="_blank" class="a-link">匿名统计数据</a>,以帮助我们改进seal',
'允许收集<a href={link} target="_blank" class="a-link">匿名统计数据</a>,以帮助我们改进walrus',
'login.config.join.improvement': '参与改进计划'
};
3 changes: 2 additions & 1 deletion src/views/system/locale/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export default {
'account.settings.token.rules.name': 'API key is required',
'account.settings.token.rules.expire': 'Expiration time is required',
'account.settings.token.expireDate': 'Expire date',
'account.settings.token.desc': 'API keys can be used to access the Seal API.',
'account.settings.token.desc':
'API keys can be used to access the Walrus API.',
'account.settings.token.tips':
'Make sure to copy your personal access key now. You won’t be able to see it again!',
'account.settings.clear.tips': 'Save, the following settings will be cleared',
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/locale/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default {
'account.settings.token.rules.name': '密钥名称必填',
'account.settings.token.rules.expire': '过期时间必填',
'account.settings.token.expireDate': '到期时间',
'account.settings.token.desc': '密钥可用于访问 Seal API.',
'account.settings.token.desc': '密钥可用于访问 Walrus API.',
'account.settings.token.tips':
'确保立即复制您的个人访问密钥。您将无法再次看到它!',
'account.settings.clear.tips': '若保存,以下设置将被清除',
Expand Down

0 comments on commit 76f3502

Please sign in to comment.