diff --git a/TODO.md b/TODO.md index d1881db..f80152f 100644 --- a/TODO.md +++ b/TODO.md @@ -3,6 +3,6 @@ This file is used to show the current focus of maintainers, your contributions are not limited to these tasks. - [x] transform to adapt modularity practice (main class maintains `pointers` map only, other imports share map and register hooks) -- [ ] add rotate functionality to `multiPointer_zanZoom`. -- [ ] support multi-element init, add / remove monitoring element and API. -- [ ] prototype `PointeractManager`. +- [x] implement `Swipe` module and event. +- [ ] add rotate functionality to `MultiTouchPanZoom`. +- [ ] prototype `PointeractManager` that supports multi-element init, add / remove monitoring element and API. diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index bf5ea91..efcc1a1 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -3,7 +3,8 @@ import { defineConfig } from 'vitepress'; import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'; import { ThemeConfig } from 'vitepress-theme-trito'; -// https://vitepress.dev/reference/site-config +const inDev = process.env.MODE === 'dev'; + export default defineConfig({ cleanUrls: true, lastUpdated: true, @@ -20,7 +21,7 @@ export default defineConfig({ 'script', { defer: '', - src: 'https://analytics.consensia.cc/script.js', + src: inDev ? '' : 'https://analytics.consensia.cc/script.js', 'data-website-id': 'f4ddf973-093c-4660-bda7-65a511d5b26c', }, ], diff --git a/docs/.vitepress/theme/env.d.ts b/docs/.vitepress/theme/env.d.ts new file mode 100644 index 0000000..6a375b7 --- /dev/null +++ b/docs/.vitepress/theme/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/docs/components/playground.vue b/docs/components/playground.vue index 5f34629..32141da 100644 --- a/docs/components/playground.vue +++ b/docs/components/playground.vue @@ -11,7 +11,6 @@