diff --git a/docs/.vitepress/assets/index.css b/docs/.vitepress/assets/index.css new file mode 100644 index 00000000..c38a6bf7 --- /dev/null +++ b/docs/.vitepress/assets/index.css @@ -0,0 +1,164 @@ +html, +body { + position: relative; + margin: 0; + height: 100%; + overflow: hidden; + color: #111; + /* background-color: #31475e; + background-position: center; + background-size: cover; + background-repeat: no-repeat; + background-image: url('./polygon-scatter.svg'); + */ +} + +.backround-img { + background-position: center; + background-size: cover; + background-repeat: no-repeat; + background-image: url('./polygon-scatter.svg'); +} + +.overview-example__add { + display: none; +} + +.vue-flow__node a { + font-weight: 700; + color: #111; +} + +.vue-flow__node.dark-node { + background: #0041d0; + color: #f8f8f8; +} + +.vue-flow__node.dark { + background: #557; + color: #f8f8f8; +} + +.vue-flow__node-selector { + font-size: 14px; + background: #f0f2f3; + border: 1px solid #555; + border-radius: 5px; + text-align: center; +} + +.vue-flow__node-selector .vue-flow__handle { + border-color: #f0f2f3; +} + +@media screen and (min-width: 768px) { + .overview-example__add { + display: block; + } +} + +.font-mono { + font-family: 'JetBrains Mono', monospace; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +#vue-flow-examples { + width: calc(100% - 280px); + overflow: scroll; + @apply flex m-0 flex-col uppercase; + font-family: 'JetBrains Mono', monospace; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + +.vue-flow { + @apply bg-white h-[80vh]; +} + +.description { + @apply p-0 md:p-6 text-left gap-2 flex flex-col justify-center items-center text-white normal-case leading-tight md:leading-normal; + +.content { + @apply w-full md:w-5/6 xl:w-11/12 p-6 md:rounded-xl; +} +} +} + +#vue-flow-docs { + @apply flex m-0 p-0 lg:p-6 bg-gray-800 text-white overflow-scroll max-w-full; +} + +#vue-flow-docs, #vue-flow-examples, +.home-page { +a { + @apply text-green-500 font-semibold hover:text-green-300; +} +} + +h1 { + @apply text-xl lg:text-4xl mb-4 font-bold; +} + +h2 { + @apply text-lg lg:text-2xl mb-4 font-semibold; +} + +p { + @apply text-md lg:text-lg font-qtype; +} + +p ~ h1, p ~ h2 { + @apply mt-6; +} + +ul { + @apply md:p-[revert]; +} + +li { + @apply mt-2 text-md lg:text-lg; + list-style: inside; + list-style-type: circle; +} + +.button { + @apply bg-gray-200 hover:bg-gray-300 focus:outline-none font-bold mr-2 border-2 p-2 rounded-xl; +} + +.md { + @apply prose prose-sm m-auto text-left flex flex-col gap-4; +} + +.attention-box { + @apply text-gray-800 p-4 bg-yellow-300 rounded-xl mb-4; + +.title { + @apply text-lg font-bold; +} +} + +.demo-flow { + @apply bg-white border-1 solid border-gray-300 rounded-xl; +} + +pre { + @apply !text-xs !md:text-lg; +} + +.slider { + --color: red; + @apply bg-gray-200 w-full h-[10px] outline-none rounded-full; + -webkit-appearance: none; + appearance: none; + +&::-moz-range-thumb { + @apply w-[15px] h-[15px] cursor-pointer border-1 border-solid border-white rounded-full; + -webkit-appearance: none; + background: var(--color); + } +&::-webkit-slider-thumb { + @apply w-[15px] h-[15px] cursor-pointer border-1 border-solid border-white rounded-full; + -webkit-appearance: none; + background: var(--color); + } +} diff --git a/docs/.vitepress/assets/polygon-scatter.svg b/docs/.vitepress/assets/polygon-scatter.svg new file mode 100644 index 00000000..5b07c11f --- /dev/null +++ b/docs/.vitepress/assets/polygon-scatter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/.vitepress/components/Demo.vue b/docs/.vitepress/components/demo/Demo.vue similarity index 100% rename from docs/.vitepress/components/Demo.vue rename to docs/.vitepress/components/demo/Demo.vue diff --git a/docs/.vitepress/components/home/Basic.vue b/docs/.vitepress/components/home/Basic.vue new file mode 100644 index 00000000..22c1b87f --- /dev/null +++ b/docs/.vitepress/components/home/Basic.vue @@ -0,0 +1,73 @@ + + + diff --git a/docs/.vitepress/components/home/Features.vue b/docs/.vitepress/components/home/Features.vue new file mode 100644 index 00000000..0a664e2f --- /dev/null +++ b/docs/.vitepress/components/home/Features.vue @@ -0,0 +1,60 @@ + + diff --git a/docs/.vitepress/components/home/Home.vue b/docs/.vitepress/components/home/Home.vue new file mode 100644 index 00000000..581e5b25 --- /dev/null +++ b/docs/.vitepress/components/home/Home.vue @@ -0,0 +1,311 @@ + + + diff --git a/docs/.vitepress/components/home/RGB.vue b/docs/.vitepress/components/home/RGB.vue new file mode 100644 index 00000000..2d2558e0 --- /dev/null +++ b/docs/.vitepress/components/home/RGB.vue @@ -0,0 +1,103 @@ + + diff --git a/docs/.vitepress/components/home/edges/Custom.vue b/docs/.vitepress/components/home/edges/Custom.vue new file mode 100644 index 00000000..e8afcac6 --- /dev/null +++ b/docs/.vitepress/components/home/edges/Custom.vue @@ -0,0 +1,61 @@ + + + diff --git a/docs/.vitepress/components/home/nodes/Box.vue b/docs/.vitepress/components/home/nodes/Box.vue new file mode 100644 index 00000000..37e4819f --- /dev/null +++ b/docs/.vitepress/components/home/nodes/Box.vue @@ -0,0 +1,12 @@ + + diff --git a/docs/.vitepress/components/home/nodes/Input.vue b/docs/.vitepress/components/home/nodes/Input.vue new file mode 100644 index 00000000..11a22531 --- /dev/null +++ b/docs/.vitepress/components/home/nodes/Input.vue @@ -0,0 +1,44 @@ + + diff --git a/docs/.vitepress/components/home/nodes/Output.vue b/docs/.vitepress/components/home/nodes/Output.vue new file mode 100644 index 00000000..3ef5dee6 --- /dev/null +++ b/docs/.vitepress/components/home/nodes/Output.vue @@ -0,0 +1,24 @@ + + + diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index ee795e52..e7ab6b2d 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -2,16 +2,36 @@ import { config } from 'dotenv' import { resolve } from 'path' import { defineConfig, HeadConfig } from 'vitepress' import head from './head' +import WindiCSS from 'vite-plugin-windicss' +import Components from 'unplugin-vue-components/vite' config({ path: resolve(__dirname, '.env') }) export default defineConfig({ title: 'Vue Flow', - description: 'Create node based editors!', lastUpdated: true, srcDir: './src', head: head as HeadConfig[], + vite: { + plugins: [ + WindiCSS({ + config: resolve(__dirname, './windi.config.ts'), + }) as any, + Components({ + dirs: [ + resolve(__dirname, './components') + ], + deep: true, + // allow auto load markdown components under `./src/components/` + extensions: ['vue', 'md'], + // allow auto import and register components used in markdown + include: [/\.vue$/, /\.vue\?vue/, /\.md$/], + dts: false, + }), + ], + }, + themeConfig: { repo: 'bcakmakoglu/vue-flow', docsDir: 'docs', diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index c1406ea5..a2162119 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,10 +1,10 @@ import { Theme } from 'vitepress'; import DefaultTheme from 'vitepress/theme' -import Demo from '../components/Demo.vue' +import 'virtual:windi.css' +import '@braks/vue-flow/dist/style.css' +import '@braks/vue-flow/dist/theme-default.css' +import '../assets/index.css' export default { ...DefaultTheme, - enhanceApp({ app }) { - app.component('Demo', Demo) - } } as Theme diff --git a/docs/.vitepress/windi.config.ts b/docs/.vitepress/windi.config.ts new file mode 100644 index 00000000..b48b7748 --- /dev/null +++ b/docs/.vitepress/windi.config.ts @@ -0,0 +1,11 @@ +import { defineConfig } from 'windicss/helpers' +import { resolve } from 'path' + +export default defineConfig({ + extract: { + include: [ + resolve(__dirname, 'components/**/*.{ts,md,vue}') + ], + }, + attributify: true, +}) diff --git a/docs/Basic/Basic.vue b/docs/Basic/Basic.vue deleted file mode 100644 index 0d7e2565..00000000 --- a/docs/Basic/Basic.vue +++ /dev/null @@ -1,62 +0,0 @@ - - diff --git a/docs/Basic/BasicOptionsAPI.vue b/docs/Basic/BasicOptionsAPI.vue deleted file mode 100644 index 08c11db2..00000000 --- a/docs/Basic/BasicOptionsAPI.vue +++ /dev/null @@ -1,74 +0,0 @@ - - diff --git a/docs/Basic/ResizableNode.vue b/docs/Basic/ResizableNode.vue deleted file mode 100644 index 6a5dddbc..00000000 --- a/docs/Basic/ResizableNode.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - diff --git a/docs/auto-imports.d.ts b/docs/auto-imports.d.ts deleted file mode 100644 index d7d68940..00000000 --- a/docs/auto-imports.d.ts +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by 'unplugin-auto-import' -// We suggest you to commit this file into source control -declare global { - const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] - const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] - const biSyncRef: typeof import('@vueuse/core')['biSyncRef'] - const computed: typeof import('vue')['computed'] - const computedInject: typeof import('@vueuse/core')['computedInject'] - const controlledComputed: typeof import('@vueuse/core')['controlledComputed'] - const controlledRef: typeof import('@vueuse/core')['controlledRef'] - const createApp: typeof import('vue')['createApp'] - const createEventHook: typeof import('@vueuse/core')['createEventHook'] - const createGlobalState: typeof import('@vueuse/core')['createGlobalState'] - const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn'] - const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable'] - const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn'] - const customRef: typeof import('vue')['customRef'] - const debouncedRef: typeof import('@vueuse/core')['debouncedRef'] - const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] - const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] - const defineComponent: typeof import('vue')['defineComponent'] - const eagerComputed: typeof import('@vueuse/core')['eagerComputed'] - const effectScope: typeof import('vue')['effectScope'] - const EffectScope: typeof import('vue')['EffectScope'] - const extendRef: typeof import('@vueuse/core')['extendRef'] - const getCurrentInstance: typeof import('vue')['getCurrentInstance'] - const getCurrentScope: typeof import('vue')['getCurrentScope'] - const h: typeof import('vue')['h'] - const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] - const inject: typeof import('vue')['inject'] - const isDefined: typeof import('@vueuse/core')['isDefined'] - const isReadonly: typeof import('vue')['isReadonly'] - const isRef: typeof import('vue')['isRef'] - const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] - const markRaw: typeof import('vue')['markRaw'] - const nextTick: typeof import('vue')['nextTick'] - const onActivated: typeof import('vue')['onActivated'] - const onBeforeMount: typeof import('vue')['onBeforeMount'] - const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] - const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] - const onClickOutside: typeof import('@vueuse/core')['onClickOutside'] - const onDeactivated: typeof import('vue')['onDeactivated'] - const onErrorCaptured: typeof import('vue')['onErrorCaptured'] - const onKeyStroke: typeof import('@vueuse/core')['onKeyStroke'] - const onLongPress: typeof import('@vueuse/core')['onLongPress'] - const onMounted: typeof import('vue')['onMounted'] - const onRenderTracked: typeof import('vue')['onRenderTracked'] - const onRenderTriggered: typeof import('vue')['onRenderTriggered'] - const onScopeDispose: typeof import('vue')['onScopeDispose'] - const onServerPrefetch: typeof import('vue')['onServerPrefetch'] - const onStartTyping: typeof import('@vueuse/core')['onStartTyping'] - const onUnmounted: typeof import('vue')['onUnmounted'] - const onUpdated: typeof import('vue')['onUpdated'] - const pausableWatch: typeof import('@vueuse/core')['pausableWatch'] - const provide: typeof import('vue')['provide'] - const reactify: typeof import('@vueuse/core')['reactify'] - const reactifyObject: typeof import('@vueuse/core')['reactifyObject'] - const reactive: typeof import('vue')['reactive'] - const reactiveComputed: typeof import('@vueuse/core')['reactiveComputed'] - const reactiveOmit: typeof import('@vueuse/core')['reactiveOmit'] - const reactivePick: typeof import('@vueuse/core')['reactivePick'] - const readonly: typeof import('vue')['readonly'] - const ref: typeof import('vue')['ref'] - const refDefault: typeof import('@vueuse/core')['refDefault'] - const resolveComponent: typeof import('vue')['resolveComponent'] - const shallowReactive: typeof import('vue')['shallowReactive'] - const shallowReadonly: typeof import('vue')['shallowReadonly'] - const shallowRef: typeof import('vue')['shallowRef'] - const syncRef: typeof import('@vueuse/core')['syncRef'] - const templateRef: typeof import('@vueuse/core')['templateRef'] - const throttledRef: typeof import('@vueuse/core')['throttledRef'] - const throttledWatch: typeof import('@vueuse/core')['throttledWatch'] - const toRaw: typeof import('vue')['toRaw'] - const toReactive: typeof import('@vueuse/core')['toReactive'] - const toRef: typeof import('vue')['toRef'] - const toRefs: typeof import('vue')['toRefs'] - const triggerRef: typeof import('vue')['triggerRef'] - const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount'] - const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted'] - const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose'] - const tryOnUnmounted: typeof import('@vueuse/core')['tryOnUnmounted'] - const unref: typeof import('vue')['unref'] - const unrefElement: typeof import('@vueuse/core')['unrefElement'] - const until: typeof import('@vueuse/core')['until'] - const useActiveElement: typeof import('@vueuse/core')['useActiveElement'] - const useAsyncQueue: typeof import('@vueuse/core')['useAsyncQueue'] - const useAsyncState: typeof import('@vueuse/core')['useAsyncState'] - const useAttrs: typeof import('vue')['useAttrs'] - const useBase64: typeof import('@vueuse/core')['useBase64'] - const useBattery: typeof import('@vueuse/core')['useBattery'] - const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints'] - const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel'] - const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation'] - const useCached: typeof import('@vueuse/core')['useCached'] - const useClamp: typeof import('@vueuse/core')['useClamp'] - const useClipboard: typeof import('@vueuse/core')['useClipboard'] - const useColorMode: typeof import('@vueuse/core')['useColorMode'] - const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog'] - const useCounter: typeof import('@vueuse/core')['useCounter'] - const useCssModule: typeof import('vue')['useCssModule'] - const useCssVar: typeof import('@vueuse/core')['useCssVar'] - const useCssVars: typeof import('vue')['useCssVars'] - const useCycleList: typeof import('@vueuse/core')['useCycleList'] - const useDark: typeof import('@vueuse/core')['useDark'] - const useDebounce: typeof import('@vueuse/core')['useDebounce'] - const useDebouncedRefHistory: typeof import('@vueuse/core')['useDebouncedRefHistory'] - const useDebounceFn: typeof import('@vueuse/core')['useDebounceFn'] - const useDeviceMotion: typeof import('@vueuse/core')['useDeviceMotion'] - const useDeviceOrientation: typeof import('@vueuse/core')['useDeviceOrientation'] - const useDevicePixelRatio: typeof import('@vueuse/core')['useDevicePixelRatio'] - const useDevicesList: typeof import('@vueuse/core')['useDevicesList'] - const useDisplayMedia: typeof import('@vueuse/core')['useDisplayMedia'] - const useDocumentVisibility: typeof import('@vueuse/core')['useDocumentVisibility'] - const useDraggable: typeof import('@vueuse/core')['useDraggable'] - const useElementBounding: typeof import('@vueuse/core')['useElementBounding'] - const useElementByPoint: typeof import('@vueuse/core')['useElementByPoint'] - const useElementHover: typeof import('@vueuse/core')['useElementHover'] - const useElementSize: typeof import('@vueuse/core')['useElementSize'] - const useElementVisibility: typeof import('@vueuse/core')['useElementVisibility'] - const useEventBus: typeof import('@vueuse/core')['useEventBus'] - const useEventListener: typeof import('@vueuse/core')['useEventListener'] - const useEventSource: typeof import('@vueuse/core')['useEventSource'] - const useEyeDropper: typeof import('@vueuse/core')['useEyeDropper'] - const useFavicon: typeof import('@vueuse/core')['useFavicon'] - const useFetch: typeof import('@vueuse/core')['useFetch'] - const useFocus: typeof import('@vueuse/core')['useFocus'] - const useFocusWithin: typeof import('@vueuse/core')['useFocusWithin'] - const useFps: typeof import('@vueuse/core')['useFps'] - const useFullscreen: typeof import('@vueuse/core')['useFullscreen'] - const useGeolocation: typeof import('@vueuse/core')['useGeolocation'] - const useIdle: typeof import('@vueuse/core')['useIdle'] - const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll'] - const useIntersectionObserver: typeof import('@vueuse/core')['useIntersectionObserver'] - const useInterval: typeof import('@vueuse/core')['useInterval'] - const useIntervalFn: typeof import('@vueuse/core')['useIntervalFn'] - const useKeyModifier: typeof import('@vueuse/core')['useKeyModifier'] - const useLastChanged: typeof import('@vueuse/core')['useLastChanged'] - const useLocalStorage: typeof import('@vueuse/core')['useLocalStorage'] - const useMagicKeys: typeof import('@vueuse/core')['useMagicKeys'] - const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory'] - const useMediaControls: typeof import('@vueuse/core')['useMediaControls'] - const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery'] - const useMemoize: typeof import('@vueuse/core')['useMemoize'] - const useMemory: typeof import('@vueuse/core')['useMemory'] - const useMounted: typeof import('@vueuse/core')['useMounted'] - const useMouse: typeof import('@vueuse/core')['useMouse'] - const useMouseInElement: typeof import('@vueuse/core')['useMouseInElement'] - const useMousePressed: typeof import('@vueuse/core')['useMousePressed'] - const useMutationObserver: typeof import('@vueuse/core')['useMutationObserver'] - const useNavigatorLanguage: typeof import('@vueuse/core')['useNavigatorLanguage'] - const useNetwork: typeof import('@vueuse/core')['useNetwork'] - const useNow: typeof import('@vueuse/core')['useNow'] - const useOffsetPagination: typeof import('@vueuse/core')['useOffsetPagination'] - const useOnline: typeof import('@vueuse/core')['useOnline'] - const usePageLeave: typeof import('@vueuse/core')['usePageLeave'] - const useParallax: typeof import('@vueuse/core')['useParallax'] - const usePermission: typeof import('@vueuse/core')['usePermission'] - const usePointer: typeof import('@vueuse/core')['usePointer'] - const usePointerSwipe: typeof import('@vueuse/core')['usePointerSwipe'] - const usePreferredColorScheme: typeof import('@vueuse/core')['usePreferredColorScheme'] - const usePreferredDark: typeof import('@vueuse/core')['usePreferredDark'] - const usePreferredLanguages: typeof import('@vueuse/core')['usePreferredLanguages'] - const useRafFn: typeof import('@vueuse/core')['useRafFn'] - const useRefHistory: typeof import('@vueuse/core')['useRefHistory'] - const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver'] - const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea'] - const useScriptTag: typeof import('@vueuse/core')['useScriptTag'] - const useScroll: typeof import('@vueuse/core')['useScroll'] - const useScrollLock: typeof import('@vueuse/core')['useScrollLock'] - const useSessionStorage: typeof import('@vueuse/core')['useSessionStorage'] - const useShare: typeof import('@vueuse/core')['useShare'] - const useSlots: typeof import('vue')['useSlots'] - const useSpeechRecognition: typeof import('@vueuse/core')['useSpeechRecognition'] - const useSpeechSynthesis: typeof import('@vueuse/core')['useSpeechSynthesis'] - const useStorage: typeof import('@vueuse/core')['useStorage'] - const useStorageAsync: typeof import('@vueuse/core')['useStorageAsync'] - const useStyleTag: typeof import('@vueuse/core')['useStyleTag'] - const useSwipe: typeof import('@vueuse/core')['useSwipe'] - const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList'] - const useTextSelection: typeof import('@vueuse/core')['useTextSelection'] - const useThrottle: typeof import('@vueuse/core')['useThrottle'] - const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory'] - const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn'] - const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo'] - const useTimeout: typeof import('@vueuse/core')['useTimeout'] - const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn'] - const useTimestamp: typeof import('@vueuse/core')['useTimestamp'] - const useTitle: typeof import('@vueuse/core')['useTitle'] - const useToggle: typeof import('@vueuse/core')['useToggle'] - const useTransition: typeof import('@vueuse/core')['useTransition'] - const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams'] - const useUserMedia: typeof import('@vueuse/core')['useUserMedia'] - const useVibrate: typeof import('@vueuse/core')['useVibrate'] - const useVirtualList: typeof import('@vueuse/core')['useVirtualList'] - const useVModel: typeof import('@vueuse/core')['useVModel'] - const useVModels: typeof import('@vueuse/core')['useVModels'] - const useWakeLock: typeof import('@vueuse/core')['useWakeLock'] - const useWebNotification: typeof import('@vueuse/core')['useWebNotification'] - const useWebSocket: typeof import('@vueuse/core')['useWebSocket'] - const useWebWorker: typeof import('@vueuse/core')['useWebWorker'] - const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn'] - const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus'] - const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll'] - const useWindowSize: typeof import('@vueuse/core')['useWindowSize'] - const watch: typeof import('vue')['watch'] - const watchAtMost: typeof import('@vueuse/core')['watchAtMost'] - const watchEffect: typeof import('vue')['watchEffect'] - const watchOnce: typeof import('@vueuse/core')['watchOnce'] - const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter'] - const whenever: typeof import('@vueuse/core')['whenever'] -} -export {} diff --git a/docs/package.json b/docs/package.json index 790250a5..4aa29087 100644 --- a/docs/package.json +++ b/docs/package.json @@ -18,8 +18,10 @@ "escape-html": "^1.0.3", "markdown-it": "^12.3.2", "prismjs": "^1.27.0", - "unplugin-auto-import": "^0.6.8", - "vite-plugin-vue-type-imports": "^0.1.3", - "vitepress": "^0.22.3" + "unplugin-vue-components": "^0.18.5", + "vite-plugin-windicss": "^1.8.3", + "vitepress": "^0.22.3", + "vue": "3.2.21", + "windicss": "^3.5.1" } } diff --git a/docs/src/components/index.md b/docs/src/components/index.md deleted file mode 100644 index aee9cdc3..00000000 --- a/docs/src/components/index.md +++ /dev/null @@ -1 +0,0 @@ -# Blabla diff --git a/docs/src/index.md b/docs/src/index.md index 2b1b235d..6297741c 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -1,3 +1,9 @@ +--- +home: true +navbar: false +footer: MIT Licensed | Copyright © 2021-present Burak Cakmakoglu +--- + # Hello World - + diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 2a2e6110..ec696c1a 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -23,7 +23,6 @@ "@types/node" ], }, - "include": ["./.vitepress", "."], "exclude": [ "node_modules", "dist" diff --git a/docs/vite.config.ts b/docs/vite.config.ts deleted file mode 100644 index 88997519..00000000 --- a/docs/vite.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { resolve } from 'path' -import { defineConfig } from 'vite' -import AutoImport from 'unplugin-auto-import/vite' - -export default defineConfig({ - plugins: [ - // https://github.com/antfu/unplugin-auto-import - AutoImport({ - imports: ['vue', '@vueuse/core'], - dts: resolve('auto-imports.d.ts'), - }), - ], - optimizeDeps: { - include: ['@braks/vue-flow'], - }, -}) diff --git a/yarn.lock b/yarn.lock index 71f28418..7665db66 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1388,6 +1388,28 @@ dependencies: vue-demi "*" +"@windicss/config@1.8.3": + version "1.8.3" + resolved "https://registry.yarnpkg.com/@windicss/config/-/config-1.8.3.tgz#4f6eb0441be00ff7f284bb278a6d0c8f34f791ed" + integrity sha512-1fvfZhRD7WfV/Xh6uIAYKIdbQWrwEgSdkFlHiLPzMDS44KjwNZILDzLAz9Y2W5H2K4MLGgGMnzGS89ECyjc0Ww== + dependencies: + debug "^4.3.3" + jiti "^1.13.0" + windicss "^3.5.1" + +"@windicss/plugin-utils@1.8.3": + version "1.8.3" + resolved "https://registry.yarnpkg.com/@windicss/plugin-utils/-/plugin-utils-1.8.3.tgz#cec2bdc7703357de348e4512d61c7bd7802b049a" + integrity sha512-emlMeDt73uNV1ZofLTDogcxqL9aZ5uIRYkjeHlrWiaDozFbX6Jc+a6eRo9Ieaar3JUryl6AnecTPHAiFDl4IXg== + dependencies: + "@antfu/utils" "^0.5.0" + "@windicss/config" "1.8.3" + debug "^4.3.3" + fast-glob "^3.2.11" + magic-string "^0.25.7" + micromatch "^4.0.4" + windicss "^3.5.1" + acorn-jsx@^5.2.0, acorn-jsx@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" @@ -2486,7 +2508,7 @@ debug@^3.1.0, debug@^3.2.7: dependencies: ms "^2.1.1" -debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -3323,7 +3345,7 @@ fast-diff@^1.1.2: resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== -fast-glob@^3.2.7, fast-glob@^3.2.9: +fast-glob@^3.2.11, fast-glob@^3.2.7, fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== @@ -4233,6 +4255,11 @@ issue-regex@^3.1.0: resolved "https://registry.yarnpkg.com/issue-regex/-/issue-regex-3.1.0.tgz#0671f094d6449c5b712fac3c9562aecb727d709e" integrity sha512-0RHjbtw9QXeSYnIEY5Yrp2QZrdtz21xBDV9C/GIlY2POmgoS6a7qjkYS5siRKXScnuAj5/SPv1C3YForNCHTJA== +jiti@^1.13.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.13.0.tgz#3cdfc4e651ca0cca4c62ed5e47747b5841d41a8e" + integrity sha512-/n9mNxZj/HDSrincJ6RP+L+yXbpnB8FybySBa+IjIaoH9FIxBbrbRT5XUbe8R7zuVM2AQqNMNDDqz0bzx3znOQ== + js-stringify@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/js-stringify/-/js-stringify-1.0.2.tgz#1736fddfd9724f28a3682adc6230ae7e4e9679db" @@ -4388,6 +4415,11 @@ kind-of@^6.0.2, kind-of@^6.0.3: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== +kolorist@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/kolorist/-/kolorist-1.5.1.tgz#c3d66dc4fabde4f6b7faa6efda84c00491f9e52b" + integrity sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ== + latest-version@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" @@ -6499,6 +6531,22 @@ unplugin-auto-import@^0.6.8: resolve "^1.22.0" unplugin "^0.4.0" +unplugin-vue-components@^0.18.5: + version "0.18.5" + resolved "https://registry.yarnpkg.com/unplugin-vue-components/-/unplugin-vue-components-0.18.5.tgz#96dfad540100ed8ae8895e65c32d9b37886dc5c5" + integrity sha512-VPA6z/4pcKRDYtWu1H+FIpV0MADlFKG3q7YMVFzNFC3EhMVZ4WuBJ76490oKyauguNw1T1obLCuxNU9JzJ0oAQ== + dependencies: + "@antfu/utils" "^0.5.0" + "@rollup/pluginutils" "^4.2.0" + chokidar "^3.5.3" + debug "^4.3.3" + fast-glob "^3.2.11" + local-pkg "^0.4.1" + magic-string "^0.26.1" + minimatch "^5.0.1" + resolve "^1.22.0" + unplugin "^0.4.0" + unplugin@^0.3.0: version "0.3.3" resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.3.3.tgz#e9b148f84cabef5e6529f232a10e674a7c020930" @@ -6615,6 +6663,16 @@ vite-plugin-vue-type-imports@^0.1.3: resolved "https://registry.yarnpkg.com/vite-plugin-vue-type-imports/-/vite-plugin-vue-type-imports-0.1.3.tgz#06edf2da7abdd3367217842e69b6ed7f506a3919" integrity sha512-iF5NgeQc2MZ6wDUS1tnN7rglkWmm+WhK9rCQb3FudsrMTqLazbtN6shyrEcsGBdqYAqH9c5HhiwU3gOIrFcVHA== +vite-plugin-windicss@^1.8.3: + version "1.8.3" + resolved "https://registry.yarnpkg.com/vite-plugin-windicss/-/vite-plugin-windicss-1.8.3.tgz#d5fe923ad60f5d80f153a4fae5f837d56caa25cb" + integrity sha512-RIw2GD6H6cKNE8wZXVOBs4L1uTicVS0FaAkeqXvy1oyuXLC4SXmvnzEuoK0+qFuWJjW0ECNwE8eU+ZZhzNQKUg== + dependencies: + "@windicss/plugin-utils" "1.8.3" + debug "^4.3.3" + kolorist "^1.5.1" + windicss "^3.5.1" + vite-svg-loader@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/vite-svg-loader/-/vite-svg-loader-2.2.0.tgz#b5d6ca948b03e45320cb4f96c44bf88f5bef0a2c" @@ -6903,6 +6961,11 @@ widest-line@^3.1.0: dependencies: string-width "^4.0.0" +windicss@^3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/windicss/-/windicss-3.5.1.tgz#5e279c21179dbc122122d0b3a3a2651511249241" + integrity sha512-E1hYZATcZFci/XhGS0sJAMRxULjnK+glNukE78Ku7xeb3jxgMY55fFOdIrav+GjQCsgR+IZxPq9/DwmO6eyc4Q== + with@^7.0.0: version "7.0.2" resolved "https://registry.yarnpkg.com/with/-/with-7.0.2.tgz#ccee3ad542d25538a7a7a80aad212b9828495bac"