From 13b1e5819500b9cb81c9f9ad1286628744457b0c Mon Sep 17 00:00:00 2001 From: Mateusz Baginski Date: Wed, 4 Sep 2024 08:38:11 +0200 Subject: [PATCH] Introduce Vue CDN integration. --- demos/editor-cdn-suspense/App.vue | 14 + demos/editor-cdn-suspense/Editor.vue | 123 +++ demos/editor-cdn-suspense/demo.ts | 12 + demos/editor-cdn-suspense/index.html | 13 + demos/editor-cdn/App.vue | 130 +++ demos/editor-cdn/demo.ts | 12 + demos/editor-cdn/index.html | 13 + {demo => demos/editor-npm}/App.vue | 2 +- {demo => demos/editor-npm}/demo.ts | 2 +- demos/editor-npm/index.html | 13 + {demo => demos}/tsconfig.json | 0 index.html | 25 +- package.json | 7 +- scripts/bump-year.js | 2 +- src/composables/useAsync.ts | 100 ++ src/plugin.ts | 13 + src/useCKEditorCloud.ts | 45 + tests/composables/useAsync.test.ts | 102 ++ tests/useCKEditorCloud.test.ts | 56 ++ yarn.lock | 1295 +++++++++++++++++++++++++- 20 files changed, 1958 insertions(+), 21 deletions(-) create mode 100644 demos/editor-cdn-suspense/App.vue create mode 100644 demos/editor-cdn-suspense/Editor.vue create mode 100644 demos/editor-cdn-suspense/demo.ts create mode 100644 demos/editor-cdn-suspense/index.html create mode 100644 demos/editor-cdn/App.vue create mode 100644 demos/editor-cdn/demo.ts create mode 100644 demos/editor-cdn/index.html rename {demo => demos/editor-npm}/App.vue (97%) rename {demo => demos/editor-npm}/demo.ts (84%) create mode 100644 demos/editor-npm/index.html rename {demo => demos}/tsconfig.json (100%) create mode 100644 src/composables/useAsync.ts create mode 100644 src/useCKEditorCloud.ts create mode 100644 tests/composables/useAsync.test.ts create mode 100644 tests/useCKEditorCloud.test.ts diff --git a/demos/editor-cdn-suspense/App.vue b/demos/editor-cdn-suspense/App.vue new file mode 100644 index 0000000..b5bc285 --- /dev/null +++ b/demos/editor-cdn-suspense/App.vue @@ -0,0 +1,14 @@ + + + diff --git a/demos/editor-cdn-suspense/Editor.vue b/demos/editor-cdn-suspense/Editor.vue new file mode 100644 index 0000000..df808df --- /dev/null +++ b/demos/editor-cdn-suspense/Editor.vue @@ -0,0 +1,123 @@ +