Skip to content

Commit

Permalink
Merge changes from old repository
Browse files Browse the repository at this point in the history
nekoplanet#13 Add changelog by @HotoRas
2215de5 by @HotoRas
c645e8f by @HotoRas
nekoplanet#15 ๋…ธํŠธ ์ˆ˜์ • ๊ธฐ๋Šฅ ๋ถ€ํ™œ (3ํŠธ) by @HotoRas
nekoplanet#16 Feat: "๋‹ค๋ฅธ ๊ณ„์ • ์ถ”๊ฐ€" ๋ฒ„ํŠผ ์•„๋ž˜์— "์ƒˆ ๊ณ„์ • ์ถ”๊ฐ€" ๋ฒ„ํŠผ์ด ์‚ด์•„ ์žˆ์–ด์„œ ์ง€์› ์Šต๋‹ˆ๋‹ค by @HotoRas
nekoplanet#17 Typecheck Fix by @janghoseo
nekoplanet#21 Fix note edit 2 by @HotoRas
  • Loading branch information
HotoRas committed Aug 9, 2024
1 parent 83e87fb commit c49a348
Show file tree
Hide file tree
Showing 36 changed files with 971 additions and 118 deletions.
111 changes: 0 additions & 111 deletions .github/workflows/storybook.yml

This file was deleted.

19 changes: 19 additions & 0 deletions Changelog-neko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Unreleased

### General
- Fix: ํ”„๋ก ํŠธ์—”๋“œ์˜ ํƒ€์ž… ์ด์Šˆ
- Revert: s3 ์„ค์ •์„ ์„ค์ • ํŒŒ์ผ๋กœ ์˜ฎ๊น€ (์ทจ์†Œ๋จ: MisskeyIO#104)
- Feat: ๋…ธํŠธ ์ˆ˜์ • ๊ธฐ๋Šฅ ๋ถ€ํ™œ (Code cherry-picked from cherrypick)

### Client
- Revert: s3 ์„ค์ • ํŽ˜์ด์ง€๋ฅผ ๊ด€๋ฆฌ ํŽ˜์ด์ง€ ํ•˜์œ„์—์„œ ์‚ญ์ œ (์ทจ์†Œ๋จ: MisskeyIO#104)

### Backend

### Frontend
- Feat: "๋‹ค๋ฅธ ๊ณ„์ • ์ถ”๊ฐ€" ๋ฒ„ํŠผ ์•„๋ž˜์— "์ƒˆ ๊ณ„์ • ์ถ”๊ฐ€" ๋ฒ„ํŠผ์ด ์‚ด์•„ ์žˆ์–ด์„œ ์ง€์› ์Šต๋‹ˆ๋‹ค

### misskey-js

### develop
- QoL: `misskey-js`์˜ ๊ฐฑ์‹ ๊ณผ ์ด๋ฅผ ์ ์šฉํ•œ ์ „์ฒด ๋นŒ๋“œ์˜ ์ž๋™ํ™” ์Šคํฌ๋ฆฝํŠธ ์ถ”๊ฐ€
1 change: 1 addition & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ tokenRequested: "Grant access to account"
pluginTokenRequestedDescription: "This plugin will be able to use the permissions set here."
notificationType: "Notification type"
edit: "Edit"
editConfirm: "Edit note? Some remote servers won't properly display the edited content."
emailServer: "Email server"
enableEmail: "Enable email distribution"
emailConfigInfo: "Used to confirm your email during sign-up or if you forget your password"
Expand Down
4 changes: 4 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2644,6 +2644,10 @@ export interface Locale extends ILocale {
* ็ทจ้›†
*/
"edit": string;
/**
* ใƒŽใƒผใƒˆใ‚’ไฟฎๆญฃใ—ใพใ™ใ‹๏ผŸ้€ฃๅˆใ™ใ‚‹ใ‚ตใƒผใƒใƒผใซใ‚ˆใฃใฆใฏใ€ไฟฎๆญฃๅพŒใฎใƒŽใƒผใƒˆใŒๆญฃๅธธใซ่กจ็คบใ•ใ‚Œใชใ„ๅ ดๅˆใŒใ‚ใ‚Šใพใ™ใ€‚
*/
"editConfirm": string;
/**
* ใƒกใƒผใƒซใ‚ตใƒผใƒใƒผ
*/
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ tokenRequested: "ใ‚ขใ‚ซใ‚ฆใƒณใƒˆใธใฎใ‚ขใ‚ฏใ‚ปใ‚น่จฑๅฏ"
pluginTokenRequestedDescription: "ใ“ใฎใƒ—ใƒฉใ‚ฐใ‚คใƒณใฏใ“ใ“ใง่จญๅฎšใ—ใŸๆจฉ้™ใ‚’่กŒไฝฟใงใใ‚‹ใ‚ˆใ†ใซใชใ‚Šใพใ™ใ€‚"
notificationType: "้€š็Ÿฅใฎ็จฎ้กž"
edit: "็ทจ้›†"
editConfirm: "ใƒŽใƒผใƒˆใ‚’ไฟฎๆญฃใ—ใพใ™ใ‹๏ผŸ้€ฃๅˆใ™ใ‚‹ใ‚ตใƒผใƒใƒผใซใ‚ˆใฃใฆใฏใ€ไฟฎๆญฃๅพŒใฎใƒŽใƒผใƒˆใŒๆญฃๅธธใซ่กจ็คบใ•ใ‚Œใชใ„ๅ ดๅˆใŒใ‚ใ‚Šใพใ™ใ€‚"
emailServer: "ใƒกใƒผใƒซใ‚ตใƒผใƒใƒผ"
enableEmail: "ใƒกใƒผใƒซ้…ไฟกๆฉŸ่ƒฝใ‚’ๆœ‰ๅŠนๅŒ–ใ™ใ‚‹"
emailConfigInfo: "ใƒกใƒผใƒซใ‚ขใƒ‰ใƒฌใ‚นใฎ็ขบ่ชใ‚„ใƒ‘ใ‚นใƒฏใƒผใƒ‰ใƒชใ‚ปใƒƒใƒˆใฎ้š›ใซไฝฟใ„ใพใ™"
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ tokenRequested: "๊ณ„์ • ์ ‘๊ทผ ํ—ˆ์šฉ"
pluginTokenRequestedDescription: "์ด ํ”Œ๋Ÿฌ๊ทธ์ธ์€ ์—ฌ๊ธฐ์„œ ์„ค์ •ํ•œ ๊ถŒํ•œ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค."
notificationType: "์•Œ๋ฆผ ์œ ํ˜•"
edit: "ํŽธ์ง‘"
editConfirm: "๋…ธํŠธ๋ฅผ ์ˆ˜์ •ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? ์—ฐํ•ฉ๋˜๋Š” ์„œ๋ฒ„์— ๋”ฐ๋ผ ์ˆ˜์ • ํ›„์˜ ๋…ธํŠธ๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ํ‘œ์‹œ๋˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
emailServer: "๋ฉ”์ผ ์„œ๋ฒ„"
enableEmail: "์ด๋ฉ”์ผ ์†ก์‹  ๊ธฐ๋Šฅ ํ™œ์„ฑํ™”"
emailConfigInfo: "๊ฐ€์ž… ์‹œ ๋ฉ”์ผ ์ฃผ์†Œ ํ™•์ธ์ด๋‚˜ ๋น„๋ฐ€๋ฒˆํ˜ธ ์ดˆ๊ธฐํ™” ์‹œ์— ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@
"optionalDependencies": {
"@tensorflow/tfjs-core": "4.4.0"
}
}
}
20 changes: 20 additions & 0 deletions packages/backend/migration/1720853122058-RevRevertNoteEdit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/

export class RevRevertNoteEdit1720853122058 {
name = 'RevRevertNoteEdit1720853122058'

async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`);
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAtHistory" TIMESTAMP WITH TIME ZONE ARRAY`);
await queryRunner.query(`ALTER TABLE "note" ADD "noteEditHistory" character varying array`)
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
await queryRunner.query(`ALTER TABLE "note" DROP "updatedAtHistory" TIMESTAMP WITH TIME ZONE ARRAY`);
await queryRunner.query(`ALTER TABLE "note" DROP "noteEditHistory"`)
}

}
8 changes: 8 additions & 0 deletions packages/backend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ export type Config = {
index: string;
scope?: 'local' | 'global' | string[];
} | undefined;
skebStatus: {
method: string;
endpoint: string;
headers: { [x: string]: string };
parameters: { [x: string]: string };
userIdParameterName: string;
roleId: string;
} | undefined;
proxy: string | undefined;
proxySmtp: string | undefined;
proxyBypassHosts: string[] | undefined;
Expand Down
6 changes: 6 additions & 0 deletions packages/backend/src/core/CoreModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { MetaService } from './MetaService.js';
import { MfmService } from './MfmService.js';
import { ModerationLogService } from './ModerationLogService.js';
import { NoteCreateService } from './NoteCreateService.js';
import { NoteUpdateService } from './NoteUpdateService.js';
import { NoteDeleteService } from './NoteDeleteService.js';
import { NotePiningService } from './NotePiningService.js';
import { NoteReadService } from './NoteReadService.js';
Expand Down Expand Up @@ -183,6 +184,7 @@ const $MetaService: Provider = { provide: 'MetaService', useExisting: MetaServic
const $MfmService: Provider = { provide: 'MfmService', useExisting: MfmService };
const $ModerationLogService: Provider = { provide: 'ModerationLogService', useExisting: ModerationLogService };
const $NoteCreateService: Provider = { provide: 'NoteCreateService', useExisting: NoteCreateService };
const $NoteUpdateService: Provider = { provide: 'NoteUpdateService', useExisting: NoteUpdateService };
const $NoteDeleteService: Provider = { provide: 'NoteDeleteService', useExisting: NoteDeleteService };
const $NotePiningService: Provider = { provide: 'NotePiningService', useExisting: NotePiningService };
const $NoteReadService: Provider = { provide: 'NoteReadService', useExisting: NoteReadService };
Expand Down Expand Up @@ -331,6 +333,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
MfmService,
ModerationLogService,
NoteCreateService,
NoteUpdateService,
NoteDeleteService,
NotePiningService,
NoteReadService,
Expand Down Expand Up @@ -475,6 +478,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$MfmService,
$ModerationLogService,
$NoteCreateService,
$NoteUpdateService,
$NoteDeleteService,
$NotePiningService,
$NoteReadService,
Expand Down Expand Up @@ -620,6 +624,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
MfmService,
ModerationLogService,
NoteCreateService,
NoteUpdateService,
NoteDeleteService,
NotePiningService,
NoteReadService,
Expand Down Expand Up @@ -763,6 +768,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$MfmService,
$ModerationLogService,
$NoteCreateService,
$NoteUpdateService,
$NoteDeleteService,
$NotePiningService,
$NoteReadService,
Expand Down
Loading

0 comments on commit c49a348

Please sign in to comment.