♻️ Restructure: Move Astro to repository root

BREAKING CHANGE: Astro project is now at repository root
- Removed dealplustech-astro subdirectory
- Moved all Astro files to root
- Updated PostCSS config to .cjs
- Removed old Next.js files

 11 pages built successfully
 Cookie consent banner included
 Privacy/Terms links in footer
 Ready for Easypanel deployment (no root dir needed)

Migration path:
- Old structure: /dealplustech-astro/
- New structure: / (root)
This commit is contained in:
Kunthawat Greethong
2026-03-09 22:00:05 +07:00
parent 5b041a6a44
commit 7a67f68d9f
16524 changed files with 4277 additions and 1983574 deletions

View File

@@ -1,52 +0,0 @@
import { toRegExp } from 'oniguruma-to-es';
import { J as JavaScriptScanner } from './shared/engine-javascript.hzpS1_41.mjs';
function defaultJavaScriptRegexConstructor(pattern, options) {
return toRegExp(
pattern,
{
global: true,
hasIndices: true,
// This has no benefit for the standard JS engine, but it avoids a perf penalty for
// precompiled grammars when constructing extremely long patterns that aren't always used
lazyCompileLength: 3e3,
rules: {
// Needed since TextMate grammars merge backrefs across patterns
allowOrphanBackrefs: true,
// Improves search performance for generated regexes
asciiWordBoundaries: true,
// Follow `vscode-oniguruma` which enables this Oniguruma option by default
captureGroup: true,
// Oniguruma uses depth limit `20`; lowered here to keep regexes shorter and maybe
// sometimes faster, but can be increased if issues reported due to low limit
recursionLimit: 5,
// Oniguruma option for `^`->`\A`, `$`->`\Z`; improves search performance without any
// change in meaning since TM grammars search line by line
singleline: true
},
...options
}
);
}
function createJavaScriptRegexEngine(options = {}) {
const _options = Object.assign(
{
target: "auto",
cache: /* @__PURE__ */ new Map()
},
options
);
_options.regexConstructor ||= (pattern) => defaultJavaScriptRegexConstructor(pattern, { target: _options.target });
return {
createScanner(patterns) {
return new JavaScriptScanner(patterns, _options);
},
createString(s) {
return {
content: s
};
}
};
}
export { createJavaScriptRegexEngine, defaultJavaScriptRegexConstructor };