chore: rebrand public site as MirrorITS
This commit is contained in:
@@ -111,7 +111,7 @@ func TestAnnouncementPublishingLifecycle(t *testing.T) {
|
||||
|
||||
func TestAnnouncementsDirectNavigation(t *testing.T) {
|
||||
c := fixture(t)
|
||||
if err := os.WriteFile(filepath.Join(c.app.cfg.Static, "index.html"), []byte("<!doctype html><title>MirrorOUC</title>"), 0600); err != nil {
|
||||
if err := os.WriteFile(filepath.Join(c.app.cfg.Static, "index.html"), []byte("<!doctype html><title>MirrorITS</title>"), 0600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, path := range []string{"/announcements", "/announcements/"} {
|
||||
|
||||
@@ -40,7 +40,7 @@ func TestPublishedHelpAndDeepLinks(t *testing.T) {
|
||||
for _, name := range []string{"hidden", "empty", "missing", "bad%2Fname"} {
|
||||
status(t, c.call("GET", "/api/v1/help/"+name, nil, false), 404)
|
||||
}
|
||||
const html = "<!doctype html><title>MirrorOUC help</title>"
|
||||
const html = "<!doctype html><title>MirrorITS help</title>"
|
||||
if err := os.WriteFile(filepath.Join(c.app.cfg.Static, "index.html"), []byte(html), 0600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@ func main() {
|
||||
defer cancel()
|
||||
srv.Shutdown(stop)
|
||||
}()
|
||||
log.Printf("MirrorOUC API listening on %s", cfg.Listen)
|
||||
log.Printf("MirrorITS API listening on %s", cfg.Listen)
|
||||
if err = srv.ListenAndServe(); err != nil && err != http.ErrServerClosed {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
+2
-2
@@ -100,8 +100,8 @@ type Session struct {
|
||||
|
||||
func initialSettings() Settings {
|
||||
return Settings{
|
||||
Name: Localized{"zh-CN": "中国海洋大学软件镜像源", "en-US": "Ocean University of China Software Mirrors"},
|
||||
Description: Localized{"zh-CN": "中国海洋大学软件镜像源(MirrorOUC)由中国海洋大学爱特工作室承建。", "en-US": "MirrorOUC is built by IT Studio, Ocean University of China."},
|
||||
Name: Localized{"zh-CN": "爱特开源软件镜像站", "en-US": "ITStudio Open Source Software Mirrors"},
|
||||
Description: Localized{"zh-CN": "爱特开源软件镜像站(MirrorITS)由中国海洋大学爱特工作室开发部署。", "en-US": "MirrorITS is developed and hosted by ITStudio at Ocean University of China."},
|
||||
LogoLight: "/assets/mirrorOUC_dark.png", LogoDark: "/assets/mirrorOUC.png", Favicon: "/assets/ouc-seal.png", Avatar: "/assets/ouc-seal.png", Email: "contact@itstudio.club",
|
||||
Address: Localized{"zh-CN": "山东省青岛市中国海洋大学西海岸校区 · 信息南楼五八创新创业工坊", "en-US": "58 Innovation Workshop, Information South Building, West Coast Campus, Ocean University of China, Qingdao, Shandong"},
|
||||
RelatedLinks: initialRelatedLinks(),
|
||||
|
||||
Reference in New Issue
Block a user