@bridgebrew/plugin-manager 0.0.1 → 0.0.2
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/browser/browser.tsx +11 -11
- package/browser/screen/harness-profiles.tsx +1348 -0
- package/browser/screen/marketplace-model.ts +356 -0
- package/browser/screen/marketplace.tsx +1173 -0
- package/browser/screen/plugin-dependencies.tsx +139 -0
- package/browser/screen/plugin-docs.tsx +142 -0
- package/browser/screen/plugin-logs.tsx +549 -0
- package/browser/screen/plugin-parts.tsx +257 -0
- package/browser/screen/plugin-readme.tsx +152 -0
- package/browser/screen/plugin-settings.tsx +169 -0
- package/browser/screen/plugins-model.ts +427 -0
- package/browser/screen/plugins.tsx +2593 -0
- package/browser/screen/settings-action.ts +42 -0
- package/browser/screen/settings-fields.ts +414 -0
- package/browser/screen/settings-form.tsx +1669 -0
- package/browser/screen/settings-kinds.tsx +918 -0
- package/browser/screen/settings-page.tsx +72 -0
- package/browser/screen/settings-row.tsx +558 -0
- package/browser/screen/update-all.tsx +175 -0
- package/package.json +12 -2
- package/tsconfig.json +5 -1
package/browser/browser.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HarnessProfiles } from '
|
|
1
|
+
import { HarnessProfiles } from './screen/harness-profiles.tsx';
|
|
2
2
|
// The Settings screen (AD-26, research-027 P5, P17), opened on a node (the sidebar's gear for the node shown, a node's
|
|
3
3
|
// or the workspace's menu): `/<workspace>/<node>/settings`; still a utility when a plugin opens it so (Sessions). Laid
|
|
4
4
|
// out like the Plugins screen: a sidebar with a search ("@modified" keeps the values set at the level shown) listing the
|
|
@@ -9,7 +9,7 @@ import { HarnessProfiles } from '@bridge/plugin-manager/harness-profiles';
|
|
|
9
9
|
// there; P13; a workspace's own fields, `x-bridge-level`, read and written on Workspace whatever the tab). A field
|
|
10
10
|
// `x-bridge-settings-of` stands for the workspace-level fields of the `_host` plugin chosen in a sibling (the look's window
|
|
11
11
|
// manager, research-028 CAP-6): their rows, under the choice, from `_host`'s schemas, unset ones showing Bridge's. Each field a
|
|
12
|
-
// row generated from its JSON Schema (
|
|
12
|
+
// row generated from its JSON Schema (`./screen/settings-row.tsx`): "Section: Name", its origin line, description,
|
|
13
13
|
// control (a checkbox labelled by the description, a select, an input, a colour, swatches, an image uploaded to the
|
|
14
14
|
// workspace's Bridge, or a form for objects and arrays, with "Edit in JSON" as an escape hatch), a left accent bar when set at this level, and a gear menu (Reset
|
|
15
15
|
// Setting, Copy Setting ID, Copy Setting as JSON). A change commits the whole value once it validates against the schema
|
|
@@ -97,20 +97,20 @@ import {
|
|
|
97
97
|
setOn,
|
|
98
98
|
DEFAULT_ORIGIN,
|
|
99
99
|
type Schema,
|
|
100
|
-
} from '
|
|
101
|
-
import { runSettingsAction } from '
|
|
102
|
-
import type { FormContext, Path } from '
|
|
100
|
+
} from './screen/settings-fields.ts';
|
|
101
|
+
import { runSettingsAction } from './screen/settings-action.ts';
|
|
102
|
+
import type { FormContext, Path } from './screen/settings-form.tsx';
|
|
103
103
|
import {
|
|
104
104
|
domainOf,
|
|
105
105
|
domains,
|
|
106
106
|
nameOf,
|
|
107
107
|
needsSetup,
|
|
108
108
|
type PluginItem,
|
|
109
|
-
} from '
|
|
110
|
-
import { PluginsScreen } from '
|
|
111
|
-
import { updatesMark, type Catalog } from '
|
|
112
|
-
import { SettingRow as Row, domId } from '
|
|
113
|
-
import { SettingsPageOutlet, SettingsPageRenderer } from '
|
|
109
|
+
} from './screen/plugins-model.ts';
|
|
110
|
+
import { PluginsScreen } from './screen/plugins.tsx';
|
|
111
|
+
import { updatesMark, type Catalog } from './screen/marketplace-model.ts';
|
|
112
|
+
import { SettingRow as Row, domId } from './screen/settings-row.tsx';
|
|
113
|
+
import { SettingsPageOutlet, SettingsPageRenderer } from './screen/settings-page.tsx';
|
|
114
114
|
|
|
115
115
|
export const name = 'plugin-manager';
|
|
116
116
|
export const inject = ['slots', 'workspace', 'nodes', 'shell', 'hostStatus', 'sidebar'];
|
|
@@ -1342,7 +1342,7 @@ export function Settings({
|
|
|
1342
1342
|
return routeChoicesOf(root, plugin, route).map(({ value }) => value);
|
|
1343
1343
|
};
|
|
1344
1344
|
|
|
1345
|
-
/** What a section's visual fields draw with (
|
|
1345
|
+
/** What a section's visual fields draw with (./screen/settings-form.tsx): its values, its images (`x-bridge-image`,
|
|
1346
1346
|
* each served and uploaded by root `root`'s Bridge, `/_bridge/workspaces/<root>/<route>`: the page's own origin, on a
|
|
1347
1347
|
* joined Bridge too), and the workspace shown. */
|
|
1348
1348
|
const formOf = (
|