From bbe0aaf88e46ccfe5fca8c74cf9897174976a39c Mon Sep 17 00:00:00 2001 From: yaosanqi137 Date: Mon, 2 Nov 2026 10:58:32 +0800 Subject: [PATCH] chore: rebrand public site as MirrorITS --- README.md | 4 ++-- backend/announcements_test.go | 2 +- backend/help_test.go | 2 +- backend/main.go | 2 +- backend/models.go | 4 ++-- directory.html | 2 +- index.html | 2 +- src/App.vue | 2 +- src/directory/main.ts | 2 +- src/locales/en-US/announcements.ts | 4 ++-- src/locales/en-US/common.ts | 12 ++++++------ src/locales/zh-CN/announcements.ts | 4 ++-- src/locales/zh-CN/common.ts | 12 ++++++------ 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 94e2734..5dac3a3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# MirrorOUC +# MirrorITS -爱特软件镜像源的前端与管理服务,由[中国海洋大学爱特工作室](https://www.itouc.cn/)制作。使用 Vue 3、TypeScript 和 Go,支持镜像展示、公告、使用帮助与管理后台,同步任务由 [tunasync](https://github.com/tuna/tunasync) 执行。 +爱特开源软件镜像站(MirrorITS)的前端与管理服务,由[中国海洋大学爱特工作室](https://www.itouc.cn/)开发部署。使用 Vue 3、TypeScript 和 Go,支持镜像展示、公告、使用帮助与管理后台,同步任务由 [tunasync](https://github.com/tuna/tunasync) 执行。 ## 部署 diff --git a/backend/announcements_test.go b/backend/announcements_test.go index 61a089e..dd78e11 100644 --- a/backend/announcements_test.go +++ b/backend/announcements_test.go @@ -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("MirrorOUC"), 0600); err != nil { + if err := os.WriteFile(filepath.Join(c.app.cfg.Static, "index.html"), []byte("MirrorITS"), 0600); err != nil { t.Fatal(err) } for _, path := range []string{"/announcements", "/announcements/"} { diff --git a/backend/help_test.go b/backend/help_test.go index 74260af..6ef8bec 100644 --- a/backend/help_test.go +++ b/backend/help_test.go @@ -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 = "MirrorOUC help" + const html = "MirrorITS help" if err := os.WriteFile(filepath.Join(c.app.cfg.Static, "index.html"), []byte(html), 0600); err != nil { t.Fatal(err) } diff --git a/backend/main.go b/backend/main.go index 84abbed..dfe5252 100644 --- a/backend/main.go +++ b/backend/main.go @@ -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) } diff --git a/backend/models.go b/backend/models.go index 1c839c5..b382dd9 100644 --- a/backend/models.go +++ b/backend/models.go @@ -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(), diff --git a/directory.html b/directory.html index 22026fe..bc5356c 100644 --- a/directory.html +++ b/directory.html @@ -5,7 +5,7 @@ - {{directory.title}} · MirrorOUC + {{directory.title}} · {{common.brand}} diff --git a/index.html b/index.html index 14137a8..b6ca693 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - MirrorOUC + MirrorITS
diff --git a/src/App.vue b/src/App.vue index 696b9d0..8cf1339 100644 --- a/src/App.vue +++ b/src/App.vue @@ -64,7 +64,7 @@ watch(locale, (value) => { savePreference('mirrorouc.locale', value) }, { immediate: true }) watch([locale, site], () => { - const siteTitle = site.value ? `MirrorOUC · ${content(site.value.name, locale.value)}` : t('common.pageTitle') + const siteTitle = site.value ? `${t('common.brand')} · ${content(site.value.name, locale.value)}` : t('common.pageTitle') const pageTitle = isHelpPage ? (help.name && !help.invalid ? t('mirrors.helpFor', { name: help.name }) : t('mirrors.helpTitle')) : isAnnouncementsPage ? t('announcements.title') : '' document.title = pageTitle ? `${pageTitle} · ${siteTitle}` : siteTitle }, { immediate: true }) diff --git a/src/directory/main.ts b/src/directory/main.ts index 76d88ef..c2d67d8 100644 --- a/src/directory/main.ts +++ b/src/directory/main.ts @@ -93,7 +93,7 @@ function applyTheme() { function applyLocale() { i18n.global.locale.value = locale document.documentElement.lang = locale - document.title = `${path} · ${t('directory.title')} · MirrorOUC` + document.title = `${path} · ${t('directory.title')} · ${t('common.brand')}` for (const element of document.querySelectorAll('[data-i18n]')) element.textContent = t(element.dataset.i18n!) for (const [attribute, data] of [['aria-label', 'i18nAria'], ['placeholder', 'i18nPlaceholder']] as const) { for (const element of document.querySelectorAll(`[data-${data === 'i18nAria' ? 'i18n-aria' : 'i18n-placeholder'}]`)) element.setAttribute(attribute, t(element.dataset[data]!)) diff --git a/src/locales/en-US/announcements.ts b/src/locales/en-US/announcements.ts index d7da651..f423c41 100644 --- a/src/locales/en-US/announcements.ts +++ b/src/locales/en-US/announcements.ts @@ -22,8 +22,8 @@ export default { "downloadItem": "Download {name} {version}", "entries": { "preview": { - "title": "A first look at the MirrorOUC interface", - "body": "Welcome to the MirrorOUC homepage prototype. The mirror list and sync jobs use demo data. Try search, themes and language switching. The mirror server is not connected yet." + "title": "A first look at the MirrorITS interface", + "body": "Welcome to the MirrorITS homepage prototype. The mirror list and sync jobs use demo data. Try search, themes and language switching. The mirror server is not connected yet." }, "help": { "title": "Finding mirror configuration help", diff --git a/src/locales/en-US/common.ts b/src/locales/en-US/common.ts index 72f4111..5d3a45a 100644 --- a/src/locales/en-US/common.ts +++ b/src/locales/en-US/common.ts @@ -10,10 +10,10 @@ export default { noHelp: 'No usage guide has been added for this mirror.', openDirectory: 'Browse mirror directory', - "brand": "MirrorOUC", + "brand": "MirrorITS", "university": "Ocean University of China", - "siteName": "Ocean University of China Software Mirrors", - "pageTitle": "MirrorOUC · Ocean University of China Software Mirrors", + "siteName": "ITStudio Open Source Software Mirrors", + "pageTitle": "MirrorITS · ITStudio Open Source Software Mirrors", "skip": "Skip to mirror list", "skipStatus": "Skip to site status", "nav": { @@ -38,11 +38,11 @@ export default { "copyFailed": "Unable to copy. Please select and copy the configuration.", "external": "Open in a new window", "preview": "Interface preview · Demo data", - "footer": "MirrorOUC is built by IT Studio, Ocean University of China.", + "footer": "MirrorITS is developed and hosted by ITStudio at Ocean University of China.", "studio": "IT Studio", "source": "Sync engine", - "aboutTitle": "About MirrorOUC", - "aboutBody": "Open-source software mirror of ITStudio, developed by ITStudio at Ocean University of China.", + "aboutTitle": "About MirrorITS", + "aboutBody": "MirrorITS provides open-source software downloads and is developed and hosted by ITStudio at Ocean University of China.", "previewBody": "This is an interface prototype. Mirrors and sync jobs use demo data and are not connected to the mirror server. Mirror directories, configuration addresses and downloads will be available after integration.", "emptyValue": "—", "footerLinks": "Related sites", diff --git a/src/locales/zh-CN/announcements.ts b/src/locales/zh-CN/announcements.ts index 5b947a0..bf721f5 100644 --- a/src/locales/zh-CN/announcements.ts +++ b/src/locales/zh-CN/announcements.ts @@ -22,8 +22,8 @@ export default { "downloadItem": "下载 {name} {version}", "entries": { "preview": { - "title": "MirrorOUC 首页界面预览", - "body": "欢迎体验 MirrorOUC 首页原型。当前展示的镜像列表与同步任务为演示数据,可体验镜像搜索、主题切换和中英文界面。镜像服务器尚未接入。" + "title": "MirrorITS 首页界面预览", + "body": "欢迎体验 MirrorITS 首页原型。当前展示的镜像列表与同步任务为演示数据,可体验镜像搜索、主题切换和中英文界面。镜像服务器尚未接入。" }, "help": { "title": "软件源配置帮助入口说明", diff --git a/src/locales/zh-CN/common.ts b/src/locales/zh-CN/common.ts index 9f2bc53..f776953 100644 --- a/src/locales/zh-CN/common.ts +++ b/src/locales/zh-CN/common.ts @@ -10,10 +10,10 @@ export default { noHelp: '此镜像暂未添加使用说明。', openDirectory: '浏览镜像目录', - "brand": "MirrorOUC", + "brand": "MirrorITS", "university": "中国海洋大学", - "siteName": "中国海洋大学软件镜像源", - "pageTitle": "MirrorOUC · 中国海洋大学软件镜像源", + "siteName": "爱特开源软件镜像站", + "pageTitle": "MirrorITS · 爱特开源软件镜像站", "skip": "跳转到镜像列表", "skipStatus": "跳转到站点状态", "nav": { @@ -38,11 +38,11 @@ export default { "copyFailed": "复制失败,请手动选择并复制", "external": "在新窗口中打开", "preview": "界面预览 · 演示数据", - "footer": "爱特开源软件镜像源(MirrorITS)由中国海洋大学爱特工作室开发部署", + "footer": "爱特开源软件镜像站(MirrorITS)由中国海洋大学爱特工作室开发部署。", "studio": "爱特工作室", "source": "同步引擎", - "aboutTitle": "关于 MirrorOUC", - "aboutBody": "中国海洋大学软件镜像源(MirrorOUC)由中国海洋大学爱特工作室承建,旨在为校内外用户提供便捷的开源软件下载服务。", + "aboutTitle": "关于 MirrorITS", + "aboutBody": "爱特开源软件镜像站(MirrorITS)由中国海洋大学爱特工作室开发部署,为校内外用户提供开源软件下载服务。", "previewBody": "当前为界面原型,镜像与同步任务均为演示数据,尚未连接镜像服务器。正式镜像目录、配置地址与下载服务将在接入后开放。", "emptyValue": "—", "footerLinks": "友情链接",