Comments: X's own panel sections are Tweaks and Drafts (My Space removed for now)
wayBetter for X took My Space (profile customization) out; the framework only named it in comments as an example of an app's own section and runtime member. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
80247fd938
commit
8b9ecca5d6
4 changed files with 4 additions and 4 deletions
|
|
@ -191,7 +191,7 @@ export type SiteRuntimeOptions<Api extends object, Extra extends object> = {
|
||||||
pane?: { set(state: unknown): void };
|
pane?: { set(state: unknown): void };
|
||||||
links?: { configure(value: unknown): void };
|
links?: { configure(value: unknown): void };
|
||||||
column?: SiteRuntime<Api>['column'];
|
column?: SiteRuntime<Api>['column'];
|
||||||
/** The app's own members (X: alerts, space, fixes). */
|
/** The app's own members (X: alerts, fixes). */
|
||||||
extra?: Extra;
|
extra?: Extra;
|
||||||
/** Values native code may have delivered for the app's own members before the runtime existed: queue global and receiver. */
|
/** Values native code may have delivered for the app's own members before the runtime existed: queue global and receiver. */
|
||||||
queues?: ReadonlyArray<readonly [queue: string, deliver: (value: unknown) => void]>;
|
queues?: ReadonlyArray<readonly [queue: string, deliver: (value: unknown) => void]>;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// and the Theme Builder, plugins and custom CSS, the Store, Make, accounts, Power User, backup and
|
// and the Theme Builder, plugins and custom CSS, the Store, Make, accounts, Power User, backup and
|
||||||
// sync, developer mode, updates, a settings search). The app describes itself (`PanelSite`): its
|
// sync, developer mode, updates, a settings search). The app describes itself (`PanelSite`): its
|
||||||
// brand and home page, its theme catalog and the miniature its themes are previewed in, its own
|
// brand and home page, its theme catalog and the miniature its themes are previewed in, its own
|
||||||
// sections (X: Tweaks, Drafts, My Space), Make's examples and docs, its languages. Each built-in
|
// sections (X: Tweaks, Drafts), Make's examples and docs, its languages. Each built-in
|
||||||
// section shows only when the app serves what it needs. Styles come with the components.
|
// section shows only when the app serves what it needs. Styles come with the components.
|
||||||
//
|
//
|
||||||
// const Panel = createPanel({ brand: { name: 'wayBetter', logo }, home, themes, sections: [...] });
|
// const Panel = createPanel({ brand: { name: 'wayBetter', logo }, home, themes, sections: [...] });
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@
|
||||||
@media (prefers-reduced-motion: reduce) { .btp *, .btp *::before, .btp *::after { transition: none !important; animation: none !important; } }
|
@media (prefers-reduced-motion: reduce) { .btp *, .btp *::before, .btp *::after { transition: none !important; animation: none !important; } }
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------------------------
|
||||||
Lists and editors shared with Drafts, Accounts, Updates and My Space (btp-* grammar). */
|
Lists and editors shared with Drafts, Accounts and Updates (btp-* grammar). */
|
||||||
.btp-group { padding: 0 0 6px; margin-bottom: 18px; }
|
.btp-group { padding: 0 0 6px; margin-bottom: 18px; }
|
||||||
.btp-group-head { margin: 0 2px 10px; }
|
.btp-group-head { margin: 0 2px 10px; }
|
||||||
.btp-group-head h2 { margin: 0; font-size: 13px; font-weight: 620; }
|
.btp-group-head h2 { margin: 0; font-size: 13px; font-weight: 620; }
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ export type SectionProps = {
|
||||||
export const BUILTIN_SECTIONS = ['home', 'themes', 'builder', 'plugins', 'store', 'make', 'accounts', 'power', 'settings', 'backup', 'developer', 'updates'] as const;
|
export const BUILTIN_SECTIONS = ['home', 'themes', 'builder', 'plugins', 'store', 'make', 'accounts', 'power', 'settings', 'backup', 'developer', 'updates'] as const;
|
||||||
export type BuiltinSection = typeof BUILTIN_SECTIONS[number];
|
export type BuiltinSection = typeof BUILTIN_SECTIONS[number];
|
||||||
|
|
||||||
/** A section of the app's own (X: Tweaks, Drafts, My Space). */
|
/** A section of the app's own (X: Tweaks, Drafts). */
|
||||||
export type PanelSection = {
|
export type PanelSection = {
|
||||||
id: string;
|
id: string;
|
||||||
label(): string;
|
label(): string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue