@dxos/plugin-debug 0.9.0 → 0.9.1-staging.ee54ba693a
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/lib/neutral/{DebugObjectPanel-OS65NC4M.mjs → DebugObjectPanel-QSGQJ3LM.mjs} +5 -3
- package/dist/lib/neutral/DebugObjectPanel-QSGQJ3LM.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.mjs +2 -2
- package/dist/lib/neutral/DebugPlugin.mjs.map +4 -4
- package/dist/lib/neutral/{DebugSettings-RKYNQIKH.mjs → DebugSettings-Q3WUL6YQ.mjs} +37 -31
- package/dist/lib/neutral/DebugSettings-Q3WUL6YQ.mjs.map +7 -0
- package/dist/lib/neutral/{DebugSpaceObjectsPanel-BHOCFWDJ.mjs → DebugSpaceObjectsPanel-AXFZWEIM.mjs} +5 -3
- package/dist/lib/neutral/DebugSpaceObjectsPanel-AXFZWEIM.mjs.map +7 -0
- package/dist/lib/neutral/{DevtoolsOverviewContainer-YX7Z3D2H.mjs → DevtoolsOverviewContainer-DWQHTK7D.mjs} +3 -2
- package/dist/lib/neutral/DevtoolsOverviewContainer-DWQHTK7D.mjs.map +7 -0
- package/dist/lib/neutral/{GithubPanel-QJKDJRVQ.mjs → GithubPanel-4CSJRVKE.mjs} +3 -3
- package/dist/lib/neutral/GithubPanel-4CSJRVKE.mjs.map +7 -0
- package/dist/lib/neutral/{app-graph-builder-4OJQQLSH.mjs → app-graph-builder-UKG4WVYK.mjs} +124 -131
- package/dist/lib/neutral/app-graph-builder-UKG4WVYK.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +4 -4
- package/dist/lib/neutral/chunk-72QXLYMI.mjs +118 -0
- package/dist/lib/neutral/chunk-72QXLYMI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-R5C4CKOF.mjs +54 -0
- package/dist/lib/neutral/chunk-R5C4CKOF.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +13 -24
- package/dist/lib/neutral/components/index.mjs.map +4 -4
- package/dist/lib/neutral/containers/index.mjs +6 -4
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/index.mjs +6 -4
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/plugin.mjs +1 -1
- package/dist/lib/neutral/{react-context-MUZ3KVLU.mjs → react-context-UJURDOO6.mjs} +2 -2
- package/dist/lib/neutral/{react-context-MUZ3KVLU.mjs.map → react-context-UJURDOO6.mjs.map} +3 -3
- package/dist/lib/neutral/{react-surface-YBC4HK7I.mjs → react-surface-URESE7J4.mjs} +89 -35
- package/dist/lib/neutral/react-surface-URESE7J4.mjs.map +7 -0
- package/dist/lib/neutral/{settings-MPM6YUP4.mjs → settings-5I2674B6.mjs} +3 -3
- package/dist/lib/neutral/{settings-MPM6YUP4.mjs.map → settings-5I2674B6.mjs.map} +3 -3
- package/dist/lib/neutral/translations.mjs +1 -2
- package/dist/lib/neutral/translations.mjs.map +3 -3
- package/dist/lib/neutral/types/index.mjs +5 -3
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +4 -8
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts +1 -6
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -3
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +6 -3
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/{components → containers}/DebugSettings/DebugSettings.d.ts +2 -2
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/DebugSettings/DebugSettings.stories.d.ts +0 -1
- package/dist/types/src/{components → containers}/DebugSettings/DebugSettings.stories.d.ts.map +1 -1
- package/dist/types/src/{components → containers}/DebugSettings/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +6 -2
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -1
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts +0 -1
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RegistryPanel/index.d.ts +1 -1
- package/dist/types/src/containers/RegistryPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +1 -0
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +32 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Devtools.d.ts +57 -0
- package/dist/types/src/types/Devtools.d.ts.map +1 -0
- package/dist/types/src/types/debug.d.ts +20 -0
- package/dist/types/src/types/debug.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -69
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/surface.d.ts +4 -0
- package/dist/types/src/types/surface.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dx.config.ts +39 -0
- package/package.json +59 -58
- package/src/DebugPlugin.test.ts +1 -1
- package/src/DebugPlugin.tsx +1 -1
- package/src/capabilities/app-graph-builder.ts +123 -131
- package/src/capabilities/react-context.tsx +1 -1
- package/src/capabilities/react-surface.tsx +85 -33
- package/src/capabilities/settings.ts +2 -2
- package/src/components/SpaceGenerator/presets.ts +10 -13
- package/src/components/index.ts +0 -4
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +13 -4
- package/src/{components → containers}/DebugSettings/DebugSettings.stories.tsx +1 -1
- package/src/{components → containers}/DebugSettings/DebugSettings.tsx +100 -98
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +12 -4
- package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +3 -1
- package/src/containers/GithubPanel/GithubComponent.tsx +2 -2
- package/src/containers/RegistryPanel/index.ts +1 -1
- package/src/containers/index.ts +1 -0
- package/src/meta.ts +2 -31
- package/src/translations.ts +1 -2
- package/src/types/Devtools.ts +73 -0
- package/src/types/debug.ts +35 -0
- package/src/types/index.ts +3 -90
- package/src/types/surface.ts +10 -0
- package/dist/lib/neutral/DebugObjectPanel-OS65NC4M.mjs.map +0 -7
- package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs.map +0 -7
- package/dist/lib/neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs.map +0 -7
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs.map +0 -7
- package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-4OJQQLSH.mjs.map +0 -7
- package/dist/lib/neutral/chunk-HOV6MV5B.mjs +0 -43
- package/dist/lib/neutral/chunk-HOV6MV5B.mjs.map +0 -7
- package/dist/lib/neutral/chunk-TAST3Y2C.mjs +0 -91
- package/dist/lib/neutral/chunk-TAST3Y2C.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-YBC4HK7I.mjs.map +0 -7
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +0 -1
- /package/dist/types/src/{components → containers}/DebugSettings/index.d.ts +0 -0
- /package/src/{components → containers}/DebugSettings/index.ts +0 -0
|
@@ -5,17 +5,14 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
|
-
import { AppCapabilities, AppNode,
|
|
9
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
8
|
+
import { AppCapabilities, AppNode, AppNodeMatcher, Paths } from '@dxos/app-toolkit';
|
|
10
9
|
import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { type Space, isSpace } from '@dxos/react-client/echo';
|
|
11
|
+
import { Position } from '@dxos/util';
|
|
13
12
|
|
|
14
13
|
import { meta } from '#meta';
|
|
15
14
|
import { Devtools } from '#types';
|
|
16
15
|
|
|
17
|
-
const DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
18
|
-
|
|
19
16
|
export default Capability.makeModule(
|
|
20
17
|
Effect.fnUntraced(function* () {
|
|
21
18
|
const extensions = yield* Effect.all([
|
|
@@ -31,7 +28,7 @@ export default Capability.makeModule(
|
|
|
31
28
|
window.location.href = '/reset.html#continue';
|
|
32
29
|
}),
|
|
33
30
|
properties: {
|
|
34
|
-
label: ['reset-data.label', { ns: meta.
|
|
31
|
+
label: ['reset-data.label', { ns: meta.profile.key }],
|
|
35
32
|
icon: 'ph--warning--regular',
|
|
36
33
|
},
|
|
37
34
|
}),
|
|
@@ -40,343 +37,338 @@ export default Capability.makeModule(
|
|
|
40
37
|
|
|
41
38
|
GraphBuilder.createExtension({
|
|
42
39
|
id: 'devtools',
|
|
43
|
-
match: NodeMatcher.whenAny(NodeMatcher.whenRoot,
|
|
44
|
-
connector: (
|
|
40
|
+
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, AppNodeMatcher.whenNavTreeGroup(Paths.GroupTypes.system)),
|
|
41
|
+
connector: (nodeOrSpace: Node.Node | Space, get) =>
|
|
45
42
|
Effect.gen(function* () {
|
|
46
|
-
const
|
|
47
|
-
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
48
|
-
const layout = layoutAtom ? get(layoutAtom) : undefined;
|
|
49
|
-
const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;
|
|
50
|
-
const space = spaceId ? client.spaces.get(spaceId) : undefined;
|
|
43
|
+
const space: Space | undefined = isSpace(nodeOrSpace) ? nodeOrSpace : undefined;
|
|
51
44
|
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
52
45
|
|
|
53
46
|
return [
|
|
54
47
|
Node.make({
|
|
55
|
-
id: Devtools.id,
|
|
48
|
+
id: Devtools.nodeId(Devtools.id),
|
|
56
49
|
data: null,
|
|
57
|
-
type:
|
|
50
|
+
type: Devtools.id,
|
|
58
51
|
properties: {
|
|
59
|
-
label: ['devtools.label', { ns: meta.
|
|
52
|
+
label: ['devtools.label', { ns: meta.profile.key }],
|
|
60
53
|
icon: 'ph--hammer--regular',
|
|
61
|
-
|
|
62
|
-
position: 'last',
|
|
54
|
+
position: Position.last,
|
|
63
55
|
},
|
|
64
56
|
nodes: [
|
|
65
57
|
Node.make({
|
|
66
|
-
id:
|
|
67
|
-
type: `${meta.
|
|
68
|
-
data: { graph: graph?.graph, root:
|
|
58
|
+
id: Devtools.nodeId(Devtools.AppGraph),
|
|
59
|
+
type: `${meta.profile.key}.app-graph`,
|
|
60
|
+
data: { graph: graph?.graph, root: Node.RootId },
|
|
69
61
|
properties: {
|
|
70
|
-
label: ['debug-app-graph.label', { ns: meta.
|
|
62
|
+
label: ['debug-app-graph.label', { ns: meta.profile.key }],
|
|
71
63
|
icon: 'ph--graph--regular',
|
|
72
64
|
},
|
|
73
65
|
}),
|
|
74
66
|
Node.make({
|
|
75
|
-
id:
|
|
67
|
+
id: Devtools.nodeId(Devtools.ToolsExplorer),
|
|
76
68
|
data: Devtools.ToolsExplorer,
|
|
77
|
-
type:
|
|
69
|
+
type: Devtools.id,
|
|
78
70
|
properties: {
|
|
79
|
-
label: ['debug-tools-explorer.label', { ns: meta.
|
|
71
|
+
label: ['debug-tools-explorer.label', { ns: meta.profile.key }],
|
|
80
72
|
icon: 'ph--toolbox--regular',
|
|
81
73
|
},
|
|
82
74
|
}),
|
|
83
|
-
...(space
|
|
75
|
+
...(space
|
|
84
76
|
? [
|
|
85
77
|
Node.make({
|
|
86
|
-
id:
|
|
87
|
-
type: `${meta.
|
|
88
|
-
data: { space, type: `${meta.
|
|
78
|
+
id: Devtools.nodeId(Devtools.Debug),
|
|
79
|
+
type: `${meta.profile.key}.space`,
|
|
80
|
+
data: { space, type: `${meta.profile.key}.space` },
|
|
89
81
|
properties: {
|
|
90
|
-
label: ['generate-objects.label', { ns: meta.
|
|
82
|
+
label: ['generate-objects.label', { ns: meta.profile.key }],
|
|
91
83
|
icon: 'ph--dice-five--regular',
|
|
92
84
|
},
|
|
93
85
|
}),
|
|
94
86
|
]
|
|
95
87
|
: []),
|
|
96
88
|
Node.make({
|
|
97
|
-
id: Devtools.Client.id,
|
|
89
|
+
id: Devtools.nodeId(Devtools.Client.id),
|
|
98
90
|
data: null,
|
|
99
|
-
type:
|
|
91
|
+
type: Devtools.id,
|
|
100
92
|
properties: {
|
|
101
|
-
label: ['client.label', { ns: meta.
|
|
93
|
+
label: ['client.label', { ns: meta.profile.key }],
|
|
102
94
|
icon: 'ph--users--regular',
|
|
103
95
|
},
|
|
104
96
|
nodes: [
|
|
105
97
|
Node.make({
|
|
106
|
-
id: Devtools.Client.Config,
|
|
98
|
+
id: Devtools.nodeId(Devtools.Client.Config),
|
|
107
99
|
data: Devtools.Client.Config,
|
|
108
|
-
type:
|
|
100
|
+
type: Devtools.id,
|
|
109
101
|
properties: {
|
|
110
|
-
label: ['config.label', { ns: meta.
|
|
102
|
+
label: ['config.label', { ns: meta.profile.key }],
|
|
111
103
|
icon: 'ph--gear--regular',
|
|
112
104
|
},
|
|
113
105
|
}),
|
|
114
106
|
Node.make({
|
|
115
|
-
id: Devtools.Client.Storage,
|
|
107
|
+
id: Devtools.nodeId(Devtools.Client.Storage),
|
|
116
108
|
data: Devtools.Client.Storage,
|
|
117
|
-
type:
|
|
109
|
+
type: Devtools.id,
|
|
118
110
|
properties: {
|
|
119
|
-
label: ['storage.label', { ns: meta.
|
|
111
|
+
label: ['storage.label', { ns: meta.profile.key }],
|
|
120
112
|
icon: 'ph--hard-drives--regular',
|
|
121
113
|
},
|
|
122
114
|
}),
|
|
123
115
|
Node.make({
|
|
124
|
-
id: Devtools.Client.Sqlite,
|
|
116
|
+
id: Devtools.nodeId(Devtools.Client.Sqlite),
|
|
125
117
|
data: Devtools.Client.Sqlite,
|
|
126
|
-
type:
|
|
118
|
+
type: Devtools.id,
|
|
127
119
|
properties: {
|
|
128
|
-
label: ['sqlite.label', { ns: meta.
|
|
120
|
+
label: ['sqlite.label', { ns: meta.profile.key }],
|
|
129
121
|
icon: 'ph--database--regular',
|
|
130
122
|
},
|
|
131
123
|
}),
|
|
132
124
|
Node.make({
|
|
133
|
-
id: Devtools.Client.Logs,
|
|
125
|
+
id: Devtools.nodeId(Devtools.Client.Logs),
|
|
134
126
|
data: Devtools.Client.Logs,
|
|
135
|
-
type:
|
|
127
|
+
type: Devtools.id,
|
|
136
128
|
properties: {
|
|
137
|
-
label: ['logs.label', { ns: meta.
|
|
129
|
+
label: ['logs.label', { ns: meta.profile.key }],
|
|
138
130
|
icon: 'ph--file-text--regular',
|
|
139
131
|
},
|
|
140
132
|
}),
|
|
141
133
|
Node.make({
|
|
142
|
-
id: Devtools.Client.Diagnostics,
|
|
134
|
+
id: Devtools.nodeId(Devtools.Client.Diagnostics),
|
|
143
135
|
data: Devtools.Client.Diagnostics,
|
|
144
|
-
type:
|
|
136
|
+
type: Devtools.id,
|
|
145
137
|
properties: {
|
|
146
|
-
label: ['diagnostics.label', { ns: meta.
|
|
138
|
+
label: ['diagnostics.label', { ns: meta.profile.key }],
|
|
147
139
|
icon: 'ph--chart-line--regular',
|
|
148
140
|
},
|
|
149
141
|
}),
|
|
150
142
|
],
|
|
151
143
|
}),
|
|
152
144
|
Node.make({
|
|
153
|
-
id: Devtools.Halo.id,
|
|
145
|
+
id: Devtools.nodeId(Devtools.Halo.id),
|
|
154
146
|
data: null,
|
|
155
|
-
type:
|
|
147
|
+
type: Devtools.id,
|
|
156
148
|
properties: {
|
|
157
|
-
label: ['halo.label', { ns: meta.
|
|
149
|
+
label: ['halo.label', { ns: meta.profile.key }],
|
|
158
150
|
icon: 'ph--identification-badge--regular',
|
|
159
151
|
},
|
|
160
152
|
nodes: [
|
|
161
153
|
Node.make({
|
|
162
|
-
id: Devtools.Halo.Identity,
|
|
154
|
+
id: Devtools.nodeId(Devtools.Halo.Identity),
|
|
163
155
|
data: Devtools.Halo.Identity,
|
|
164
|
-
type:
|
|
156
|
+
type: Devtools.id,
|
|
165
157
|
properties: {
|
|
166
|
-
label: ['identity.label', { ns: meta.
|
|
158
|
+
label: ['identity.label', { ns: meta.profile.key }],
|
|
167
159
|
icon: 'ph--identification-badge--regular',
|
|
168
160
|
},
|
|
169
161
|
}),
|
|
170
162
|
Node.make({
|
|
171
|
-
id: Devtools.Halo.Devices,
|
|
163
|
+
id: Devtools.nodeId(Devtools.Halo.Devices),
|
|
172
164
|
data: Devtools.Halo.Devices,
|
|
173
|
-
type:
|
|
165
|
+
type: Devtools.id,
|
|
174
166
|
properties: {
|
|
175
|
-
label: ['devices.label', { ns: meta.
|
|
167
|
+
label: ['devices.label', { ns: meta.profile.key }],
|
|
176
168
|
icon: 'ph--devices--regular',
|
|
177
169
|
},
|
|
178
170
|
}),
|
|
179
171
|
Node.make({
|
|
180
|
-
id: Devtools.Halo.Keyring,
|
|
172
|
+
id: Devtools.nodeId(Devtools.Halo.Keyring),
|
|
181
173
|
data: Devtools.Halo.Keyring,
|
|
182
|
-
type:
|
|
174
|
+
type: Devtools.id,
|
|
183
175
|
properties: {
|
|
184
|
-
label: ['keyring.label', { ns: meta.
|
|
176
|
+
label: ['keyring.label', { ns: meta.profile.key }],
|
|
185
177
|
icon: 'ph--key--regular',
|
|
186
178
|
},
|
|
187
179
|
}),
|
|
188
180
|
Node.make({
|
|
189
|
-
id: Devtools.Halo.Credentials,
|
|
181
|
+
id: Devtools.nodeId(Devtools.Halo.Credentials),
|
|
190
182
|
data: Devtools.Halo.Credentials,
|
|
191
|
-
type:
|
|
183
|
+
type: Devtools.id,
|
|
192
184
|
properties: {
|
|
193
|
-
label: ['credentials.label', { ns: meta.
|
|
185
|
+
label: ['credentials.label', { ns: meta.profile.key }],
|
|
194
186
|
icon: 'ph--credit-card--regular',
|
|
195
187
|
},
|
|
196
188
|
}),
|
|
197
189
|
],
|
|
198
190
|
}),
|
|
199
191
|
Node.make({
|
|
200
|
-
id: Devtools.Echo.id,
|
|
192
|
+
id: Devtools.nodeId(Devtools.Echo.id),
|
|
201
193
|
data: null,
|
|
202
|
-
type:
|
|
194
|
+
type: Devtools.id,
|
|
203
195
|
properties: {
|
|
204
|
-
label: ['echo.label', { ns: meta.
|
|
196
|
+
label: ['echo.label', { ns: meta.profile.key }],
|
|
205
197
|
icon: 'ph--database--regular',
|
|
206
198
|
},
|
|
207
199
|
nodes: [
|
|
208
200
|
Node.make({
|
|
209
|
-
id: Devtools.Echo.Spaces,
|
|
201
|
+
id: Devtools.nodeId(Devtools.Echo.Spaces),
|
|
210
202
|
data: Devtools.Echo.Spaces,
|
|
211
|
-
type:
|
|
203
|
+
type: Devtools.id,
|
|
212
204
|
properties: {
|
|
213
|
-
label: ['spaces.label', { ns: meta.
|
|
205
|
+
label: ['spaces.label', { ns: meta.profile.key }],
|
|
214
206
|
icon: 'ph--graph--regular',
|
|
215
207
|
},
|
|
216
208
|
}),
|
|
217
209
|
Node.make({
|
|
218
|
-
id: Devtools.Echo.Space,
|
|
210
|
+
id: Devtools.nodeId(Devtools.Echo.Space),
|
|
219
211
|
data: Devtools.Echo.Space,
|
|
220
|
-
type:
|
|
212
|
+
type: Devtools.id,
|
|
221
213
|
properties: {
|
|
222
|
-
label: ['space.label', { ns: meta.
|
|
214
|
+
label: ['space.label', { ns: meta.profile.key }],
|
|
223
215
|
icon: 'ph--planet--regular',
|
|
224
216
|
},
|
|
225
217
|
}),
|
|
226
218
|
Node.make({
|
|
227
|
-
id: Devtools.Echo.Feeds,
|
|
219
|
+
id: Devtools.nodeId(Devtools.Echo.Feeds),
|
|
228
220
|
data: Devtools.Echo.Feeds,
|
|
229
|
-
type:
|
|
221
|
+
type: Devtools.id,
|
|
230
222
|
properties: {
|
|
231
|
-
label: ['feeds.label', { ns: meta.
|
|
223
|
+
label: ['feeds.label', { ns: meta.profile.key }],
|
|
232
224
|
icon: 'ph--list-bullets--regular',
|
|
233
225
|
},
|
|
234
226
|
}),
|
|
235
227
|
Node.make({
|
|
236
|
-
id: Devtools.Echo.Objects,
|
|
228
|
+
id: Devtools.nodeId(Devtools.Echo.Objects),
|
|
237
229
|
data: Devtools.Echo.Objects,
|
|
238
|
-
type:
|
|
230
|
+
type: Devtools.id,
|
|
239
231
|
properties: {
|
|
240
|
-
label: ['objects.label', { ns: meta.
|
|
232
|
+
label: ['objects.label', { ns: meta.profile.key }],
|
|
241
233
|
icon: 'ph--cube--regular',
|
|
242
234
|
},
|
|
243
235
|
}),
|
|
244
236
|
Node.make({
|
|
245
|
-
id: Devtools.Echo.Schema,
|
|
237
|
+
id: Devtools.nodeId(Devtools.Echo.Schema),
|
|
246
238
|
data: Devtools.Echo.Schema,
|
|
247
|
-
type:
|
|
239
|
+
type: Devtools.id,
|
|
248
240
|
properties: {
|
|
249
|
-
label: ['schema.label', { ns: meta.
|
|
241
|
+
label: ['schema.label', { ns: meta.profile.key }],
|
|
250
242
|
icon: 'ph--database--regular',
|
|
251
243
|
},
|
|
252
244
|
}),
|
|
253
245
|
Node.make({
|
|
254
|
-
id: Devtools.Echo.Registry,
|
|
246
|
+
id: Devtools.nodeId(Devtools.Echo.Registry),
|
|
255
247
|
data: Devtools.Echo.Registry,
|
|
256
|
-
type:
|
|
248
|
+
type: Devtools.id,
|
|
257
249
|
properties: {
|
|
258
|
-
label: ['registry.label', { ns: meta.
|
|
250
|
+
label: ['registry.label', { ns: meta.profile.key }],
|
|
259
251
|
icon: 'ph--books--regular',
|
|
260
252
|
},
|
|
261
253
|
}),
|
|
262
254
|
Node.make({
|
|
263
|
-
id: Devtools.Echo.Automerge,
|
|
255
|
+
id: Devtools.nodeId(Devtools.Echo.Automerge),
|
|
264
256
|
data: Devtools.Echo.Automerge,
|
|
265
|
-
type:
|
|
257
|
+
type: Devtools.id,
|
|
266
258
|
properties: {
|
|
267
|
-
label: ['automerge.label', { ns: meta.
|
|
259
|
+
label: ['automerge.label', { ns: meta.profile.key }],
|
|
268
260
|
icon: 'ph--gear-six--regular',
|
|
269
261
|
},
|
|
270
262
|
}),
|
|
271
263
|
Node.make({
|
|
272
|
-
id: Devtools.Echo.Queues,
|
|
264
|
+
id: Devtools.nodeId(Devtools.Echo.Queues),
|
|
273
265
|
data: Devtools.Echo.Queues,
|
|
274
|
-
type:
|
|
266
|
+
type: Devtools.id,
|
|
275
267
|
properties: {
|
|
276
|
-
label: ['queues.label', { ns: meta.
|
|
268
|
+
label: ['queues.label', { ns: meta.profile.key }],
|
|
277
269
|
icon: 'ph--queue--regular',
|
|
278
270
|
},
|
|
279
271
|
}),
|
|
280
272
|
Node.make({
|
|
281
|
-
id: Devtools.Echo.Members,
|
|
273
|
+
id: Devtools.nodeId(Devtools.Echo.Members),
|
|
282
274
|
data: Devtools.Echo.Members,
|
|
283
|
-
type:
|
|
275
|
+
type: Devtools.id,
|
|
284
276
|
properties: {
|
|
285
|
-
label: ['members.label', { ns: meta.
|
|
277
|
+
label: ['members.label', { ns: meta.profile.key }],
|
|
286
278
|
icon: 'ph--users--regular',
|
|
287
279
|
},
|
|
288
280
|
}),
|
|
289
281
|
Node.make({
|
|
290
|
-
id: Devtools.Echo.Metadata,
|
|
282
|
+
id: Devtools.nodeId(Devtools.Echo.Metadata),
|
|
291
283
|
data: Devtools.Echo.Metadata,
|
|
292
|
-
type:
|
|
284
|
+
type: Devtools.id,
|
|
293
285
|
properties: {
|
|
294
|
-
label: ['metadata.label', { ns: meta.
|
|
286
|
+
label: ['metadata.label', { ns: meta.profile.key }],
|
|
295
287
|
icon: 'ph--hard-drive--regular',
|
|
296
288
|
},
|
|
297
289
|
}),
|
|
298
290
|
],
|
|
299
291
|
}),
|
|
300
292
|
Node.make({
|
|
301
|
-
id: Devtools.Mesh.id,
|
|
293
|
+
id: Devtools.nodeId(Devtools.Mesh.id),
|
|
302
294
|
data: null,
|
|
303
|
-
type:
|
|
295
|
+
type: Devtools.id,
|
|
304
296
|
properties: {
|
|
305
|
-
label: ['mesh.label', { ns: meta.
|
|
297
|
+
label: ['mesh.label', { ns: meta.profile.key }],
|
|
306
298
|
icon: 'ph--graph--regular',
|
|
307
299
|
},
|
|
308
300
|
nodes: [
|
|
309
301
|
Node.make({
|
|
310
|
-
id: Devtools.Mesh.Signal,
|
|
302
|
+
id: Devtools.nodeId(Devtools.Mesh.Signal),
|
|
311
303
|
data: Devtools.Mesh.Signal,
|
|
312
|
-
type:
|
|
304
|
+
type: Devtools.id,
|
|
313
305
|
properties: {
|
|
314
|
-
label: ['signal.label', { ns: meta.
|
|
306
|
+
label: ['signal.label', { ns: meta.profile.key }],
|
|
315
307
|
icon: 'ph--wifi-high--regular',
|
|
316
308
|
},
|
|
317
309
|
}),
|
|
318
310
|
Node.make({
|
|
319
|
-
id: Devtools.Mesh.Swarm,
|
|
311
|
+
id: Devtools.nodeId(Devtools.Mesh.Swarm),
|
|
320
312
|
data: Devtools.Mesh.Swarm,
|
|
321
|
-
type:
|
|
313
|
+
type: Devtools.id,
|
|
322
314
|
properties: {
|
|
323
|
-
label: ['swarm.label', { ns: meta.
|
|
315
|
+
label: ['swarm.label', { ns: meta.profile.key }],
|
|
324
316
|
icon: 'ph--users-three--regular',
|
|
325
317
|
},
|
|
326
318
|
}),
|
|
327
319
|
Node.make({
|
|
328
|
-
id: Devtools.Mesh.Network,
|
|
320
|
+
id: Devtools.nodeId(Devtools.Mesh.Network),
|
|
329
321
|
data: Devtools.Mesh.Network,
|
|
330
|
-
type:
|
|
322
|
+
type: Devtools.id,
|
|
331
323
|
properties: {
|
|
332
|
-
label: ['network.label', { ns: meta.
|
|
324
|
+
label: ['network.label', { ns: meta.profile.key }],
|
|
333
325
|
icon: 'ph--polygon--regular',
|
|
334
326
|
},
|
|
335
327
|
}),
|
|
336
328
|
],
|
|
337
329
|
}),
|
|
338
330
|
Node.make({
|
|
339
|
-
id: Devtools.Edge.id,
|
|
331
|
+
id: Devtools.nodeId(Devtools.Edge.id),
|
|
340
332
|
data: null,
|
|
341
|
-
type:
|
|
333
|
+
type: Devtools.id,
|
|
342
334
|
properties: {
|
|
343
|
-
label: ['edge.label', { ns: meta.
|
|
335
|
+
label: ['edge.label', { ns: meta.profile.key }],
|
|
344
336
|
icon: 'ph--cloud--regular',
|
|
345
337
|
},
|
|
346
338
|
nodes: [
|
|
347
339
|
Node.make({
|
|
348
|
-
id: Devtools.Edge.Dashboard,
|
|
340
|
+
id: Devtools.nodeId(Devtools.Edge.Dashboard),
|
|
349
341
|
data: Devtools.Edge.Dashboard,
|
|
350
|
-
type:
|
|
342
|
+
type: Devtools.id,
|
|
351
343
|
properties: {
|
|
352
|
-
label: ['dashboard.label', { ns: meta.
|
|
344
|
+
label: ['dashboard.label', { ns: meta.profile.key }],
|
|
353
345
|
icon: 'ph--computer-tower--regular',
|
|
354
346
|
},
|
|
355
347
|
}),
|
|
356
348
|
Node.make({
|
|
357
|
-
id: Devtools.Edge.Workflows,
|
|
349
|
+
id: Devtools.nodeId(Devtools.Edge.Workflows),
|
|
358
350
|
data: Devtools.Edge.Workflows,
|
|
359
|
-
type:
|
|
351
|
+
type: Devtools.id,
|
|
360
352
|
properties: {
|
|
361
|
-
label: ['workflows.label', { ns: meta.
|
|
353
|
+
label: ['workflows.label', { ns: meta.profile.key }],
|
|
362
354
|
icon: 'ph--function--regular',
|
|
363
355
|
},
|
|
364
356
|
}),
|
|
365
357
|
Node.make({
|
|
366
|
-
id: Devtools.Edge.Traces,
|
|
358
|
+
id: Devtools.nodeId(Devtools.Edge.Traces),
|
|
367
359
|
data: Devtools.Edge.Traces,
|
|
368
|
-
type:
|
|
360
|
+
type: Devtools.id,
|
|
369
361
|
properties: {
|
|
370
|
-
label: ['traces.label', { ns: meta.
|
|
362
|
+
label: ['traces.label', { ns: meta.profile.key }],
|
|
371
363
|
icon: 'ph--line-segments--regular',
|
|
372
364
|
},
|
|
373
365
|
}),
|
|
374
366
|
Node.make({
|
|
375
|
-
id: Devtools.Edge.Testing,
|
|
367
|
+
id: Devtools.nodeId(Devtools.Edge.Testing),
|
|
376
368
|
data: Devtools.Edge.Testing,
|
|
377
|
-
type:
|
|
369
|
+
type: Devtools.id,
|
|
378
370
|
properties: {
|
|
379
|
-
label: ['testing.label', { ns: meta.
|
|
371
|
+
label: ['testing.label', { ns: meta.profile.key }],
|
|
380
372
|
icon: 'ph--flask--regular',
|
|
381
373
|
},
|
|
382
374
|
}),
|
|
@@ -396,10 +388,10 @@ export default Capability.makeModule(
|
|
|
396
388
|
Effect.succeed([
|
|
397
389
|
AppNode.makeCompanion({
|
|
398
390
|
id: 'debug',
|
|
399
|
-
label: ['debug.label', { ns: meta.
|
|
391
|
+
label: ['debug.label', { ns: meta.profile.key }],
|
|
400
392
|
icon: 'ph--bug--regular',
|
|
401
393
|
data: 'debug',
|
|
402
|
-
position:
|
|
394
|
+
position: Position.last,
|
|
403
395
|
}),
|
|
404
396
|
]),
|
|
405
397
|
}),
|
|
@@ -411,11 +403,11 @@ export default Capability.makeModule(
|
|
|
411
403
|
connector: () =>
|
|
412
404
|
Effect.succeed([
|
|
413
405
|
AppNode.makeDeckCompanion({
|
|
414
|
-
id: '
|
|
415
|
-
label: ['devtools-overview.label', { ns: meta.
|
|
406
|
+
id: 'devtoolsOverview',
|
|
407
|
+
label: ['devtools-overview.label', { ns: meta.profile.key }],
|
|
416
408
|
icon: 'ph--equalizer--regular',
|
|
417
409
|
data: 'devtools' as const,
|
|
418
|
-
position:
|
|
410
|
+
position: Position.last,
|
|
419
411
|
}),
|
|
420
412
|
]),
|
|
421
413
|
}),
|
|
@@ -428,10 +420,10 @@ export default Capability.makeModule(
|
|
|
428
420
|
Effect.succeed([
|
|
429
421
|
AppNode.makeDeckCompanion({
|
|
430
422
|
id: 'spaceObjects',
|
|
431
|
-
label: ['space-objects.label', { ns: meta.
|
|
423
|
+
label: ['space-objects.label', { ns: meta.profile.key }],
|
|
432
424
|
icon: 'ph--cube--regular',
|
|
433
425
|
data: 'space-objects' as const,
|
|
434
|
-
position:
|
|
426
|
+
position: Position.last,
|
|
435
427
|
}),
|
|
436
428
|
]),
|
|
437
429
|
}),
|
|
@@ -14,7 +14,7 @@ import { meta } from '#meta';
|
|
|
14
14
|
export default Capability.makeModule(() =>
|
|
15
15
|
Effect.succeed(
|
|
16
16
|
Capability.contributes(Capabilities.ReactContext, {
|
|
17
|
-
id: meta.
|
|
17
|
+
id: meta.profile.key,
|
|
18
18
|
context: ({ children }) => (
|
|
19
19
|
<Surface.ProfilerProvider>
|
|
20
20
|
<DevtoolsContextProvider>{children}</DevtoolsContextProvider>
|