From 1a9e55b0f32640a6bc576591cb795f28bec596fa Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 18 Dec 2022 10:12:24 -0800 Subject: [PATCH] refactor: new repo link --- CALCKEY.md | 2 +- README.md | 6 +++--- package.json | 4 ++-- packages/backend/migration/1658203170545calckey.js | 8 ++++---- packages/backend/migration/1658981842728FixCalckey.js | 8 ++++---- packages/backend/src/boot/master.ts | 2 +- packages/backend/src/models/entities/meta.ts | 4 ++-- .../backend/src/server/api/endpoints/latest-version.ts | 2 +- packages/backend/src/server/api/endpoints/meta.ts | 4 ++-- packages/backend/src/server/api/endpoints/patrons.ts | 2 +- packages/backend/src/server/api/openapi/gen-spec.ts | 4 ++-- packages/backend/src/server/web/views/base.pug | 2 +- packages/client/src/components/MkUpdated.vue | 2 +- packages/client/src/pages/about-calckey.vue | 6 +++--- packages/client/src/pages/admin/index.vue | 2 +- packages/client/src/ui/visitor/a.vue | 2 +- packages/client/src/ui/visitor/b.vue | 2 +- packages/client/src/ui/visitor/kanban.vue | 2 +- 18 files changed, 32 insertions(+), 32 deletions(-) diff --git a/CALCKEY.md b/CALCKEY.md index 642889a93..4371d5abd 100644 --- a/CALCKEY.md +++ b/CALCKEY.md @@ -99,7 +99,7 @@ - Undo renote button inside original note - Custom locales - Obliteration of Ai-chan -- Switch to [Calckey.js](https://codeberg.org/thatonecalculator/calckey.js) +- Switch to [Calckey.js](https://codeberg.org/calckey/calckey.js) - Woozy mode 🥴 - MissV: [fix Misskey Forkbomb](https://code.vtopia.live/Vtopia/MissV/commit/40b23c070bd4adbb3188c73546c6c625138fb3c1) - [Make showing ads optional](https://github.com/misskey-dev/misskey/pull/8996) diff --git a/README.md b/README.md index 36c7d74b7..9b2afab26 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ **🌎 **[Calckey](https://i.calckey.cloud/)** is an open source, decentralized social media platform that's free forever! 🚀** -[![status-badge](https://ci.codeberg.org/api/badges/thatonecalculator/calckey/status.svg)](https://ci.codeberg.org/thatonecalculator/calckey) +[![status-badge](https://ci.codeberg.org/api/badges/calckey/calckey/status.svg)](https://ci.codeberg.org/calckey/calckey) [![liberapay-badge](https://img.shields.io/liberapay/receives/ThatOneCalculator?logo=liberapay)](https://liberapay.com/ThatOneCalculator) [![translate-badge](https://hosted.weblate.org/widgets/calckey/-/svg-badge.svg)](https://hosted.weblate.org/engage/calckey/) [![docker-badge](https://img.shields.io/docker/pulls/thatonecalculator/calckey?logo=docker)](https://hub.docker.com/r/thatonecalculator/calckey) -[![codeberg-badge](https://custom-icon-badges.demolab.com/badge/hosted%20on-codeberg-blue.svg?logo=codeberg&logoColor=white)](https://codeberg.org/thatonecalculator/calckey/) +[![codeberg-badge](https://custom-icon-badges.demolab.com/badge/hosted%20on-codeberg-blue.svg?logo=codeberg&logoColor=white)](https://codeberg.org/calckey/calckey/) @@ -82,7 +82,7 @@ This guide will work for both **starting from scratch** and **migrating from Mis ## 👀 Get folder ready ```sh -git clone https://codeberg.org/thatonecalculator/calckey.git +git clone https://codeberg.org/calckey/calckey.git cd calckey/ # git checkout main # if you want only stable versions ``` diff --git a/package.json b/package.json index 946128aa5..9d1992c43 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "calckey", - "version": "13.0.5-rc.11", + "version": "13.0.5-rc.12", "codename": "aqua", "repository": { "type": "git", - "url": "https://codeberg.org/thatonecalculator/calckey.git" + "url": "https://codeberg.org/calckey/calckey.git" }, "packageManager": "yarn@3.3.0", "workspaces": [ diff --git a/packages/backend/migration/1658203170545calckey.js b/packages/backend/migration/1658203170545calckey.js index 8e7abd0f6..eb5913e81 100644 --- a/packages/backend/migration/1658203170545calckey.js +++ b/packages/backend/migration/1658203170545calckey.js @@ -3,13 +3,13 @@ export class calckey1658203170545 { async up(queryRunner) { await queryRunner.query(`UPDATE meta SET "useStarForReactionFallback" = TRUE;`); - await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/thatonecalculator/calckey'`); - await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/thatonecalculator/calckey/issues'`); + await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/calckey/calckey'`); + await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/calckey/calckey/issues'`); } async down(queryRunner) { await queryRunner.query(`UPDATE meta SET "useStarForReactionFallback" = FALSE;`); - await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/thatonecalculator/calckey'`); - await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/thatonecalculator/calckey/issues'`); + await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/calckey/calckey'`); + await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/calckey/calckey/issues'`); } } diff --git a/packages/backend/migration/1658981842728FixCalckey.js b/packages/backend/migration/1658981842728FixCalckey.js index 276b4d68b..7d8750634 100644 --- a/packages/backend/migration/1658981842728FixCalckey.js +++ b/packages/backend/migration/1658981842728FixCalckey.js @@ -3,13 +3,13 @@ export class FixCalckey1658981842728 { async up(queryRunner) { await queryRunner.query(`UPDATE "meta" SET "useStarForReactionFallback" = TRUE;`); - await queryRunner.query(`UPDATE "meta" SET "repositoryUrl" = 'https://codeberg/thatonecalculator/calckey'`); - await queryRunner.query(`UPDATE "meta" SET "feedbackUrl" = 'https://codeberg/thatonecalculator/calckey/issues'`); + await queryRunner.query(`UPDATE "meta" SET "repositoryUrl" = 'https://codeberg/calckey/calckey'`); + await queryRunner.query(`UPDATE "meta" SET "feedbackUrl" = 'https://codeberg/calckey/calckey/issues'`); } async down(queryRunner) { await queryRunner.query(`UPDATE "meta" SET "useStarForReactionFallback" = FALSE;`); - await queryRunner.query(`UPDATE "meta" SET "repositoryUrl" = 'https://codeberg/thatonecalculator/calckey'`); - await queryRunner.query(`UPDATE "meta" SET "feedbackUrl" = 'https://codeberg/thatonecalculator/calckey/issues'`); + await queryRunner.query(`UPDATE "meta" SET "repositoryUrl" = 'https://codeberg/calckey/calckey'`); + await queryRunner.query(`UPDATE "meta" SET "feedbackUrl" = 'https://codeberg/calckey/calckey/issues'`); } } diff --git a/packages/backend/src/boot/master.ts b/packages/backend/src/boot/master.ts index 937333bc1..f8e4059e7 100644 --- a/packages/backend/src/boot/master.ts +++ b/packages/backend/src/boot/master.ts @@ -38,7 +38,7 @@ function greet() { //#endregion console.log(' Calckey is an open-source decentralized microblogging platform.'); - console.log(chalk.rgb(255, 136, 0)(' If you like Calckey, please consider starring or contributing to the repo. https://codeberg.org/thatonecalculator/calckey')); + console.log(chalk.rgb(255, 136, 0)(' If you like Calckey, please consider starring or contributing to the repo. https://codeberg.org/calckey/calckey')); console.log(''); console.log(chalkTemplate`--- ${os.hostname()} {gray (PID: ${process.pid.toString()})} ---`); diff --git a/packages/backend/src/models/entities/meta.ts b/packages/backend/src/models/entities/meta.ts index a6e4103a3..c24936c03 100644 --- a/packages/backend/src/models/entities/meta.ts +++ b/packages/backend/src/models/entities/meta.ts @@ -389,14 +389,14 @@ export class Meta { @Column('varchar', { length: 512, - default: 'https://codeberg.org/thatonecalculator/calckey', + default: 'https://codeberg.org/calckey/calckey', nullable: false, }) public repositoryUrl: string; @Column('varchar', { length: 512, - default: 'https://codeberg.org/thatonecalculator/calckey/issues/new', + default: 'https://codeberg.org/calckey/calckey/issues/new', nullable: true, }) public feedbackUrl: string | null; diff --git a/packages/backend/src/server/api/endpoints/latest-version.ts b/packages/backend/src/server/api/endpoints/latest-version.ts index c0b5cb498..b319da9e3 100644 --- a/packages/backend/src/server/api/endpoints/latest-version.ts +++ b/packages/backend/src/server/api/endpoints/latest-version.ts @@ -16,7 +16,7 @@ export const paramDef = { // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async () => { let tag_name; - await fetch('https://codeberg.org/api/v1/repos/thatonecalculator/calckey/releases?draft=false&pre-release=false&page=1&limit=1') + await fetch('https://codeberg.org/api/v1/repos/calckey/calckey/releases?draft=false&pre-release=false&page=1&limit=1') .then((response) => response.json()) .then((data) => { tag_name = data[0].tag_name; diff --git a/packages/backend/src/server/api/endpoints/meta.ts b/packages/backend/src/server/api/endpoints/meta.ts index ca7edc352..f61236fa0 100644 --- a/packages/backend/src/server/api/endpoints/meta.ts +++ b/packages/backend/src/server/api/endpoints/meta.ts @@ -57,12 +57,12 @@ export const meta = { repositoryUrl: { type: 'string', optional: false, nullable: false, - default: 'https://codeberg.org/thatonecalculator/calckey', + default: 'https://codeberg.org/calckey/calckey', }, feedbackUrl: { type: 'string', optional: false, nullable: false, - default: 'https://codeberg.org/thatonecalculator/calckey/issues', + default: 'https://codeberg.org/calckey/calckey/issues', }, defaultDarkTheme: { type: 'string', diff --git a/packages/backend/src/server/api/endpoints/patrons.ts b/packages/backend/src/server/api/endpoints/patrons.ts index de6632fb9..bc1fcc5c9 100644 --- a/packages/backend/src/server/api/endpoints/patrons.ts +++ b/packages/backend/src/server/api/endpoints/patrons.ts @@ -17,7 +17,7 @@ export const paramDef = { // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async () => { let patrons; - await fetch('https://codeberg.org/thatonecalculator/calckey/raw/branch/develop/patrons.json') + await fetch('https://codeberg.org/calckey/calckey/raw/branch/develop/patrons.json') .then((response) => response.json()) .then((data) => { patrons = data['patrons']; diff --git a/packages/backend/src/server/api/openapi/gen-spec.ts b/packages/backend/src/server/api/openapi/gen-spec.ts index 18473d79b..e49f5e8d0 100644 --- a/packages/backend/src/server/api/openapi/gen-spec.ts +++ b/packages/backend/src/server/api/openapi/gen-spec.ts @@ -15,7 +15,7 @@ export function genOpenapiSpec() { externalDocs: { description: 'Repository', - url: 'https://codeberg.org/thatonecalculator/calckey', + url: 'https://codeberg.org/calckey/calckey', }, servers: [{ @@ -95,7 +95,7 @@ export function genOpenapiSpec() { description: desc, externalDocs: { description: 'Source code', - url: `https://codeberg.org/thatonecalculator/calckey/src/branch/develop/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`, + url: `https://codeberg.org/calckey/calckey/src/branch/develop/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`, }, tags: endpoint.meta.tags || undefined, security, diff --git a/packages/backend/src/server/web/views/base.pug b/packages/backend/src/server/web/views/base.pug index 4dc871457..d4ffdd63e 100644 --- a/packages/backend/src/server/web/views/base.pug +++ b/packages/backend/src/server/web/views/base.pug @@ -16,7 +16,7 @@ doctype html Thank you for using Calckey! If you are reading this message... how about joining the development? - https://codeberg.org/thatonecalculator/calckey + https://codeberg.org/calckey/calckey html diff --git a/packages/client/src/components/MkUpdated.vue b/packages/client/src/components/MkUpdated.vue index e45b85370..2cc294f4d 100644 --- a/packages/client/src/components/MkUpdated.vue +++ b/packages/client/src/components/MkUpdated.vue @@ -21,7 +21,7 @@ const modal = ref>(); const whatIsNew = () => { modal.value.close(); - window.open('https://codeberg.org/thatonecalculator/calckey/releases', '_blank'); + window.open('https://codeberg.org/calckey/calckey/releases', '_blank'); }; diff --git a/packages/client/src/pages/about-calckey.vue b/packages/client/src/pages/about-calckey.vue index 3214e9475..89975ce0b 100644 --- a/packages/client/src/pages/about-calckey.vue +++ b/packages/client/src/pages/about-calckey.vue @@ -12,14 +12,14 @@
- {{ i18n.ts._aboutMisskey.about }}
{{ i18n.ts.learnMore }} + {{ i18n.ts._aboutMisskey.about }}
{{ i18n.ts.learnMore }}
I #Calckey
- + diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index a55ac44b1..baefe9d0a 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -11,7 +11,7 @@ {{ i18n.ts.noMaintainerInformationWarning }} {{ i18n.ts.configure }} {{ i18n.ts.noBotProtectionWarning }} {{ i18n.ts.configure }} {{ i18n.ts.noEmailServerWarning }} {{ i18n.ts.configure }} - {{ i18n.ts.updateAvailable }} {{ i18n.ts.check }} + {{ i18n.ts.updateAvailable }} {{ i18n.ts.check }} diff --git a/packages/client/src/ui/visitor/a.vue b/packages/client/src/ui/visitor/a.vue index 6048535b7..1be716335 100644 --- a/packages/client/src/ui/visitor/a.vue +++ b/packages/client/src/ui/visitor/a.vue @@ -29,7 +29,7 @@
{{ host }} - Powered by Calckey + Powered by Calckey
diff --git a/packages/client/src/ui/visitor/b.vue b/packages/client/src/ui/visitor/b.vue index d9cab7c62..fec38c983 100644 --- a/packages/client/src/ui/visitor/b.vue +++ b/packages/client/src/ui/visitor/b.vue @@ -14,7 +14,7 @@
{{ host }} - Powered by Calckey + Powered by Calckey
diff --git a/packages/client/src/ui/visitor/kanban.vue b/packages/client/src/ui/visitor/kanban.vue index 74f8761ce..c7a9072de 100644 --- a/packages/client/src/ui/visitor/kanban.vue +++ b/packages/client/src/ui/visitor/kanban.vue @@ -29,7 +29,7 @@
{{ host }} - Powered by Calckey + Powered by Calckey