diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05a4a44 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*/node_modules \ No newline at end of file diff --git a/react-ts-cesium181/.gitignore b/react-ts-cesium181/.gitignore new file mode 100644 index 0000000..d451ff1 --- /dev/null +++ b/react-ts-cesium181/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local diff --git a/react-ts-cesium181/index.html b/react-ts-cesium181/index.html new file mode 100644 index 0000000..38f3861 --- /dev/null +++ b/react-ts-cesium181/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite App + + +
+ + + diff --git a/react-ts-cesium181/package.json b/react-ts-cesium181/package.json new file mode 100644 index 0000000..2acc8aa --- /dev/null +++ b/react-ts-cesium181/package.json @@ -0,0 +1,20 @@ +{ + "name": "react-ts-cesium181", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "serve": "vite preview" + }, + "dependencies": { + "react": "^17.0.0", + "react-dom": "^17.0.0" + }, + "devDependencies": { + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", + "@vitejs/plugin-react-refresh": "^1.3.1", + "typescript": "^4.1.2", + "vite": "^2.3.3" + } +} \ No newline at end of file diff --git a/react-ts-cesium181/src/App.css b/react-ts-cesium181/src/App.css new file mode 100644 index 0000000..8da3fde --- /dev/null +++ b/react-ts-cesium181/src/App.css @@ -0,0 +1,42 @@ +.App { + text-align: center; +} + +.App-logo { + height: 40vmin; + pointer-events: none; +} + +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; + } +} + +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +button { + font-size: calc(10px + 2vmin); +} diff --git a/react-ts-cesium181/src/App.tsx b/react-ts-cesium181/src/App.tsx new file mode 100644 index 0000000..f6b94f6 --- /dev/null +++ b/react-ts-cesium181/src/App.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react' +import logo from './logo.svg' +import './App.css' + +function App() { + const [count, setCount] = useState(0) + + return ( +
+
+ logo +

Hello Vite + React!

+

+ +

+

+ Edit App.tsx and save to test HMR updates. +

+

+ + Learn React + + {' | '} + + Vite Docs + +

+
+
+ ) +} + +export default App diff --git a/react-ts-cesium181/src/favicon.svg b/react-ts-cesium181/src/favicon.svg new file mode 100644 index 0000000..de4aedd --- /dev/null +++ b/react-ts-cesium181/src/favicon.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/react-ts-cesium181/src/index.css b/react-ts-cesium181/src/index.css new file mode 100644 index 0000000..ec2585e --- /dev/null +++ b/react-ts-cesium181/src/index.css @@ -0,0 +1,13 @@ +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} diff --git a/react-ts-cesium181/src/logo.svg b/react-ts-cesium181/src/logo.svg new file mode 100644 index 0000000..6b60c10 --- /dev/null +++ b/react-ts-cesium181/src/logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/react-ts-cesium181/src/main.tsx b/react-ts-cesium181/src/main.tsx new file mode 100644 index 0000000..606a3cf --- /dev/null +++ b/react-ts-cesium181/src/main.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import ReactDOM from 'react-dom' +import './index.css' +import App from './App' + +ReactDOM.render( + + + , + document.getElementById('root') +) diff --git a/react-ts-cesium181/tsconfig.json b/react-ts-cesium181/tsconfig.json new file mode 100644 index 0000000..51efd41 --- /dev/null +++ b/react-ts-cesium181/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ESNext", + "lib": ["DOM", "DOM.Iterable", "ESNext"], + "types": ["vite/client"], + "allowJs": false, + "skipLibCheck": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react" + }, + "include": ["./src"] +} diff --git a/react-ts-cesium181/vite.config.ts b/react-ts-cesium181/vite.config.ts new file mode 100644 index 0000000..5e7342c --- /dev/null +++ b/react-ts-cesium181/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import reactRefresh from '@vitejs/plugin-react-refresh' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [reactRefresh()] +}) diff --git a/react-ts-ol6/.gitignore b/react-ts-ol6/.gitignore new file mode 100644 index 0000000..d451ff1 --- /dev/null +++ b/react-ts-ol6/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local diff --git a/react-ts-ol6/index.html b/react-ts-ol6/index.html new file mode 100644 index 0000000..38f3861 --- /dev/null +++ b/react-ts-ol6/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite App + + +
+ + + diff --git a/react-ts-ol6/package.json b/react-ts-ol6/package.json new file mode 100644 index 0000000..79b40c1 --- /dev/null +++ b/react-ts-ol6/package.json @@ -0,0 +1,20 @@ +{ + "name": "react-ts-ol6", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "serve": "vite preview" + }, + "dependencies": { + "react": "^17.0.0", + "react-dom": "^17.0.0" + }, + "devDependencies": { + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", + "@vitejs/plugin-react-refresh": "^1.3.1", + "typescript": "^4.1.2", + "vite": "^2.3.3" + } +} \ No newline at end of file diff --git a/react-ts-ol6/src/App.css b/react-ts-ol6/src/App.css new file mode 100644 index 0000000..8da3fde --- /dev/null +++ b/react-ts-ol6/src/App.css @@ -0,0 +1,42 @@ +.App { + text-align: center; +} + +.App-logo { + height: 40vmin; + pointer-events: none; +} + +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; + } +} + +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +button { + font-size: calc(10px + 2vmin); +} diff --git a/react-ts-ol6/src/App.tsx b/react-ts-ol6/src/App.tsx new file mode 100644 index 0000000..f6b94f6 --- /dev/null +++ b/react-ts-ol6/src/App.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react' +import logo from './logo.svg' +import './App.css' + +function App() { + const [count, setCount] = useState(0) + + return ( +
+
+ logo +

Hello Vite + React!

+

+ +

+

+ Edit App.tsx and save to test HMR updates. +

+

+ + Learn React + + {' | '} + + Vite Docs + +

+
+
+ ) +} + +export default App diff --git a/react-ts-ol6/src/favicon.svg b/react-ts-ol6/src/favicon.svg new file mode 100644 index 0000000..de4aedd --- /dev/null +++ b/react-ts-ol6/src/favicon.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/react-ts-ol6/src/index.css b/react-ts-ol6/src/index.css new file mode 100644 index 0000000..ec2585e --- /dev/null +++ b/react-ts-ol6/src/index.css @@ -0,0 +1,13 @@ +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} diff --git a/react-ts-ol6/src/logo.svg b/react-ts-ol6/src/logo.svg new file mode 100644 index 0000000..6b60c10 --- /dev/null +++ b/react-ts-ol6/src/logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/react-ts-ol6/src/main.tsx b/react-ts-ol6/src/main.tsx new file mode 100644 index 0000000..606a3cf --- /dev/null +++ b/react-ts-ol6/src/main.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import ReactDOM from 'react-dom' +import './index.css' +import App from './App' + +ReactDOM.render( + + + , + document.getElementById('root') +) diff --git a/react-ts-ol6/tsconfig.json b/react-ts-ol6/tsconfig.json new file mode 100644 index 0000000..51efd41 --- /dev/null +++ b/react-ts-ol6/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ESNext", + "lib": ["DOM", "DOM.Iterable", "ESNext"], + "types": ["vite/client"], + "allowJs": false, + "skipLibCheck": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react" + }, + "include": ["./src"] +} diff --git a/react-ts-ol6/vite.config.ts b/react-ts-ol6/vite.config.ts new file mode 100644 index 0000000..5e7342c --- /dev/null +++ b/react-ts-ol6/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import reactRefresh from '@vitejs/plugin-react-refresh' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [reactRefresh()] +}) diff --git a/vue3-ts-cesium181/.gitignore b/vue3-ts-cesium181/.gitignore new file mode 100644 index 0000000..d451ff1 --- /dev/null +++ b/vue3-ts-cesium181/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local diff --git a/vue3-ts-cesium181/README.md b/vue3-ts-cesium181/README.md new file mode 100644 index 0000000..a797a27 --- /dev/null +++ b/vue3-ts-cesium181/README.md @@ -0,0 +1,27 @@ +# Vue 3 + Typescript + Vite + +This template should help get you started developing with Vue 3 and Typescript in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings! + +### If Using ` + + diff --git a/vue3-ts-cesium181/package.json b/vue3-ts-cesium181/package.json new file mode 100644 index 0000000..aae5206 --- /dev/null +++ b/vue3-ts-cesium181/package.json @@ -0,0 +1,19 @@ +{ + "name": "vue3-ts-cesium181", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build", + "serve": "vite preview" + }, + "dependencies": { + "vue": "^3.0.5" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^1.2.2", + "@vue/compiler-sfc": "^3.0.5", + "typescript": "^4.1.3", + "vite": "^2.3.3", + "vue-tsc": "^0.0.24" + } +} \ No newline at end of file diff --git a/vue3-ts-cesium181/public/favicon.ico b/vue3-ts-cesium181/public/favicon.ico new file mode 100644 index 0000000..df36fcf Binary files /dev/null and b/vue3-ts-cesium181/public/favicon.ico differ diff --git a/vue3-ts-cesium181/src/App.vue b/vue3-ts-cesium181/src/App.vue new file mode 100644 index 0000000..72cc3b8 --- /dev/null +++ b/vue3-ts-cesium181/src/App.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/vue3-ts-cesium181/src/assets/logo.png b/vue3-ts-cesium181/src/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/vue3-ts-cesium181/src/assets/logo.png differ diff --git a/vue3-ts-cesium181/src/components/HelloWorld.vue b/vue3-ts-cesium181/src/components/HelloWorld.vue new file mode 100644 index 0000000..f35d1b0 --- /dev/null +++ b/vue3-ts-cesium181/src/components/HelloWorld.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/vue3-ts-cesium181/src/main.ts b/vue3-ts-cesium181/src/main.ts new file mode 100644 index 0000000..01433bc --- /dev/null +++ b/vue3-ts-cesium181/src/main.ts @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') diff --git a/vue3-ts-cesium181/src/shims-vue.d.ts b/vue3-ts-cesium181/src/shims-vue.d.ts new file mode 100644 index 0000000..ac1ded7 --- /dev/null +++ b/vue3-ts-cesium181/src/shims-vue.d.ts @@ -0,0 +1,5 @@ +declare module '*.vue' { + import { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/vue3-ts-cesium181/tsconfig.json b/vue3-ts-cesium181/tsconfig.json new file mode 100644 index 0000000..e754e65 --- /dev/null +++ b/vue3-ts-cesium181/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "esnext", + "moduleResolution": "node", + "strict": true, + "jsx": "preserve", + "sourceMap": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "lib": ["esnext", "dom"], + "types": ["vite/client"] + }, + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] +} diff --git a/vue3-ts-cesium181/vite.config.ts b/vue3-ts-cesium181/vite.config.ts new file mode 100644 index 0000000..315212d --- /dev/null +++ b/vue3-ts-cesium181/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/vue3-ts-ol6/.gitignore b/vue3-ts-ol6/.gitignore new file mode 100644 index 0000000..d451ff1 --- /dev/null +++ b/vue3-ts-ol6/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local diff --git a/vue3-ts-ol6/README.md b/vue3-ts-ol6/README.md new file mode 100644 index 0000000..a797a27 --- /dev/null +++ b/vue3-ts-ol6/README.md @@ -0,0 +1,27 @@ +# Vue 3 + Typescript + Vite + +This template should help get you started developing with Vue 3 and Typescript in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings! + +### If Using ` + + diff --git a/vue3-ts-ol6/package.json b/vue3-ts-ol6/package.json new file mode 100644 index 0000000..a815865 --- /dev/null +++ b/vue3-ts-ol6/package.json @@ -0,0 +1,19 @@ +{ + "name": "vue3-ts-ol6", + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build", + "serve": "vite preview" + }, + "dependencies": { + "vue": "^3.0.5" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^1.2.2", + "@vue/compiler-sfc": "^3.0.5", + "typescript": "^4.1.3", + "vite": "^2.3.3", + "vue-tsc": "^0.0.24" + } +} \ No newline at end of file diff --git a/vue3-ts-ol6/public/favicon.ico b/vue3-ts-ol6/public/favicon.ico new file mode 100644 index 0000000..df36fcf Binary files /dev/null and b/vue3-ts-ol6/public/favicon.ico differ diff --git a/vue3-ts-ol6/src/App.vue b/vue3-ts-ol6/src/App.vue new file mode 100644 index 0000000..72cc3b8 --- /dev/null +++ b/vue3-ts-ol6/src/App.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/vue3-ts-ol6/src/assets/logo.png b/vue3-ts-ol6/src/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/vue3-ts-ol6/src/assets/logo.png differ diff --git a/vue3-ts-ol6/src/components/HelloWorld.vue b/vue3-ts-ol6/src/components/HelloWorld.vue new file mode 100644 index 0000000..f35d1b0 --- /dev/null +++ b/vue3-ts-ol6/src/components/HelloWorld.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/vue3-ts-ol6/src/main.ts b/vue3-ts-ol6/src/main.ts new file mode 100644 index 0000000..01433bc --- /dev/null +++ b/vue3-ts-ol6/src/main.ts @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') diff --git a/vue3-ts-ol6/src/shims-vue.d.ts b/vue3-ts-ol6/src/shims-vue.d.ts new file mode 100644 index 0000000..ac1ded7 --- /dev/null +++ b/vue3-ts-ol6/src/shims-vue.d.ts @@ -0,0 +1,5 @@ +declare module '*.vue' { + import { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/vue3-ts-ol6/tsconfig.json b/vue3-ts-ol6/tsconfig.json new file mode 100644 index 0000000..e754e65 --- /dev/null +++ b/vue3-ts-ol6/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "esnext", + "moduleResolution": "node", + "strict": true, + "jsx": "preserve", + "sourceMap": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "lib": ["esnext", "dom"], + "types": ["vite/client"] + }, + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] +} diff --git a/vue3-ts-ol6/vite.config.ts b/vue3-ts-ol6/vite.config.ts new file mode 100644 index 0000000..315212d --- /dev/null +++ b/vue3-ts-ol6/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()] +})