Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用自定义的前端主题? #204

Open
955s opened this issue Aug 11, 2023 · 6 comments
Open

如何使用自定义的前端主题? #204

955s opened this issue Aug 11, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@955s
Copy link

955s commented Aug 11, 2023

root@Status:/usr/sju/sh# find / -name hotaru-theme
/var/lib/docker/overlay2/d60074e6c723e2c833309d2f278035e2b262aa4814631a41c1a5f50113810857/diff/app/packages/nodestatus-server/build/dist/hotaru-theme
/var/lib/docker/overlay2/f9af601c4b9ac14ebd20903218fd084d3d29429a5f9d0e8980d8b937d6d68e29/merged/app/packages/nodestatus-server/build/dist/hotaru-theme
/var/lib/docker/overlay2/f9af601c4b9ac14ebd20903218fd084d3d29429a5f9d0e8980d8b937d6d68e29/merged/app/web/hotaru-theme
/var/lib/docker/overlay2/0e3676fe7f1acb405585ed70ad4dd0ac85f7ece2d773890bccf24b55c97c9a5a/diff/app/web/hotaru-theme
以上三个路径分别代表啥

/var/lib/docker/overlay2/f9af601c4b9ac14ebd20903218fd084d3d29429a5f9d0e8980d8b937d6d68e29/merged/app/packages/nodestatus-server/build/dist
尝试修改这个路径下的hotaru-theme主题 发现确实有变化 但是数据会不动 这个修改版的主题在ServerStatus-Hotaru下可以正常使用
请问是否还有其他地方需要修改
http://status.hagoni.org/Status.tar.gz

@cokemine
Copy link
Owner

你是编译的 https://github.com/cokemine/hotaru_theme 这个吗,这个不能在NodeStatus下使用
你可以把 https://github.com/cokemine/nodestatus 拉下来
代码在 web/hotaru-theme

pnpm app:web build 编译 hotaru-theme前端

@cokemine
Copy link
Owner

一般建议修改完前端直接 docker build就可以自己打包成docker镜像了,也不需要在映射目录文件了

@955s
Copy link
Author

955s commented Feb 10, 2024

一般修改完前端直接docker build就可以自己生成docker镜像了,也建议不需要在mapdirectory文件了

你能做个去除cover.png大图的主题么 或者加个开关 这个图片太占位置了

@cokemine
Copy link
Owner

cokemine commented Feb 11, 2024

一般修改完前端直接docker build就可以自己生成docker镜像了,也建议不需要在mapdirectory文件了

你能做个去除cover.png大图的主题么 或者加个开关 这个图片太占位置了

目前这个cover会带一个hash值。更新可能会导致这个文件名发生变化,我可以把这个文件名固定住,这样就可以直接用docker目录映射把他删掉或者替换了

@955s
Copy link
Author

955s commented Feb 12, 2024

映射/app/web这个目录吗?你修改的web目录需要重新编译吗?

@cokemine cokemine added the enhancement New feature or request label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants