From 8b702bcfa0adb5160bd49349a8a74bec61e4e678 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 Mar 2021 11:57:12 +0900 Subject: [PATCH 01/42] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6d4044243..b8de4b07d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,11 @@ Why don't you take a short break from the hustle and bustle of the city, and div --- +Do you have a question? Or are you experiencing trouble? +Visit [our forum](https://forum.misskey.io/)! + +--- + ![](https://ja.mstdn.wiki/images/e/ed/Deck.jpg) :sparkles: Features From b5adb02eb8fe06c4c152b395db087cdc49e15889 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 Mar 2021 12:01:37 +0900 Subject: [PATCH 02/42] Update 01_bug-report.md --- .github/ISSUE_TEMPLATE/01_bug-report.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/01_bug-report.md b/.github/ISSUE_TEMPLATE/01_bug-report.md index be84609e9..019f8c739 100644 --- a/.github/ISSUE_TEMPLATE/01_bug-report.md +++ b/.github/ISSUE_TEMPLATE/01_bug-report.md @@ -7,6 +7,11 @@ assignees: '' --- + + ## 💡 Summary From bb6cd258f3b811cd10bdd2618af7e24c65d2549b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 Mar 2021 12:23:05 +0900 Subject: [PATCH 03/42] syuilo/misskey --> misskey-dev/misskey --- CHANGELOG.md | 2 +- CONTRIBUTING.md | 2 +- README.md | 6 +++--- docs/docker.en.md | 4 ++-- docs/docker.fr.md | 4 ++-- docs/docker.ja.md | 4 ++-- docs/docker.zh.md | 4 ++-- docs/setup.en.md | 4 ++-- docs/setup.fr.md | 4 ++-- docs/setup.ja.md | 4 ++-- docs/setup.zh.md | 4 ++-- locales/README.md | 2 +- migration/1557761316509-AddSomeUrls.ts | 4 ++-- package.json | 2 +- src/client/pages/about-misskey.vue | 4 ++-- src/client/pages/doc.vue | 2 +- src/client/pages/settings/update.vue | 2 +- src/client/ui/visitor/a.vue | 2 +- src/client/ui/visitor/b.vue | 4 ++-- src/client/ui/visitor/kanban.vue | 2 +- src/docs/ar-SA/theme.md | 2 +- src/docs/cs-CZ/theme.md | 2 +- src/docs/da-DK/theme.md | 2 +- src/docs/de-DE/theme.md | 2 +- src/docs/en-US/theme.md | 2 +- src/docs/es-ES/theme.md | 2 +- src/docs/fr-FR/theme.md | 2 +- src/docs/ht-HT/theme.md | 2 +- src/docs/id-ID/theme.md | 2 +- src/docs/it-IT/theme.md | 2 +- src/docs/ja-JP/theme.md | 2 +- src/docs/ja-KS/theme.md | 2 +- src/docs/kab-KAB/theme.md | 2 +- src/docs/kn-IN/theme.md | 2 +- src/docs/ko-KR/theme.md | 2 +- src/docs/nl-NL/theme.md | 2 +- src/docs/no-NO/theme.md | 2 +- src/docs/pl-PL/theme.md | 2 +- src/docs/pt-PT/theme.md | 2 +- src/docs/ru-RU/theme.md | 2 +- src/docs/th-TH/theme.md | 2 +- src/docs/ug-CN/theme.md | 2 +- src/docs/uk-UA/theme.md | 2 +- src/docs/zh-CN/theme.md | 2 +- src/docs/zh-TW/theme.md | 2 +- src/games/reversi/package.json | 4 ++-- src/models/entities/meta.ts | 4 ++-- src/server/api/endpoints/meta.ts | 4 ++-- src/server/api/openapi/gen-spec.ts | 4 ++-- src/server/web/views/info.pug | 2 +- test/get-file-info.ts | 2 +- 51 files changed, 68 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fd048e8e..b60eb5931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -see [releases](https://github.com/syuilo/misskey/releases) +see [releases](https://github.com/misskey-dev/misskey/releases) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d9d6702e8..848631823 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ - 枩床感高めで芋おほしいものは責付いおください。 ## Issues -Feature suggestions and bug reports are filed in https://github.com/syuilo/misskey/issues . +Feature suggestions and bug reports are filed in https://github.com/misskey-dev/misskey/issues . * Please search existing issues to avoid duplication. If your issue is already filed, please add your reaction or comment to the existing one. * If you have multiple independent issues, please submit them separately. diff --git a/README.md b/README.md index b8de4b07d..5cff3619f 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@
-[![CircleCI](https://img.shields.io/circleci/project/github/syuilo/misskey.svg?style=for-the-badge&logo=circleci)](https://circleci.com/gh/syuilo/misskey) -[![Dependencies](https://img.shields.io/david/syuilo/misskey.svg?style=for-the-badge&logo=npm)](https://david-dm.org/syuilo/misskey) +[![CircleCI](https://img.shields.io/circleci/project/github/misskey-dev/misskey.svg?style=for-the-badge&logo=circleci)](https://circleci.com/gh/misskey-dev/misskey) +[![Dependencies](https://img.shields.io/david/misskey-dev/misskey.svg?style=for-the-badge&logo=npm)](https://david-dm.org/misskey-dev/misskey) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge&logo=github)](http://makeapullrequest.com) [![Awesome Humane Tech](https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true)](https://github.com/humanetech-community/awesome-humane-tech) @@ -31,7 +31,7 @@ Visit [our forum](https://forum.misskey.io/)! :sparkles: Features ---------------------------------------------------------------- - +

Posting

diff --git a/docs/docker.en.md b/docs/docker.en.md index 965c89a51..93eee8e4b 100644 --- a/docs/docker.en.md +++ b/docs/docker.en.md @@ -12,13 +12,13 @@ This guide describes how to install and setup Misskey with Docker. ---------------------------------------------------------------- 1. Clone Misskey repository's master branch. - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 2. Move to misskey directory. `cd misskey` -3. Checkout to the [latest release](https://github.com/syuilo/misskey/releases/latest) tag. +3. Checkout to the [latest release](https://github.com/misskey-dev/misskey/releases/latest) tag. `git checkout master` diff --git a/docs/docker.fr.md b/docs/docker.fr.md index 52d42ff2e..7abd46335 100644 --- a/docs/docker.fr.md +++ b/docs/docker.fr.md @@ -13,13 +13,13 @@ Ce guide explique comment installer et configurer Misskey avec Docker. ---------------------------------------------------------------- 1. Clone le dépÃŽt de Misskey sur la branche master. - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 2. Naviguez dans le dossier du dépÃŽt. `cd misskey` -3. Checkout sur le tag de la [derniÚre version](https://github.com/syuilo/misskey/releases/latest). +3. Checkout sur le tag de la [derniÚre version](https://github.com/misskey-dev/misskey/releases/latest). `git checkout master` diff --git a/docs/docker.ja.md b/docs/docker.ja.md index befcc9116..15b1a944a 100644 --- a/docs/docker.ja.md +++ b/docs/docker.ja.md @@ -12,13 +12,13 @@ Dockerを䜿ったMisskey構築方法 ---------------------------------------------------------------- 1. masterブランチからMisskeyレポゞトリをクロヌン - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 2. misskeyディレクトリに移動 `cd misskey` -3. [最新のリリヌス](https://github.com/syuilo/misskey/releases/latest)を確認 +3. [最新のリリヌス](https://github.com/misskey-dev/misskey/releases/latest)を確認 `git checkout master` diff --git a/docs/docker.zh.md b/docs/docker.zh.md index a9d050e95..a842fcb0c 100644 --- a/docs/docker.zh.md +++ b/docs/docker.zh.md @@ -12,13 +12,13 @@ Docker 郚眲指南 ---------------------------------------------------------------- 1. 克隆 Misskey 项目的 master 分支。 - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 2. 进入 misskey 文件倹。 `cd misskey` -3. 检查 [最新发垃版](https://github.com/syuilo/misskey/releases/latest) 标筟。 +3. 检查 [最新发垃版](https://github.com/misskey-dev/misskey/releases/latest) 标筟。 `git checkout master` diff --git a/docs/setup.en.md b/docs/setup.en.md index a68e36994..bd36f0f00 100644 --- a/docs/setup.en.md +++ b/docs/setup.en.md @@ -40,13 +40,13 @@ Please install and setup these softwares: 2. Clone the misskey repo from master branch. - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 3. Navigate to misskey directory `cd misskey` -4. Checkout to the [latest release](https://github.com/syuilo/misskey/releases/latest) +4. Checkout to the [latest release](https://github.com/misskey-dev/misskey/releases/latest) `git checkout master` diff --git a/docs/setup.fr.md b/docs/setup.fr.md index b16447c4f..7f4795eec 100644 --- a/docs/setup.fr.md +++ b/docs/setup.fr.md @@ -41,13 +41,13 @@ Installez les paquets suivants : 2. Clonez la branche master du dépÃŽt misskey. - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 3. Accédez au dossier misskey. `cd misskey` -4. Checkout sur le tag de la [version la plus récente](https://github.com/syuilo/misskey/releases/latest) +4. Checkout sur le tag de la [version la plus récente](https://github.com/misskey-dev/misskey/releases/latest) `git checkout master` diff --git a/docs/setup.ja.md b/docs/setup.ja.md index 7f4ab6999..e8bae56f4 100644 --- a/docs/setup.ja.md +++ b/docs/setup.ja.md @@ -42,13 +42,13 @@ adduser --disabled-password --disabled-login misskey 2. masterブランチからMisskeyレポゞトリをクロヌン - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 3. misskeyディレクトリに移動 `cd misskey` -4. [最新のリリヌス](https://github.com/syuilo/misskey/releases/latest)を確認 +4. [最新のリリヌス](https://github.com/misskey-dev/misskey/releases/latest)を確認 `git checkout master` diff --git a/docs/setup.zh.md b/docs/setup.zh.md index 196e8a541..50664706b 100644 --- a/docs/setup.zh.md +++ b/docs/setup.zh.md @@ -40,13 +40,13 @@ adduser --disabled-password --disabled-login misskey 2. 克隆 Misskey 项目的 master 分支。 - `git clone -b master git://github.com/syuilo/misskey.git` + `git clone -b master git://github.com/misskey-dev/misskey.git` 3. 进入 misskey 文件倹。 `cd misskey` -4. 检查 [最新发垃版](https://github.com/syuilo/misskey/releases/latest) 标筟。 +4. 检查 [最新发垃版](https://github.com/misskey-dev/misskey/releases/latest) 标筟。 `git checkout master` diff --git a/locales/README.md b/locales/README.md index 775a39a3c..a31df4f4c 100644 --- a/locales/README.md +++ b/locales/README.md @@ -1,6 +1,6 @@ # **DO NOT edit locale files** except `ja-JP.yml`. -When you add text to the ja-JP file (of syuilo/misskey), it will automatically be applied to other language files. +When you add text to the ja-JP file (of misskey-dev/misskey), it will automatically be applied to other language files. Translations added in ja-JP file should contain the original Japanese strings. Please see [Contribution guide](../CONTRIBUTING.md) for more information. diff --git a/migration/1557761316509-AddSomeUrls.ts b/migration/1557761316509-AddSomeUrls.ts index a0a2c7970..926999de6 100644 --- a/migration/1557761316509-AddSomeUrls.ts +++ b/migration/1557761316509-AddSomeUrls.ts @@ -4,8 +4,8 @@ export class AddSomeUrls1557761316509 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE "meta" ADD "ToSUrl" character varying(512)`); - await queryRunner.query(`ALTER TABLE "meta" ADD "repositoryUrl" character varying(512) NOT NULL DEFAULT 'https://github.com/syuilo/misskey'`); - await queryRunner.query(`ALTER TABLE "meta" ADD "feedbackUrl" character varying(512) DEFAULT 'https://github.com/syuilo/misskey/issues/new'`); + await queryRunner.query(`ALTER TABLE "meta" ADD "repositoryUrl" character varying(512) NOT NULL DEFAULT 'https://github.com/misskey-dev/misskey'`); + await queryRunner.query(`ALTER TABLE "meta" ADD "feedbackUrl" character varying(512) DEFAULT 'https://github.com/misskey-dev/misskey/issues/new'`); } public async down(queryRunner: QueryRunner): Promise { diff --git a/package.json b/package.json index ba41f0ddf..94915dc78 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "codename": "indigo", "repository": { "type": "git", - "url": "https://github.com/syuilo/misskey.git" + "url": "https://github.com/misskey-dev/misskey.git" }, "main": "./index.js", "private": true, diff --git a/src/client/pages/about-misskey.vue b/src/client/pages/about-misskey.vue index 2d1da88fa..e9e2e1557 100644 --- a/src/client/pages/about-misskey.vue +++ b/src/client/pages/about-misskey.vue @@ -14,7 +14,7 @@ {{ $ts._aboutMisskey.about }} - + {{ $ts._aboutMisskey.source }} @@ -40,7 +40,7 @@ @rinsuki @Xeltica @u1-liquid - + diff --git a/src/client/pages/doc.vue b/src/client/pages/doc.vue index 7155cc156..4341cd1f6 100644 --- a/src/client/pages/doc.vue +++ b/src/client/pages/doc.vue @@ -3,7 +3,7 @@

{{ title }}
diff --git a/src/client/pages/settings/update.vue b/src/client/pages/settings/update.vue index a8da8bf11..bc26af421 100644 --- a/src/client/pages/settings/update.vue +++ b/src/client/pages/settings/update.vue @@ -79,7 +79,7 @@ export default defineComponent({ localStorage.setItem('v', meta.version); }); - fetch('https://api.github.com/repos/syuilo/misskey/releases', { + fetch('https://api.github.com/repos/misskey-dev/misskey/releases', { method: 'GET', }) .then(res => res.json()) diff --git a/src/client/ui/visitor/a.vue b/src/client/ui/visitor/a.vue index 2aed50100..ba4506ec5 100644 --- a/src/client/ui/visitor/a.vue +++ b/src/client/ui/visitor/a.vue @@ -32,7 +32,7 @@
{{ host }} - Powered by Misskey + Powered by Misskey
diff --git a/src/client/ui/visitor/b.vue b/src/client/ui/visitor/b.vue index bd00773c5..34690ec64 100644 --- a/src/client/ui/visitor/b.vue +++ b/src/client/ui/visitor/b.vue @@ -1,6 +1,6 @@ diff --git a/src/docs/ar-SA/theme.md b/src/docs/ar-SA/theme.md index 8e24a1cbc..59b582fa2 100644 --- a/src/docs/ar-SA/theme.md +++ b/src/docs/ar-SA/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/cs-CZ/theme.md b/src/docs/cs-CZ/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/cs-CZ/theme.md +++ b/src/docs/cs-CZ/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/da-DK/theme.md b/src/docs/da-DK/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/da-DK/theme.md +++ b/src/docs/da-DK/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/de-DE/theme.md b/src/docs/de-DE/theme.md index fe1c4fc7b..e8d95ca62 100644 --- a/src/docs/de-DE/theme.md +++ b/src/docs/de-DE/theme.md @@ -43,7 +43,7 @@ Themencodes werden im Format eines JSON5-Objekts gespeichert. Themen werden wie * `props` ... Definitionen der Themenoptionen.Diese werden im folgenden erlÀutert. ### Definition von Themenoptionen -Die Optionen des Themas werden in `props` definiert. Die SchlÃŒssel werden zu CSS-Variablen, die Werte geben den Inhalt an. ZusÀtzlich werden die `props` des gewÀhlten Basisthemas von diesem Thema geerbt. Ist die `base` dieses Themas auf `light` gesetzt, so werden sie aus [_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5) kopiert, ist sie auf `dark` gesetzt, so werden sie aus [_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5) kopiert. Beispielsweise wird, falls sich in den `props` dieses Themas keine Definition fÃŒr den SchlÃŒssel `panel` befindet, so wird der Wert von `panel` aus dem Basisthema verwendet. +Die Optionen des Themas werden in `props` definiert. Die SchlÃŒssel werden zu CSS-Variablen, die Werte geben den Inhalt an. ZusÀtzlich werden die `props` des gewÀhlten Basisthemas von diesem Thema geerbt. Ist die `base` dieses Themas auf `light` gesetzt, so werden sie aus [_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5) kopiert, ist sie auf `dark` gesetzt, so werden sie aus [_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5) kopiert. Beispielsweise wird, falls sich in den `props` dieses Themas keine Definition fÃŒr den SchlÃŒssel `panel` befindet, so wird der Wert von `panel` aus dem Basisthema verwendet. #### Syntax fÃŒr Wertangaben * Hexadezimalfarben diff --git a/src/docs/en-US/theme.md b/src/docs/en-US/theme.md index 35c019796..6deb75abe 100644 --- a/src/docs/en-US/theme.md +++ b/src/docs/en-US/theme.md @@ -43,7 +43,7 @@ Theme codes are saved as a JSON5 object of theme options. Themes are composed of * `props` ... The style definitions of the theme.These will be explained in the following. ### Theme style definitions -Define the style of the theme within `props`. The keys will become CSS variables, and the value specifies the content. In addition, the default `props` options are inherited from the base theme. If this theme's `base` is `light`, they will be copied from [_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5), if it is `dark` they will be copied from [_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5). In other words, if there is for example no `panel` key contained in `props`, then the value of `panel` from the base theme will be used. +Define the style of the theme within `props`. The keys will become CSS variables, and the value specifies the content. In addition, the default `props` options are inherited from the base theme. If this theme's `base` is `light`, they will be copied from [_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5), if it is `dark` they will be copied from [_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5). In other words, if there is for example no `panel` key contained in `props`, then the value of `panel` from the base theme will be used. #### Syntax for values * Hex colors diff --git a/src/docs/es-ES/theme.md b/src/docs/es-ES/theme.md index b6490106d..3e379ee5f 100644 --- a/src/docs/es-ES/theme.md +++ b/src/docs/es-ES/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/fr-FR/theme.md b/src/docs/fr-FR/theme.md index cf15c921e..ab721fe44 100644 --- a/src/docs/fr-FR/theme.md +++ b/src/docs/fr-FR/theme.md @@ -43,7 +43,7 @@ Le code des thÚmes est écrit sous forme d'objets JSON5. Les thÚmes comprennen * `props` ... Définir un style de thÚme.Voir les explications ci-aprÚs. ### Définir un style de thÚme -C'est dans `props` que vous définirez le style de thÚme. Les propriétés deviendront des variables CSS et les valeurs associées spécifieront le contenu de ces variables. Par ailleurs, les objets présents par défaut dans `props` sont hérités du thÚme de base. Ainsi, si le thÚme de `base` est clair `light` ce sera l'objet [_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5) ; et s'il est sombre `dark` ce sera l'objet [_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5). Cela signifie, par exemple, que s'il n'y pas de propriété `panel` définie dans les `props` du thÚme, alors ce sera la valeur `panel` du thÚme de base qui sera prise en compte. +C'est dans `props` que vous définirez le style de thÚme. Les propriétés deviendront des variables CSS et les valeurs associées spécifieront le contenu de ces variables. Par ailleurs, les objets présents par défaut dans `props` sont hérités du thÚme de base. Ainsi, si le thÚme de `base` est clair `light` ce sera l'objet [_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5) ; et s'il est sombre `dark` ce sera l'objet [_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5). Cela signifie, par exemple, que s'il n'y pas de propriété `panel` définie dans les `props` du thÚme, alors ce sera la valeur `panel` du thÚme de base qui sera prise en compte. #### Syntaxe des valeurs * Codes de couleur Hex diff --git a/src/docs/ht-HT/theme.md b/src/docs/ht-HT/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/ht-HT/theme.md +++ b/src/docs/ht-HT/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/id-ID/theme.md b/src/docs/id-ID/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/id-ID/theme.md +++ b/src/docs/id-ID/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/it-IT/theme.md b/src/docs/it-IT/theme.md index ad21299e8..7467bf340 100644 --- a/src/docs/it-IT/theme.md +++ b/src/docs/it-IT/theme.md @@ -43,7 +43,7 @@ Il codice dei temi Ú scritto a forma di oggetti JSON5. I temi contengono gli og * `props` ... テヌマのスタむル定矩。これから説明したす。 ### Impostare uno stile di tema -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### Sintassi dei valori * 16進数で衚された色 diff --git a/src/docs/ja-JP/theme.md b/src/docs/ja-JP/theme.md index c9604da41..89b467120 100644 --- a/src/docs/ja-JP/theme.md +++ b/src/docs/ja-JP/theme.md @@ -47,7 +47,7 @@ `props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 -ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 +ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 diff --git a/src/docs/ja-KS/theme.md b/src/docs/ja-KS/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/ja-KS/theme.md +++ b/src/docs/ja-KS/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/kab-KAB/theme.md b/src/docs/kab-KAB/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/kab-KAB/theme.md +++ b/src/docs/kab-KAB/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/kn-IN/theme.md b/src/docs/kn-IN/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/kn-IN/theme.md +++ b/src/docs/kn-IN/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/ko-KR/theme.md b/src/docs/ko-KR/theme.md index 856580e60..e01133b83 100644 --- a/src/docs/ko-KR/theme.md +++ b/src/docs/ko-KR/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/nl-NL/theme.md b/src/docs/nl-NL/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/nl-NL/theme.md +++ b/src/docs/nl-NL/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/no-NO/theme.md b/src/docs/no-NO/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/no-NO/theme.md +++ b/src/docs/no-NO/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/pl-PL/theme.md b/src/docs/pl-PL/theme.md index 36590b743..7190c39dd 100644 --- a/src/docs/pl-PL/theme.md +++ b/src/docs/pl-PL/theme.md @@ -43,7 +43,7 @@ Kod motywów jest zapisywany jako obiekt JSON5 z opcjami motywu. Motywy składaj * `props` ... Definicje stylów motywu.これから説明したす。 ### Definicje stylów motywu. -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### Składnia wartości * Kolory Hex diff --git a/src/docs/pt-PT/theme.md b/src/docs/pt-PT/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/pt-PT/theme.md +++ b/src/docs/pt-PT/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/ru-RU/theme.md b/src/docs/ru-RU/theme.md index 6ab7b5466..e4661c101 100644 --- a/src/docs/ru-RU/theme.md +++ b/src/docs/ru-RU/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/th-TH/theme.md b/src/docs/th-TH/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/th-TH/theme.md +++ b/src/docs/th-TH/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/ug-CN/theme.md b/src/docs/ug-CN/theme.md index 4e52ee8cd..a406f3433 100644 --- a/src/docs/ug-CN/theme.md +++ b/src/docs/ug-CN/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/uk-UA/theme.md b/src/docs/uk-UA/theme.md index df1e33a92..baa74c33e 100644 --- a/src/docs/uk-UA/theme.md +++ b/src/docs/uk-UA/theme.md @@ -43,7 +43,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 16進数で衚された色 diff --git a/src/docs/zh-CN/theme.md b/src/docs/zh-CN/theme.md index a0d0c10bc..1f33c00b4 100644 --- a/src/docs/zh-CN/theme.md +++ b/src/docs/zh-CN/theme.md @@ -43,7 +43,7 @@ * `props` ... 关于䞻题样匏的定义䞋面是诊细介绍。 ### 䞻题样匏定义 -圚 `props` 䞋䜠可以定义䞻题的样匏。 键是 CSS 变量名倌是指定的内容。 请泚意`props` 对象是从基础䞻题集继承的。 劂果这䞪䞻题的 `base` 是 `light`则基础䞻题䞺 [_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)劂果 `dark`则基础䞻题䞺 [_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)。 换句话诎即䜿这䞪䞻题䞭的 `props` 䞭没有定义关键的 `panel`也䌚继承圚基础䞻题䞭所拥有 `panel`。 +圚 `props` 䞋䜠可以定义䞻题的样匏。 键是 CSS 变量名倌是指定的内容。 请泚意`props` 对象是从基础䞻题集继承的。 劂果这䞪䞻题的 `base` 是 `light`则基础䞻题䞺 [_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)劂果 `dark`则基础䞻题䞺 [_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)。 换句话诎即䜿这䞪䞻题䞭的 `props` 䞭没有定义关键的 `panel`也䌚继承圚基础䞻题䞭所拥有 `panel`。 #### 可以圚倌䞭䜿甚的语法 * 以十六进制衚瀺的颜色 diff --git a/src/docs/zh-TW/theme.md b/src/docs/zh-TW/theme.md index 1c4126033..6715dce72 100644 --- a/src/docs/zh-TW/theme.md +++ b/src/docs/zh-TW/theme.md @@ -45,7 +45,7 @@ * `props` ... テヌマのスタむル定矩。これから説明したす。 ### テヌマのスタむル定矩 -`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/syuilo/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 +`props`䞋にはテヌマのスタむルを定矩したす。 キヌがCSSの倉数名になり、バリュヌで䞭身を指定したす。 なお、この`props`オブゞェクトはベヌステヌマから継承されたす。 ベヌステヌマは、このテヌマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 ぀たり、このテヌマ内の`props`に`panel`ずいうキヌが無くおも、そこにはベヌステヌマの`panel`があるず芋なされたす。 #### バリュヌで䜿える構文 * 以十六進䜍色碌暙瀺 diff --git a/src/games/reversi/package.json b/src/games/reversi/package.json index 5e7fdcb58..a4415ad14 100644 --- a/src/games/reversi/package.json +++ b/src/games/reversi/package.json @@ -7,8 +7,8 @@ ], "author": "syuilo ", "license": "MIT", - "repository": "https://github.com/syuilo/misskey.git", - "bugs": "https://github.com/syuilo/misskey/issues", + "repository": "https://github.com/misskey-dev/misskey.git", + "bugs": "https://github.com/misskey-dev/misskey/issues", "main": "./built/core.js", "types": "./built/core.d.ts", "scripts": { diff --git a/src/models/entities/meta.ts b/src/models/entities/meta.ts index f013169f8..d0b6ee7f2 100644 --- a/src/models/entities/meta.ts +++ b/src/models/entities/meta.ts @@ -321,14 +321,14 @@ export class Meta { @Column('varchar', { length: 512, - default: 'https://github.com/syuilo/misskey', + default: 'https://github.com/misskey-dev/misskey', nullable: false }) public repositoryUrl: string; @Column('varchar', { length: 512, - default: 'https://github.com/syuilo/misskey/issues/new', + default: 'https://github.com/misskey-dev/misskey/issues/new', nullable: true }) public feedbackUrl: string | null; diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 2a94ae35f..3760c8b37 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -71,12 +71,12 @@ export const meta = { repositoryUrl: { type: 'string' as const, optional: false as const, nullable: false as const, - default: 'https://github.com/syuilo/misskey' + default: 'https://github.com/misskey-dev/misskey' }, feedbackUrl: { type: 'string' as const, optional: false as const, nullable: false as const, - default: 'https://github.com/syuilo/misskey/issues/new' + default: 'https://github.com/misskey-dev/misskey/issues/new' }, secure: { type: 'boolean' as const, diff --git a/src/server/api/openapi/gen-spec.ts b/src/server/api/openapi/gen-spec.ts index 221e0a32d..adac3bda2 100644 --- a/src/server/api/openapi/gen-spec.ts +++ b/src/server/api/openapi/gen-spec.ts @@ -18,7 +18,7 @@ export function genOpenapiSpec(lang = 'ja-JP') { externalDocs: { description: 'Repository', - url: 'https://github.com/syuilo/misskey' + url: 'https://github.com/misskey-dev/misskey' }, servers: [{ @@ -120,7 +120,7 @@ export function genOpenapiSpec(lang = 'ja-JP') { description: desc, externalDocs: { description: 'Source code', - url: `https://github.com/syuilo/misskey/blob/develop/src/server/api/endpoints/${endpoint.name}.ts` + url: `https://github.com/misskey-dev/misskey/blob/develop/src/server/api/endpoints/${endpoint.name}.ts` }, ...(endpoint.meta.tags ? { tags: [endpoint.meta.tags[0]] diff --git a/src/server/web/views/info.pug b/src/server/web/views/info.pug index 323dce974..61f9b7b9e 100644 --- a/src/server/web/views/info.pug +++ b/src/server/web/views/info.pug @@ -144,4 +144,4 @@ html | :#{emoji.name}: = ' ' footer - p Misskey is open-source software. View source + p Misskey is open-source software. View source diff --git a/test/get-file-info.ts b/test/get-file-info.ts index 8757d5a90..57c021fea 100644 --- a/test/get-file-info.ts +++ b/test/get-file-info.ts @@ -116,7 +116,7 @@ describe('Get file info', () => { })); it('SVG with XML definition', async (async () => { - // https://github.com/syuilo/misskey/issues/4413 + // https://github.com/misskey-dev/misskey/issues/4413 const path = `${__dirname}/resources/with-xml-def.svg`; const info = await getFileInfo(path) as any; delete info.warnings; From 2210d1053a52e469273559836745f203f5ef92ff Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 27 Mar 2021 11:08:15 +0900 Subject: [PATCH 04/42] Update vue --- package.json | 4 +- yarn.lock | 115 +++++++++++++++++++++++++++------------------------ 2 files changed, 62 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index 94915dc78..90a80cdad 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "@types/websocket": "1.0.2", "@types/ws": "7.4.0", "@typescript-eslint/parser": "4.18.0", - "@vue/compiler-sfc": "3.0.7", + "@vue/compiler-sfc": "3.0.8", "abort-controller": "3.0.0", "apexcharts": "3.26.0", "autobind-decorator": "2.4.0", @@ -245,7 +245,7 @@ "uuid": "8.3.2", "v-debounce": "0.1.2", "vanilla-tilt": "1.7.0", - "vue": "3.0.7", + "vue": "3.0.8", "vue-color": "2.8.1", "vue-json-pretty": "1.7.1", "vue-loader": "16.1.2", diff --git a/yarn.lock b/yarn.lock index 398c51f3c..c85ab3b9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -113,6 +113,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.9.tgz#ca34cb95e1c2dd126863a84465ae8ef66114be99" integrity sha512-nEUfRiARCcaVo3ny3ZQjURjHQZUo/JkEw7rLlSZy/psWGnvwXFtPcr6jb7Yb41DVW5LTe6KRq9LGleRNsg1Frw== +"@babel/parser@^7.13.9": + version "7.13.13" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.13.tgz#42f03862f4aed50461e543270916b47dd501f0df" + integrity sha512-OhsyMrqygfk5v8HmWwOzlYjJrtLaFhF34MrfG/Z73DgYCI6ojNUTUp2TYbtnjo8PegeJp12eamsNettCQjKjVw== + "@babel/plugin-transform-runtime@7.13.10": version "7.13.10" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.13.10.tgz#a1e40d22e2bf570c591c9c7e5ab42d6bf1e419e1" @@ -1200,36 +1205,36 @@ resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== -"@vue/compiler-core@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.0.7.tgz#421782a4c67cc3f2b7c30457ef446d74f8524f74" - integrity sha512-JFohgBXoyUc3mdeI2WxlhjQZ5fakfemJkZHX8Gu/nFbEg3+lKVUZmNKWmmnp9aOzJQZKoj77LjmFxiP+P+7lMQ== +"@vue/compiler-core@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.0.8.tgz#8e24a63877232f7c5d00e97201609da7de1a3191" + integrity sha512-TFusP6wemgJPgmXyxHiYshtYci1PdAjX0bOSJqxPDXf2ykojRGq9RcTKj85b1fWyC9fnT5HK73OHe6rqZUa8vA== dependencies: "@babel/parser" "^7.12.0" "@babel/types" "^7.12.0" - "@vue/shared" "3.0.7" + "@vue/shared" "3.0.8" estree-walker "^2.0.1" source-map "^0.6.1" -"@vue/compiler-dom@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.0.7.tgz#54d2e12fb9a7aff53abd19dac2c2679533f0c919" - integrity sha512-VnIH9EbWQm/Tkcp+8dCaNVsVvhm/vxCrIKWRkXY9215hTqOqQOvejT8IMjd2kc++nIsYMsdQk6H9qqBvoLe/Cw== +"@vue/compiler-dom@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.0.8.tgz#97b1a56998472247b8944b6ef71dacbdd708eb6c" + integrity sha512-uMUtpFqWOXlbnV167ihPJehVa/84k5xfTrYHJh2bqKaSL7sA2b1bkhFjTXAfOss9LcrGnQSk/CjOPZGZfExEVw== dependencies: - "@vue/compiler-core" "3.0.7" - "@vue/shared" "3.0.7" + "@vue/compiler-core" "3.0.8" + "@vue/shared" "3.0.8" -"@vue/compiler-sfc@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.0.7.tgz#900414750cc726553b870490f48073451fd14f07" - integrity sha512-37/QILpGE+J3V+bP9Slg9e6xGqfk+MmS2Yj8ChR4fS0/qWUU/YoYHE0GPIzjmBdH0JVOOmJqunxowIXmqNiHng== +"@vue/compiler-sfc@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.0.8.tgz#f3515814708895406c5215329c57f30571e39f01" + integrity sha512-KDSvOVopKwwxdVlktkUlCYv2KUvJz/2sgkflb1LmqSSNMwQ1Yso934fNstd4Su0u25JIYl1piqISBIcBnxtFBA== dependencies: - "@babel/parser" "^7.12.0" - "@babel/types" "^7.12.0" - "@vue/compiler-core" "3.0.7" - "@vue/compiler-dom" "3.0.7" - "@vue/compiler-ssr" "3.0.7" - "@vue/shared" "3.0.7" + "@babel/parser" "^7.13.9" + "@babel/types" "^7.13.0" + "@vue/compiler-core" "3.0.8" + "@vue/compiler-dom" "3.0.8" + "@vue/compiler-ssr" "3.0.8" + "@vue/shared" "3.0.8" consolidate "^0.16.0" estree-walker "^2.0.1" hash-sum "^2.0.0" @@ -1241,42 +1246,42 @@ postcss-selector-parser "^6.0.4" source-map "^0.6.1" -"@vue/compiler-ssr@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.0.7.tgz#28b85d497381d75fe44234057b140b0065ca9dbf" - integrity sha512-nHRbHeSpfXwjypettjrA16TjgfDcPEwq3m/zHnGyLC1QqdLtklXmpSM43/CPwwTCRa/qdt0pldJf22MiCEuTSQ== +"@vue/compiler-ssr@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.0.8.tgz#2be3221c82873c47a9d71311efe19f8de0f459aa" + integrity sha512-9xQO9IOK3B+7jCPIkqe8MmoRd17UxDvyjnsGXQfMkGrK+eONPB5/Ic6b1P2oZTXuTI2IAdnXnwDWXBSB6Cphag== dependencies: - "@vue/compiler-dom" "3.0.7" - "@vue/shared" "3.0.7" + "@vue/compiler-dom" "3.0.8" + "@vue/shared" "3.0.8" -"@vue/reactivity@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.0.7.tgz#e6ccc7bef7fc10b0972e4d974bad71679d3b26ad" - integrity sha512-FotWcNNaKhqpFZrdgsUOZ1enlJ5lhTt01CNTtLSyK7jYFgZBTuw8vKsEutZKDYZ1XKotOfoeO8N3pZQqmM6Etw== +"@vue/reactivity@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.0.8.tgz#c09afb698af2fc30fe47d2a9a918e7262e59288a" + integrity sha512-W0oEQ005rUa6r1Rq/fEw/Nx3FN+AoAYV2Kf+qI8RGOXHYuUdgVEf//o0UUmlT7ocnniOEf46l+eLfgvilWYJoA== dependencies: - "@vue/shared" "3.0.7" + "@vue/shared" "3.0.8" -"@vue/runtime-core@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.0.7.tgz#d44c0b0a57d7e392912a87362a4430ccf446ecea" - integrity sha512-DBAZAwVvdmMXuyd6/9qqj/kYr/GaLTmn1L2/QLxLwP+UfhIboiTSBc/tUUb8MRk7Bb98GzNeAWkkT6AfooS3dQ== +"@vue/runtime-core@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.0.8.tgz#d17860ab416fd483ffe768a53b1065d9d5180789" + integrity sha512-H7d+s56RPFMWT7SOwabRo9Rx6auQ4AsoY7dZ0lmT2fmgwQ+knEnqmL1KWSPQIruleYU5yCtbgyqByVz8ej5e1A== dependencies: - "@vue/reactivity" "3.0.7" - "@vue/shared" "3.0.7" + "@vue/reactivity" "3.0.8" + "@vue/shared" "3.0.8" -"@vue/runtime-dom@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.0.7.tgz#b70668d729020bc4ad608c20367223f259576ba6" - integrity sha512-Oij4ruOtnpQpCj+/Q3JPzgpTJ1Q7+N67pA53A8KVITEtxfvKL46NN6dhAZ5NGqwX6RWZpYqWQNewITeF0pHr8g== +"@vue/runtime-dom@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.0.8.tgz#6d39d1304a1b14f9a1422b394e8d3a5a7af7f0ad" + integrity sha512-ijW6ycxydtE92rx4nRZDLONhNxtPqX09fQXEukHYv2bNnvO1Q4qY/KZ0E6wqOG0d4ZEmIabjAzG9IbNzalkFnQ== dependencies: - "@vue/runtime-core" "3.0.7" - "@vue/shared" "3.0.7" + "@vue/runtime-core" "3.0.8" + "@vue/shared" "3.0.8" csstype "^2.6.8" -"@vue/shared@3.0.7": - version "3.0.7" - resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.0.7.tgz#96d52988efc07444c108c7c6803ba7cc93e40045" - integrity sha512-dn5FyfSc4ky424jH4FntiHno7Ss5yLkqKNmM/NXwANRnlkmqu74pnGetexDFVG5phMk9/FhwovUZCWGxsotVKg== +"@vue/shared@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.0.8.tgz#b18d3a912299c0360c41bb42f03f502c5016bb1e" + integrity sha512-zDdHjJjzgWYFw8TTUW08JjdERTlBik5/N5LuTAqU0e4wS6wElcvftiNHrD0ONr79O3fi66Z3Ug4jgPhBomPQUA== "@webassemblyjs/ast@1.11.0": version "1.11.0" @@ -10963,14 +10968,14 @@ vue-style-loader@4.1.3: hash-sum "^1.0.2" loader-utils "^1.0.2" -vue@3.0.7: - version "3.0.7" - resolved "https://registry.yarnpkg.com/vue/-/vue-3.0.7.tgz#8bcff51f8be570f9e4ce8cc5f52e2ab0fe3c74a1" - integrity sha512-8h4TikD+JabbMK9aRlBO4laG0AtNHRPHynxYgWZ9sq1YUPfzynd9Jeeb27XNyZytC7aCQRX9xe1+TQJuc181Tw== +vue@3.0.8: + version "3.0.8" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.0.8.tgz#14fc72a9ab0291f8461c94450bf45b9df82fc45a" + integrity sha512-EE6mfGnPkQgTl1A9Vl2Jld9i4cN7KUDYTC0xPSfNRff6mwYDAqjtesdFo+Sk4/BkRfFSPgR1VnzNB7YbMLdrjw== dependencies: - "@vue/compiler-dom" "3.0.7" - "@vue/runtime-dom" "3.0.7" - "@vue/shared" "3.0.7" + "@vue/compiler-dom" "3.0.8" + "@vue/runtime-dom" "3.0.8" + "@vue/shared" "3.0.8" vuedraggable@4.0.1: version "4.0.1" From b378066ebf01334675ff974dc556e24191bc774d Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Apr 2021 10:00:05 +0900 Subject: [PATCH 05/42] tweak avatar generation --- src/misc/gen-avatar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/gen-avatar.ts b/src/misc/gen-avatar.ts index 14c01a9bd..7ff28b2e8 100644 --- a/src/misc/gen-avatar.ts +++ b/src/misc/gen-avatar.ts @@ -8,7 +8,7 @@ import { WriteStream } from 'fs'; const size = 256; // px const n = 5; // resolution -const margin = (size / n) / 1.5; +const margin = (size / n); const colors = [ '#e57373', '#F06292', From 1f4ae2f63a609d51942daa23772439379496064e Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Apr 2021 10:36:11 +0900 Subject: [PATCH 06/42] Use mfm-js for MFM parsing (#7415) * wip * Update mfm.ts * wip * update mfmjs * refactor * nanka * Update mfm.ts * Update to-html.ts * Update to-html.ts * wip * fix test * fix test --- package.json | 2 +- src/client/components/mfm.ts | 89 +- src/client/components/note-detailed.vue | 23 +- src/client/components/note.vue | 23 +- src/client/components/page/page.text.vue | 10 +- src/client/components/post-form.vue | 6 +- src/client/pages/about-misskey.vue | 1 + .../messaging/messaging-room.message.vue | 9 +- src/client/ui/chat/note.vue | 23 +- src/client/ui/chat/post-form.vue | 6 +- src/mfm/from-html.ts | 4 +- src/mfm/language.ts | 191 --- src/mfm/normalize.ts | 31 - src/mfm/parse.ts | 19 - src/mfm/prelude.ts | 40 - src/mfm/to-html.ts | 102 +- src/mfm/to-string.ts | 99 -- src/misc/extract-custom-emojis-from-mfm.ts | 18 + src/misc/extract-emojis.ts | 9 - src/misc/extract-hashtags.ts | 19 +- src/misc/extract-mentions.ts | 17 +- src/misc/extract-url-from-mfm.ts | 34 + src/models/repositories/note.ts | 13 +- src/prelude/tree.ts | 36 - src/remote/activitypub/misc/get-note-html.ts | 4 +- src/remote/activitypub/renderer/person.ts | 4 +- src/server/api/endpoints/i/update.ts | 12 +- src/services/note/create.ts | 14 +- test/extract-mentions.ts | 8 +- test/mfm.ts | 1150 +---------------- yarn.lock | 17 +- 31 files changed, 262 insertions(+), 1771 deletions(-) delete mode 100644 src/mfm/language.ts delete mode 100644 src/mfm/normalize.ts delete mode 100644 src/mfm/parse.ts delete mode 100644 src/mfm/prelude.ts delete mode 100644 src/mfm/to-string.ts create mode 100644 src/misc/extract-custom-emojis-from-mfm.ts delete mode 100644 src/misc/extract-emojis.ts create mode 100644 src/misc/extract-url-from-mfm.ts delete mode 100644 src/prelude/tree.ts diff --git a/package.json b/package.json index 90a80cdad..b604c75f9 100644 --- a/package.json +++ b/package.json @@ -180,6 +180,7 @@ "markdown-it": "12.0.4", "markdown-it-anchor": "7.1.0", "matter-js": "0.16.1", + "mfm-js": "0.12.0", "mocha": "8.3.2", "moji": "0.5.1", "ms": "2.1.3", @@ -190,7 +191,6 @@ "object-assign-deep": "0.4.0", "os-utils": "0.0.14", "parse5": "6.0.1", - "parsimmon": "1.16.0", "pg": "8.5.1", "portscanner": "2.2.0", "postcss": "8.2.8", diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts index 28ac9b894..b8e948a18 100644 --- a/src/client/components/mfm.ts +++ b/src/client/components/mfm.ts @@ -1,6 +1,5 @@ import { VNode, defineComponent, h } from 'vue'; -import { MfmForest } from '@client/../mfm/prelude'; -import { parse, parsePlain } from '@client/../mfm/parse'; +import * as mfm from 'mfm-js'; import MkUrl from '@client/components/global/url.vue'; import MkLink from '@client/components/link.vue'; import MkMention from '@client/components/mention.vue'; @@ -46,17 +45,17 @@ export default defineComponent({ render() { if (this.text == null || this.text == '') return; - const ast = (this.plain ? parsePlain : parse)(this.text); + const ast = (this.plain ? mfm.parsePlain : mfm.parse)(this.text); const validTime = (t: string | null | undefined) => { if (t == null) return null; return t.match(/^[0-9.]+s$/) ? t : null; }; - const genEl = (ast: MfmForest) => concat(ast.map((token): VNode[] => { - switch (token.node.type) { + const genEl = (ast: mfm.MfmNode[]) => concat(ast.map((token): VNode[] => { + switch (token.type) { case 'text': { - const text = token.node.props.text.replace(/(\r\n|\n|\r)/g, '\n'); + const text = token.props.text.replace(/(\r\n|\n|\r)/g, '\n'); if (!this.plain) { const x = text.split('\n') @@ -83,38 +82,38 @@ export default defineComponent({ } case 'fn': { - // TODO: CSSを文字列で組み立おおいくず token.node.props.args.~~~ 経由でCSSむンゞェクションできるのでよしなにやる + // TODO: CSSを文字列で組み立おおいくず token.props.args.~~~ 経由でCSSむンゞェクションできるのでよしなにやる let style; - switch (token.node.props.name) { + switch (token.props.name) { case 'tada': { style = `font-size: 150%;` + (this.$store.state.animatedMfm ? 'animation: tada 1s linear infinite both;' : ''); break; } case 'jelly': { - const speed = validTime(token.node.props.args.speed) || '1s'; + const speed = validTime(token.props.args.speed) || '1s'; style = (this.$store.state.animatedMfm ? `animation: mfm-rubberBand ${speed} linear infinite both;` : ''); break; } case 'twitch': { - const speed = validTime(token.node.props.args.speed) || '0.5s'; + const speed = validTime(token.props.args.speed) || '0.5s'; style = this.$store.state.animatedMfm ? `animation: mfm-twitch ${speed} ease infinite;` : ''; break; } case 'shake': { - const speed = validTime(token.node.props.args.speed) || '0.5s'; + const speed = validTime(token.props.args.speed) || '0.5s'; style = this.$store.state.animatedMfm ? `animation: mfm-shake ${speed} ease infinite;` : ''; break; } case 'spin': { const direction = - token.node.props.args.left ? 'reverse' : - token.node.props.args.alternate ? 'alternate' : + token.props.args.left ? 'reverse' : + token.props.args.alternate ? 'alternate' : 'normal'; const anime = - token.node.props.args.x ? 'mfm-spinX' : - token.node.props.args.y ? 'mfm-spinY' : + token.props.args.x ? 'mfm-spinX' : + token.props.args.y ? 'mfm-spinY' : 'mfm-spin'; - const speed = validTime(token.node.props.args.speed) || '1.5s'; + const speed = validTime(token.props.args.speed) || '1.5s'; style = this.$store.state.animatedMfm ? `animation: ${anime} ${speed} linear infinite; animation-direction: ${direction};` : ''; break; } @@ -128,8 +127,8 @@ export default defineComponent({ } case 'flip': { const transform = - (token.node.props.args.h && token.node.props.args.v) ? 'scale(-1, -1)' : - token.node.props.args.v ? 'scaleY(-1)' : + (token.props.args.h && token.props.args.v) ? 'scale(-1, -1)' : + token.props.args.v ? 'scaleY(-1)' : 'scaleX(-1)'; style = `transform: ${transform};`; break; @@ -148,12 +147,12 @@ export default defineComponent({ } case 'font': { const family = - token.node.props.args.serif ? 'serif' : - token.node.props.args.monospace ? 'monospace' : - token.node.props.args.cursive ? 'cursive' : - token.node.props.args.fantasy ? 'fantasy' : - token.node.props.args.emoji ? 'emoji' : - token.node.props.args.math ? 'math' : + token.props.args.serif ? 'serif' : + token.props.args.monospace ? 'monospace' : + token.props.args.cursive ? 'cursive' : + token.props.args.fantasy ? 'fantasy' : + token.props.args.emoji ? 'emoji' : + token.props.args.math ? 'math' : null; if (family) style = `font-family: ${family};`; break; @@ -165,7 +164,7 @@ export default defineComponent({ } } if (style == null) { - return h('span', {}, ['[', token.node.props.name, ...genEl(token.children), ']']); + return h('span', {}, ['[', token.props.name, ...genEl(token.children), ']']); } else { return h('span', { style: 'display: inline-block;' + style, @@ -188,7 +187,7 @@ export default defineComponent({ case 'url': { return [h(MkUrl, { key: Math.random(), - url: token.node.props.url, + url: token.props.url, rel: 'nofollow noopener', })]; } @@ -196,7 +195,7 @@ export default defineComponent({ case 'link': { return [h(MkLink, { key: Math.random(), - url: token.node.props.url, + url: token.props.url, rel: 'nofollow noopener', }, genEl(token.children))]; } @@ -204,32 +203,31 @@ export default defineComponent({ case 'mention': { return [h(MkMention, { key: Math.random(), - host: (token.node.props.host == null && this.author && this.author.host != null ? this.author.host : token.node.props.host) || host, - username: token.node.props.username + host: (token.props.host == null && this.author && this.author.host != null ? this.author.host : token.props.host) || host, + username: token.props.username })]; } case 'hashtag': { return [h(MkA, { key: Math.random(), - to: this.isNote ? `/tags/${encodeURIComponent(token.node.props.hashtag)}` : `/explore/tags/${encodeURIComponent(token.node.props.hashtag)}`, + to: this.isNote ? `/tags/${encodeURIComponent(token.props.hashtag)}` : `/explore/tags/${encodeURIComponent(token.props.hashtag)}`, style: 'color:var(--hashtag);' - }, `#${token.node.props.hashtag}`)]; + }, `#${token.props.hashtag}`)]; } case 'blockCode': { return [h(MkCode, { key: Math.random(), - code: token.node.props.code, - lang: token.node.props.lang, + code: token.props.code, + lang: token.props.lang, })]; } case 'inlineCode': { return [h(MkCode, { key: Math.random(), - code: token.node.props.code, - lang: token.node.props.lang, + code: token.props.code, inline: true })]; } @@ -246,10 +244,19 @@ export default defineComponent({ } } - case 'emoji': { + case 'emojiCode': { return [h(MkEmoji, { key: Math.random(), - emoji: token.node.props.name ? `:${token.node.props.name}:` : token.node.props.emoji, + emoji: `:${token.props.name}:`, + customEmojis: this.customEmojis, + normal: this.plain + })]; + } + + case 'unicodeEmoji': { + return [h(MkEmoji, { + key: Math.random(), + emoji: token.props.emoji, customEmojis: this.customEmojis, normal: this.plain })]; @@ -258,7 +265,7 @@ export default defineComponent({ case 'mathInline': { return [h(MkFormula, { key: Math.random(), - formula: token.node.props.formula, + formula: token.props.formula, block: false })]; } @@ -266,7 +273,7 @@ export default defineComponent({ case 'mathBlock': { return [h(MkFormula, { key: Math.random(), - formula: token.node.props.formula, + formula: token.props.formula, block: true })]; } @@ -274,12 +281,12 @@ export default defineComponent({ case 'search': { return [h(MkGoogle, { key: Math.random(), - q: token.node.props.query + q: token.props.query })]; } default: { - console.error('unrecognized ast type:', token.node.type); + console.error('unrecognized ast type:', token.type); return []; } diff --git a/src/client/components/note-detailed.vue b/src/client/components/note-detailed.vue index fb4f9502b..5124b2a88 100644 --- a/src/client/components/note-detailed.vue +++ b/src/client/components/note-detailed.vue @@ -120,11 +120,11 @@ diff --git a/src/client/pages/explore.vue b/src/client/pages/explore.vue index da2eaffb8..dc3d424ba 100644 --- a/src/client/pages/explore.vue +++ b/src/client/pages/explore.vue @@ -1,5 +1,5 @@