-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update deps and refactor types
一些用户想要修改这个主题以用于 ServerStatus-Hotaru 的自定义前端,由于包管理器的更新,加强了对 peerDependencies 的要求,可能会导致一些用户依赖无法安装成功。 由于 vue-cli 的废弃,并且本项目已时间久远,一些代码并不规范。如果你有一定前端基础,需要修改此项目用于其他用途(如移植主题等),推荐使用 Vite 作为打包工具并参考此处的代码:https://github.com/cokemine/nodestatus/tree/master/web/hotaru-theme
- Loading branch information
Showing
14 changed files
with
11,044 additions
and
17,774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export interface BoxItem { | ||
name: string; | ||
host: string; | ||
type: string; | ||
online4: boolean; | ||
online6: boolean; | ||
location: string; | ||
region: string; | ||
} | ||
|
||
export interface StatusItem extends BoxItem { | ||
uptime: string; | ||
load: number; | ||
cpu: number; | ||
network_rx: number; | ||
network_tx: number; | ||
network_in: number; | ||
network_out: number; | ||
memory_total: number; | ||
memory_used: number; | ||
swap_total: number; | ||
swap_used: number; | ||
hdd_total: number; | ||
hdd_used: number; | ||
custom: string; | ||
} | ||
|
||
declare global { | ||
interface Window { | ||
__PRE_CONFIG__: { | ||
header: string; | ||
subHeader: string; | ||
interval: number; | ||
footer: string; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* eslint-disable */ | ||
declare module '*.vue' { | ||
import type {DefineComponent} from 'vue' | ||
const component: DefineComponent<{}, {}, any> | ||
export default component | ||
/* eslint-disable */ | ||
declare module '*.vue' { | ||
import type {DefineComponent} from 'vue' | ||
const component: DefineComponent<{}, {}, any> | ||
export default component | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ | |
] | ||
}, | ||
"include": [ | ||
"types/**/*.ts", | ||
"src/**/*.ts", | ||
"src/**/*.tsx", | ||
"src/**/*.vue", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const resolve = d => require('path').resolve(__dirname, d); | ||
|
||
module.exports = { | ||
publicPath: './', | ||
pages: { | ||
|