Skip to content

Commit

Permalink
update link (#14)
Browse files Browse the repository at this point in the history
* 更改项目配置 #13
* 更改前端link,logo
* 增加一些系统信息

---------

Co-authored-by: Zirui Cai <[email protected]>
  • Loading branch information
SAKURA-CAT and Feudalman authored Jun 14, 2024
1 parent d25d47b commit 5be186d
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 15 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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文件,从中获取版本号
Expand All @@ -69,8 +68,6 @@ include = [
"/test", # 包含一些测试脚本,确保测试成功
"/README.md", # 包含readme
"/requirements.txt", # 包含依赖
"/requirements-swan.txt", # 包含可选依赖
"/.config/copy_frontend.py", # 包含拷贝前端文件的脚本
"/package.json", # 包含前端的package.json文件
]

Expand Down
2 changes: 1 addition & 1 deletion swanboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swanboard",
"version": "0.1.2b2",
"version": "0.1.2b3",
"description": "Dashboard for Swanlab",
"python": "true"
}
7 changes: 3 additions & 4 deletions test/start_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions vue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/vnd.microsoft.icon" href="/src/assets/logo.ico" />
<link rel="icon" type="image/png" href="/src/assets/logo.png" />
<link rel="apple-touch-icon" href="/src/assets/logo.png" />
<meta name="apple-mobile-web-app-title" content="SwanLab" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SwanLab</title>
</head>
Expand Down
Binary file modified vue/src/assets/logo.ico
Binary file not shown.
Binary file added vue/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion vue/src/assets/swanlab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion vue/src/i18n/en-US/experiment.json5
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@
gpu_cores: 'GPU count',
gpu_type: 'GPU type',
logdir: 'Logdir',
swanlab: 'SwanLab Version'
swanlab: 'SwanLab Version',
verbose: 'Python Verbose',
pid: 'PID'
},
empty: {
requirements: 'No requirements found'
Expand Down
4 changes: 3 additions & 1 deletion vue/src/i18n/zh-CN/experiment.json5
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
python: 'Python Version',
start_time: 'Start Time',
swanlab: 'SwanLab Version',
workspace: 'Run path'
workspace: 'Run path',
verbose: 'Python详细信息',
pid: 'PID'
},
navs: {
hardware: 'System Hardware',
Expand Down
4 changes: 2 additions & 2 deletions vue/src/layouts/main/components/HeaderBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ defineProps({
const links = ref([
{
title: 'Docs',
link: 'https://geektechstudio.feishu.cn/wiki/space/7310593325374013444?ccm_open_type=lark_wiki_spaceLink&open_tab_from=wiki_home'
link: 'https://docs.swanlab.cn/zh/guide_cloud/general/what-is-swanlab.html'
},
{
title: 'Examples',
link: 'https://github.com/SwanHubX/SwanLab-examples'
link: 'https://docs.swanlab.cn/zh/examples/mnist.html'
},
{
title: 'Feedback',
Expand Down
8 changes: 8 additions & 0 deletions vue/src/views/experiment/pages/environment/pages/EnvIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const overview = computed(() => {
{
key: 'OS',
value: system.os
},
{
key: 'pid',
value: system.pid
}
]
})
Expand All @@ -70,6 +74,10 @@ const systems = computed(() => {
key: 'python',
value: system.python
},
{
key: 'verbose',
value: system.python_verbose
},
{
key: 'executable',
value: system.executable,
Expand Down

0 comments on commit 5be186d

Please sign in to comment.