🆙 Add cms i using 🆙

This commit is contained in:
Remco
2025-11-25 22:42:56 +01:00
parent 94704e0925
commit d44196149e
35591 changed files with 3601123 additions and 0 deletions
@@ -0,0 +1,2 @@
"use strict";var f=Object.create;var n=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var P=(e,r)=>{for(var t in r)n(e,t,{get:r[t],enumerable:!0})},o=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of y(r))!w.call(e,s)&&s!==t&&n(e,s,{get:()=>r[s],enumerable:!(i=b(r,s))||i.enumerable});return e};var l=(e,r,t)=>(t=e!=null?f(h(e)):{},o(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e)),x=e=>o(n({},"__esModule",{value:!0}),e);var S={};P(S,{defaultOptions:()=>m,languages:()=>A,options:()=>g,parsers:()=>C,printers:()=>L});module.exports=x(S);var c=require("prettier"),d=require("synckit"),a=l(require("path")),p=(e,r,t)=>{let i={indentSize:t.tabWidth,wrapLineLength:t.printWidth,wrapAttributes:t.singleAttributePerLine?"force-expand-multiline":t.bracketSameLine?"force-aligned":t.wrapAttributes,endWithNewline:t.endWithNewline,useTabs:t.useTabs,sortTailwindcssClasses:t.sortTailwindcssClasses,tailwindcssConfigPath:T(t.filepath,t.tailwindcssConfigPath),sortHtmlAttributes:t.sortHtmlAttributes,noMultipleEmptyLines:!0,noPhpSyntaxCheck:t.noPhpSyntaxCheck,customHtmlAttributesOrder:t.customHtmlAttributesOrder};return{type:"blade-formatter",body:(0,d.createSyncFn)(require.resolve("../src/worker"))(e,i),end:e.length,source:e,start:0}};function T(e,r){if(!r)return;if(a.default.isAbsolute(r??""))return r;let t=c.resolveConfigFile.sync(e);return a.default.resolve(a.default.dirname(t??""),r??"")}var u=e=>{let r=e.getValue();switch(r.type){case"blade-formatter":return r.body}throw new Error(`Unknown node type: ${r.type}`)};var m={tabWidth:4,printWidth:120},g={wrapAttributes:{type:"string",category:"Blade",default:"auto",description:"The way to wrap attributes. [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned]",since:"1.0.0"},endWithNewLine:{type:"boolean",category:"Blade",default:!0,description:"End output with newline.",since:"1.0.0"},sortTailwindcssClasses:{type:"boolean",category:"Blade",default:!1,description:"Sort Tailwindcss classes automatically. This option respects `tailwind.config.js`.",since:"1.0.0"},tailwindcssConfigPath:{type:"string",category:"Blade",default:"",description:"Path to custom Tailwindcss config. This option is available only when `sortTailwindcssClasses` is present.",since:"1.5.7"},sortHtmlAttributes:{type:"string",category:"Blade",default:"none",description:"Sort HTML Attributes. [none|alphabetical|code-guide|idiomatic|vuejs|custom]",since:"1.5.0"},customHtmlAttributesOrder:{type:"string",category:"Blade",default:"",description:'Comma separated custom HTML attributes order. e.g. "id, aria-.+, class, src". To enable this you must specify sort html attributes option as `custom`. You can use regex for attribute names.',since:"1.8.0"},noPhpSyntaxCheck:{type:"boolean",category:"Blade",default:!1,description:"Disable PHP syntax checking",since:"1.7.0"}};var A=[{name:"Blade",parsers:["blade"],since:"1.0.0",extensions:[".blade.php"],tmScope:"source.blade.php",aceMode:"text",linguistLanguageId:33,vscodeLanguageIds:["blade"]}],C={blade:{parse:p,astFormat:"blade-format",locStart(e){return e.start},locEnd(e){return e.end}}},L={"blade-format":{print:u}};0&&(module.exports={defaultOptions,languages,options,parsers,printers});
//# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../src/index.ts", "../src/parser.ts", "../src/printer.ts", "../src/options.ts"],
"sourcesContent": ["import { parse } from \"./parser\";\nimport { print } from \"./printer\";\nimport { options, defaultOptions } from \"./options\";\nimport { Parser, Printer, SupportLanguage } from \"prettier\";\n\nexport const languages: SupportLanguage[] = [\n {\n name: \"Blade\",\n parsers: [\"blade\"],\n since: \"1.0.0\",\n extensions: [\".blade.php\"],\n tmScope: \"source.blade.php\",\n aceMode: \"text\",\n linguistLanguageId: 33,\n vscodeLanguageIds: [\"blade\"],\n },\n];\n\nexport const parsers: { [k: string]: Parser } = {\n blade: {\n parse,\n astFormat: \"blade-format\",\n locStart(node: any) {\n return node.start;\n },\n locEnd(node: any) {\n return node.end;\n },\n },\n};\n\nexport const printers: { [k: string]: Printer } = {\n \"blade-format\": {\n print,\n },\n};\n\nexport { options, defaultOptions };\n", "import { Parser, ParserOptions, resolveConfigFile } from \"prettier\";\nimport { FormatterOption } from \"blade-formatter\";\nimport { createSyncFn } from \"synckit\";\nimport path from 'path';\n\nexport const parse = (\n text: string,\n parsers: { [parserName: string]: Parser },\n opts: ParserOptions & FormatterOption\n) => {\n const formatterOptions: FormatterOption = {\n indentSize: opts.tabWidth,\n wrapLineLength: opts.printWidth,\n wrapAttributes: opts.singleAttributePerLine ? 'force-expand-multiline' : opts.bracketSameLine ? 'force-aligned' : opts.wrapAttributes,\n endWithNewline: opts.endWithNewline,\n useTabs: opts.useTabs,\n sortTailwindcssClasses: opts.sortTailwindcssClasses,\n tailwindcssConfigPath: resolveTailwindConfigPath(opts.filepath, opts.tailwindcssConfigPath),\n sortHtmlAttributes: opts.sortHtmlAttributes,\n noMultipleEmptyLines: true,\n noPhpSyntaxCheck: opts.noPhpSyntaxCheck,\n customHtmlAttributesOrder: opts.customHtmlAttributesOrder,\n };\n\n const syncFn = createSyncFn(require.resolve(\"./worker\"));\n const result = syncFn(text, formatterOptions);\n\n return {\n type: \"blade-formatter\",\n body: result,\n end: text.length,\n source: text,\n start: 0,\n };\n};\n\nfunction resolveTailwindConfigPath(filepath: string | undefined, optionPath: string | undefined): string | undefined {\n if (!optionPath) {\n return;\n }\n\n if (path.isAbsolute(optionPath ?? '')) {\n return optionPath;\n }\n\n const prettierRcPath = resolveConfigFile.sync(filepath);\n\n return path.resolve(path.dirname(prettierRcPath ?? ''), optionPath ?? '')\n}", "import { AstPath, Doc } from \"prettier\";\n\nexport const print = (path: AstPath): Doc => {\n const node = path.getValue();\n\n switch (node.type) {\n case \"blade-formatter\": {\n return node.body;\n }\n }\n\n throw new Error(`Unknown node type: ${node.type}`);\n};\n", "export const defaultOptions = {\n tabWidth: 4,\n printWidth: 120,\n};\n\nexport const options = {\n wrapAttributes: {\n type: \"string\",\n category: \"Blade\",\n default: \"auto\",\n description:\n \"The way to wrap attributes. [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned]\",\n since: \"1.0.0\",\n },\n endWithNewLine: {\n type: \"boolean\",\n category: \"Blade\",\n default: true,\n description: \"End output with newline.\",\n since: \"1.0.0\",\n },\n sortTailwindcssClasses: {\n type: \"boolean\",\n category: \"Blade\",\n default: false,\n description: \"Sort Tailwindcss classes automatically. This option respects `tailwind.config.js`.\",\n since: \"1.0.0\",\n },\n tailwindcssConfigPath: {\n type: \"string\",\n category: \"Blade\",\n default: '',\n description: \"Path to custom Tailwindcss config. This option is available only when `sortTailwindcssClasses` is present.\",\n since: \"1.5.7\",\n },\n sortHtmlAttributes: {\n type: \"string\",\n category: \"Blade\",\n default: \"none\",\n description: \"Sort HTML Attributes. [none|alphabetical|code-guide|idiomatic|vuejs|custom]\",\n since: \"1.5.0\",\n },\n customHtmlAttributesOrder: {\n type: \"string\",\n category: \"Blade\",\n default: \"\",\n description: \"Comma separated custom HTML attributes order. e.g. \\\"id, aria-.+, class, src\\\". To enable this you must specify sort html attributes option as `custom`. You can use regex for attribute names.\",\n since: \"1.8.0\",\n },\n noPhpSyntaxCheck: {\n type: \"boolean\",\n category: \"Blade\",\n default: false,\n description: \"Disable PHP syntax checking\",\n since: \"1.7.0\",\n },\n};\n\n"],
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,cAAAC,EAAA,YAAAC,EAAA,YAAAC,EAAA,aAAAC,IAAA,eAAAC,EAAAP,GCAA,IAAAQ,EAAyD,oBAEzDC,EAA6B,mBAC7BC,EAAiB,mBAEJC,EAAQ,CACnBC,EACAC,EACAC,IACG,CACH,IAAMC,EAAoC,CACxC,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,mBAAoB,CAClB,KAAM,SACN,SAAU,QACV,QAAS,OACT,YAAa,8EACb,MAAO,OACT,EACA,0BAA2B,CACzB,KAAM,SACN,SAAU,QACV,QAAS,GACT,YAAa,gMACb,MAAO,OACT,EACA,iBAAkB,CAChB,KAAM,UACN,SAAU,QACV,QAAS,GACT,YAAa,8BACb,MAAO,OACT,CACF,EHnDO,IAAMC,EAA+B,CAC1C,CACE,KAAM,QACN,QAAS,CAAC,OAAO,EACjB,MAAO,QACP,WAAY,CAAC,YAAY,EACzB,QAAS,mBACT,QAAS,OACT,mBAAoB,GACpB,kBAAmB,CAAC,OAAO,CAC7B,CACF,EAEaC,EAAmC,CAC9C,MAAO,CACL,MAAAC,EACA,UAAW,eACX,SAASC,EAAW,CAClB,OAAOA,EAAK,KACd,EACA,OAAOA,EAAW,CAChB,OAAOA,EAAK,GACd,CACF,CACF,EAEaC,EAAqC,CAChD,eAAgB,CACd,MAAAC,CACF,CACF",
"names": ["src_exports", "__export", "defaultOptions", "languages", "options", "parsers", "printers", "__toCommonJS", "import_prettier", "import_synckit", "import_path", "parse", "text", "parsers", "opts", "formatterOptions", "resolveTailwindConfigPath", "filepath", "optionPath", "path", "prettierRcPath", "print", "path", "node", "defaultOptions", "options", "languages", "parsers", "parse", "node", "printers", "print"]
}