commit2ed4e3e307Author: DAI Mingchen <daimingchen@mail.ustc.edu.cn> Date: Thu Jul 25 11:48:00 2024 +0000 resolved WARN NoEmptyContinuation (grammar mistakes), and removed trivial unit test for hCAPTCHA commit690157811bAuthor: DAI Mingchen <daimingchen@mail.ustc.edu.cn> Date: Thu Jul 25 10:21:39 2024 +0000 fix: checkout the corresponding branch(master or dev) commit046ff63e42Author: DAI Mingchen <daimingchen@mail.ustc.edu.cn> Date: Thu Jul 25 10:01:24 2024 +0000 test new CI pipeline workflow in the org repo, with a bunch of ENV vars commitfaf7f51d85Author: 戴明辰 <daimingchen@mail.ustc.edu.cn> Date: Thu Jul 25 07:59:31 2024 +0000 !1 DevStar Studio 界面原型 + CI流水线测试通过 * finalize this PoC repo, and migrate to the main repo (as a dev branch) * bugFix: nullptr dereference @ routers/web/auth/wechat_utils.go * bugFix: CAPTCHA needs manual reloading * Updated UI * Changed logo and favicon * Made WeChat QR optional (will not cause HTTP 500 Internal Error), and … * Added Unit Test in CI workflow, and removed redundant tests in dev container * Compliance with open source licensing requirements * Fix workflow: only exec 'docker rm' if there are dangling volumes * Removed Magic values about: Docker registry(URL, username), k8s(nanesp… * fix mistakes: git checkout branch should be master rather than the sta… * Updated UI layouts and build scripts * Updated copyright info and ICP License ID at page footer * Updated ICP License ID at page footer * Updated code ownership: web footer, logo and favicon * Updated Internationalization(i18n): removed languages other than CN an…
30 lines
730 B
Go
30 lines
730 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package setting
|
|
|
|
import "code.gitea.io/gitea/modules/log"
|
|
|
|
type OtherConfig struct {
|
|
ShowFooterVersion bool
|
|
ShowFooterTemplateLoadTime bool
|
|
ShowFooterPoweredBy bool
|
|
EnableFeed bool
|
|
EnableSitemap bool
|
|
}
|
|
|
|
var Other = OtherConfig{
|
|
ShowFooterVersion: false,
|
|
ShowFooterTemplateLoadTime: false,
|
|
ShowFooterPoweredBy: true,
|
|
EnableSitemap: true,
|
|
EnableFeed: true,
|
|
}
|
|
|
|
func loadOtherFrom(rootCfg ConfigProvider) {
|
|
sec := rootCfg.Section("other")
|
|
if err := sec.MapTo(&Other); err != nil {
|
|
log.Fatal("Failed to map [other] settings: %v", err)
|
|
}
|
|
}
|