UNPKG

@yuebai008/cli

Version:

Command line interface for rapid qg-minigame development

1 lines 458 B
import*as Root from"../../core/root/root.js";export class WebCustomData{#t=new Map;fetchPromiseForTest;constructor(t){this.fetchPromiseForTest=t?fetch(`${t}third_party/vscode.web-custom-data/browsers.css-data.json`).then((t=>t.json())).then((t=>{for(const e of t.properties)this.#t.set(e.name,e)})).catch():Promise.resolve()}static create(){const t=Root.Runtime.getRemoteBase();return new WebCustomData(t?.base??"")}findCssProperty(t){return this.#t.get(t)}}