From 925f89720aabfbf09eedbe6ace524c78f9e8e42d Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Jul 2019 17:02:58 +0900 Subject: [PATCH 1/9] New translations ja-JP.yml (Korean) (#5121) --- locales/ko-KR.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index a24ee9420..17f0009bb 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -123,6 +123,7 @@ common: add-visible-user: "사용자 추가" cw-placeholder: "내용에 대한 주석 (옵션)" username-prompt: "사용자명을 입력해주세요" + enter-file-name: "파일 이름 수정" weekday-short: sunday: "일" monday: "월" @@ -189,6 +190,11 @@ common: remember-note-visibility: "글의 공개 범위를 기억하기" web-search-engine: "웹 검색엔진" web-search-engine-desc: "예: https://www.google.com/?#q={{query}}" + paste: "붙여넣기" + pasted-file-name: "붙여넣은 파일의 이름 템플릿" + pasted-file-name-desc: "예시: \"yyyy-MM-dd HH-mm-ss [{{number}}]\" → \"2018-03-20 21-30-24 1\"" + paste-dialog: "붙여넣기 시 파일 이름을 편집" + paste-dialog-desc: "붙여넣기 시 파일 이름을 편집할 수 있도록 대화 상자를 표시합니다." keep-cw: "CW 유지" keep-cw-desc: "글에 답글을 달 때, 답글할 글에 CW가 설정되어 있는 경우 기본값으로 동일한 CW를 설정하도록 합니다." i-like-sushi: "저는 (푸딩보다 차라리) 초밥이 좋아요" From 4478298a0a1db41b234c4bef3611d8a3256bc653 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jul 2019 00:11:04 +0900 Subject: [PATCH 2/9] Update uodate docs --- CHANGELOG.md | 12 ------------ docs/setup.en.md | 2 +- docs/setup.fr.md | 2 +- docs/setup.ja.md | 2 +- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 732475db3..6ab5ae5fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,18 +5,6 @@ If you encounter any problems with updating, please try the following: 1. `npm run clean` or `npm run cleanall` 2. Retry update (Don't forget `npm i`) -Migration ------------------------------- -#### 1 -``` -npm i -g ts-node -``` - -#### 2 -``` -npm run migrate -``` - 11.25.0 (2019/07/08) -------------------- ### ✨Improvements diff --git a/docs/setup.en.md b/docs/setup.en.md index b38ef64a0..302038003 100644 --- a/docs/setup.en.md +++ b/docs/setup.en.md @@ -132,7 +132,7 @@ You can check if the service is running with `systemctl status misskey`. 2. `git pull` 3. `npm install` 4. `NODE_ENV=production npm run build` -5. Check [ChangeLog](../CHANGELOG.md) for migration information +5. `npm run migrate` 6. Restart your Misskey process to apply changes 7. Enjoy diff --git a/docs/setup.fr.md b/docs/setup.fr.md index 7ab88a6cd..09ab305b4 100644 --- a/docs/setup.fr.md +++ b/docs/setup.fr.md @@ -126,7 +126,7 @@ Vous pouvez vérifier si le service a démarré en utilisant la commande `system 2. `git pull` 3. `npm install` 4. `NODE_ENV=production npm run build` -5. Consultez [ChangeLog](../CHANGELOG.md) pour les information de migration. +5. `npm run migrate` ---------------------------------------------------------------- diff --git a/docs/setup.ja.md b/docs/setup.ja.md index fcbef2af1..e8a11de69 100644 --- a/docs/setup.ja.md +++ b/docs/setup.ja.md @@ -133,7 +133,7 @@ npm run init 2. `git pull` 3. `npm install` 4. `NODE_ENV=production npm run build` -5. [ChangeLog](../CHANGELOG.md)でマイグレーション情報を確認する +5. `npm run migrate` なにか問題が発生した場合は、`npm run clean`または`npm run cleanall`すると直る場合があります。 From 2465a377a1ed4cb0904c088c95076c28c9cf92a2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jul 2019 04:09:02 +0900 Subject: [PATCH 3/9] Delete init.ts --- src/init.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/init.ts diff --git a/src/init.ts b/src/init.ts deleted file mode 100644 index 2fe16a706..000000000 --- a/src/init.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { initDb } from './db/postgre'; - -console.log('Init database...'); - -initDb(false, true, true).then(() => { - console.log('Done :)'); - process.exit(0); -}, e => { - console.error('Failed to init database'); - console.error(e); -}); From 2f451fa05883e60a6b2b2963d71f103e7c86265f Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jul 2019 09:53:24 +0900 Subject: [PATCH 4/9] New translations ja-JP.yml (English) (#5123) --- locales/en-US.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/locales/en-US.yml b/locales/en-US.yml index 0be3c1b29..1077f563b 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -191,7 +191,10 @@ common: web-search-engine: "Web search engine" web-search-engine-desc: "Example: https://www.google.com/?#q={{query}}" paste: "Paste" + pasted-file-name: "Template for pasted file name" + pasted-file-name-desc: "Example: \"yyyy-MM-dd HH-mm-ss [{{number}}]\" → \"2018-03-20 21-30-24 1\"" paste-dialog: "Edit the pasted file name" + paste-dialog-desc: "Display the dialog to edit the file name when you pasting file." keep-cw: "Preserve content warning" keep-cw-desc: "When replying to a post, the same content warning is set by default to the reply, as has been set by the original post." i-like-sushi: "I prefer sushi rather than pudding" From 0eb84fe8745fb3aa4c5387a99d0dbf3174f45b75 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jul 2019 16:55:33 +0900 Subject: [PATCH 5/9] Fix bug --- src/server/api/endpoints/page-push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/page-push.ts b/src/server/api/endpoints/page-push.ts index f5e1a4d1e..3af9ff50f 100644 --- a/src/server/api/endpoints/page-push.ts +++ b/src/server/api/endpoints/page-push.ts @@ -38,7 +38,7 @@ export default define(meta, async (ps, user) => { throw new ApiError(meta.errors.noSuchPage); } - publishMainStream(user.id, 'pageEvent', { + publishMainStream(page.userId, 'pageEvent', { pageId: ps.pageId, event: ps.event, var: ps.var, From a7aa9249493e2611c359ae49987da050f7abd09f Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jul 2019 16:55:55 +0900 Subject: [PATCH 6/9] Add userId prop --- src/server/api/endpoints/page-push.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/api/endpoints/page-push.ts b/src/server/api/endpoints/page-push.ts index 3af9ff50f..bdd2ebfe5 100644 --- a/src/server/api/endpoints/page-push.ts +++ b/src/server/api/endpoints/page-push.ts @@ -42,6 +42,7 @@ export default define(meta, async (ps, user) => { pageId: ps.pageId, event: ps.event, var: ps.var, + userId: user.id, user: await Users.pack(user, page.userId, { detail: true }) From 24e389bcf3768cb373683b614950077f92a2b72a Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 9 Jul 2019 17:01:08 +0900 Subject: [PATCH 7/9] Tune font (#5125) --- .../app/common/views/components/google.vue | 1 - .../app/common/views/components/page/page.vue | 6 +++- .../app/desktop/views/components/drive.vue | 31 ------------------- .../views/components/ui.header.account.vue | 1 - src/client/app/init.css | 2 +- src/client/app/reset.styl | 2 +- src/client/style.styl | 2 +- src/server/web/views/info.pug | 2 +- 8 files changed, 9 insertions(+), 38 deletions(-) diff --git a/src/client/app/common/views/components/google.vue b/src/client/app/common/views/components/google.vue index dab2e6824..1e8814739 100644 --- a/src/client/app/common/views/components/google.vue +++ b/src/client/app/common/views/components/google.vue @@ -41,7 +41,6 @@ export default Vue.extend({ padding 10px width 100% height 40px - font-family sans-serif font-size 16px color var(--googleSearchFg) background var(--googleSearchBg) diff --git a/src/client/app/common/views/components/page/page.vue b/src/client/app/common/views/components/page/page.vue index 99e627fd8..1bfb93780 100644 --- a/src/client/app/common/views/components/page/page.vue +++ b/src/client/app/common/views/components/page/page.vue @@ -1,5 +1,5 @@