改进安装界面中的小细节

This commit is contained in:
GoEdgeLab
2021-04-18 15:41:47 +08:00
parent c5b0bd277c
commit a65d6c33f7
4 changed files with 9 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ import (
"path/filepath" "path/filepath"
) )
// API配置 // APIConfig API配置
type APIConfig struct { type APIConfig struct {
RPC struct { RPC struct {
Endpoints []string `yaml:"endpoints"` Endpoints []string `yaml:"endpoints"`
@@ -18,7 +18,7 @@ type APIConfig struct {
Secret string `yaml:"secret"` Secret string `yaml:"secret"`
} }
// 加载API配置 // LoadAPIConfig 加载API配置
func LoadAPIConfig() (*APIConfig, error) { func LoadAPIConfig() (*APIConfig, error) {
// 候选文件 // 候选文件
localFile := Tea.ConfigFile("api.yaml") localFile := Tea.ConfigFile("api.yaml")
@@ -59,7 +59,7 @@ func LoadAPIConfig() (*APIConfig, error) {
return config, nil return config, nil
} }
// 写入API配置 // WriteFile 写入API配置
func (this *APIConfig) WriteFile(path string) error { func (this *APIConfig) WriteFile(path string) error {
data, err := yaml.Marshal(this) data, err := yaml.Marshal(this)
if err != nil { if err != nil {

View File

@@ -6,7 +6,7 @@ import (
var isConfigured bool var isConfigured bool
// 判断系统是否已经配置过 // IsConfigured 判断系统是否已经配置过
func IsConfigured() bool { func IsConfigured() bool {
if isConfigured { if isConfigured {
return true return true

View File

@@ -47,8 +47,9 @@
<!-- 介绍 --> <!-- 介绍 -->
<div v-show="step == STEP_INTRO"> <div v-show="step == STEP_INTRO">
<div>感谢你选择使用<strong>Edge</strong>集群服务系统,下面让我们一起开始配置系统。</div> <div>感谢你选择使用<strong>GoEdge</strong>集群服务系统,下面让我们一起开始配置系统。</div>
<div class="margin">在这之前如果你还没有可用的MySQL数据库请先安装数据库再进行。</div> <div class="margin">在这之前如果你还没有可用的MySQL数据库请先安装数据库再进行。</div>
<div class="margin" style="color: grey">免责声明GoEdge软件开发者并不对您的软件使用方法、服务对象、服务内容负道德或法律上的约束责任在使用本软件时产生的一切法律风险自负。</div>
<button class="ui button primary" style="margin-top: 10em" type="button" @click.prevent="goIntroNext()">开始<i class="icon long arrow right"></i></button> <button class="ui button primary" style="margin-top: 10em" type="button" @click.prevent="goIntroNext()">开始<i class="icon long arrow right"></i></button>
</div> </div>

View File

@@ -110,6 +110,8 @@ Tea.context(function () {
} }
this.finishSuccess = function () { this.finishSuccess = function () {
teaweb.success("html:恭喜你!安装完成!<br/>请记住你创建的管理员账号,现在跳转到登录界面。", "/") teaweb.success("html:恭喜你!安装完成!<br/>请记住你创建的管理员账号,现在跳转到登录界面。", function () {
window.location = "/"
})
} }
}) })