Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zendata
提交
e66a68e0
Z
zendata
项目概览
易企天创
/
zendata
10 个月 前同步成功
通知
17
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e66a68e0
编写于
2月 27, 2023
作者:
雨
雨爱无痕
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0'
上级
5d2c4231
b8dce997
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
26 addition
and
33 deletion
+26
-33
.gitignore
.gitignore
+6
-6
Makefile
Makefile
+5
-4
client/src/app/package.json
client/src/app/package.json
+1
-1
pkg/utils/file/file.go
pkg/utils/file/file.go
+8
-7
pkg/utils/i118/i118.go
pkg/utils/i118/i118.go
+5
-4
ui/src/layout/Header.vue
ui/src/layout/Header.vue
+1
-0
ui/src/layout/Update.vue
ui/src/layout/Update.vue
+0
-11
未找到文件。
.gitignore
浏览文件 @
e66a68e0
...
...
@@ -7,14 +7,14 @@
/demo/out/
/conf/
/bin/
/test/z
tf
/output/
/test/z
tf
/.idea/
/test/z
d
/output/
/test/z
d
/.idea/
/nohup.out
/test/z
tf
/conf/
/test/z
tf
/log/
/test/z
d
/conf/
/test/z
d
/log/
/demo/out/
/test/z
tf
/._config.yaml
/test/z
tf
/._default.yaml
/test/z
d
/._config.yaml
/test/z
d
/._default.yaml
/._config.yaml
/._default.yaml
/res/res.go
...
...
Makefile
浏览文件 @
e66a68e0
...
...
@@ -79,7 +79,7 @@ compile_server_win64:
-o
${BIN_DIR}
/win64/
${PROJECT}
-server
.exe
${SERVER_MAIN_FILE}
@rm
-rf
"${CLIENT_OUT_DIR_UPGRADE}win64"
&&
mkdir
-p
"${CLIENT_OUT_DIR_UPGRADE}win64"
&&
\
cp
${BIN_DIR}/win64/${PROJECT}-server.exe
"${CLIENT_OUT_DIR_UPGRADE}win64/
${PROJECT}
.exe"
cp
${BIN_DIR}/win64/${PROJECT}-server.exe
"${CLIENT_OUT_DIR_UPGRADE}win64/
server
.exe"
compile_server_win32
:
@
echo
'start compile server win32'
...
...
@@ -89,7 +89,7 @@ compile_server_win32:
-o
${BIN_DIR}
/win32/
${PROJECT}
-server
.exe
${SERVER_MAIN_FILE}
@rm
-rf
"${CLIENT_OUT_DIR_UPGRADE}win32"
&&
mkdir
-p
"${CLIENT_OUT_DIR_UPGRADE}win32"
&&
\
cp
${BIN_DIR}/win32/${PROJECT}-server.exe
"${CLIENT_OUT_DIR_UPGRADE}win32/
${PROJECT}
.exe"
cp
${BIN_DIR}/win32/${PROJECT}-server.exe
"${CLIENT_OUT_DIR_UPGRADE}win32/
server
.exe"
compile_server_linux
:
@
echo
'start compile server linux'
...
...
@@ -105,7 +105,7 @@ else
endif
@rm
-rf
"${CLIENT_OUT_DIR_UPGRADE}linux"
&&
mkdir
-p
"${CLIENT_OUT_DIR_UPGRADE}linux"
&&
\
cp
${BIN_DIR}/linux/${PROJECT}-server
"${CLIENT_OUT_DIR_UPGRADE}linux/
${PROJECT}
"
cp
${BIN_DIR}/linux/${PROJECT}-server
"${CLIENT_OUT_DIR_UPGRADE}linux/
server
"
compile_server_mac
:
@
echo
'start compile server mac'
...
...
@@ -119,7 +119,7 @@ compile_server_mac:
# gui
package_gui_win64_client
:
@
echo
'start package gui win64'
@
rm
-rf
${CLIENT_BIN_DIR}
/
*
&&
mkdir
${CLIENT_BIN_DIR}
win32
@
rm
-rf
${CLIENT_BIN_DIR}
/
*
&&
mkdir
-p
${CLIENT_BIN_DIR}
win32
@
cp
-rf
${BIN_DIR}
/win64/
${PROJECT}
-server
.exe
${CLIENT_BIN_DIR}
win32/
${PROJECT}
.exe
@cd
client
&&
npm
run
package-win64
&&
cd
..
...
...
@@ -222,6 +222,7 @@ copy_files:
cp
-r
.zd.conf
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
cp
-r
bin/data
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
cp
-r
bin/runtime
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
cp
-r
bin/yaml
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
cp
-r
bin/users
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
cp
-r
bin/demo
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
cp
-r
bin/tmp
"${CLIENT_OUT_DIR_EXECUTABLE}$${platform}"
;
\
...
...
client/src/app/package.json
浏览文件 @
e66a68e0
...
...
@@ -7,7 +7,7 @@
"name"
:
"青岛易企天创管理咨询有限公司"
,
"email"
:
"chenqi@cnezsoft.com"
},
"homepage"
:
"https://
ztf.im
"
,
"homepage"
:
"https://
www.zendata.cn
"
,
"company"
:
"青岛易企天创管理咨询有限公司"
,
"license"
:
"GPL 3.0"
,
"copyright"
:
"Copyright (C) 2019-2022"
,
...
...
pkg/utils/file/file.go
浏览文件 @
e66a68e0
...
...
@@ -3,6 +3,14 @@ package fileUtils
import
(
"errors"
"fmt"
"io/ioutil"
"math/rand"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
constant
"github.com/easysoft/zendata/internal/pkg/const"
commonUtils
"github.com/easysoft/zendata/pkg/utils/common"
i118Utils
"github.com/easysoft/zendata/pkg/utils/i118"
...
...
@@ -11,13 +19,6 @@ import (
"github.com/fatih/color"
"github.com/oklog/ulid/v2"
"github.com/snowlyg/helper/str"
"io/ioutil"
"math/rand"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
)
func
ReadFile
(
filePath
string
)
string
{
...
...
pkg/utils/i118/i118.go
浏览文件 @
e66a68e0
...
...
@@ -2,14 +2,15 @@ package i118Utils
import
(
"encoding/json"
"github.com/easysoft/zendata"
"os"
"path/filepath"
zd
"github.com/easysoft/zendata"
constant
"github.com/easysoft/zendata/internal/pkg/const"
"github.com/easysoft/zendata/pkg/utils/common"
commonUtils
"github.com/easysoft/zendata/pkg/utils/common"
"github.com/easysoft/zendata/pkg/utils/vari"
"golang.org/x/text/language"
"golang.org/x/text/message"
"os"
"path/filepath"
)
var
I118Prt
*
message
.
Printer
...
...
ui/src/layout/Header.vue
浏览文件 @
e66a68e0
...
...
@@ -179,6 +179,7 @@ export default {
.window-btn {
margin-left: 8px;
cursor: pointer;
}
}
...
...
ui/src/layout/Update.vue
浏览文件 @
e66a68e0
...
...
@@ -44,10 +44,7 @@ export default {
let
isElectron
=
false
let
ipcRenderer
=
undefined
let
version
=
null
return
{
isVisible
,
currVersion
,
newVersion
,
forceUpdate
,
downloadingPercent
,
...
...
@@ -57,9 +54,6 @@ export default {
}
},
created
()
{
console
.
log
(
'
created
'
)
this
.
isElectron
=
!!
window
.
require
if
(
this
.
isElectron
)
{
const
remote
=
window
.
require
(
'
@electron/remote
'
)
...
...
@@ -114,11 +108,7 @@ export default {
onCancel
()
{
console
.
log
(
'
onCancel
'
)
this
.
isVisible
=
false
},
}
}
</
script
>
...
...
@@ -134,4 +124,3 @@ export default {
}
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录