@gen3/workspaces 0.12.46 → 0.12.48
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/dts/components/CompactDictionaryPanel/CompactDictionaryPanel.d.ts.map +1 -1
- package/dist/dts/components/CompactDictionaryPanel/CompactDictionaryPanel.js +6 -2
- package/dist/dts/components/CompactDictionaryPanel/CompactDictionaryPanel.js.map +1 -1
- package/dist/dts/components/KernelLifecyclePanel/KernelSelector.js +2 -2
- package/dist/dts/components/KernelLifecyclePanel/KernelSelector.js.map +1 -1
- package/dist/dts/config.d.ts +0 -2
- package/dist/dts/config.d.ts.map +1 -1
- package/dist/dts/config.js +0 -34
- package/dist/dts/config.js.map +1 -1
- package/dist/dts/pages/WorkspacesCenter/data.d.ts.map +1 -1
- package/dist/dts/pages/WorkspacesCenter/data.js +42 -3
- package/dist/dts/pages/WorkspacesCenter/data.js.map +1 -1
- package/dist/dts/server/workspaceAssetsHandler.d.ts.map +1 -1
- package/dist/dts/server/workspaceAssetsHandler.js +0 -2
- package/dist/dts/server/workspaceAssetsHandler.js.map +1 -1
- package/dist/dts/workspace/WorkspaceCenter.js +2 -2
- package/dist/dts/workspace/WorkspaceCenter.js.map +1 -1
- package/dist/dts/workspace/WorkspaceLayout/SettingsPanel.d.ts +1 -1
- package/dist/dts/workspace/WorkspaceLayout/SettingsPanel.d.ts.map +1 -1
- package/dist/dts/workspace/WorkspaceLayout/SettingsPanel.js +2 -2
- package/dist/dts/workspace/WorkspaceLayout/SettingsPanel.js.map +1 -1
- package/dist/dts/workspace/WorkspaceLayout/ToolsPanel.d.ts +2 -1
- package/dist/dts/workspace/WorkspaceLayout/ToolsPanel.d.ts.map +1 -1
- package/dist/dts/workspace/WorkspaceLayout/ToolsPanel.js +2 -2
- package/dist/dts/workspace/WorkspaceLayout/ToolsPanel.js.map +1 -1
- package/dist/dts/workspace/WorkspaceLayout/WorkspaceLayout.d.ts +3 -1
- package/dist/dts/workspace/WorkspaceLayout/WorkspaceLayout.d.ts.map +1 -1
- package/dist/dts/workspace/WorkspaceLayout/WorkspaceLayout.js +2 -3
- package/dist/dts/workspace/WorkspaceLayout/WorkspaceLayout.js.map +1 -1
- package/dist/dts/workspace/tiers/RemoteComputeWorkspace.js +1 -1
- package/dist/dts/workspace/tiers/RemoteComputeWorkspace.js.map +1 -1
- package/dist/dts/workspace/tiers/types.d.ts +4 -2
- package/dist/dts/workspace/tiers/types.d.ts.map +1 -1
- package/dist/dts/workspace/types.d.ts +1 -0
- package/dist/dts/workspace/types.d.ts.map +1 -1
- package/dist/index/cjs/index.js +101 -69
- package/dist/index/cjs/index.js.map +1 -1
- package/dist/index/esm/index.js +102 -70
- package/dist/index/esm/index.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/server/cjs/server.js +0 -2
- package/dist/server/cjs/server.js.map +1 -1
- package/dist/server/esm/server.js +0 -2
- package/dist/server/esm/server.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ interface TierSelectorLandingConfiguration {
|
|
|
31
31
|
interface LabelAndDescription {
|
|
32
32
|
label: string;
|
|
33
33
|
description: string;
|
|
34
|
+
app?: string;
|
|
34
35
|
}
|
|
35
36
|
interface TierToolbarConfiguration extends LabelAndDescription {
|
|
36
37
|
showStop: boolean;
|
|
@@ -38,13 +39,14 @@ interface TierToolbarConfiguration extends LabelAndDescription {
|
|
|
38
39
|
}
|
|
39
40
|
interface SettingsPanelConfiguration {
|
|
40
41
|
showKernels: boolean;
|
|
42
|
+
width?: number;
|
|
41
43
|
}
|
|
42
44
|
interface DataAndToolsPanelConfiguration {
|
|
43
45
|
enabled: boolean;
|
|
44
46
|
tabs?: LabelAndDescription[];
|
|
47
|
+
width?: number;
|
|
45
48
|
}
|
|
46
49
|
interface WorkspaceTierInformation {
|
|
47
|
-
tier: WorkspaceTier;
|
|
48
50
|
toolbar: TierToolbarConfiguration;
|
|
49
51
|
dataAndTools: DataAndToolsPanelConfiguration;
|
|
50
52
|
settings: SettingsPanelConfiguration;
|
|
@@ -54,8 +56,8 @@ interface FreeWorkspaceTierConfiguration extends WorkspaceTierInformation {
|
|
|
54
56
|
type: Extract<WorkspaceTier, 'free'>;
|
|
55
57
|
}
|
|
56
58
|
interface RemoteComputeWorkspaceTierConfiguration extends WorkspaceTierInformation {
|
|
57
|
-
type: Extract<WorkspaceTier, 'remote'>;
|
|
58
59
|
baseUrl?: string;
|
|
60
|
+
type: Extract<WorkspaceTier, 'remote'>;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
interface WorkspacesCenterConfiguration {
|
|
@@ -162,7 +162,6 @@ function injectBranding(html, branding) {
|
|
|
162
162
|
// ---------- factory ----------
|
|
163
163
|
function createWorkspaceAssetsHandler(options) {
|
|
164
164
|
const gatewayBaseUrl = options?.gatewayBaseUrl ?? process.env.JUPYTER_GATEWAY_BASE_URL ?? '/api/workspace/gateway/';
|
|
165
|
-
console.log('' + 'gatewayBaseUrl:', gatewayBaseUrl);
|
|
166
165
|
const assetRoot = options?.assetRoot ?? defaultAssetRoot();
|
|
167
166
|
const disabledExtensions = options?.additionalDisabledExtensions ? [
|
|
168
167
|
...REMOTE_DISABLED_EXTENSIONS,
|
|
@@ -218,7 +217,6 @@ function createWorkspaceAssetsHandler(options) {
|
|
|
218
217
|
const safeSegments = [];
|
|
219
218
|
for (const seg of segments){
|
|
220
219
|
if (typeof seg !== 'string' || !SAFE_SEGMENT_RE.test(seg) || seg === '.' || seg === '..') {
|
|
221
|
-
console.log(`Forbidden segment: ${seg}`);
|
|
222
220
|
res.status(403).end('Forbidden');
|
|
223
221
|
return;
|
|
224
222
|
}
|