-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Feat: ドライブ周りのUIの強化 #16011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
syuilo
wants to merge
73
commits into
develop
Choose a base branch
from
drive-bulk
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,960
−1,461
Open
Feat: ドライブ周りのUIの強化 #16011
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
a7339c7
wip
syuilo 8fea2c4
Merge branch 'develop' into drive-bulk
syuilo f2f3fea
Merge branch 'develop' into drive-bulk
syuilo 28856ac
Merge branch 'develop' into drive-bulk
syuilo 8ce2f43
wip
syuilo eccd27d
Update MkDrive.vue
syuilo 5a84789
Merge branch 'develop' into drive-bulk
syuilo b21b287
wip
syuilo 293aa95
Update MkDrive.vue
syuilo f25bc9b
Update MkDrive.vue
syuilo c98d72e
wip
syuilo 796b0c3
Update MkDrive.vue
syuilo 9d6eb95
Update MkDrive.vue
syuilo 8a072b1
wip
syuilo 5149e1c
Update MkDrive.vue
syuilo 6d5e950
wip
syuilo 90ac029
wip
syuilo ade38bf
wip
syuilo 40c5cd0
wip
syuilo 4d185b4
Update MkDrive.vue
syuilo db09744
wip
syuilo 4ff3cdd
wip
syuilo 9bf9b10
wip
syuilo e9ee571
wip
syuilo f239e6f
wip
syuilo cf701f3
wip
syuilo a9422d6
wip
syuilo 69f5314
Merge branch 'develop' into drive-bulk
syuilo 8d1a181
Merge branch 'develop' into drive-bulk
syuilo 0a0ff87
Merge branch 'develop' into drive-bulk
syuilo 4828fba
Merge branch 'develop' into drive-bulk
syuilo d448f26
Merge branch 'develop' into drive-bulk
syuilo 9010c97
Merge branch 'develop' into drive-bulk
syuilo 0dd2242
Merge branch 'develop' into drive-bulk
syuilo 73a83c0
feat(frontend): upload dialog (#16032)
syuilo 6c7f24f
wip
syuilo 90c40cd
wip
syuilo 566f729
Update MkPostForm.vue
syuilo 37f846a
wip
syuilo a96e998
Update room.form.vue
syuilo 48f2d2b
Update os.ts
syuilo 0cb7289
wiop
syuilo 7c06558
wip
syuilo edeeca8
wip
syuilo 0397a50
wip
syuilo df2971e
wip
syuilo 7997ecb
wip
syuilo 0e2a3eb
wip
syuilo 4103296
wip
syuilo 6f530b7
Update select-file.ts
syuilo 01976c0
wip
syuilo 292d004
wip
syuilo 6573b2b
Update MkDrive.vue
syuilo 7725107
Update drag-and-drop.ts
syuilo 052df8f
wip
syuilo 41f149a
wip
syuilo cfd95ce
wop
syuilo 0126523
wip
syuilo 7b8f455
wip
syuilo 37c37df
Merge branch 'develop' into drive-bulk
syuilo 6c83545
Update MkDrive.vue
syuilo 10f6919
Update CHANGELOG.md
syuilo 928d941
wipo
syuilo abb8e6c
Merge branch 'develop' into drive-bulk
syuilo 3a874dd
Update MkDrive.folder.vue
syuilo 2d87794
wip
syuilo 291659f
Update MkUploaderDialog.vue
syuilo 0c2c568
wip
syuilo 0f789a5
wip
syuilo 36725b3
Update MkUploaderDialog.vue
syuilo 4f57fd3
wip
syuilo 3902fe8
Update MkDrive.vue
syuilo bff910c
Update MkDrive.vue
syuilo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
packages/backend/src/server/api/endpoints/drive/files/move-bulk.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* SPDX-FileCopyrightText: syuilo and misskey-project | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
import { Inject, Injectable } from '@nestjs/common'; | ||
import { Endpoint } from '@/server/api/endpoint-base.js'; | ||
import { DI } from '@/di-symbols.js'; | ||
import { DriveService } from '@/core/DriveService.js'; | ||
import { ApiError } from '../../../error.js'; | ||
|
||
export const meta = { | ||
tags: ['drive'], | ||
|
||
requireCredential: true, | ||
|
||
kind: 'write:drive', | ||
|
||
errors: { | ||
}, | ||
|
||
res: {}, | ||
} as const; | ||
|
||
export const paramDef = { | ||
type: 'object', | ||
properties: { | ||
fileIds: { type: 'array', uniqueItems: true, minItems: 1, maxItems: 100, items: { type: 'string', format: 'misskey:id' } }, | ||
folderId: { type: 'string', format: 'misskey:id', nullable: true }, | ||
}, | ||
required: ['fileIds'], | ||
} as const; | ||
|
||
@Injectable() | ||
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export | ||
constructor( | ||
private driveService: DriveService, | ||
) { | ||
super(meta, paramDef, async (ps, me) => { | ||
await this.driveService.moveFiles(ps.fileIds, ps.folderId ?? null, me.id); | ||
}); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: #15904 と同様の理由で不要です