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

Commit

Permalink
chore: walrus text update
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Aug 17, 2023
1 parent b65bc17 commit 534ca8e
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 43 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install yarn -g
3. Setup

```
git clone https://github.com/seal-io/ui/
git clone https://github.com/seal-io/walrus-ui/
```

4. Install dependencies
Expand All @@ -43,7 +43,7 @@ yarn build

## Bugs & Issues

Please submit [bugs and issues](https://github.com/seal-io/seal/issues) with a label `ui`
Please submit [bugs and issues](https://github.com/seal-io/walrus/issues) with a label `ui`

## Links

Expand Down
1 change: 0 additions & 1 deletion src/api/axios-chunk-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export function useSetChunkRequest() {
}

handler(result);
console.log('chunkrequest===========', { result, url });
}
});
requestReadyState.value = request?.readyState;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function useLocale() {
});
const changeLocale = (value) => {
i18.locale.value = value;
localStorage.setItem('seal-locale', value);
localStorage.setItem('walrus-locale', value);
Message.success(i18.t('navbar.action.locale'));
};
return {
Expand Down
2 changes: 1 addition & 1 deletion src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const browserLanguage = languages.value[0] || 'en-US';

const defaultLanguage = browserLanguage.indexOf('zh') > -1 ? 'zh-CN' : 'en-US';

const defaultLocale = localStorage.getItem('seal-locale') || defaultLanguage;
const defaultLocale = localStorage.getItem('walrus-locale') || defaultLanguage;

const i18n = createI18n({
locale: defaultLocale,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ export default function useServiceData(props?) {
formData.template.name = webservice
? webservice.name
: _.get(templateList.value, '0.name') || '';

await getTemplateVersionByItem(formData.template.name);
await getTemplateVersionList();

Expand Down
9 changes: 0 additions & 9 deletions src/views/application-management/services/pages/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -454,15 +454,6 @@
setVariableAttributes();
};
const setFormData = (schemas) => {
const variablesList = filter(get(schemas, 'variables'), (v) => {
return !v.hidden;
});
each(variablesList, (item) => {
formData.attributes[item.name] = item.default;
});
};
const clearFormValidStatus = () => {
keys(refMap.value).map(async (key) => {
const refEL = refMap.value[key];
Expand Down
4 changes: 2 additions & 2 deletions src/views/login/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export const GET_ADMIN_PASSWORD =
export const FirstLoginGetPassword = {
Specified: 'login.config.defaultpswd',
Docker:
'docker logs <id_of_seal_container> 2>&1 | grep "Bootstrap Admin Password"',
'docker logs <id_of_walrus_container> 2>&1 | grep "Bootstrap Admin Password"',
Kubernetes:
'kubectl -n <namespace_of_seal_deploy> logs <name_of_seal_pod> | grep "Bootstrap Admin Password"',
'kubectl -n <namespace_of_walrus_deploy> logs <name_of_walrus_pod> | grep "Bootstrap Admin Password"',
// Process: 'search "Bootstrap Admin Password" from the logs of seal process',
Process: 'login.config.pswd.log',
Invalid: 'Invalid'
Expand Down
2 changes: 1 addition & 1 deletion src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
align-items: center;
img {
width: 90px;
width: 100px;
height: auto;
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/operation-hub/templates/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function queryItemTemplate(params: { id: string }) {
export function createTemplate(data: TemplateFormData) {
return axios.post('/templates', data);
}
export function deleteTemplates(data: { items: string[] }) {
export function deleteTemplates(data: { items: { id: string }[] }) {
return axios.delete('/templates', { data });
}
export function updateTemplate(data: TemplateFormData) {
Expand Down
50 changes: 26 additions & 24 deletions src/views/operation-hub/templates/pages/list.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ComCard borderless padding="0" :loading="loading" class="projects">
<ComCard borderless padding="0" class="projects">
<div class="content">
<FilterBox>
<template #params>
Expand Down Expand Up @@ -75,28 +75,30 @@
</template>
</FilterBox>
<a-divider :margin="8"></a-divider>
<a-tabs
lazy-load
default-active-key="currentView"
:active-key="currentView"
>
<a-tab-pane key="thumb">
<ThumbView
:list="dataList"
:checked-list="selectedKeys"
@change="handleCheckChange"
></ThumbView>
</a-tab-pane>
<a-tab-pane key="list">
<ListView
ref="listViewRef"
v-model:sort="sort"
v-model:selectedList="selectedKeys"
:list="dataList"
@sort="handleSort"
></ListView>
</a-tab-pane>
</a-tabs>
<a-spin :loading="loading" fill>
<a-tabs
lazy-load
default-active-key="currentView"
:active-key="currentView"
>
<a-tab-pane key="thumb">
<ThumbView
:list="dataList"
:checked-list="selectedKeys"
@change="handleCheckChange"
></ThumbView>
</a-tab-pane>
<a-tab-pane key="list">
<ListView
ref="listViewRef"
v-model:sort="sort"
v-model:selectedList="selectedKeys"
:list="dataList"
@sort="handleSort"
></ListView>
</a-tab-pane>
</a-tabs>
</a-spin>
<a-pagination
style="margin-top: 20px"
size="small"
Expand Down Expand Up @@ -210,7 +212,7 @@
loading.value = true;
const ids = map(selectedKeys.value, (val) => {
return {
id: val
id: val as string
};
});
await deleteTemplates({ items: ids });
Expand Down

0 comments on commit 534ca8e

Please sign in to comment.