ikanban-web 0.2.4 → 0.2.6

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/dist/index.html CHANGED
@@ -4,18 +4,18 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>OpenCode</title>
7
- <link rel="icon" type="image/png" href="/favicon-96x96-v3.png" sizes="96x96" />
8
- <link rel="icon" type="image/svg+xml" href="/favicon-v3.svg" />
9
- <link rel="shortcut icon" href="/favicon-v3.ico" />
10
- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-v3.png" />
11
- <link rel="manifest" href="/site.webmanifest" />
7
+ <link rel="icon" type="image/png" href="/ikanban/favicon-96x96-v3.png" sizes="96x96" />
8
+ <link rel="icon" type="image/svg+xml" href="/ikanban/favicon-v3.svg" />
9
+ <link rel="shortcut icon" href="/ikanban/favicon-v3.ico" />
10
+ <link rel="apple-touch-icon" sizes="180x180" href="/ikanban/apple-touch-icon-v3.png" />
11
+ <link rel="manifest" href="/ikanban/site.webmanifest" />
12
12
  <meta name="theme-color" content="#F8F7F7" />
13
13
  <meta name="theme-color" content="#131010" media="(prefers-color-scheme: dark)" />
14
- <meta property="og:image" content="/social-share.png" />
14
+ <meta property="og:image" content="/ikanban/social-share.png" />
15
15
  <meta property="twitter:image" content="/social-share.png" />
16
- <script id="oc-theme-preload-script" src="/oc-theme-preload.js"></script>
17
- <script type="module" crossorigin src="/assets/index-HcsA-1S9.js"></script>
18
- <link rel="stylesheet" crossorigin href="/assets/index-CitLv2ln.css">
16
+ <script id="oc-theme-preload-script" src="/ikanban/oc-theme-preload.js"></script>
17
+ <script type="module" crossorigin src="/ikanban/assets/index-BbYqEnGb.js"></script>
18
+ <link rel="stylesheet" crossorigin href="/ikanban/assets/index-B1DFsnCu.css">
19
19
  </head>
20
20
  <body class="antialiased overscroll-none text-12-regular overflow-hidden">
21
21
  <noscript>You need to enable JavaScript to run this app.</noscript>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikanban-web",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "iKanban web app",
5
5
  "private": false,
6
6
  "type": "module",
package/src/app.tsx CHANGED
@@ -151,6 +151,7 @@ export function AppInterface(props: {
151
151
  <GlobalSDKProvider>
152
152
  <GlobalSyncProvider>
153
153
  <Router
154
+ base={(import.meta.env.BASE_URL ?? "/").replace(/\/+$/, "")}
154
155
  root={(routerProps) => <RouterRoot appChildren={props.children}>{routerProps.children}</RouterRoot>}
155
156
  >
156
157
  <Route path="/" component={HomeRoute} />
package/src/entry.tsx CHANGED
@@ -116,7 +116,11 @@ const defaultUrl = iife(() => {
116
116
  if (location.hostname.includes("opencode.ai")) return "http://localhost:4096"
117
117
  if (import.meta.env.DEV)
118
118
  return `http://${import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "localhost"}:${import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096"}`
119
- return location.origin
119
+ // Strip trailing slash from BASE_URL so origin + base never has a double slash.
120
+ // When VITE_BASE_PATH is set (e.g. /ikanban/) Vite bakes it into BASE_URL,
121
+ // so API calls are routed through the same-origin proxy under that prefix.
122
+ const base = (import.meta.env.BASE_URL ?? "/").replace(/\/+$/, "")
123
+ return location.origin + base
120
124
  })
121
125
 
122
126
  if (root instanceof HTMLElement) {