diff --git a/.gitignore b/.gitignore index a19f004..a547bf3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,24 @@ -# ---> Vue -# gitignore template for Vue.js projects -# -# Recommended template: Node.gitignore +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* -# TODO: where does this rule come from? -docs/_book - -# TODO: where does this rule come from? -test/ +node_modules +dist +dist-ssr +*.local +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/index.html b/index.html new file mode 100644 index 0000000..8388c4b --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + +
+ + + +
+ Edit
+ components/HelloWorld.vue
to test HMR
+
+ Check out + create-vue, the official Vue + Vite starter +
++ Learn more about IDE Support for Vue in the + Vue Docs Scaling up Guide. +
+Click on the Vite and Vue logos to learn more
+ + + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..f0359c7 --- /dev/null +++ b/src/main.js @@ -0,0 +1,10 @@ +import { createApp } from 'vue' +import './style.css' +import App from './App.vue' +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' +import "@logicflow/core/dist/index.css"; + +createApp(App) + .use(ElementPlus) + .mount('#app') diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..468d040 --- /dev/null +++ b/src/style.css @@ -0,0 +1,70 @@ +:root { + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +body { + margin: 0; + /*display: flex;*/ + /*place-items: center;*/ + min-width: 320px; + min-height: 100vh; +} + +/*button {*/ +/* border-radius: 8px;*/ +/* border: 1px solid transparent;*/ +/* padding: 0.6em 1.2em;*/ +/* font-size: 1em;*/ +/* font-weight: 500;*/ +/* font-family: inherit;*/ +/* background-color: #1a1a1a;*/ +/* cursor: pointer;*/ +/* transition: border-color 0.25s;*/ +/*}*/ +/*button:hover {*/ +/* border-color: #646cff;*/ +/*}*/ +/*button:focus,*/ +/*button:focus-visible {*/ +/* outline: 4px auto -webkit-focus-ring-color;*/ +/*}*/ + +#app { + /*max-width: 1280px;*/ + margin: 0 auto; + padding: 1rem; + /*text-align: center;*/ + height: 100%; + display: flex; + flex-direction: column; + gap: 12px; + align-items: center; +} + +.custom-clear-page { + background-image: url("public/clear.svg"); +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..bbcf80c --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [vue()], +})