diff --git a/applications/app-led-simulator/README.md b/applications/app-led-simulator/README.md new file mode 100644 index 0000000..33895ab --- /dev/null +++ b/applications/app-led-simulator/README.md @@ -0,0 +1,5 @@ +# Vue 3 + TypeScript + Vite + +This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 ` + + diff --git a/applications/app-led-simulator/package.json b/applications/app-led-simulator/package.json new file mode 100644 index 0000000..afe7adb --- /dev/null +++ b/applications/app-led-simulator/package.json @@ -0,0 +1,17 @@ +{ + "name": "app-led-simulator", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vue-tsc -b && vite build", + "preview": "vite preview" + }, + "dependencies": { + "@miyue-mma/shared": "workspace:^" + }, + "devDependencies": { + "vue-tsc": "^2.0.29" + } +} diff --git a/applications/app-led-simulator/public/vite.svg b/applications/app-led-simulator/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/applications/app-led-simulator/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/applications/app-led-simulator/src/App.vue b/applications/app-led-simulator/src/App.vue new file mode 100644 index 0000000..07b940d --- /dev/null +++ b/applications/app-led-simulator/src/App.vue @@ -0,0 +1,17 @@ + + + diff --git a/applications/app-led-simulator/src/assets/vue.svg b/applications/app-led-simulator/src/assets/vue.svg new file mode 100644 index 0000000..770e9d3 --- /dev/null +++ b/applications/app-led-simulator/src/assets/vue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/applications/app-led-simulator/src/components/LedSimulator.vue b/applications/app-led-simulator/src/components/LedSimulator.vue new file mode 100644 index 0000000..45be1e5 --- /dev/null +++ b/applications/app-led-simulator/src/components/LedSimulator.vue @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/applications/app-led-simulator/src/components/TextComp.vue b/applications/app-led-simulator/src/components/TextComp.vue new file mode 100644 index 0000000..e0174b6 --- /dev/null +++ b/applications/app-led-simulator/src/components/TextComp.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/applications/app-led-simulator/src/main.ts b/applications/app-led-simulator/src/main.ts new file mode 100644 index 0000000..44408eb --- /dev/null +++ b/applications/app-led-simulator/src/main.ts @@ -0,0 +1,6 @@ +import { createApp } from 'vue' +import App from './App.vue' + +import './styles/index.scss' + +createApp(App).mount('#app') diff --git a/applications/app-led-simulator/src/styles/index.scss b/applications/app-led-simulator/src/styles/index.scss new file mode 100644 index 0000000..c937a1b --- /dev/null +++ b/applications/app-led-simulator/src/styles/index.scss @@ -0,0 +1,7 @@ +@import "normalize.css"; + +body, #app { + margin: 0; + width: 100vw; + height: 100vh; +} diff --git a/applications/app-led-simulator/src/vite-env.d.ts b/applications/app-led-simulator/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/applications/app-led-simulator/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/applications/app-led-simulator/tsconfig.app.json b/applications/app-led-simulator/tsconfig.app.json new file mode 100644 index 0000000..c54e602 --- /dev/null +++ b/applications/app-led-simulator/tsconfig.app.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "preserve", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] +} diff --git a/applications/app-led-simulator/tsconfig.json b/applications/app-led-simulator/tsconfig.json new file mode 100644 index 0000000..1ffef60 --- /dev/null +++ b/applications/app-led-simulator/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/applications/app-led-simulator/tsconfig.node.json b/applications/app-led-simulator/tsconfig.node.json new file mode 100644 index 0000000..0d3d714 --- /dev/null +++ b/applications/app-led-simulator/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/applications/app-led-simulator/vite.config.ts b/applications/app-led-simulator/vite.config.ts new file mode 100644 index 0000000..05c1740 --- /dev/null +++ b/applications/app-led-simulator/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [vue()], +}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c851421..bf2ee09 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -144,6 +144,16 @@ importers: applications/app-home: {} + applications/app-led-simulator: + dependencies: + '@miyue-mma/shared': + specifier: workspace:^ + version: link:../../packages/shared + devDependencies: + vue-tsc: + specifier: ^2.0.29 + version: 2.1.4(typescript@5.4.5) + applications/app-process: dependencies: '@bpmn-io/properties-panel':