@osdk/create-app 0.17.0-beta.3 → 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.
Files changed (147) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/browser/index.js +9 -13
  3. package/build/browser/index.js.map +1 -1
  4. package/build/cjs/index.cjs +9 -14
  5. package/build/cjs/index.cjs.map +1 -1
  6. package/build/esm/index.js +9 -13
  7. package/build/esm/index.js.map +1 -1
  8. package/build/esm/run.d.ts.map +1 -1
  9. package/package.json +15 -6
  10. package/templates/template-next-static-export/.eslintrc.json +0 -4
  11. package/templates/template-next-static-export/README.md.hbs +0 -35
  12. package/templates/template-next-static-export/_gitignore +0 -36
  13. package/templates/template-next-static-export/next.config.js.hbs +0 -17
  14. package/templates/template-next-static-export/package.json.hbs +0 -25
  15. package/templates/template-next-static-export/public/next.svg +0 -20
  16. package/templates/template-next-static-export/public/palantir.svg +0 -3
  17. package/templates/template-next-static-export/src/app/auth/callback/page.tsx +0 -25
  18. package/templates/template-next-static-export/src/app/globals.css +0 -81
  19. package/templates/template-next-static-export/src/app/icon.svg +0 -20
  20. package/templates/template-next-static-export/src/app/layout.module.css +0 -11
  21. package/templates/template-next-static-export/src/app/layout.tsx +0 -51
  22. package/templates/template-next-static-export/src/app/login/page.tsx +0 -45
  23. package/templates/template-next-static-export/src/app/page.module.css +0 -7
  24. package/templates/template-next-static-export/src/app/page.tsx.hbs +0 -53
  25. package/templates/template-next-static-export/src/lib/client.ts.hbs +0 -31
  26. package/templates/template-next-static-export/src/lib/useAuthenticated.ts +0 -25
  27. package/templates/template-next-static-export/tsconfig.json +0 -27
  28. package/templates/template-react/.eslintrc.cjs +0 -18
  29. package/templates/template-react/README.md.hbs +0 -35
  30. package/templates/template-react/_gitignore +0 -24
  31. package/templates/template-react/index.html +0 -15
  32. package/templates/template-react/package.json.hbs +0 -30
  33. package/templates/template-react/public/palantir.svg +0 -3
  34. package/templates/template-react/public/react.svg +0 -1
  35. package/templates/template-react/src/AuthCallback.tsx +0 -24
  36. package/templates/template-react/src/AuthenticatedRoute.tsx +0 -33
  37. package/templates/template-react/src/Home.module.css +0 -7
  38. package/templates/template-react/src/Home.tsx.hbs +0 -47
  39. package/templates/template-react/src/Layout.module.css +0 -10
  40. package/templates/template-react/src/Layout.tsx +0 -29
  41. package/templates/template-react/src/Login.tsx +0 -42
  42. package/templates/template-react/src/client.ts.hbs +0 -31
  43. package/templates/template-react/src/index.css +0 -81
  44. package/templates/template-react/src/main.tsx +0 -36
  45. package/templates/template-react/src/vite-env.d.ts +0 -1
  46. package/templates/template-react/tsconfig.json +0 -25
  47. package/templates/template-react/tsconfig.node.json +0 -10
  48. package/templates/template-react/vite.config.ts.hbs +0 -19
  49. package/templates/template-tutorial-todo-aip-app/.eslintrc.cjs +0 -18
  50. package/templates/template-tutorial-todo-aip-app/README.md.hbs +0 -34
  51. package/templates/template-tutorial-todo-aip-app/index.html +0 -15
  52. package/templates/template-tutorial-todo-aip-app/package.json.hbs +0 -31
  53. package/templates/template-tutorial-todo-aip-app/public/aip-icon.svg +0 -3
  54. package/templates/template-tutorial-todo-aip-app/public/todo-aip-app.svg +0 -19
  55. package/templates/template-tutorial-todo-aip-app/src/AuthCallback.tsx +0 -24
  56. package/templates/template-tutorial-todo-aip-app/src/AuthenticatedRoute.tsx +0 -33
  57. package/templates/template-tutorial-todo-aip-app/src/CreateProjectButton.module.css +0 -3
  58. package/templates/template-tutorial-todo-aip-app/src/CreateProjectButton.tsx +0 -36
  59. package/templates/template-tutorial-todo-aip-app/src/CreateProjectDialog.module.css +0 -15
  60. package/templates/template-tutorial-todo-aip-app/src/CreateProjectDialog.tsx +0 -74
  61. package/templates/template-tutorial-todo-aip-app/src/CreateTaskButton.module.css +0 -3
  62. package/templates/template-tutorial-todo-aip-app/src/CreateTaskButton.tsx +0 -38
  63. package/templates/template-tutorial-todo-aip-app/src/CreateTaskDialog.module.css +0 -66
  64. package/templates/template-tutorial-todo-aip-app/src/CreateTaskDialog.tsx +0 -140
  65. package/templates/template-tutorial-todo-aip-app/src/DeleteProjectButton.module.css +0 -3
  66. package/templates/template-tutorial-todo-aip-app/src/DeleteProjectButton.tsx +0 -37
  67. package/templates/template-tutorial-todo-aip-app/src/DeleteProjectDialog.module.css +0 -3
  68. package/templates/template-tutorial-todo-aip-app/src/DeleteProjectDialog.tsx +0 -57
  69. package/templates/template-tutorial-todo-aip-app/src/Dialog.module.css +0 -11
  70. package/templates/template-tutorial-todo-aip-app/src/Dialog.tsx +0 -19
  71. package/templates/template-tutorial-todo-aip-app/src/Home.module.css +0 -28
  72. package/templates/template-tutorial-todo-aip-app/src/Home.tsx +0 -64
  73. package/templates/template-tutorial-todo-aip-app/src/Layout.module.css +0 -16
  74. package/templates/template-tutorial-todo-aip-app/src/Layout.tsx +0 -23
  75. package/templates/template-tutorial-todo-aip-app/src/Login.module.css +0 -5
  76. package/templates/template-tutorial-todo-aip-app/src/Login.tsx +0 -44
  77. package/templates/template-tutorial-todo-aip-app/src/ProjectDetails.module.css +0 -53
  78. package/templates/template-tutorial-todo-aip-app/src/ProjectDetails.tsx +0 -88
  79. package/templates/template-tutorial-todo-aip-app/src/ProjectSelect.tsx +0 -40
  80. package/templates/template-tutorial-todo-aip-app/src/TaskList.module.css +0 -7
  81. package/templates/template-tutorial-todo-aip-app/src/TaskList.tsx +0 -44
  82. package/templates/template-tutorial-todo-aip-app/src/TaskListItem.module.css +0 -35
  83. package/templates/template-tutorial-todo-aip-app/src/TaskListItem.tsx +0 -58
  84. package/templates/template-tutorial-todo-aip-app/src/client.ts.hbs +0 -31
  85. package/templates/template-tutorial-todo-aip-app/src/index.css +0 -75
  86. package/templates/template-tutorial-todo-aip-app/src/main.tsx +0 -36
  87. package/templates/template-tutorial-todo-aip-app/src/mocks.ts +0 -186
  88. package/templates/template-tutorial-todo-aip-app/src/useProjectTasks.ts +0 -75
  89. package/templates/template-tutorial-todo-aip-app/src/useProjects.ts +0 -57
  90. package/templates/template-tutorial-todo-aip-app/src/vite-env.d.ts +0 -1
  91. package/templates/template-tutorial-todo-aip-app/tsconfig.json +0 -25
  92. package/templates/template-tutorial-todo-aip-app/tsconfig.node.json +0 -10
  93. package/templates/template-tutorial-todo-aip-app/vite.config.ts.hbs +0 -19
  94. package/templates/template-tutorial-todo-app/.eslintrc.cjs +0 -18
  95. package/templates/template-tutorial-todo-app/README.md.hbs +0 -33
  96. package/templates/template-tutorial-todo-app/index.html +0 -15
  97. package/templates/template-tutorial-todo-app/package.json.hbs +0 -31
  98. package/templates/template-tutorial-todo-app/public/todo-app.svg +0 -4
  99. package/templates/template-tutorial-todo-app/src/AuthCallback.tsx +0 -24
  100. package/templates/template-tutorial-todo-app/src/AuthenticatedRoute.tsx +0 -33
  101. package/templates/template-tutorial-todo-app/src/CreateProjectButton.tsx +0 -33
  102. package/templates/template-tutorial-todo-app/src/CreateProjectDialog.tsx +0 -56
  103. package/templates/template-tutorial-todo-app/src/CreateTaskButton.tsx +0 -35
  104. package/templates/template-tutorial-todo-app/src/CreateTaskDialog.tsx +0 -52
  105. package/templates/template-tutorial-todo-app/src/DeleteProjectButton.tsx +0 -34
  106. package/templates/template-tutorial-todo-app/src/DeleteProjectDialog.tsx +0 -46
  107. package/templates/template-tutorial-todo-app/src/Dialog.module.css +0 -10
  108. package/templates/template-tutorial-todo-app/src/Dialog.tsx +0 -19
  109. package/templates/template-tutorial-todo-app/src/Home.module.css +0 -34
  110. package/templates/template-tutorial-todo-app/src/Home.tsx +0 -63
  111. package/templates/template-tutorial-todo-app/src/Layout.module.css +0 -16
  112. package/templates/template-tutorial-todo-app/src/Layout.tsx +0 -21
  113. package/templates/template-tutorial-todo-app/src/Login.module.css +0 -5
  114. package/templates/template-tutorial-todo-app/src/Login.tsx +0 -44
  115. package/templates/template-tutorial-todo-app/src/ProjectSelect.tsx +0 -40
  116. package/templates/template-tutorial-todo-app/src/TaskList.module.css +0 -6
  117. package/templates/template-tutorial-todo-app/src/TaskList.tsx +0 -38
  118. package/templates/template-tutorial-todo-app/src/TaskListItem.module.css +0 -13
  119. package/templates/template-tutorial-todo-app/src/TaskListItem.tsx +0 -40
  120. package/templates/template-tutorial-todo-app/src/client.ts.hbs +0 -31
  121. package/templates/template-tutorial-todo-app/src/index.css +0 -75
  122. package/templates/template-tutorial-todo-app/src/main.tsx +0 -36
  123. package/templates/template-tutorial-todo-app/src/mocks.ts +0 -137
  124. package/templates/template-tutorial-todo-app/src/useProjectTasks.ts +0 -60
  125. package/templates/template-tutorial-todo-app/src/useProjects.ts +0 -43
  126. package/templates/template-tutorial-todo-app/src/vite-env.d.ts +0 -1
  127. package/templates/template-tutorial-todo-app/tsconfig.json +0 -25
  128. package/templates/template-tutorial-todo-app/tsconfig.node.json +0 -10
  129. package/templates/template-tutorial-todo-app/vite.config.ts.hbs +0 -19
  130. package/templates/template-vue/.vscode/extensions.json +0 -3
  131. package/templates/template-vue/README.md.hbs +0 -35
  132. package/templates/template-vue/_gitignore +0 -24
  133. package/templates/template-vue/index.html +0 -15
  134. package/templates/template-vue/package.json.hbs +0 -22
  135. package/templates/template-vue/public/palantir.svg +0 -3
  136. package/templates/template-vue/public/vue.svg +0 -1
  137. package/templates/template-vue/src/AuthCallback.vue +0 -22
  138. package/templates/template-vue/src/Home.vue.hbs +0 -38
  139. package/templates/template-vue/src/Layout.vue +0 -26
  140. package/templates/template-vue/src/Login.vue +0 -36
  141. package/templates/template-vue/src/client.ts.hbs +0 -31
  142. package/templates/template-vue/src/main.ts +0 -35
  143. package/templates/template-vue/src/style.css +0 -81
  144. package/templates/template-vue/src/vite-env.d.ts +0 -1
  145. package/templates/template-vue/tsconfig.json +0 -25
  146. package/templates/template-vue/tsconfig.node.json +0 -10
  147. 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,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true
8
- },
9
- "include": ["vite.config.ts"]
10
- }
@@ -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
- });