Skip to content

Commit 8251fb1

Browse files
committed
bug fix
1 parent 03789ed commit 8251fb1

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

.air.toml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Config file for [Air](https://github.com/cosmtrek/air) in TOML format
2+
3+
# Working directory
4+
# . or absolute path, please note that the directories following must be under root.
5+
root = "."
6+
tmp_dir = "tmp"
7+
8+
[build]
9+
# Just plain old shell command. You could use `make` as well.
10+
cmd = "go build -o ./tmp/main ."
11+
# Binary file yields from `cmd`.
12+
bin = "tmp/main"
13+
# Customize binary.
14+
full_bin = "APP_ENV=dev APP_USER=air ./tmp/main"
15+
# Watch these filename extensions.
16+
include_ext = ["go", "tpl", "tmpl", "html"]
17+
# Ignore these filename extensions or directories.
18+
exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules", "upload"]
19+
# Watch these directories if you specified.
20+
include_dir = []
21+
# Exclude files.
22+
exclude_file = []
23+
# Exclude specific regular expressions.
24+
exclude_regex = ["_test.go"]
25+
# Exclude unchanged files.
26+
exclude_unchanged = true
27+
# Follow symlink for directories
28+
follow_symlink = true
29+
# This log file places in your tmp_dir.
30+
log = "air.log"
31+
# It's not necessary to trigger build each time file changes if it's too frequent.
32+
delay = 1000 # ms
33+
# Stop running old binary when build errors occur.
34+
stop_on_error = true
35+
# Send Interrupt signal before killing process (windows does not support this feature)
36+
send_interrupt = false
37+
# Delay after sending Interrupt signal
38+
kill_delay = 500 # ms
39+
40+
[log]
41+
# Show log time
42+
time = false
43+
44+
[color]
45+
# Customize each part's color. If no color found, use the raw app log.
46+
main = "magenta"
47+
watcher = "cyan"
48+
build = "yellow"
49+
runner = "green"
50+
51+
[misc]
52+
# Delete tmp directory on exit
53+
clean_on_exit = true

frontend/src/views/dashboard/DashBoard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{ host.os }} {{ host.kernelVersion }}
2020
{{ host.kernelArch }})
2121
</p>
22-
<p>
22+
<p v-if="cpu_info">
2323
<translate>CPU:</translate>
2424
{{ cpu_info[0]?.modelName }} * {{ cpu_info.length }}
2525
</p>

frontend/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"1.2.0","build_id":5,"total_build":45}
1+
{"version":"1.2.0","build_id":7,"total_build":47}

0 commit comments

Comments
 (0)