Skip to content

Commit

Permalink
fix: update controlhub icons
Browse files Browse the repository at this point in the history
  • Loading branch information
yongheng2016 committed Jul 26, 2024
1 parent ee48e3f commit ccbd00c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 12 deletions.
Binary file modified apps/adminConsole/fonttools/MaterialSymbolsRounded3.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions apps/adminConsole/fonttools/unicodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ e645
e15a
e5d5
e15b
f708
efd6
e8b6
e51e
Expand Down
Binary file modified apps/adminConsole/src/assets/fonts/MaterialSymbolsRounded3.woff2
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const menuOptions = {
const route = useRoute();
const list = ref<any[]>([]);
const loading = ref(false);
const defaultActive = ref();
const defaultActive = ref(route.params.uid);
const workloadChildren = ref([]);
const shouldExecuteResponseHandler = ref(true);
let firstListIndexs: [number, number] | undefined = undefined;
Expand All @@ -124,7 +124,7 @@ const fetchData = async () => {
sortBy: 'createTime',
namespace
};
defaultActive.value = undefined;
// defaultActive.value = undefined;
searchText.value = '';
loading.value = true;
const [workloadData, configurationsData, servicesData] = await Promise.all([
Expand Down Expand Up @@ -180,7 +180,7 @@ const workloadsDataFormatter = (
id: child.value,
selectable: false,
children: childData.map((item: any, childIndex: number) => {
path = `/application-spaces/workloads/${child.value}/${namespace}/detail/${item.metadata.name}/${item.metadata.creationTimestamp}`;
path = `/application-spaces/workloads/${child.value}/${namespace}/detail/${item.metadata.name}/${item.metadata.creationTimestamp}/${item.metadata.uid}`;
id = item.metadata.uid;
if (!firstPath) {
firstPath = path;
Expand Down Expand Up @@ -267,11 +267,18 @@ const tabList = (item: any, node: string) => {
});
};
watch(
() => route.params.uid,
() => {
const { namespace, name, kind, uid }: { [key: string]: any } = route.params;
defaultActive.value = uid;
}
);
watch(
() => route.query.type,
(type) => {
const { namespace, name, kind }: { [key: string]: any } = route.params;
const { namespace, name, kind, uid }: { [key: string]: any } = route.params;
if (type === 'pod') {
myTreeRef.value.setExpanded(`${route.query.uid}`, true);
layzLoadData(route.query.uid as string, PodListData.data);
Expand Down
2 changes: 1 addition & 1 deletion apps/adminConsole/src/pages/Jobs/CronJobsDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const options = [
{
label: t('VIEW_YAML'),
value: 'edit',
icon: 'sym_r_edit',
icon: 'sym_r_preview',
onClick: () => {
yamlRef.value.show();
}
Expand Down
4 changes: 2 additions & 2 deletions apps/adminConsole/src/pages/Jobs/JobsDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ const options = [
{
label: t('RERUN'),
value: 'refresh',
icon: 'sym_r_refresh',
icon: 'sym_r_reopen_window',
onClick: () => {
rerunHanlder();
}
},
{
label: t('VIEW_YAML'),
value: 'edit',
icon: 'sym_r_edit',
icon: 'sym_r_preview',
onClick: () => {
yamlRef.value.show();
}
Expand Down
2 changes: 1 addition & 1 deletion apps/adminConsole/src/pages/Pods/Overview2.vue

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/adminConsole/src/pages/Pods/Overview3.vue

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/adminConsole/src/pages/Pods/Overview4.vue

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/adminConsole/src/pages/Pods/PodDetailContent.vue

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ccbd00c

Please sign in to comment.