From 0364c919741a82a453c064bbf36b2ebbd30aa089 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 13 Apr 2023 16:34:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 16 +++++++++++++++ .prettierrc.yaml | 11 +++++++++++ index.html | 18 +++++++++++++++++ package.json | 11 +++++++++++ public/favicon.ico | Bin 0 -> 4286 bytes src/assets/logo.svg | 1 + src/components/code-editor.vue | 29 ++++++++++++++++++++++++++++ src/pages/index/main.js | 0 src/pages/index/router.js | 23 ++++++++++++++++++++++ src/pages/playground/app.vue | 13 +++++++++++++ src/pages/playground/main.js | 8 ++++++++ src/pages/playground/store.js | 11 +++++++++++ src/pages/playground/view/about.vue | 18 +++++++++++++++++ src/pages/playground/view/home.vue | 17 ++++++++++++++++ vue.live.js | 27 ++++++++++++++++++++++++++ 15 files changed, 203 insertions(+) create mode 100644 .gitignore create mode 100644 .prettierrc.yaml create mode 100644 index.html create mode 100644 package.json create mode 100644 public/favicon.ico create mode 100644 src/assets/logo.svg create mode 100644 src/components/code-editor.vue create mode 100644 src/pages/index/main.js create mode 100644 src/pages/index/router.js create mode 100644 src/pages/playground/app.vue create mode 100644 src/pages/playground/main.js create mode 100644 src/pages/playground/store.js create mode 100644 src/pages/playground/view/about.vue create mode 100644 src/pages/playground/view/home.vue create mode 100644 vue.live.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2dde5ab --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ + +dist +node_modules + +*.sublime-project +*.sublime-workspace +package-lock.json + +._* + +.Spotlight-V100 +.Trashes +.DS_Store +.AppleDouble +.LSOverride + diff --git a/.prettierrc.yaml b/.prettierrc.yaml new file mode 100644 index 0000000..6734234 --- /dev/null +++ b/.prettierrc.yaml @@ -0,0 +1,11 @@ + +jsxBracketSameLine: true +jsxSingleQuote: true +semi: false +singleQuote: true +printWidth: 80 +useTabs: false +tabWidth: 2 +trailingComma: none +bracketSpacing: true +arrowParens: avoid diff --git a/index.html b/index.html new file mode 100644 index 0000000..94daac9 --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + + + + + + {{title}} + + + + + + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..beca076 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "fite-app", + "type": "module", + "scripts": { + "start": "fite dev", + "build": "fite build" + }, + "devDependencies": { + "fite": "^0.5.0" + } +} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..df36fcfb72584e00488330b560ebcf34a41c64c2 GIT binary patch literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S literal 0 HcmV?d00001 diff --git a/src/assets/logo.svg b/src/assets/logo.svg new file mode 100644 index 0000000..e2a9ebf --- /dev/null +++ b/src/assets/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/code-editor.vue b/src/components/code-editor.vue new file mode 100644 index 0000000..fb52237 --- /dev/null +++ b/src/components/code-editor.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/src/pages/index/main.js b/src/pages/index/main.js new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/index/router.js b/src/pages/index/router.js new file mode 100644 index 0000000..ea669d0 --- /dev/null +++ b/src/pages/index/router.js @@ -0,0 +1,23 @@ + +import { createRouter, createWebHistory } from 'vue-router' +import Home from './views/home.vue' + +const router = createRouter({ + history: createWebHistory(), + routes: [ + { + path: '/', + name: 'home', + component: Home + }, + { + path: '/about', + name: 'about', + component: () => import('./views/about.vue') + } + ] +}) + +export default router + + diff --git a/src/pages/playground/app.vue b/src/pages/playground/app.vue new file mode 100644 index 0000000..e2c9953 --- /dev/null +++ b/src/pages/playground/app.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/pages/playground/main.js b/src/pages/playground/main.js new file mode 100644 index 0000000..0736249 --- /dev/null +++ b/src/pages/playground/main.js @@ -0,0 +1,8 @@ +import { createApp } from 'vue' +import App from './app.vue' + +import store from './store' + +const app = createApp(App) + +app.use(router).use(store).mount('.app') diff --git a/src/pages/playground/store.js b/src/pages/playground/store.js new file mode 100644 index 0000000..65a1dc7 --- /dev/null +++ b/src/pages/playground/store.js @@ -0,0 +1,11 @@ + +import { reactive } from 'vue' + +const store = reactive({ + foo: 'bar', + version: '0.5.0' +}) + +export default function (app) { + app.config.globalProperties.$store = store +} diff --git a/src/pages/playground/view/about.vue b/src/pages/playground/view/about.vue new file mode 100644 index 0000000..24aa159 --- /dev/null +++ b/src/pages/playground/view/about.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/src/pages/playground/view/home.vue b/src/pages/playground/view/home.vue new file mode 100644 index 0000000..987c694 --- /dev/null +++ b/src/pages/playground/view/home.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/vue.live.js b/vue.live.js new file mode 100644 index 0000000..27187d7 --- /dev/null +++ b/vue.live.js @@ -0,0 +1,27 @@ +import { resolve } from 'path' + +export default { + devServer: { + port: 8080, + domain: '', + https: false, + ssl: { + key: '', + cert: '' + // ca: '' + } + }, + pages: { + playground: { + entry: resolve('./src/pages/playground/main.js'), + title: '@bd/ui Playground' + } + }, + + imports: { + vue: '//jscdn.ink/vue/3.2.47/vue.runtime.esm-browser.prod.js', + 'vue-router': '//jscdn.ink/@bytedo/vue-router/4.1.6/vue-router.js', + fetch: '//jscdn.ink/@bytedo/fetch/2.1.5/next.js', + '@bytedo/editor': '//jscdn.ink/@bytedo/editor/1.0.0/index.js' + } +}