mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-26 08:31:52 +08:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42d1e35913 | ||
|
|
74f512d214 | ||
|
|
b945069117 |
+9
-2
@@ -1,7 +1,14 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
||||||
|
### [0.1.4-beta-fix-1](https://github.com/Li4n0/revsuit/compare/v0.1.4-beta...v0.1.4-beta-fix-1) (2021-05-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **frontend:** fix the problem of autoRefresh failure ([#24](https://github.com/Li4n0/revsuit/issues/24)) ([b945069](https://github.com/Li4n0/revsuit/commit/b945069117fec6eb5de88557da5d4c2c996cfd90))
|
||||||
|
* **http:** fix the problem that ip_header setting does not take effect ([#23](https://github.com/Li4n0/revsuit/issues/23)) ([74f512d](https://github.com/Li4n0/revsuit/commit/74f512d2140fb97128acf56be803d1bd3b888fa3))
|
||||||
|
|
||||||
### [0.1.4-beta](https://github.com/Li4n0/revsuit/compare/v0.1.3-beta-fix1...v0.1.4-beta) (2021-05-27)
|
### [0.1.4-beta](https://github.com/Li4n0/revsuit/compare/v0.1.3-beta-fix1...v0.1.4-beta) (2021-05-27)
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
.custom-icons-list[data-v-05a908c2] .anticon{margin-right:6px}body[data-v-2f6f0625],html[data-v-2f6f0625]{height:100%;margin:0}.fade-transform-enter-active[data-v-2f6f0625],.fade-transform-leave-active[data-v-2f6f0625]{transition:all .3s;opacity:0}.fade-transform-enter[data-v-2f6f0625],.fade-transform-leave[data-v-2f6f0625]{opacity:0}.fade-transform-enter-to[data-v-2f6f0625]{opacity:0}.ant-menu-item>span>a[data-v-2f6f0625]{color:hsla(0,0%,100%,.65)}.ant-menu-item-selected>span>a[data-v-2f6f0625]{color:#fff}#app[data-v-2f6f0625]{height:100%}#app .trigger[data-v-2f6f0625]{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}#app .trigger[data-v-2f6f0625]:hover{color:#1890ff}#app .logo[data-v-2f6f0625]{height:32px;background:#0a1d2d;margin:16px;text-align:center;font-size:1.2rem;color:#fff;padding-bottom:5px;border-bottom:2px solid #b6befa}.copyright[data-v-2f6f0625]{color:#888;text-align:right;margin-right:1rem}
|
.custom-icons-list[data-v-05a908c2] .anticon{margin-right:6px}body[data-v-57bd8120],html[data-v-57bd8120]{height:100%;margin:0}.fade-transform-enter-active[data-v-57bd8120],.fade-transform-leave-active[data-v-57bd8120]{transition:all .3s;opacity:0}.fade-transform-enter[data-v-57bd8120],.fade-transform-leave[data-v-57bd8120]{opacity:0}.fade-transform-enter-to[data-v-57bd8120]{opacity:0}.ant-menu-item>span>a[data-v-57bd8120]{color:hsla(0,0%,100%,.65)}.ant-menu-item-selected>span>a[data-v-57bd8120]{color:#fff}#app[data-v-57bd8120]{height:100%}#app .trigger[data-v-57bd8120]{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}#app .trigger[data-v-57bd8120]:hover{color:#1890ff}#app .logo[data-v-57bd8120]{height:32px;background:#0a1d2d;margin:16px;text-align:center;font-size:1.2rem;color:#fff;padding-bottom:5px;border-bottom:2px solid #b6befa}.copyright[data-v-57bd8120]{color:#888;text-align:right;margin-right:1rem}
|
||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -151,9 +151,6 @@ export default {
|
|||||||
if (localStorage.getItem("autoRefresh") === null) {
|
if (localStorage.getItem("autoRefresh") === null) {
|
||||||
this.autoRefresh = true;
|
this.autoRefresh = true;
|
||||||
}
|
}
|
||||||
if (this.autoRefresh && this.isLogMode) {
|
|
||||||
this.timing()
|
|
||||||
}
|
|
||||||
this.GetVersion()
|
this.GetVersion()
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -177,8 +174,10 @@ export default {
|
|||||||
localStorage.setItem('autoRefresh', val)
|
localStorage.setItem('autoRefresh', val)
|
||||||
},
|
},
|
||||||
isLogMode(val) {
|
isLogMode(val) {
|
||||||
if (!val) {
|
if (!val && this.timer) {
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
|
} else if (this.autoRefresh && !this.timer) {
|
||||||
|
this.timing()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
refreshInterval(val) {
|
refreshInterval(val) {
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ type Config struct {
|
|||||||
Database string
|
Database string
|
||||||
LogLevel string `yaml:"log_level"`
|
LogLevel string `yaml:"log_level"`
|
||||||
Notice noticeConfig
|
Notice noticeConfig
|
||||||
rhttp.Config
|
HTTP rhttp.Config
|
||||||
DNS dns.Config
|
DNS dns.Config
|
||||||
MySQL mysql.Config
|
MySQL mysql.Config
|
||||||
RMI rmi.Config
|
RMI rmi.Config
|
||||||
FTP ftp.Config
|
FTP ftp.Config
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,8 +204,8 @@ func New(c *Config) *Revsuit {
|
|||||||
if c.Token != "" {
|
if c.Token != "" {
|
||||||
s.http.SetToken(c.Token)
|
s.http.SetToken(c.Token)
|
||||||
}
|
}
|
||||||
if c.IpHeader != "" {
|
if c.HTTP.IpHeader != "" {
|
||||||
s.http.SetIpHeader(c.IpHeader)
|
s.http.SetIpHeader(c.HTTP.IpHeader)
|
||||||
}
|
}
|
||||||
if c.Domain != "" {
|
if c.Domain != "" {
|
||||||
s.dns.SetServerDomain(c.Domain)
|
s.dns.SetServerDomain(c.Domain)
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ func (revsuit *Revsuit) getPlatformConfig(c *gin.Context) {
|
|||||||
res["ExternalIP"] = revsuit.config.ExternalIP
|
res["ExternalIP"] = revsuit.config.ExternalIP
|
||||||
res["Database"] = revsuit.config.Database
|
res["Database"] = revsuit.config.Database
|
||||||
res["LogLevel"] = revsuit.config.LogLevel
|
res["LogLevel"] = revsuit.config.LogLevel
|
||||||
res["IpHeader"] = revsuit.config.IpHeader
|
res["IpHeader"] = revsuit.config.HTTP.IpHeader
|
||||||
|
|
||||||
c.JSON(200, res)
|
c.JSON(200, res)
|
||||||
}
|
}
|
||||||
@@ -194,8 +194,8 @@ func (revsuit *Revsuit) updatePlatformConfig(c *gin.Context) {
|
|||||||
log.Info("Update platform config [database] to %s", form["Database"])
|
log.Info("Update platform config [database] to %s", form["Database"])
|
||||||
}
|
}
|
||||||
|
|
||||||
if form["IpHeader"] != revsuit.config.IpHeader {
|
if form["IpHeader"] != revsuit.config.HTTP.IpHeader {
|
||||||
revsuit.config.IpHeader = form["IpHeader"]
|
revsuit.config.HTTP.IpHeader = form["IpHeader"]
|
||||||
revsuit.http.SetIpHeader(form["IpHeader"])
|
revsuit.http.SetIpHeader(form["IpHeader"])
|
||||||
log.Info("Update http config [ip_header] to %s", form["IpHeader"])
|
log.Info("Update http config [ip_header] to %s", form["IpHeader"])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user