From 83a668d9e02ad34503c84b75c1331643cb346453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 15 Nov 2024 13:02:54 +0800 Subject: [PATCH] https://formkit.com/getting-started/your-first-form --- .github/workflows/ci.yaml | 16 ++++ .gitignore | 2 +- .vscode/settings.json | 11 +++ package.json | 2 +- src/App.vue | 167 +++++++++++++++++++++++++++++++------- 5 files changed, 165 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/ci.yaml create mode 100644 .vscode/settings.json diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..4f2c0b8 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,16 @@ +# https://cn.vitejs.dev/guide/static-deploy +on: + push: + +jobs: + surge: + runs-on: ubuntu-latest + steps: + - uses: yanhao98/composite-actions/setup-node-environment@main + - name: deploy + run: | + pnpm build + export DEPLOY_DOMAIN=https://vue-formkit-example.oo1.dev + cp dist/index.html dist/200.html + npx surge --project ./dist --domain $DEPLOY_DOMAIN --token d843de16b331c626f10771245c56ed93 # npx surge token + echo the preview URL is $DEPLOY_DOMAIN diff --git a/.gitignore b/.gitignore index a547bf3..4587401 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ dist-ssr *.local # Editor directories and files -.vscode/* +# .vscode/* !.vscode/extensions.json .idea .DS_Store diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9930e4d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "editor.codeActionsOnSave": { + "source.fixAll": "explicit" + }, + "[vue]": { + "editor.defaultFormatter": "Vue.volar" + }, + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "modifications", + "typescript.tsdk": "node_modules/typescript/lib", // 只格式化修改的部分 +} \ No newline at end of file diff --git a/package.json b/package.json index 2a6ed34..d8ee4cb 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --port 1115", "build": "vue-tsc -b && vite build", "preview": "vite preview" }, diff --git a/src/App.vue b/src/App.vue index 4f23187..363d435 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,53 +1,158 @@ + + \ No newline at end of file