1
0
Fork 1
mirror of https://example.com synced 2024-11-22 12:46:39 +09:00

dev: move repository url

This commit is contained in:
naskya 2023-11-09 21:25:55 +09:00
parent 6424b685e9
commit 8802c36c62
Signed by: naskya
GPG key ID: 164DFF24E2D40139
9 changed files with 31 additions and 13 deletions

View file

@ -148,7 +148,7 @@
## インストール
[ToDo](https://code.naskya.net/decks/Zm1Am/tickets/Nm7zK)
[ToDo](https://code.naskya.net/decks/4wJQ3/tickets/a3WPw)
- インストールスクリプトかインストール方法の説明を提供することを考えています
- 遠回りな方法ですが、公式のインストールスクリプトを使いたい場合にはそれを用いて本家の Firefish をインストールしてから下記の手順でこのフォークに移行できます。

View file

@ -1,3 +1,6 @@
-- vervis
UPDATE meta SET "repositoryUrl" = 'https://git.joinfirefish.org/firefish/firefish';
-- more-urls
ALTER TABLE "meta" DROP COLUMN "moreUrls";

View file

@ -0,0 +1,15 @@
export class Vervis1699302371683 {
name = "Vervis1699302371683";
async up(queryRunner) {
await queryRunner.query(
`UPDATE meta SET "repositoryUrl" = 'https://code.naskya.net/naskya/firefish'`,
);
}
async down(queryRunner) {
await queryRunner.query(
`UPDATE meta SET "repositoryUrl" = 'https://git.joinfirefish.org/firefish/firefish'`,
);
}
}

View file

@ -3,7 +3,7 @@ export class FirefishRepo1689957674000 {
async up(queryRunner) {
await queryRunner.query(
`UPDATE meta SET "repositoryUrl" = 'https://code.naskya.net/naskya/firefish'`,
`UPDATE meta SET "repositoryUrl" = 'https://git.joinfirefish.org/firefish/firefish'`,
);
await queryRunner.query(
`UPDATE meta SET "feedbackUrl" = 'https://git.joinfirefish.org/firefish/firefish/issues'`,

View file

@ -14,13 +14,13 @@ export const paramDef = {
} as const;
export default define(meta, paramDef, async () => {
let tag_name;
await fetch(
"https://code.naskya.net/api/v1/repos/naskya/firefish/tags?page=1&limit=1",
)
.then((response) => response.json())
.then((data) => {
tag_name = data[0].name.slice(1);
let tag_name: string;
const pattern = /"version": "(.*)",$/m;
await fetch("https://code.naskya.net/naskya/firefish/source-by/main/package.json")
.then((response) => response.text())
.then((text) => {
tag_name = pattern.exec(text)[1];
});
return {

View file

@ -106,7 +106,7 @@ export function genOpenapiSpec() {
description: desc,
externalDocs: {
description: "Source code",
url: `https://code.naskya.net/naskya/firefish/src/branch/main/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`,
url: `https://code.naskya.net/naskya/firefish/source-by/main/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`,
},
tags: endpoint.meta.tags || undefined,
security,

View file

@ -64,7 +64,7 @@
><i :class="icon('ph-code')"></i
></template>
{{ i18n.ts._aboutFirefish.source }}
<template #suffix>Repository</template>
<template #suffix>Vervis</template>
</FormLink>
<FormLink
to="https://opencollective.com/firefish"

View file

@ -41,7 +41,7 @@
<MkInfo v-if="updateAvailable" warn class="info"
>{{ i18n.ts.updateAvailable }}
<a
href="https://code.naskya.net/naskya/firefish/tags"
href="https://code.naskya.net/naskya/firefish"
target="_bank"
class="_link"
>{{ i18n.ts.check }}</a

View file

@ -15,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "https://code.naskya.net/naskya/firefish.git"
"url": "https://code.naskya.net/naskya/firefish"
},
"devDependencies": {
"@swc/cli": "0.1.62",