naiba / nezha

:trollface: Self-hosted, lightweight server and website monitoring and O&M tool
https://nezha.wiki
Apache License 2.0
7.27k stars 1.27k forks source link

feat: description file for custom theme; use gjson #433

Closed uubulb closed 1 month ago

uubulb commented 1 month ago

更改:

描述文件示例:

{
    "name": "Example",
    "description": "An example theme",
    "maintainer": "Noname <example@example.com>",
    "repo": "https://example.com/example.git",
    "version": "0.0.1",
    "support_versions": "^0.19.0"
}

其中面板只用到了 name,其它字段的目的是为了增加拓展性(比如给第三方程序使用)

uubulb commented 1 month ago

那几个没人维护的主题可不可以不内置了,放到其它地方

naiba commented 1 month ago

那几个没人维护的主题可不可以不内置了,放到其它地方

不可以 测试过没有custom文件夹会不会panic吗

uubulb commented 1 month ago

那几个没人维护的主题可不可以不内置了,放到其它地方

不可以 测试过没有custom文件夹会不会panic吗

不会,

naiba commented 1 month ago

改下 https://github.com/nezhahq/skeleton-custom-theme

naiba commented 1 month ago

dashboard custom theme 不影响?

uubulb commented 1 month ago

dashboard custom theme 不影响?

没改