-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(editor): emitter options rewrite
- Loading branch information
Showing
18 changed files
with
142 additions
and
1,138 deletions.
There are no files selected for viewing
896 changes: 0 additions & 896 deletions
896
...s/better-write-app/src/components/page/editor/entity/default/EditorEntityDefaultInput.vue
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...er-write-app/src/components/page/editor/entity/default/EditorEntityDefaultInputSelect.vue
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...ite-app/src/components/page/editor/entity/default/blocks/EditorEntityDefaultParagraph.vue
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
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,10 +1,11 @@ | ||
import { Events } from 'better-write-types' | ||
import { Emitter } from 'mitt' | ||
import { getCurrentInstance, ComponentInternalInstance } from 'vue' | ||
import { VueEmitter } from 'better-write-types' | ||
|
||
export default function useEmitter() { | ||
const internalInstance = getCurrentInstance() | ||
const emitter = (internalInstance as ComponentInternalInstance).appContext | ||
.config.globalProperties.emitter | ||
|
||
return emitter as VueEmitter | ||
return emitter as Emitter<Events> | ||
} |
Oops, something went wrong.