SandboxSettingsModule · packages/server/src/sandbox/settings-status.ts:55

SandboxSettingsStatus

component

The sandbox card's live notices: a warning when the saved policy needs isolation no usable backend implements (every command would be refused), what the machine enforces, and each backend that failed to load, with its reason. A backend that declined because this host is not its platform is no fault of the deployment — it is named only when nothing else serves, where it explains why.

API

@Component({
  contributes: {
    "PluginConfigPage.status": [{ id: "sandbox.status", group: "sandbox" }],
  },
})
export class SandboxSettingsStatus {
  @Use(SandboxModule) private readonly sandbox!: Sandbox;
  @Bind("sandbox.status") status!: SettingsGroupStatus;
  setup({ resources }: ClassCtx);
}

Dependencies & Wiring

Extracted from class decorators
@Userequires (1)
sandbox: Sandbox from SandboxModule
@Bindbinds (1)
status → sandbox.status: SettingsGroupStatus

Contributes

{
  "PluginConfigPage.status": [
    {
      "id": "sandbox.status",
      "group": "sandbox"
    }
  ]
}

Target slots: PluginConfigPage.status

Methods (1)

setup

setup({ resources }: ClassCtx)
@param{ resources }ClassCtx