Skip to content

Commit

Permalink
fix(dashboard): fix dashboard avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
yongheng2016 committed Dec 25, 2024
1 parent 3fb2cc2 commit bc43d02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/adminConsole/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/admin_console",
"version": "0.4.9",
"version": "0.4.10",
"description": "Control Hub",
"productName": "Control Hub",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion apps/monitoring/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/monitoring",
"version": "0.4.7",
"version": "0.4.8",
"description": "Dashboard",
"productName": "Dashboard",
"private": true,
Expand Down
5 changes: 4 additions & 1 deletion apps/monitoring/src/pages/Analytics/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ const fetchData = () => {
} else if (item.name === 'desktop') {
icon = desktopIcon;
title = 'Desktop';
const url = `//desktop.${appDetail.user.username}.myterminus.com`;
const url = `//desktop.${appDetail.user.username}${
location.hostname.split(appDetail.user.username)[1]
}`;
return { ...app, ...item, title, icon, url };
}
return { ...app, ...item, url: `//${app.url}` };
Expand Down
9 changes: 2 additions & 7 deletions apps/monitoring/src/pages/Overview2/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@
:title="$t('USER_RESOURCES', { name: appDetail.user.username })"
>
<template #avatar>
<TerminusAvatar
:info="{
terminusName: `${appDetail.user.username}@myterminus.com`
}"
:size="32"
class="terminu-avatar-wrapper"
/>
<OlaresAvatar class="terminu-avatar-wrapper" />
</template>
<UserResource
:data="userResourcesData"
Expand Down Expand Up @@ -113,6 +107,7 @@ import Analytics from './Analytics.vue';
import { get, last } from 'lodash';
import { useColor } from '@bytetrade/ui';
import PageBackground from 'components/PageBackground.vue';
import OlaresAvatar from 'src/containers/OlaresAvatar.vue';
const appDetail = useAppDetailStore();
Expand Down

0 comments on commit bc43d02

Please sign in to comment.