♻️ 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:
52
dealplustech-astro/node_modules/hastscript/lib/create-automatic-runtime.js
generated
vendored
52
dealplustech-astro/node_modules/hastscript/lib/create-automatic-runtime.js
generated
vendored
@@ -1,52 +0,0 @@
|
||||
/**
|
||||
* @import {Element, Root} from 'hast'
|
||||
* @import {Child, Properties, PropertyValue, Result, Style, createH as CreateH} from './create-h.js'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Record<string, Child | PropertyValue | Style>} JSXProps
|
||||
*/
|
||||
|
||||
// Make VS code see references to above symbols.
|
||||
''
|
||||
|
||||
/**
|
||||
* Create an automatic runtime.
|
||||
*
|
||||
* @param {ReturnType<CreateH>} f
|
||||
* `h` function.
|
||||
* @returns
|
||||
* Automatic JSX runtime.
|
||||
*/
|
||||
export function createAutomaticRuntime(f) {
|
||||
/**
|
||||
* @overload
|
||||
* @param {null} type
|
||||
* @param {{children?: Child}} properties
|
||||
* @param {string | null | undefined} [key]
|
||||
* @returns {Root}
|
||||
*
|
||||
* @overload
|
||||
* @param {string} type
|
||||
* @param {JSXProps} properties
|
||||
* @param {string | null | undefined} [key]
|
||||
* @returns {Element}
|
||||
*
|
||||
* @param {string | null} type
|
||||
* Element name or `null` to get a root.
|
||||
* @param {Properties & {children?: Child}} properties
|
||||
* Properties.
|
||||
* @returns {Result}
|
||||
* Result.
|
||||
*/
|
||||
function jsx(type, properties) {
|
||||
const {children, ...properties_} = properties
|
||||
const result =
|
||||
// @ts-ignore: `children` is fine: TS has a recursion problem which
|
||||
// sometimes generates broken types.
|
||||
type === null ? f(null, children) : f(type, properties_, children)
|
||||
return result
|
||||
}
|
||||
|
||||
return {Fragment: null, jsxDEV: jsx, jsxs: jsx, jsx}
|
||||
}
|
||||
Reference in New Issue
Block a user