Download sd-webui-openpose-editor/src/Notification.ts from jun34GTR/exqq: direct link, hf CLI and curl.
- Browser
- Download file 766 Bytes
-
https://huggingface.co/jun34GTR/exqq/resolve/main/sd-webui-openpose-editor/src/Notification.ts
- Command line
-
hf download hf://jun34GTR/exqq/sd-webui-openpose-editor/src/Notification.ts
-
curl -L -o Notification.ts https://huggingface.co/jun34GTR/exqq/resolve/main/sd-webui-openpose-editor/src/Notification.ts
766 Bytes
| import type { App } from 'vue'; | |
| import { message, notification } from 'ant-design-vue'; | |
| declare module '@vue/runtime-core' { | |
| interface ComponentCustomProperties { | |
| $message: typeof message; | |
| $notify: (params: string | { title: string; desc: string; [key: string]: any }) => void; | |
| } | |
| } | |
| export default { | |
| install: (app: App, options?: any) => { | |
| app.config.globalProperties.$message = message; | |
| app.config.globalProperties.$notify = (params) => { | |
| if (typeof params === 'string') { | |
| notification.error({ | |
| message: params, | |
| }); | |
| } else { | |
| notification.error({ | |
| message: params.title, | |
| description: params.desc, | |
| ...params, | |
| }); | |
| } | |
| }; | |
| }, | |
| }; |