-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename most image stuff to file/media/attachment
Signed-off-by: Julien Veyssier <[email protected]>
- Loading branch information
Julien Veyssier
committed
Aug 23, 2022
1 parent
efc9a98
commit 7f756b0
Showing
8 changed files
with
81 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
export const STATE_UPLOADING = Symbol('state:uploading-state') | ||
export const ACTION_IMAGE_PROMPT = Symbol('editor:action:image-prompt') | ||
export const ACTION_CHOOSE_LOCAL_IMAGE = Symbol('editor:action:upload-image') | ||
export const ACTION_ATTACHMENT_PROMPT = Symbol('editor:action:attachment-prompt') | ||
export const ACTION_CHOOSE_LOCAL_ATTACHMENT = Symbol('editor:action:upload-attachment') | ||
|
||
export const useUploadingStateMixin = { | ||
inject: { | ||
$uploadingState: { | ||
from: STATE_UPLOADING, | ||
default: { | ||
isUploadingImages: false, | ||
isUploadingAttachments: false, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export const useActionImagePromptMixin = { | ||
export const useActionAttachmentPromptMixin = { | ||
inject: { | ||
$callImagePrompt: { from: ACTION_IMAGE_PROMPT, default: () => {} }, | ||
$callAttachmentPrompt: { from: ACTION_ATTACHMENT_PROMPT, default: () => {} }, | ||
}, | ||
} | ||
|
||
export const useActionChooseLocalImageMixin = { | ||
export const useActionChooseLocalAttachmentMixin = { | ||
inject: { | ||
$callChooseLocalImage: { from: ACTION_CHOOSE_LOCAL_IMAGE, default: () => {} }, | ||
$callChooseLocalAttachment: { from: ACTION_CHOOSE_LOCAL_ATTACHMENT, default: () => {} }, | ||
}, | ||
} |
Oops, something went wrong.