mirror of
https://example.com
synced 2024-11-22 12:46:39 +09:00
dev: move repository url
This commit is contained in:
parent
6424b685e9
commit
8802c36c62
9 changed files with 31 additions and 13 deletions
|
@ -148,7 +148,7 @@
|
|||
|
||||
## インストール
|
||||
|
||||
[ToDo](https://code.naskya.net/decks/Zm1Am/tickets/Nm7zK)
|
||||
[ToDo](https://code.naskya.net/decks/4wJQ3/tickets/a3WPw)
|
||||
|
||||
- インストールスクリプトかインストール方法の説明を提供することを考えています
|
||||
- 遠回りな方法ですが、公式のインストールスクリプトを使いたい場合にはそれを用いて本家の Firefish をインストールしてから下記の手順でこのフォークに移行できます。
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
-- vervis
|
||||
UPDATE meta SET "repositoryUrl" = 'https://git.joinfirefish.org/firefish/firefish';
|
||||
|
||||
-- more-urls
|
||||
ALTER TABLE "meta" DROP COLUMN "moreUrls";
|
||||
|
||||
|
|
15
packages/backend/migration-neko/1699302371683-vervis.js
Normal file
15
packages/backend/migration-neko/1699302371683-vervis.js
Normal 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'`,
|
||||
);
|
||||
}
|
||||
}
|
|
@ -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'`,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue