handlers/scriptHandler
此内容尚不支持你的语言。
Variables
Section titled “Variables”scriptHandler
Section titled “scriptHandler”const scriptHandler: HookUtility<"astro:config:setup", [Options], Promise<void>>;Defined in: studiocms/packages/studiocms/src/handlers/scriptHandler.ts:36^
Handles the injection of scripts during the Astro config setup phase.
Utility
Section titled “Utility”astro:config:setup
An object containing the injectScript function used to inject scripts at specific stages.
Configuration options for script injection.
Indicates if the database start page is active; disables quick actions menu script if true.
Enables injection of the quick actions menu script if true.
An optional array of additional scripts to inject.
Remarks
Section titled “Remarks”- Reads and injects the
user-quick-tools.jsscript ifinjectQuickActionsMenuis enabled anddbStartPageis false. - Appends any extra scripts provided in the
extraScriptsoption. - Only scripts marked as
enabledare injected at their specified stage.