create-dovite 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -4
- package/src/prompts.js +2 -3
- package/templates/vue-js/jsconfig.json +7 -0
- package/templates/vue-js/public/manifest.json +12 -0
- package/templates/vue-js/public/thumbnail.png +0 -0
- package/templates/vue-js/src/API/currentUserContext.js +61 -0
- package/templates/vue-js/src/API/dataApi.js +238 -0
- package/templates/vue-js/src/API/domoAPI.js +311 -0
- package/templates/vue-js/src/App.vue +9 -0
- package/templates/vue-js/src/index.css +1 -0
- package/templates/vue-js/src/main.js +6 -0
- package/templates/vue-js/src/pages/index.vue +699 -0
- package/templates/vue-js/vite.config.js +40 -0
- package/templates/vue-ts/public/manifest.json +12 -0
- package/templates/vue-ts/public/thumbnail.png +0 -0
- package/templates/vue-ts/src/API/currentUserContext.ts +76 -0
- package/templates/vue-ts/src/API/dataApi.ts +284 -0
- package/templates/vue-ts/src/API/domoAPI.ts +340 -0
- package/templates/vue-ts/src/App.vue +9 -0
- package/templates/vue-ts/src/index.css +1 -0
- package/templates/vue-ts/src/main.ts +6 -0
- package/templates/vue-ts/src/pages/index.vue +706 -0
- package/templates/vue-ts/tsconfig.app.json +31 -0
- package/templates/vue-ts/tsconfig.json +17 -0
- package/templates/vue-ts/vite.config.ts +43 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"types": ["vite/client"],
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"baseUrl": ".",
|
|
11
|
+
"paths": {
|
|
12
|
+
"@/*": ["./src/*"]
|
|
13
|
+
},
|
|
14
|
+
/* Bundler mode */
|
|
15
|
+
"moduleResolution": "bundler",
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
"verbatimModuleSyntax": true,
|
|
18
|
+
"moduleDetection": "force",
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
"jsx": "preserve",
|
|
21
|
+
|
|
22
|
+
/* Linting */
|
|
23
|
+
"strict": true,
|
|
24
|
+
"noUnusedLocals": true,
|
|
25
|
+
"noUnusedParameters": true,
|
|
26
|
+
"erasableSyntaxOnly": true,
|
|
27
|
+
"noFallthroughCasesInSwitch": true,
|
|
28
|
+
"noUncheckedSideEffectImports": true
|
|
29
|
+
},
|
|
30
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import vue from "@vitejs/plugin-vue";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { Proxy } from "@domoinc/ryuu-proxy";
|
|
5
|
+
import manifest from "./public/manifest.json";
|
|
6
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
7
|
+
|
|
8
|
+
const config = { manifest };
|
|
9
|
+
const proxy = new Proxy(config);
|
|
10
|
+
|
|
11
|
+
// https://vite.dev/config/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
plugins: [
|
|
14
|
+
vue(),
|
|
15
|
+
tailwindcss(),
|
|
16
|
+
{
|
|
17
|
+
name: "ryuu-proxy",
|
|
18
|
+
configureServer(server) {
|
|
19
|
+
// Patch the `res` object to add `status` and `send` methods
|
|
20
|
+
server.middlewares.use((_req: any, res: any, next: any) => {
|
|
21
|
+
res.status = function (code: number) {
|
|
22
|
+
this.statusCode = code;
|
|
23
|
+
return this;
|
|
24
|
+
};
|
|
25
|
+
res.send = function (body: string) {
|
|
26
|
+
this.setHeader("Content-Type", "text/plain");
|
|
27
|
+
this.end(body);
|
|
28
|
+
};
|
|
29
|
+
next();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// Use the proxy middleware
|
|
33
|
+
server.middlewares.use(proxy.express());
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
define: { "process.env": {} },
|
|
38
|
+
resolve: {
|
|
39
|
+
alias: {
|
|
40
|
+
"@": path.resolve(__dirname, "./src"),
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
});
|