@osdk/create-app 0.17.0-beta.2 → 0.17.0-beta.4
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/CHANGELOG.md +12 -0
- package/build/browser/index.js +9 -13
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +9 -14
- package/build/cjs/index.cjs.map +1 -1
- package/build/esm/index.js +9 -13
- package/build/esm/index.js.map +1 -1
- package/build/esm/run.d.ts.map +1 -1
- package/package.json +15 -6
- package/templates/template-next-static-export/.eslintrc.json +0 -4
- package/templates/template-next-static-export/README.md.hbs +0 -35
- package/templates/template-next-static-export/_gitignore +0 -36
- package/templates/template-next-static-export/next.config.js.hbs +0 -17
- package/templates/template-next-static-export/package.json.hbs +0 -25
- package/templates/template-next-static-export/public/next.svg +0 -20
- package/templates/template-next-static-export/public/palantir.svg +0 -3
- package/templates/template-next-static-export/src/app/auth/callback/page.tsx +0 -25
- package/templates/template-next-static-export/src/app/globals.css +0 -81
- package/templates/template-next-static-export/src/app/icon.svg +0 -20
- package/templates/template-next-static-export/src/app/layout.module.css +0 -11
- package/templates/template-next-static-export/src/app/layout.tsx +0 -51
- package/templates/template-next-static-export/src/app/login/page.tsx +0 -45
- package/templates/template-next-static-export/src/app/page.module.css +0 -7
- package/templates/template-next-static-export/src/app/page.tsx.hbs +0 -53
- package/templates/template-next-static-export/src/lib/client.ts.hbs +0 -31
- package/templates/template-next-static-export/src/lib/useAuthenticated.ts +0 -25
- package/templates/template-next-static-export/tsconfig.json +0 -27
- package/templates/template-react/.eslintrc.cjs +0 -18
- package/templates/template-react/README.md.hbs +0 -35
- package/templates/template-react/_gitignore +0 -24
- package/templates/template-react/index.html +0 -15
- package/templates/template-react/package.json.hbs +0 -30
- package/templates/template-react/public/palantir.svg +0 -3
- package/templates/template-react/public/react.svg +0 -1
- package/templates/template-react/src/AuthCallback.tsx +0 -24
- package/templates/template-react/src/AuthenticatedRoute.tsx +0 -33
- package/templates/template-react/src/Home.module.css +0 -7
- package/templates/template-react/src/Home.tsx.hbs +0 -47
- package/templates/template-react/src/Layout.module.css +0 -10
- package/templates/template-react/src/Layout.tsx +0 -29
- package/templates/template-react/src/Login.tsx +0 -42
- package/templates/template-react/src/client.ts.hbs +0 -31
- package/templates/template-react/src/index.css +0 -81
- package/templates/template-react/src/main.tsx +0 -36
- package/templates/template-react/src/vite-env.d.ts +0 -1
- package/templates/template-react/tsconfig.json +0 -25
- package/templates/template-react/tsconfig.node.json +0 -10
- package/templates/template-react/vite.config.ts.hbs +0 -19
- package/templates/template-tutorial-todo-aip-app/.eslintrc.cjs +0 -18
- package/templates/template-tutorial-todo-aip-app/README.md.hbs +0 -34
- package/templates/template-tutorial-todo-aip-app/index.html +0 -15
- package/templates/template-tutorial-todo-aip-app/package.json.hbs +0 -31
- package/templates/template-tutorial-todo-aip-app/public/aip-icon.svg +0 -3
- package/templates/template-tutorial-todo-aip-app/public/todo-aip-app.svg +0 -19
- package/templates/template-tutorial-todo-aip-app/src/AuthCallback.tsx +0 -24
- package/templates/template-tutorial-todo-aip-app/src/AuthenticatedRoute.tsx +0 -33
- package/templates/template-tutorial-todo-aip-app/src/CreateProjectButton.module.css +0 -3
- package/templates/template-tutorial-todo-aip-app/src/CreateProjectButton.tsx +0 -36
- package/templates/template-tutorial-todo-aip-app/src/CreateProjectDialog.module.css +0 -15
- package/templates/template-tutorial-todo-aip-app/src/CreateProjectDialog.tsx +0 -74
- package/templates/template-tutorial-todo-aip-app/src/CreateTaskButton.module.css +0 -3
- package/templates/template-tutorial-todo-aip-app/src/CreateTaskButton.tsx +0 -38
- package/templates/template-tutorial-todo-aip-app/src/CreateTaskDialog.module.css +0 -66
- package/templates/template-tutorial-todo-aip-app/src/CreateTaskDialog.tsx +0 -140
- package/templates/template-tutorial-todo-aip-app/src/DeleteProjectButton.module.css +0 -3
- package/templates/template-tutorial-todo-aip-app/src/DeleteProjectButton.tsx +0 -37
- package/templates/template-tutorial-todo-aip-app/src/DeleteProjectDialog.module.css +0 -3
- package/templates/template-tutorial-todo-aip-app/src/DeleteProjectDialog.tsx +0 -57
- package/templates/template-tutorial-todo-aip-app/src/Dialog.module.css +0 -11
- package/templates/template-tutorial-todo-aip-app/src/Dialog.tsx +0 -19
- package/templates/template-tutorial-todo-aip-app/src/Home.module.css +0 -80
- package/templates/template-tutorial-todo-aip-app/src/Home.tsx +0 -135
- package/templates/template-tutorial-todo-aip-app/src/Layout.module.css +0 -16
- package/templates/template-tutorial-todo-aip-app/src/Layout.tsx +0 -23
- package/templates/template-tutorial-todo-aip-app/src/Login.module.css +0 -5
- package/templates/template-tutorial-todo-aip-app/src/Login.tsx +0 -44
- package/templates/template-tutorial-todo-aip-app/src/ProjectSelect.tsx +0 -40
- package/templates/template-tutorial-todo-aip-app/src/TaskList.module.css +0 -7
- package/templates/template-tutorial-todo-aip-app/src/TaskList.tsx +0 -44
- package/templates/template-tutorial-todo-aip-app/src/TaskListItem.module.css +0 -35
- package/templates/template-tutorial-todo-aip-app/src/TaskListItem.tsx +0 -58
- package/templates/template-tutorial-todo-aip-app/src/client.ts.hbs +0 -31
- package/templates/template-tutorial-todo-aip-app/src/index.css +0 -75
- package/templates/template-tutorial-todo-aip-app/src/main.tsx +0 -36
- package/templates/template-tutorial-todo-aip-app/src/mocks.ts +0 -187
- package/templates/template-tutorial-todo-aip-app/src/useProjectTasks.ts +0 -75
- package/templates/template-tutorial-todo-aip-app/src/useProjects.ts +0 -58
- package/templates/template-tutorial-todo-aip-app/src/vite-env.d.ts +0 -1
- package/templates/template-tutorial-todo-aip-app/tsconfig.json +0 -25
- package/templates/template-tutorial-todo-aip-app/tsconfig.node.json +0 -10
- package/templates/template-tutorial-todo-aip-app/vite.config.ts.hbs +0 -19
- package/templates/template-tutorial-todo-app/.eslintrc.cjs +0 -18
- package/templates/template-tutorial-todo-app/README.md.hbs +0 -33
- package/templates/template-tutorial-todo-app/index.html +0 -15
- package/templates/template-tutorial-todo-app/package.json.hbs +0 -31
- package/templates/template-tutorial-todo-app/public/todo-app.svg +0 -4
- package/templates/template-tutorial-todo-app/src/AuthCallback.tsx +0 -24
- package/templates/template-tutorial-todo-app/src/AuthenticatedRoute.tsx +0 -33
- package/templates/template-tutorial-todo-app/src/CreateProjectButton.tsx +0 -33
- package/templates/template-tutorial-todo-app/src/CreateProjectDialog.tsx +0 -56
- package/templates/template-tutorial-todo-app/src/CreateTaskButton.tsx +0 -35
- package/templates/template-tutorial-todo-app/src/CreateTaskDialog.tsx +0 -52
- package/templates/template-tutorial-todo-app/src/DeleteProjectButton.tsx +0 -34
- package/templates/template-tutorial-todo-app/src/DeleteProjectDialog.tsx +0 -46
- package/templates/template-tutorial-todo-app/src/Dialog.module.css +0 -10
- package/templates/template-tutorial-todo-app/src/Dialog.tsx +0 -19
- package/templates/template-tutorial-todo-app/src/Home.module.css +0 -34
- package/templates/template-tutorial-todo-app/src/Home.tsx +0 -63
- package/templates/template-tutorial-todo-app/src/Layout.module.css +0 -16
- package/templates/template-tutorial-todo-app/src/Layout.tsx +0 -21
- package/templates/template-tutorial-todo-app/src/Login.module.css +0 -5
- package/templates/template-tutorial-todo-app/src/Login.tsx +0 -44
- package/templates/template-tutorial-todo-app/src/ProjectSelect.tsx +0 -40
- package/templates/template-tutorial-todo-app/src/TaskList.module.css +0 -6
- package/templates/template-tutorial-todo-app/src/TaskList.tsx +0 -38
- package/templates/template-tutorial-todo-app/src/TaskListItem.module.css +0 -13
- package/templates/template-tutorial-todo-app/src/TaskListItem.tsx +0 -40
- package/templates/template-tutorial-todo-app/src/client.ts.hbs +0 -31
- package/templates/template-tutorial-todo-app/src/index.css +0 -75
- package/templates/template-tutorial-todo-app/src/main.tsx +0 -36
- package/templates/template-tutorial-todo-app/src/mocks.ts +0 -137
- package/templates/template-tutorial-todo-app/src/useProjectTasks.ts +0 -60
- package/templates/template-tutorial-todo-app/src/useProjects.ts +0 -43
- package/templates/template-tutorial-todo-app/src/vite-env.d.ts +0 -1
- package/templates/template-tutorial-todo-app/tsconfig.json +0 -25
- package/templates/template-tutorial-todo-app/tsconfig.node.json +0 -10
- package/templates/template-tutorial-todo-app/vite.config.ts.hbs +0 -19
- package/templates/template-vue/.vscode/extensions.json +0 -3
- package/templates/template-vue/README.md.hbs +0 -35
- package/templates/template-vue/_gitignore +0 -24
- package/templates/template-vue/index.html +0 -15
- package/templates/template-vue/package.json.hbs +0 -22
- package/templates/template-vue/public/palantir.svg +0 -3
- package/templates/template-vue/public/vue.svg +0 -1
- package/templates/template-vue/src/AuthCallback.vue +0 -22
- package/templates/template-vue/src/Home.vue.hbs +0 -38
- package/templates/template-vue/src/Layout.vue +0 -26
- package/templates/template-vue/src/Login.vue +0 -36
- package/templates/template-vue/src/client.ts.hbs +0 -31
- package/templates/template-vue/src/main.ts +0 -35
- package/templates/template-vue/src/style.css +0 -81
- package/templates/template-vue/src/vite-env.d.ts +0 -1
- package/templates/template-vue/tsconfig.json +0 -25
- package/templates/template-vue/tsconfig.node.json +0 -10
- package/templates/template-vue/vite.config.ts.hbs +0 -24
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createApp } from "vue";
|
|
2
|
-
import { createRouter, createWebHistory } from "vue-router";
|
|
3
|
-
import AuthCallback from "./AuthCallback.vue";
|
|
4
|
-
import client from "./client";
|
|
5
|
-
import Home from "./Home.vue";
|
|
6
|
-
import Layout from "./Layout.vue";
|
|
7
|
-
import Login from "./Login.vue";
|
|
8
|
-
import "./style.css";
|
|
9
|
-
|
|
10
|
-
const routes = [
|
|
11
|
-
{ path: "/", component: Home, meta: { requiresAuth: true } },
|
|
12
|
-
{ path: "/login", component: Login },
|
|
13
|
-
{ path: "/auth/callback", component: AuthCallback },
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
const router = createRouter({
|
|
17
|
-
history: createWebHistory(import.meta.env.BASE_URL),
|
|
18
|
-
routes,
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
router.beforeEach(async (to) => {
|
|
22
|
-
if (
|
|
23
|
-
to.meta.requiresAuth
|
|
24
|
-
&& (client.auth.token == null || client.auth.token.isExpired)
|
|
25
|
-
) {
|
|
26
|
-
try {
|
|
27
|
-
await client.auth.refresh();
|
|
28
|
-
} catch (e: unknown) {
|
|
29
|
-
// If we cannot refresh the token (i.e. the user is not logged in) we redirect to the login page
|
|
30
|
-
return "/login";
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
createApp(Layout).use(router).mount("#app");
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
-
line-height: 1.5;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
|
|
6
|
-
color-scheme: light dark;
|
|
7
|
-
color: rgba(255, 255, 255, 0.87);
|
|
8
|
-
background-color: #242424;
|
|
9
|
-
|
|
10
|
-
font-synthesis: none;
|
|
11
|
-
text-rendering: optimizeLegibility;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
#app-container {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex: 1;
|
|
19
|
-
align-items: center;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
#app {
|
|
23
|
-
max-width: 1280px;
|
|
24
|
-
margin: 0 auto;
|
|
25
|
-
padding: 2rem;
|
|
26
|
-
text-align: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
a {
|
|
30
|
-
font-weight: 500;
|
|
31
|
-
color: #646cff;
|
|
32
|
-
text-decoration: inherit;
|
|
33
|
-
}
|
|
34
|
-
a:hover {
|
|
35
|
-
color: #535bf2;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
body {
|
|
39
|
-
margin: 0;
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
min-width: 320px;
|
|
43
|
-
min-height: 100vh;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
h1 {
|
|
47
|
-
font-size: 3.2em;
|
|
48
|
-
line-height: 1.1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
button {
|
|
52
|
-
border-radius: 8px;
|
|
53
|
-
border: 1px solid transparent;
|
|
54
|
-
padding: 0.6em 1.2em;
|
|
55
|
-
font-size: 1em;
|
|
56
|
-
font-weight: 500;
|
|
57
|
-
font-family: inherit;
|
|
58
|
-
background-color: #1a1a1a;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
transition: border-color 0.25s;
|
|
61
|
-
}
|
|
62
|
-
button:hover {
|
|
63
|
-
border-color: #646cff;
|
|
64
|
-
}
|
|
65
|
-
button:focus,
|
|
66
|
-
button:focus-visible {
|
|
67
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media (prefers-color-scheme: light) {
|
|
71
|
-
:root {
|
|
72
|
-
color: #213547;
|
|
73
|
-
background-color: #ffffff;
|
|
74
|
-
}
|
|
75
|
-
a:hover {
|
|
76
|
-
color: #747bff;
|
|
77
|
-
}
|
|
78
|
-
button {
|
|
79
|
-
background-color: #f9f9f9;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"jsx": "preserve",
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true
|
|
22
|
-
},
|
|
23
|
-
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
24
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
25
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import vue from "@vitejs/plugin-vue";
|
|
2
|
-
import { defineConfig } from "vite";
|
|
3
|
-
|
|
4
|
-
// https://vitejs.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [vue()],
|
|
7
|
-
server: {
|
|
8
|
-
port: 8080,
|
|
9
|
-
{{#if corsProxy}}
|
|
10
|
-
proxy: {
|
|
11
|
-
"^(/multipass/api|/api)": {
|
|
12
|
-
target: "{{foundryUrl}}",
|
|
13
|
-
changeOrigin: true,
|
|
14
|
-
secure: true,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
{{/if}}
|
|
18
|
-
},
|
|
19
|
-
resolve: {
|
|
20
|
-
alias: {
|
|
21
|
-
vue: "vue/dist/vue.esm-bundler",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|