From 5be186d2851a172772563b3aea307f698d9a359c Mon Sep 17 00:00:00 2001 From: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:21:59 +0800 Subject: [PATCH] update link (#14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 更改项目配置 #13 * 更改前端link,logo * 增加一些系统信息 --------- Co-authored-by: Zirui Cai <74649535+Feudalman@users.noreply.github.com> --- pyproject.toml | 7 ++----- swanboard/package.json | 2 +- test/start_server.py | 7 +++---- vue/index.html | 3 +++ vue/src/assets/logo.ico | Bin 4286 -> 4286 bytes vue/src/assets/logo.png | Bin 0 -> 10655 bytes vue/src/assets/swanlab.svg | 13 ++++++++++++- vue/src/i18n/en-US/experiment.json5 | 4 +++- vue/src/i18n/zh-CN/experiment.json5 | 4 +++- vue/src/layouts/main/components/HeaderBar.vue | 4 ++-- .../pages/environment/pages/EnvIndex.vue | 8 ++++++++ 11 files changed, 37 insertions(+), 15 deletions(-) create mode 100644 vue/src/assets/logo.png diff --git a/pyproject.toml b/pyproject.toml index 203e562..a886bfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,8 @@ classifiers = [# 项目分类 [project.urls] # 项目链接 "Homepage" = "https://swanhub.co" -"Source" = "https://github.com/SwanHubX/SwanLab" -"Bug Reports" = "https://github.com/SwanHubX/SwanLab/issues" -"Documentation" = "https://geektechstudio.feishu.cn/wiki/space/7310593325374013444?ccm_open_type=lark_wiki_spaceLink&open_tab_from=wiki_home" +"Source" = "https://github.com/SwanHubX/SwanLab-Dashboard" +"Bug Reports" = "https://github.com/SwanHubX/SwanLab-Dashboard/issues" [tool.hatch.version] # 动态设置项目版本 path = "swanboard/package.json" # package.json文件,从中获取版本号 @@ -69,8 +68,6 @@ include = [ "/test", # 包含一些测试脚本,确保测试成功 "/README.md", # 包含readme "/requirements.txt", # 包含依赖 - "/requirements-swan.txt", # 包含可选依赖 - "/.config/copy_frontend.py", # 包含拷贝前端文件的脚本 "/package.json", # 包含前端的package.json文件 ] diff --git a/swanboard/package.json b/swanboard/package.json index 0e94f50..9965390 100644 --- a/swanboard/package.json +++ b/swanboard/package.json @@ -1,6 +1,6 @@ { "name": "swanboard", - "version": "0.1.2b2", + "version": "0.1.2b3", "description": "Dashboard for Swanlab", "python": "true" } diff --git a/test/start_server.py b/test/start_server.py index 4bc6c5f..c058ce5 100644 --- a/test/start_server.py +++ b/test/start_server.py @@ -12,12 +12,11 @@ from tutils.config import SWANLAB_LOG_DIR from swanboard.db import connect import os -from swanboard import run +from swanboard import SwanBoardRun os.environ["SWANLAB_LOG_DIR"] = SWANLAB_LOG_DIR - -connect() +connect(SWANLAB_LOG_DIR) if __name__ == "__main__": - run("debug") + SwanBoardRun.run(path=SWANLAB_LOG_DIR, host="0.0.0.0", port=6092) diff --git a/vue/index.html b/vue/index.html index 82c77dc..d74b115 100644 --- a/vue/index.html +++ b/vue/index.html @@ -3,6 +3,9 @@
+ + +Yc~m2}5;)r4iid?n;>;JQW#rvJjVsV#NvRQg#vbev_R-L$sOZQB;#DHvnVj
zQ%G_cI?bx+qFqs~inY?9apk(7CebuG15Gr {2-Za-RbkV$%w^6EGxUfjm?#w0PJC^$sVDIw06eJQu=2NhxHrb+JY-U%C0}
zwdNts%3plmuV5CUr7xG2$IKp2TYua2*%UJwcQ6&sA0h (hE!p|rs^YTAg|APgBHA^P$d
z)Vr2^DeG;N-$_sljv?Pr9m!mAxVdJl
z?3Ij+=72HC1O}`rr4u?T7k%?(t-)ky<9}N}#mY4-G6W8CgSN>yj?-AAC{RMGg71o9
zL!gbfX)^K
C&`eL
zok&FsgmkCRLN?xIOfU(#6sEu!LjV(EU5?)UNdbHC5)e^bA>)F{V4ac{;!Eq@62tOD
z>)ZhW)Xf&6bN7+(7g}~$uTL^#>6dUKw0c`$rNq<;ju@T8&WJ3^Fv?KJ`o_4DyfW#t
zNb+D;&SqeqX_d)}HiUtv#BIiAxXc74N53%mDP(SykgzT*S`cn4NaVp`D``<$jFm0p
z1LsCl^qXT^nLhyhgML-S-bjl$VGK*twBD4izgMYzrNPqHMXIe?s)<^{c;RBWw)9z}
z8ho4;tSjRJ+?5kc@=2#RM31y+8R@HeJ27xtU=6#oMOz3V8y5qt^+^D&tzCiFS%u(0
z$_cs=2Vv^dfEU&1a@drGw=2|e=oER%5|e9KX{f;IDNZ1ZxzWaeO_|e&aWRkQsvjnr
z^>44oY(%+rAi#JSz0X^UCL?K}s2C+BcQhHn10_TcKm0NB