update 2026-11-04 12:30:17

This commit is contained in:
action committed 2026-11-04 12:30:17 +08:00
1 parent 1b82056d99
commit b1cd3aafd3
1152 files changed
+575878 -7

No files matched your search

@@ -0,0 +1 @@
"use strict";"require view";"require form";"require uci";"require rpc";"require ui";"require fs";"require utils.asset-upload as assetUpload";"require utils.feed-check as feedCheck";const CONFIG_IMPORT_PATH="/tmp/aurora_config_import.tmp",themeFormField=e=>document.getElementById("widget.cbid.aurora.theme."+e),FEED_HOST="openwrt.eamonxg.fun",MANIFEST_URL=`https://${FEED_HOST}/manifest.json`,MANIFEST_CACHE_KEY="aurora.manifest",TOKENS_ENGINE_VERSION="2.0.0",loadGlobalScript=(e,t)=>new Promise((r,a)=>{const n=E("script",{type:"text/javascript",src:L.resource(e)+(t?"?v="+t:"")});n.async=!1,n.addEventListener("load",r,{once:!0}),n.addEventListener("error",()=>a(new Error(_("Unable to load %s.").format(e))),{once:!0}),document.querySelector("head").appendChild(n)}),COLOR_LIBRARY_VERSION="83b15ee4",colorLibraryReady=(async()=>{const e=[];"function"!=typeof Color&&e.push(loadGlobalScript("utils/color.global.js","83b15ee4")),"undefined"==typeof AuroraTokens&&e.push(loadGlobalScript("utils/tokens.global.js","2.0.0")),await Promise.all(e)})().then(()=>buildColorTokenTables()),callUploadIcon=rpc.declare({object:"luci.aurora",method:"upload_icon",params:["filename"]}),callListIcons=rpc.declare({object:"luci.aurora",method:"list_icons"}),callGetInitData=rpc.declare({object:"luci.aurora",method:"get_init_data"});let _iconsPromise=null;const getIconsOnce=()=>(_iconsPromise||(_iconsPromise=L.resolveDefault(callListIcons(),{icons:[]})),_iconsPromise),callRemoveIcon=rpc.declare({object:"luci.aurora",method:"remove_icon",params:["filename"]}),callPrepareFont=rpc.declare({object:"luci.aurora",method:"prepare_font",params:["sans","mono","sans_stack"],expect:{"":{result:-1}}}),callGetFontStatus=rpc.declare({object:"luci.aurora",method:"get_font_status",params:["job_id"],expect:{"":{state:"missing"}}}),callUploadFont=rpc.declare({object:"luci.aurora",method:"upload_font",params:["slot","family"]}),callRemoveFont=rpc.declare({object:"luci.aurora",method:"remove_font",params:["slot","name"]}),callExportConfig=rpc.declare({object:"luci.aurora",method:"export_config"}),callImportConfig=rpc.declare({object:"luci.aurora",method:"import_config"}),callResetDefaults=rpc.declare({object:"luci.aurora",method:"reset_defaults"}),callWritePwaManifest=rpc.declare({object:"luci.aurora",method:"write_pwa_manifest"}),COLOR_TOKEN_METADATA={bg:{label:_("Background"),description:_("Page canvas behind the header, navigation, content, and login screen."),group:"foundation"},surface:{label:_("Surface"),description:_("Base surface for panels, cards, forms, tables, and neutral controls."),group:"foundation"},text:{label:_("Text"),description:_("Default foreground for headings, body text, icons, and form values."),group:"identity"},brand:{label:_("Brand"),description:_("Accent for primary buttons, active navigation, and selected states."),group:"identity"},on_brand:{label:_("On-Brand Text"),description:_("Text and icons shown on filled brand backgrounds."),group:"identity"},link:{label:_("Link"),description:_("Hyperlinks in page content, help text, and status output."),group:"identity"},info:{label:_("Info"),description:_("Accent for informational alerts, labels, and tooltips."),group:"status"},warning:{label:_("Warning"),description:_("Accent for warnings, notices, and validation messages."),group:"status"},success:{label:_("Success"),description:_("Accent for successful operations and healthy status."),group:"status"},danger:{label:_("Danger"),description:_("Accent for errors, destructive controls, and critical states."),group:"status"}},DERIVED_COLOR_TOKEN_METADATA={text_muted:{label:_("Muted Text"),description:_("Medium-emphasis text for helper copy, metadata, and summaries."),group:"hierarchy"},text_subtle:{label:_("Subtle Text"),description:_("Low-emphasis text for small labels, placeholders, and disabled hints."),group:"hierarchy"},surface_sunken:{label:_("Sunken Surface"),description:_("Inset layer for inputs, code blocks, table headers, and badges."),group:"hierarchy"},surface_overlay:{label:_("Overlay Surface"),description:_("Raised layer for dropdowns, modals, and tooltips."),group:"hierarchy"},control_bg:{label:_("Control Fill"),description:_("Fill for form controls: inputs, selects, textareas, and checkboxes."),group:"hierarchy"},hairline:{label:_("Hairline"),description:_("Separators, dividers, and input or card borders."),group:"hierarchy"},hover_faint:{label:_("Faint Hover"),description:_("Hover fill for menu items, table rows, and neutral controls."),group:"hierarchy"},brand_hover:{label:_("Brand Hover"),description:_("Hover state for filled primary buttons and high-emphasis controls."),group:"brand_interaction"},brand_subtle:{label:_("Subtle Brand"),description:_("Brand-tinted surface for active navigation and selected states."),group:"brand_interaction"},brand_subtle_hover:{label:_("Subtle Brand Hover"),description:_("Hover fill for subtle primary buttons and selected surfaces."),group:"brand_interaction"},focus_ring:{label:_("Focus RingLine truncated