mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-16 09:10:42 +08:00
Compare commits
No commits in common. "718b0138b0bf5b05e2edd735a3ca03f911dbda64" and "7a2e22c30c655e1dbb929da664bf561163cb679f" have entirely different histories.
718b0138b0
...
7a2e22c30c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nazhua",
|
||||
"version": "0.4.25",
|
||||
"version": "0.4.24",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -318,7 +318,6 @@ const dashboardUrl = computed(() => config.nazhua.v1DashboardUrl || '/dashboard'
|
||||
.site-name {
|
||||
line-height: calc(var(--layout-header-height) - 20px);
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 4px rgba(#000, 0.5);
|
||||
cursor: pointer;
|
||||
|
||||
@ -41,11 +41,7 @@ const routerOptions = {
|
||||
const router = createRouter(routerOptions);
|
||||
|
||||
router.beforeResolve((to, from, next) => {
|
||||
if (to?.meta?.title) {
|
||||
pageTitle(to?.meta?.title);
|
||||
} else if (to.name === 'Home') {
|
||||
pageTitle(config.nazhua.title);
|
||||
}
|
||||
pageTitle(to?.meta?.title);
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
@ -11,6 +11,5 @@ export default (app) => {
|
||||
app.use(store);
|
||||
app.component('DotDotBox', DotDotBox);
|
||||
|
||||
app.config.globalProperties.$hasSarasaTerm = !import.meta.env.VITE_DISABLE_SARASA_TERM_SC;
|
||||
app.config.globalProperties.$config = config;
|
||||
};
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import config from '@/config';
|
||||
|
||||
export default (...args) => {
|
||||
const titles = [...new Set([...args, config.nazhua.title])].filter((i) => i);
|
||||
document.title = titles.join(' - ');
|
||||
document.title = [...args, config.nazhua.title].filter((i) => i).join(' - ');
|
||||
};
|
||||
|
||||
@ -144,7 +144,6 @@ const platformLogoIconClassName = computed(() => hostUtils.getPlatformLogoIconCl
|
||||
.server-name {
|
||||
line-height: 30px;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@ -157,7 +156,6 @@ const platformLogoIconClassName = computed(() => hostUtils.getPlatformLogoIconCl
|
||||
.core-mem {
|
||||
line-height: 30px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
|
||||
@ -36,9 +36,6 @@
|
||||
v-for="(tagItem, index) in tagList"
|
||||
:key="`${tagItem}_${index}`"
|
||||
class="tag-item"
|
||||
:class="{
|
||||
'has-sarasa-term': $hasSarasaTerm,
|
||||
}"
|
||||
>
|
||||
{{ tagItem }}
|
||||
</span>
|
||||
@ -187,16 +184,12 @@ const show = computed(() => {
|
||||
.tag-item {
|
||||
height: 18px;
|
||||
padding: 0 4px;
|
||||
line-height: 18px;
|
||||
line-height: 20px;
|
||||
font-size: 12px;
|
||||
color: var(--public-note-tag-color);
|
||||
background: var(--public-note-tag-bg);
|
||||
text-shadow: 1px 1px 2px rgba(#000, 0.2);
|
||||
border-radius: 4px;
|
||||
|
||||
&.has-sarasa-term {
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -167,7 +167,6 @@ function openDetail() {
|
||||
height: 30px;
|
||||
line-height: 32px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cpu-mem-group {
|
||||
@ -179,7 +178,6 @@ function openDetail() {
|
||||
.core-mem {
|
||||
height: 30px;
|
||||
line-height: 32px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -130,9 +130,9 @@ function handleWorldMapWidth() {
|
||||
);
|
||||
}
|
||||
|
||||
watch(() => info.value, (oldValue, newValue) => {
|
||||
if (!oldValue && newValue && router.currentRoute.value.name === 'ServerDetail') {
|
||||
pageTitle(newValue?.Name, '节点详情');
|
||||
watch(() => info.value, () => {
|
||||
if (info.value) {
|
||||
pageTitle(info.value?.Name, '节点详情');
|
||||
handleWorldMapWidth();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user