♻️ 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:
39
Dockerfile
39
Dockerfile
@@ -1,42 +1,15 @@
|
|||||||
# Build Stage
|
# Production Docker for Astro Static Site
|
||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# Copy source code
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build Next.js project
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production Stage
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY --from=builder /app/dist ./dist
|
||||||
# Copy package files
|
RUN npm install -g serve
|
||||||
COPY package*.json ./
|
EXPOSE 3000
|
||||||
|
ENV NODE_ENV=production PORT=3000 HOST=0.0.0.0
|
||||||
# Install production dependencies only
|
CMD ["serve", "dist", "-l", "3000", "--single"]
|
||||||
RUN npm ci --production
|
|
||||||
|
|
||||||
# Copy built Next.js app
|
|
||||||
COPY --from=builder /app/.next/standalone ./
|
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
|
||||||
COPY --from=builder /app/public ./public
|
|
||||||
|
|
||||||
# Expose port
|
|
||||||
EXPOSE 4321
|
|
||||||
|
|
||||||
# Health check
|
|
||||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
||||||
CMD node -e "require('http').get('http://localhost:4321', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
|
|
||||||
|
|
||||||
# Start Next.js server
|
|
||||||
CMD ["node", "server.js"]
|
|
||||||
|
|||||||
140
README.md
140
README.md
@@ -1,125 +1,43 @@
|
|||||||
# Deal Plus Tech - Next.js Website
|
# Astro Starter Kit: Minimal
|
||||||
|
|
||||||
Complete redesign of dealplustech.co.th website built with Next.js 14, TypeScript, and Tailwind CSS.
|
```sh
|
||||||
|
npm create astro@latest -- --template minimal
|
||||||
## Features
|
|
||||||
|
|
||||||
- 🚀 Next.js 14 with App Router
|
|
||||||
- 💅 Tailwind CSS for styling
|
|
||||||
- 📝 Headless WordPress integration for Blog
|
|
||||||
- 🌐 Thai URL support for product categories
|
|
||||||
- 📱 Fully responsive design
|
|
||||||
- 🔍 SEO optimized
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
### Prerequisites
|
|
||||||
|
|
||||||
- Node.js 18.17 or later
|
|
||||||
- npm or yarn
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Environment Variables
|
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||||
|
|
||||||
Copy `.env.example` to `.env.local` and fill in your values:
|
## 🚀 Project Structure
|
||||||
|
|
||||||
```bash
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
cp .env.example .env.local
|
|
||||||
|
```text
|
||||||
|
/
|
||||||
|
├── public/
|
||||||
|
├── src/
|
||||||
|
│ └── pages/
|
||||||
|
│ └── index.astro
|
||||||
|
└── package.json
|
||||||
```
|
```
|
||||||
|
|
||||||
Required environment variables:
|
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
|
||||||
- `NEXT_PUBLIC_WORDPRESS_API_URL` - Your WordPress REST API URL (e.g., https://your-domain.com/wp-json/wp/v2)
|
|
||||||
- `NEXT_PUBLIC_SITE_URL` - Your production site URL
|
|
||||||
- `NEXT_PUBLIC_PHONE` - Contact phone number
|
|
||||||
- `NEXT_PUBLIC_EMAIL` - Contact email
|
|
||||||
- `NEXT_PUBLIC_LINE_ID` - LINE ID for contact
|
|
||||||
- `NEXT_PUBLIC_FACEBOOK_URL` - Facebook page URL
|
|
||||||
- `NEXT_PUBLIC_COMPANY_ADDRESS` - Company address
|
|
||||||
|
|
||||||
### Development
|
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
||||||
|
|
||||||
```bash
|
Any static assets, like images, can be placed in the `public/` directory.
|
||||||
npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Open [http://localhost:3000](http://localhost:3000) in your browser.
|
## 🧞 Commands
|
||||||
|
|
||||||
### Production Build
|
All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
```bash
|
| Command | Action |
|
||||||
npm run build
|
| :------------------------ | :----------------------------------------------- |
|
||||||
npm start
|
| `npm install` | Installs dependencies |
|
||||||
```
|
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
||||||
|
| `npm run build` | Build your production site to `./dist/` |
|
||||||
|
| `npm run preview` | Preview your build locally, before deploying |
|
||||||
|
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||||
|
| `npm run astro -- --help` | Get help using the Astro CLI |
|
||||||
|
|
||||||
## Project Structure
|
## 👀 Want to learn more?
|
||||||
|
|
||||||
```
|
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||||
src/
|
|
||||||
├── app/ # Next.js App Router pages
|
|
||||||
│ ├── layout.tsx # Root layout
|
|
||||||
│ ├── page.tsx # Homepage
|
|
||||||
│ ├── about-us/ # About page
|
|
||||||
│ ├── services/ # Services page
|
|
||||||
│ ├── portfolio/ # Portfolio page
|
|
||||||
│ ├── contact-us/ # Contact page
|
|
||||||
│ ├── all-projects/ # FAQ page
|
|
||||||
│ ├── product/ # Products listing
|
|
||||||
│ ├── blog/ # Blog pages
|
|
||||||
│ └── [[...slug]]/ # Product category catch-all
|
|
||||||
├── components/
|
|
||||||
│ ├── layout/ # Header, Footer, FloatingContact
|
|
||||||
│ ├── sections/ # Page sections
|
|
||||||
│ └── ui/ # UI components
|
|
||||||
├── lib/
|
|
||||||
│ ├── utils.ts # Utility functions
|
|
||||||
│ └── wordpress.ts # WordPress API client
|
|
||||||
├── types/
|
|
||||||
│ └── index.ts # TypeScript types
|
|
||||||
├── data/
|
|
||||||
│ └── site-config.ts # Site configuration
|
|
||||||
└── styles/
|
|
||||||
└── globals.css # Global styles
|
|
||||||
```
|
|
||||||
|
|
||||||
## Deployment
|
|
||||||
|
|
||||||
### Vercel (Recommended)
|
|
||||||
|
|
||||||
1. Push your code to GitHub
|
|
||||||
2. Import your repository on Vercel
|
|
||||||
3. Add environment variables in Vercel dashboard
|
|
||||||
4. Deploy!
|
|
||||||
|
|
||||||
### Other Platforms
|
|
||||||
|
|
||||||
The project can be deployed to any platform that supports Next.js:
|
|
||||||
- Netlify
|
|
||||||
- AWS Amplify
|
|
||||||
- Docker
|
|
||||||
- Self-hosted Node.js server
|
|
||||||
|
|
||||||
## WordPress Integration
|
|
||||||
|
|
||||||
This site uses WordPress as a headless CMS for the Blog section.
|
|
||||||
|
|
||||||
### Setup WordPress
|
|
||||||
|
|
||||||
1. Install WordPress on your server
|
|
||||||
2. Ensure the REST API is enabled (default in modern WordPress)
|
|
||||||
3. Set `NEXT_PUBLIC_WORDPRESS_API_URL` to your WordPress API endpoint
|
|
||||||
4. Create posts with featured images for best display
|
|
||||||
|
|
||||||
### API Endpoints Used
|
|
||||||
|
|
||||||
- `/posts` - Blog posts
|
|
||||||
- `/categories` - Post categories
|
|
||||||
- `/_embed` - Embedded author and media data
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
Private project for Deal Plus Tech Co., Ltd.
|
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
# Astro Production Dockerfile
|
|
||||||
FROM node:20-alpine
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm ci --omit=dev
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
EXPOSE 4321
|
|
||||||
|
|
||||||
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "4321"]
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
node_modules
|
|
||||||
dist
|
|
||||||
.git
|
|
||||||
.gitignore
|
|
||||||
*.md
|
|
||||||
.env*
|
|
||||||
!package*.json
|
|
||||||
1
dealplustech-astro/.gitignore
vendored
1
dealplustech-astro/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
.node-version
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Production Docker for Astro Static Site
|
|
||||||
FROM node:20-alpine AS builder
|
|
||||||
WORKDIR /app
|
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm ci
|
|
||||||
COPY . .
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
FROM node:20-alpine
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=builder /app/dist ./dist
|
|
||||||
RUN npm install -g serve
|
|
||||||
EXPOSE 3000
|
|
||||||
ENV NODE_ENV=production PORT=3000 HOST=0.0.0.0
|
|
||||||
CMD ["serve", "dist", "-l", "3000", "--single"]
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
# Astro Starter Kit: Minimal
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm create astro@latest -- --template minimal
|
|
||||||
```
|
|
||||||
|
|
||||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
|
||||||
|
|
||||||
## 🚀 Project Structure
|
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
|
||||||
|
|
||||||
```text
|
|
||||||
/
|
|
||||||
├── public/
|
|
||||||
├── src/
|
|
||||||
│ └── pages/
|
|
||||||
│ └── index.astro
|
|
||||||
└── package.json
|
|
||||||
```
|
|
||||||
|
|
||||||
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
|
|
||||||
|
|
||||||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
|
||||||
|
|
||||||
Any static assets, like images, can be placed in the `public/` directory.
|
|
||||||
|
|
||||||
## 🧞 Commands
|
|
||||||
|
|
||||||
All commands are run from the root of the project, from a terminal:
|
|
||||||
|
|
||||||
| Command | Action |
|
|
||||||
| :------------------------ | :----------------------------------------------- |
|
|
||||||
| `npm install` | Installs dependencies |
|
|
||||||
| `npm run dev` | Starts local dev server at `localhost:4321` |
|
|
||||||
| `npm run build` | Build your production site to `./dist/` |
|
|
||||||
| `npm run preview` | Preview your build locally, before deploying |
|
|
||||||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
|
|
||||||
| `npm run astro -- --help` | Get help using the Astro CLI |
|
|
||||||
|
|
||||||
## 👀 Want to learn more?
|
|
||||||
|
|
||||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
|
||||||
1
dealplustech-astro/node_modules/.astro/data-store.json
generated
vendored
1
dealplustech-astro/node_modules/.astro/data-store.json
generated
vendored
File diff suppressed because one or more lines are too long
1
dealplustech-astro/node_modules/.bin/acorn
generated
vendored
1
dealplustech-astro/node_modules/.bin/acorn
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../acorn/bin/acorn
|
|
||||||
1
dealplustech-astro/node_modules/.bin/astro
generated
vendored
1
dealplustech-astro/node_modules/.bin/astro
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../astro/astro.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/astro-consent
generated
vendored
1
dealplustech-astro/node_modules/.bin/astro-consent
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../astro-consent/dist/cli.cjs
|
|
||||||
1
dealplustech-astro/node_modules/.bin/cssesc
generated
vendored
1
dealplustech-astro/node_modules/.bin/cssesc
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../cssesc/bin/cssesc
|
|
||||||
1
dealplustech-astro/node_modules/.bin/esbuild
generated
vendored
1
dealplustech-astro/node_modules/.bin/esbuild
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../esbuild/bin/esbuild
|
|
||||||
1
dealplustech-astro/node_modules/.bin/is-docker
generated
vendored
1
dealplustech-astro/node_modules/.bin/is-docker
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../is-docker/cli.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/is-inside-container
generated
vendored
1
dealplustech-astro/node_modules/.bin/is-inside-container
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../is-inside-container/cli.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/jiti
generated
vendored
1
dealplustech-astro/node_modules/.bin/jiti
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../jiti/lib/jiti-cli.mjs
|
|
||||||
1
dealplustech-astro/node_modules/.bin/js-yaml
generated
vendored
1
dealplustech-astro/node_modules/.bin/js-yaml
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../js-yaml/bin/js-yaml.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/nanoid
generated
vendored
1
dealplustech-astro/node_modules/.bin/nanoid
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../nanoid/bin/nanoid.cjs
|
|
||||||
1
dealplustech-astro/node_modules/.bin/parser
generated
vendored
1
dealplustech-astro/node_modules/.bin/parser
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../@babel/parser/bin/babel-parser.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/rollup
generated
vendored
1
dealplustech-astro/node_modules/.bin/rollup
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../rollup/dist/bin/rollup
|
|
||||||
1
dealplustech-astro/node_modules/.bin/semver
generated
vendored
1
dealplustech-astro/node_modules/.bin/semver
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../semver/bin/semver.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/svgo
generated
vendored
1
dealplustech-astro/node_modules/.bin/svgo
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../svgo/bin/svgo.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/tsc
generated
vendored
1
dealplustech-astro/node_modules/.bin/tsc
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../typescript/bin/tsc
|
|
||||||
1
dealplustech-astro/node_modules/.bin/tsconfck
generated
vendored
1
dealplustech-astro/node_modules/.bin/tsconfck
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../tsconfck/bin/tsconfck.js
|
|
||||||
1
dealplustech-astro/node_modules/.bin/tsserver
generated
vendored
1
dealplustech-astro/node_modules/.bin/tsserver
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../typescript/bin/tsserver
|
|
||||||
1
dealplustech-astro/node_modules/.bin/vite
generated
vendored
1
dealplustech-astro/node_modules/.bin/vite
generated
vendored
@@ -1 +0,0 @@
|
|||||||
../vite/bin/vite.js
|
|
||||||
7067
dealplustech-astro/node_modules/.package-lock.json
generated
vendored
7067
dealplustech-astro/node_modules/.package-lock.json
generated
vendored
File diff suppressed because it is too large
Load Diff
31
dealplustech-astro/node_modules/.vite/deps/_metadata.json
generated
vendored
31
dealplustech-astro/node_modules/.vite/deps/_metadata.json
generated
vendored
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"hash": "ec7c8616",
|
|
||||||
"configHash": "06117f6a",
|
|
||||||
"lockfileHash": "fa2c2659",
|
|
||||||
"browserHash": "12cbe3a0",
|
|
||||||
"optimized": {
|
|
||||||
"astro > cssesc": {
|
|
||||||
"src": "../../cssesc/cssesc.js",
|
|
||||||
"file": "astro___cssesc.js",
|
|
||||||
"fileHash": "3b44b1ed",
|
|
||||||
"needsInterop": true
|
|
||||||
},
|
|
||||||
"astro > aria-query": {
|
|
||||||
"src": "../../aria-query/lib/index.js",
|
|
||||||
"file": "astro___aria-query.js",
|
|
||||||
"fileHash": "4b6e1232",
|
|
||||||
"needsInterop": true
|
|
||||||
},
|
|
||||||
"astro > axobject-query": {
|
|
||||||
"src": "../../axobject-query/lib/index.js",
|
|
||||||
"file": "astro___axobject-query.js",
|
|
||||||
"fileHash": "32d0da0b",
|
|
||||||
"needsInterop": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"chunks": {
|
|
||||||
"chunk-BUSYA2B4": {
|
|
||||||
"file": "chunk-BUSYA2B4.js"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
6776
dealplustech-astro/node_modules/.vite/deps/astro___aria-query.js
generated
vendored
6776
dealplustech-astro/node_modules/.vite/deps/astro___aria-query.js
generated
vendored
File diff suppressed because it is too large
Load Diff
7
dealplustech-astro/node_modules/.vite/deps/astro___aria-query.js.map
generated
vendored
7
dealplustech-astro/node_modules/.vite/deps/astro___aria-query.js.map
generated
vendored
File diff suppressed because one or more lines are too long
3754
dealplustech-astro/node_modules/.vite/deps/astro___axobject-query.js
generated
vendored
3754
dealplustech-astro/node_modules/.vite/deps/astro___axobject-query.js
generated
vendored
File diff suppressed because one or more lines are too long
7
dealplustech-astro/node_modules/.vite/deps/astro___axobject-query.js.map
generated
vendored
7
dealplustech-astro/node_modules/.vite/deps/astro___axobject-query.js.map
generated
vendored
File diff suppressed because one or more lines are too long
99
dealplustech-astro/node_modules/.vite/deps/astro___cssesc.js
generated
vendored
99
dealplustech-astro/node_modules/.vite/deps/astro___cssesc.js
generated
vendored
@@ -1,99 +0,0 @@
|
|||||||
import {
|
|
||||||
__commonJS
|
|
||||||
} from "./chunk-BUSYA2B4.js";
|
|
||||||
|
|
||||||
// node_modules/cssesc/cssesc.js
|
|
||||||
var require_cssesc = __commonJS({
|
|
||||||
"node_modules/cssesc/cssesc.js"(exports, module) {
|
|
||||||
var object = {};
|
|
||||||
var hasOwnProperty = object.hasOwnProperty;
|
|
||||||
var merge = function merge2(options, defaults) {
|
|
||||||
if (!options) {
|
|
||||||
return defaults;
|
|
||||||
}
|
|
||||||
var result = {};
|
|
||||||
for (var key in defaults) {
|
|
||||||
result[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
|
|
||||||
var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
|
|
||||||
var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
|
|
||||||
var cssesc = function cssesc2(string, options) {
|
|
||||||
options = merge(options, cssesc2.options);
|
|
||||||
if (options.quotes != "single" && options.quotes != "double") {
|
|
||||||
options.quotes = "single";
|
|
||||||
}
|
|
||||||
var quote = options.quotes == "double" ? '"' : "'";
|
|
||||||
var isIdentifier = options.isIdentifier;
|
|
||||||
var firstChar = string.charAt(0);
|
|
||||||
var output = "";
|
|
||||||
var counter = 0;
|
|
||||||
var length = string.length;
|
|
||||||
while (counter < length) {
|
|
||||||
var character = string.charAt(counter++);
|
|
||||||
var codePoint = character.charCodeAt();
|
|
||||||
var value = void 0;
|
|
||||||
if (codePoint < 32 || codePoint > 126) {
|
|
||||||
if (codePoint >= 55296 && codePoint <= 56319 && counter < length) {
|
|
||||||
var extra = string.charCodeAt(counter++);
|
|
||||||
if ((extra & 64512) == 56320) {
|
|
||||||
codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536;
|
|
||||||
} else {
|
|
||||||
counter--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
value = "\\" + codePoint.toString(16).toUpperCase() + " ";
|
|
||||||
} else {
|
|
||||||
if (options.escapeEverything) {
|
|
||||||
if (regexAnySingleEscape.test(character)) {
|
|
||||||
value = "\\" + character;
|
|
||||||
} else {
|
|
||||||
value = "\\" + codePoint.toString(16).toUpperCase() + " ";
|
|
||||||
}
|
|
||||||
} else if (/[\t\n\f\r\x0B]/.test(character)) {
|
|
||||||
value = "\\" + codePoint.toString(16).toUpperCase() + " ";
|
|
||||||
} else if (character == "\\" || !isIdentifier && (character == '"' && quote == character || character == "'" && quote == character) || isIdentifier && regexSingleEscape.test(character)) {
|
|
||||||
value = "\\" + character;
|
|
||||||
} else {
|
|
||||||
value = character;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output += value;
|
|
||||||
}
|
|
||||||
if (isIdentifier) {
|
|
||||||
if (/^-[-\d]/.test(output)) {
|
|
||||||
output = "\\-" + output.slice(1);
|
|
||||||
} else if (/\d/.test(firstChar)) {
|
|
||||||
output = "\\3" + firstChar + " " + output.slice(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output = output.replace(regexExcessiveSpaces, function($0, $1, $2) {
|
|
||||||
if ($1 && $1.length % 2) {
|
|
||||||
return $0;
|
|
||||||
}
|
|
||||||
return ($1 || "") + $2;
|
|
||||||
});
|
|
||||||
if (!isIdentifier && options.wrap) {
|
|
||||||
return quote + output + quote;
|
|
||||||
}
|
|
||||||
return output;
|
|
||||||
};
|
|
||||||
cssesc.options = {
|
|
||||||
"escapeEverything": false,
|
|
||||||
"isIdentifier": false,
|
|
||||||
"quotes": "single",
|
|
||||||
"wrap": false
|
|
||||||
};
|
|
||||||
cssesc.version = "3.0.0";
|
|
||||||
module.exports = cssesc;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
export default require_cssesc();
|
|
||||||
/*! Bundled license information:
|
|
||||||
|
|
||||||
cssesc/cssesc.js:
|
|
||||||
(*! https://mths.be/cssesc v3.0.0 by @mathias *)
|
|
||||||
*/
|
|
||||||
//# sourceMappingURL=astro___cssesc.js.map
|
|
||||||
7
dealplustech-astro/node_modules/.vite/deps/astro___cssesc.js.map
generated
vendored
7
dealplustech-astro/node_modules/.vite/deps/astro___cssesc.js.map
generated
vendored
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"version": 3,
|
|
||||||
"sources": ["../../cssesc/cssesc.js"],
|
|
||||||
"sourcesContent": ["/*! https://mths.be/cssesc v3.0.0 by @mathias */\n'use strict';\n\nvar object = {};\nvar hasOwnProperty = object.hasOwnProperty;\nvar merge = function merge(options, defaults) {\n\tif (!options) {\n\t\treturn defaults;\n\t}\n\tvar result = {};\n\tfor (var key in defaults) {\n\t\t// `if (defaults.hasOwnProperty(key) { … }` is not needed here, since\n\t\t// only recognized option names are used.\n\t\tresult[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];\n\t}\n\treturn result;\n};\n\nvar regexAnySingleEscape = /[ -,\\.\\/:-@\\[-\\^`\\{-~]/;\nvar regexSingleEscape = /[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/;\nvar regexAlwaysEscape = /['\"\\\\]/;\nvar regexExcessiveSpaces = /(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g;\n\n// https://mathiasbynens.be/notes/css-escapes#css\nvar cssesc = function cssesc(string, options) {\n\toptions = merge(options, cssesc.options);\n\tif (options.quotes != 'single' && options.quotes != 'double') {\n\t\toptions.quotes = 'single';\n\t}\n\tvar quote = options.quotes == 'double' ? '\"' : '\\'';\n\tvar isIdentifier = options.isIdentifier;\n\n\tvar firstChar = string.charAt(0);\n\tvar output = '';\n\tvar counter = 0;\n\tvar length = string.length;\n\twhile (counter < length) {\n\t\tvar character = string.charAt(counter++);\n\t\tvar codePoint = character.charCodeAt();\n\t\tvar value = void 0;\n\t\t// If it’s not a printable ASCII character…\n\t\tif (codePoint < 0x20 || codePoint > 0x7E) {\n\t\t\tif (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) {\n\t\t\t\t// It’s a high surrogate, and there is a next character.\n\t\t\t\tvar extra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) {\n\t\t\t\t\t// next character is low surrogate\n\t\t\t\t\tcodePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000;\n\t\t\t\t} else {\n\t\t\t\t\t// It’s an unmatched surrogate; only append this code unit, in case\n\t\t\t\t\t// the next code unit is the high surrogate of a surrogate pair.\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t} else {\n\t\t\tif (options.escapeEverything) {\n\t\t\t\tif (regexAnySingleEscape.test(character)) {\n\t\t\t\t\tvalue = '\\\\' + character;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t\t\t}\n\t\t\t} else if (/[\\t\\n\\f\\r\\x0B]/.test(character)) {\n\t\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t\t} else if (character == '\\\\' || !isIdentifier && (character == '\"' && quote == character || character == '\\'' && quote == character) || isIdentifier && regexSingleEscape.test(character)) {\n\t\t\t\tvalue = '\\\\' + character;\n\t\t\t} else {\n\t\t\t\tvalue = character;\n\t\t\t}\n\t\t}\n\t\toutput += value;\n\t}\n\n\tif (isIdentifier) {\n\t\tif (/^-[-\\d]/.test(output)) {\n\t\t\toutput = '\\\\-' + output.slice(1);\n\t\t} else if (/\\d/.test(firstChar)) {\n\t\t\toutput = '\\\\3' + firstChar + ' ' + output.slice(1);\n\t\t}\n\t}\n\n\t// Remove spaces after `\\HEX` escapes that are not followed by a hex digit,\n\t// since they’re redundant. Note that this is only possible if the escape\n\t// sequence isn’t preceded by an odd number of backslashes.\n\toutput = output.replace(regexExcessiveSpaces, function ($0, $1, $2) {\n\t\tif ($1 && $1.length % 2) {\n\t\t\t// It’s not safe to remove the space, so don’t.\n\t\t\treturn $0;\n\t\t}\n\t\t// Strip the space.\n\t\treturn ($1 || '') + $2;\n\t});\n\n\tif (!isIdentifier && options.wrap) {\n\t\treturn quote + output + quote;\n\t}\n\treturn output;\n};\n\n// Expose default options (so they can be overridden globally).\ncssesc.options = {\n\t'escapeEverything': false,\n\t'isIdentifier': false,\n\t'quotes': 'single',\n\t'wrap': false\n};\n\ncssesc.version = '3.0.0';\n\nmodule.exports = cssesc;\n"],
|
|
||||||
"mappings": ";;;;;AAAA;AAAA;AAGA,QAAI,SAAS,CAAC;AACd,QAAI,iBAAiB,OAAO;AAC5B,QAAI,QAAQ,SAASA,OAAM,SAAS,UAAU;AAC7C,UAAI,CAAC,SAAS;AACb,eAAO;AAAA,MACR;AACA,UAAI,SAAS,CAAC;AACd,eAAS,OAAO,UAAU;AAGzB,eAAO,GAAG,IAAI,eAAe,KAAK,SAAS,GAAG,IAAI,QAAQ,GAAG,IAAI,SAAS,GAAG;AAAA,MAC9E;AACA,aAAO;AAAA,IACR;AAEA,QAAI,uBAAuB;AAC3B,QAAI,oBAAoB;AAExB,QAAI,uBAAuB;AAG3B,QAAI,SAAS,SAASC,QAAO,QAAQ,SAAS;AAC7C,gBAAU,MAAM,SAASA,QAAO,OAAO;AACvC,UAAI,QAAQ,UAAU,YAAY,QAAQ,UAAU,UAAU;AAC7D,gBAAQ,SAAS;AAAA,MAClB;AACA,UAAI,QAAQ,QAAQ,UAAU,WAAW,MAAM;AAC/C,UAAI,eAAe,QAAQ;AAE3B,UAAI,YAAY,OAAO,OAAO,CAAC;AAC/B,UAAI,SAAS;AACb,UAAI,UAAU;AACd,UAAI,SAAS,OAAO;AACpB,aAAO,UAAU,QAAQ;AACxB,YAAI,YAAY,OAAO,OAAO,SAAS;AACvC,YAAI,YAAY,UAAU,WAAW;AACrC,YAAI,QAAQ;AAEZ,YAAI,YAAY,MAAQ,YAAY,KAAM;AACzC,cAAI,aAAa,SAAU,aAAa,SAAU,UAAU,QAAQ;AAEnE,gBAAI,QAAQ,OAAO,WAAW,SAAS;AACvC,iBAAK,QAAQ,UAAW,OAAQ;AAE/B,4BAAc,YAAY,SAAU,OAAO,QAAQ,QAAS;AAAA,YAC7D,OAAO;AAGN;AAAA,YACD;AAAA,UACD;AACA,kBAAQ,OAAO,UAAU,SAAS,EAAE,EAAE,YAAY,IAAI;AAAA,QACvD,OAAO;AACN,cAAI,QAAQ,kBAAkB;AAC7B,gBAAI,qBAAqB,KAAK,SAAS,GAAG;AACzC,sBAAQ,OAAO;AAAA,YAChB,OAAO;AACN,sBAAQ,OAAO,UAAU,SAAS,EAAE,EAAE,YAAY,IAAI;AAAA,YACvD;AAAA,UACD,WAAW,iBAAiB,KAAK,SAAS,GAAG;AAC5C,oBAAQ,OAAO,UAAU,SAAS,EAAE,EAAE,YAAY,IAAI;AAAA,UACvD,WAAW,aAAa,QAAQ,CAAC,iBAAiB,aAAa,OAAO,SAAS,aAAa,aAAa,OAAQ,SAAS,cAAc,gBAAgB,kBAAkB,KAAK,SAAS,GAAG;AAC1L,oBAAQ,OAAO;AAAA,UAChB,OAAO;AACN,oBAAQ;AAAA,UACT;AAAA,QACD;AACA,kBAAU;AAAA,MACX;AAEA,UAAI,cAAc;AACjB,YAAI,UAAU,KAAK,MAAM,GAAG;AAC3B,mBAAS,QAAQ,OAAO,MAAM,CAAC;AAAA,QAChC,WAAW,KAAK,KAAK,SAAS,GAAG;AAChC,mBAAS,QAAQ,YAAY,MAAM,OAAO,MAAM,CAAC;AAAA,QAClD;AAAA,MACD;AAKA,eAAS,OAAO,QAAQ,sBAAsB,SAAU,IAAI,IAAI,IAAI;AACnE,YAAI,MAAM,GAAG,SAAS,GAAG;AAExB,iBAAO;AAAA,QACR;AAEA,gBAAQ,MAAM,MAAM;AAAA,MACrB,CAAC;AAED,UAAI,CAAC,gBAAgB,QAAQ,MAAM;AAClC,eAAO,QAAQ,SAAS;AAAA,MACzB;AACA,aAAO;AAAA,IACR;AAGA,WAAO,UAAU;AAAA,MAChB,oBAAoB;AAAA,MACpB,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,QAAQ;AAAA,IACT;AAEA,WAAO,UAAU;AAEjB,WAAO,UAAU;AAAA;AAAA;",
|
|
||||||
"names": ["merge", "cssesc"]
|
|
||||||
}
|
|
||||||
8
dealplustech-astro/node_modules/.vite/deps/chunk-BUSYA2B4.js
generated
vendored
8
dealplustech-astro/node_modules/.vite/deps/chunk-BUSYA2B4.js
generated
vendored
@@ -1,8 +0,0 @@
|
|||||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
||||||
var __commonJS = (cb, mod) => function __require() {
|
|
||||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
||||||
};
|
|
||||||
|
|
||||||
export {
|
|
||||||
__commonJS
|
|
||||||
};
|
|
||||||
7
dealplustech-astro/node_modules/.vite/deps/chunk-BUSYA2B4.js.map
generated
vendored
7
dealplustech-astro/node_modules/.vite/deps/chunk-BUSYA2B4.js.map
generated
vendored
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"version": 3,
|
|
||||||
"sources": [],
|
|
||||||
"sourcesContent": [],
|
|
||||||
"mappings": "",
|
|
||||||
"names": []
|
|
||||||
}
|
|
||||||
3
dealplustech-astro/node_modules/.vite/deps/package.json
generated
vendored
3
dealplustech-astro/node_modules/.vite/deps/package.json
generated
vendored
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"type": "module"
|
|
||||||
}
|
|
||||||
53
dealplustech-astro/node_modules/@astrojs/compiler/LICENSE
generated
vendored
53
dealplustech-astro/node_modules/@astrojs/compiler/LICENSE
generated
vendored
@@ -1,53 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2021 [Astro contributors](https://github.com/withastro/compiler/graphs/contributors)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
"""
|
|
||||||
This license applies to parts of the `internal/` subdirectory originating from
|
|
||||||
the https://cs.opensource.google/go/x/net/+/master:html/ repository:
|
|
||||||
|
|
||||||
Copyright (c) 2009 The Go Authors. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the following disclaimer
|
|
||||||
in the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
* Neither the name of Google Inc. nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
72
dealplustech-astro/node_modules/@astrojs/compiler/README.md
generated
vendored
72
dealplustech-astro/node_modules/@astrojs/compiler/README.md
generated
vendored
@@ -1,72 +0,0 @@
|
|||||||
# Astro Compiler
|
|
||||||
|
|
||||||
Astro’s [Go](https://golang.org/) + WASM compiler.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
```
|
|
||||||
npm install @astrojs/compiler
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
#### Transform `.astro` to valid TypeScript
|
|
||||||
|
|
||||||
The Astro compiler can convert `.astro` syntax to a TypeScript Module whose default export generates HTML.
|
|
||||||
|
|
||||||
**Some notes**...
|
|
||||||
|
|
||||||
- TypeScript is valid `.astro` syntax! The output code may need an additional post-processing step to generate valid JavaScript.
|
|
||||||
- `.astro` files rely on a server implementation exposed as `astro/runtime/server/index.js` in the Node ecosystem. Other runtimes currently need to bring their own rendering implementation and reference it via `internalURL`. This is a pain point we're looking into fixing.
|
|
||||||
|
|
||||||
```js
|
|
||||||
import { transform, type TransformResult } from "@astrojs/compiler";
|
|
||||||
|
|
||||||
const result = await transform(source, {
|
|
||||||
filename: "/Users/astro/Code/project/src/pages/index.astro",
|
|
||||||
sourcemap: "both",
|
|
||||||
internalURL: "astro/runtime/server/index.js",
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Parse `.astro` and return an AST
|
|
||||||
|
|
||||||
The Astro compiler can emit an AST using the `parse` method.
|
|
||||||
|
|
||||||
**Some notes**...
|
|
||||||
|
|
||||||
- Position data is currently incomplete and in some cases incorrect. We're working on it!
|
|
||||||
- A `TextNode` can represent both HTML `text` and JavaScript/TypeScript source code.
|
|
||||||
- The `@astrojs/compiler/utils` entrypoint exposes `walk` and `walkAsync` functions that can be used to traverse the AST. It also exposes the `is` helper which can be used as guards to derive the proper types for each `node`.
|
|
||||||
|
|
||||||
```js
|
|
||||||
import { parse } from "@astrojs/compiler";
|
|
||||||
import { walk, walkAsync, is } from "@astrojs/compiler/utils";
|
|
||||||
|
|
||||||
const result = await parse(source, {
|
|
||||||
position: false, // defaults to `true`
|
|
||||||
});
|
|
||||||
|
|
||||||
walk(result.ast, (node) => {
|
|
||||||
// `tag` nodes are `element` | `custom-element` | `component`
|
|
||||||
if (is.tag(node)) {
|
|
||||||
console.log(node.name);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
await walkAsync(result.ast, async (node) => {
|
|
||||||
if (is.tag(node)) {
|
|
||||||
node.value = await expensiveCalculation(node)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
## Develop
|
|
||||||
|
|
||||||
### VSCode / CodeSpaces
|
|
||||||
|
|
||||||
A `devcontainer` configuration is available for use with VSCode's [Remote Development extension pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) and GitHub CodeSpaces.
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
[CONTRIBUTING.md](/CONTRIBUTING.md)
|
|
||||||
BIN
dealplustech-astro/node_modules/@astrojs/compiler/dist/astro.wasm
generated
vendored
BIN
dealplustech-astro/node_modules/@astrojs/compiler/dist/astro.wasm
generated
vendored
Binary file not shown.
2
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/index.cjs
generated
vendored
2
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/index.cjs
generated
vendored
File diff suppressed because one or more lines are too long
11
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/index.d.ts
generated
vendored
11
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/index.d.ts
generated
vendored
@@ -1,11 +0,0 @@
|
|||||||
import { transform as transform$1, parse as parse$1, convertToTSX as convertToTSX$1, teardown as teardown$1, initialize as initialize$1 } from '../shared/types.js';
|
|
||||||
import '../shared/ast.js';
|
|
||||||
import '../shared/diagnostics.js';
|
|
||||||
|
|
||||||
declare const transform: typeof transform$1;
|
|
||||||
declare const parse: typeof parse$1;
|
|
||||||
declare const convertToTSX: typeof convertToTSX$1;
|
|
||||||
declare const teardown: typeof teardown$1;
|
|
||||||
declare const initialize: typeof initialize$1;
|
|
||||||
|
|
||||||
export { convertToTSX, initialize, parse, teardown, transform };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/index.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/index.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
import{a as f}from"../chunk-QR6QDSEV.js";var u=(t,e)=>p().transform(t,e),S=(t,e)=>p().parse(t,e),v=(t,e)=>p().convertToTSX(t,e),a,i,h=()=>{a=void 0,i=void 0,globalThis["@astrojs/compiler"]=void 0},T=async t=>{let e=t.wasmURL;if(!e)throw new Error('Must provide the "wasmURL" option');e+="",a||(a=m(e).catch(n=>{throw a=void 0,n})),i=i||await a},p=()=>{if(!a)throw new Error('You need to call "initialize" before calling this');if(!i)throw new Error('You need to wait for the promise returned from "initialize" to be resolved before calling this');return i},y=async(t,e)=>{let n;return WebAssembly.instantiateStreaming?n=await WebAssembly.instantiateStreaming(fetch(t),e):n=await(async()=>{let s=await fetch(t).then(o=>o.arrayBuffer());return WebAssembly.instantiate(s,e)})(),n},m=async t=>{let e=new f,n=await y(t,e.importObject);e.run(n.instance);let c=globalThis["@astrojs/compiler"];return{transform:(s,o)=>new Promise(r=>r(c.transform(s,o||{}))),convertToTSX:(s,o)=>new Promise(r=>r(c.convertToTSX(s,o||{}))).then(r=>({...r,map:JSON.parse(r.map)})),parse:(s,o)=>new Promise(r=>r(c.parse(s,o||{}))).then(r=>({...r,ast:JSON.parse(r.ast)}))}};export{v as convertToTSX,T as initialize,S as parse,h as teardown,u as transform};
|
|
||||||
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/utils.cjs
generated
vendored
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/utils.cjs
generated
vendored
@@ -1,3 +0,0 @@
|
|||||||
"use strict";var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var t in e)c(o,t,{get:e[t],enumerable:!0})},f=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!N.call(o,r)&&r!==t&&c(o,r,{get:()=>e[r],enumerable:!(a=d(e,r))||a.enumerable});return o};var y=o=>f(c({},"__esModule",{value:!0}),o);var v={};u(v,{is:()=>s,serialize:()=>k,walk:()=>h,walkAsync:()=>x});module.exports=y(v);function n(o){return e=>e.type===o}var s={parent(o){return Array.isArray(o.children)},literal(o){return typeof o.value=="string"},tag(o){return o.type==="element"||o.type==="custom-element"||o.type==="component"||o.type==="fragment"},whitespace(o){return o.type==="text"&&o.value.trim().length===0},root:n("root"),element:n("element"),customElement:n("custom-element"),component:n("component"),fragment:n("fragment"),expression:n("expression"),text:n("text"),doctype:n("doctype"),comment:n("comment"),frontmatter:n("frontmatter")},l=class{constructor(e){this.callback=e}async visit(e,t,a){if(await this.callback(e,t,a),s.parent(e)){let r=[];for(let i=0;i<e.children.length;i++){let m=e.children[i];r.push(this.callback(m,e,i))}await Promise.all(r)}}};function h(o,e){new l(e).visit(o)}function x(o,e){return new l(e).visit(o)}function g(o){let e="";for(let t of o.attributes)switch(e+=" ",t.kind){case"empty":{e+=`${t.name}`;break}case"expression":{e+=`${t.name}={${t.value}}`;break}case"quoted":{e+=`${t.name}=${t.raw}`;break}case"template-literal":{e+=`${t.name}=\`${t.value}\``;break}case"shorthand":{e+=`{${t.name}}`;break}case"spread":{e+=`{...${t.value}}`;break}}return e}function k(o,e={selfClose:!0}){let t="";function a(r){if(s.root(r))for(let i of r.children)a(i);else if(s.frontmatter(r))t+=`---${r.value}---
|
|
||||||
|
|
||||||
`;else if(s.comment(r))t+=`<!--${r.value}-->`;else if(s.expression(r)){t+="{";for(let i of r.children)a(i);t+="}"}else if(s.literal(r))t+=r.value;else if(s.tag(r))if(t+=`<${r.name}`,t+=g(r),r.children.length===0&&e.selfClose)t+=" />";else{t+=">";for(let i of r.children)a(i);t+=`</${r.name}>`}}return a(o),t}0&&(module.exports={is,serialize,walk,walkAsync});
|
|
||||||
29
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/utils.d.ts
generated
vendored
29
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/utils.d.ts
generated
vendored
@@ -1,29 +0,0 @@
|
|||||||
import { Node, ParentNode, LiteralNode, TagLikeNode, TextNode, RootNode, ElementNode, CustomElementNode, ComponentNode, FragmentNode, ExpressionNode, DoctypeNode, CommentNode, FrontmatterNode } from '../shared/ast.js';
|
|
||||||
|
|
||||||
type Visitor = (node: Node, parent?: ParentNode, index?: number) => void | Promise<void>;
|
|
||||||
declare const is: {
|
|
||||||
parent(node: Node): node is ParentNode;
|
|
||||||
literal(node: Node): node is LiteralNode;
|
|
||||||
tag(node: Node): node is TagLikeNode;
|
|
||||||
whitespace(node: Node): node is TextNode;
|
|
||||||
root: (node: Node) => node is RootNode;
|
|
||||||
element: (node: Node) => node is ElementNode;
|
|
||||||
customElement: (node: Node) => node is CustomElementNode;
|
|
||||||
component: (node: Node) => node is ComponentNode;
|
|
||||||
fragment: (node: Node) => node is FragmentNode;
|
|
||||||
expression: (node: Node) => node is ExpressionNode;
|
|
||||||
text: (node: Node) => node is TextNode;
|
|
||||||
doctype: (node: Node) => node is DoctypeNode;
|
|
||||||
comment: (node: Node) => node is CommentNode;
|
|
||||||
frontmatter: (node: Node) => node is FrontmatterNode;
|
|
||||||
};
|
|
||||||
declare function walk(node: ParentNode, callback: Visitor): void;
|
|
||||||
declare function walkAsync(node: ParentNode, callback: Visitor): Promise<void>;
|
|
||||||
interface SerializeOptions {
|
|
||||||
selfClose: boolean;
|
|
||||||
}
|
|
||||||
/** @deprecated Please use `SerializeOptions` */
|
|
||||||
type SerializeOtions = SerializeOptions;
|
|
||||||
declare function serialize(root: Node, opts?: SerializeOptions): string;
|
|
||||||
|
|
||||||
export { SerializeOptions, SerializeOtions, Visitor, is, serialize, walk, walkAsync };
|
|
||||||
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/utils.js
generated
vendored
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/utils.js
generated
vendored
@@ -1,3 +0,0 @@
|
|||||||
function n(o){return t=>t.type===o}var a={parent(o){return Array.isArray(o.children)},literal(o){return typeof o.value=="string"},tag(o){return o.type==="element"||o.type==="custom-element"||o.type==="component"||o.type==="fragment"},whitespace(o){return o.type==="text"&&o.value.trim().length===0},root:n("root"),element:n("element"),customElement:n("custom-element"),component:n("component"),fragment:n("fragment"),expression:n("expression"),text:n("text"),doctype:n("doctype"),comment:n("comment"),frontmatter:n("frontmatter")},l=class{constructor(t){this.callback=t}async visit(t,e,s){if(await this.callback(t,e,s),a.parent(t)){let r=[];for(let i=0;i<t.children.length;i++){let c=t.children[i];r.push(this.callback(c,t,i))}await Promise.all(r)}}};function N(o,t){new l(t).visit(o)}function u(o,t){return new l(t).visit(o)}function m(o){let t="";for(let e of o.attributes)switch(t+=" ",e.kind){case"empty":{t+=`${e.name}`;break}case"expression":{t+=`${e.name}={${e.value}}`;break}case"quoted":{t+=`${e.name}=${e.raw}`;break}case"template-literal":{t+=`${e.name}=\`${e.value}\``;break}case"shorthand":{t+=`{${e.name}}`;break}case"spread":{t+=`{...${e.value}}`;break}}return t}function f(o,t={selfClose:!0}){let e="";function s(r){if(a.root(r))for(let i of r.children)s(i);else if(a.frontmatter(r))e+=`---${r.value}---
|
|
||||||
|
|
||||||
`;else if(a.comment(r))e+=`<!--${r.value}-->`;else if(a.expression(r)){e+="{";for(let i of r.children)s(i);e+="}"}else if(a.literal(r))e+=r.value;else if(a.tag(r))if(e+=`<${r.name}`,e+=m(r),r.children.length===0&&t.selfClose)e+=" />";else{e+=">";for(let i of r.children)s(i);e+=`</${r.name}>`}}return s(o),e}export{a as is,f as serialize,N as walk,u as walkAsync};
|
|
||||||
2
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/wasm_exec.cjs
generated
vendored
2
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/wasm_exec.cjs
generated
vendored
File diff suppressed because one or more lines are too long
37
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/wasm_exec.d.ts
generated
vendored
37
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/wasm_exec.d.ts
generated
vendored
@@ -1,37 +0,0 @@
|
|||||||
declare class Go {
|
|
||||||
importObject: {
|
|
||||||
gojs: {
|
|
||||||
'runtime.wasmExit': (sp: any) => void;
|
|
||||||
'runtime.wasmWrite': (sp: any) => void;
|
|
||||||
'runtime.resetMemoryDataView': (sp: any) => void;
|
|
||||||
'runtime.nanotime1': (sp: any) => void;
|
|
||||||
'runtime.walltime': (sp: any) => void;
|
|
||||||
'runtime.scheduleTimeoutEvent': (sp: any) => void;
|
|
||||||
'runtime.clearTimeoutEvent': (sp: any) => void;
|
|
||||||
'runtime.getRandomData': (sp: any) => void;
|
|
||||||
'syscall/js.finalizeRef': (sp: any) => void;
|
|
||||||
'syscall/js.stringVal': (sp: any) => void;
|
|
||||||
'syscall/js.valueGet': (sp: any) => void;
|
|
||||||
'syscall/js.valueSet': (sp: any) => void;
|
|
||||||
'syscall/js.valueDelete': (sp: any) => void;
|
|
||||||
'syscall/js.valueIndex': (sp: any) => void;
|
|
||||||
'syscall/js.valueSetIndex': (sp: any) => void;
|
|
||||||
'syscall/js.valueCall': (sp: any) => void;
|
|
||||||
'syscall/js.valueInvoke': (sp: any) => void;
|
|
||||||
'syscall/js.valueNew': (sp: any) => void;
|
|
||||||
'syscall/js.valueLength': (sp: any) => void;
|
|
||||||
'syscall/js.valuePrepareString': (sp: any) => void;
|
|
||||||
'syscall/js.valueLoadString': (sp: any) => void;
|
|
||||||
'syscall/js.valueInstanceOf': (sp: any) => void;
|
|
||||||
'syscall/js.copyBytesToGo': (sp: any) => void;
|
|
||||||
'syscall/js.copyBytesToJS': (sp: any) => void;
|
|
||||||
debug: (value: any) => void;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
constructor();
|
|
||||||
run(instance: any): Promise<void>;
|
|
||||||
private _resume;
|
|
||||||
private _makeFuncWrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
export { Go as default };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/wasm_exec.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/browser/wasm_exec.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
import{a}from"../chunk-QR6QDSEV.js";export{a as default};
|
|
||||||
2
dealplustech-astro/node_modules/@astrojs/compiler/dist/chunk-QR6QDSEV.js
generated
vendored
2
dealplustech-astro/node_modules/@astrojs/compiler/dist/chunk-QR6QDSEV.js
generated
vendored
File diff suppressed because one or more lines are too long
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/chunk-W5DTLHV4.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/chunk-W5DTLHV4.js
generated
vendored
File diff suppressed because one or more lines are too long
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/index.cjs
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/index.cjs
generated
vendored
File diff suppressed because one or more lines are too long
12
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/index.d.ts
generated
vendored
12
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/index.d.ts
generated
vendored
@@ -1,12 +0,0 @@
|
|||||||
import { transform as transform$1, parse as parse$1, convertToTSX as convertToTSX$1, teardown as teardown$1 } from '../shared/types.js';
|
|
||||||
export { HoistedScript, ParseOptions, ParseResult, PreprocessorResult, TransformOptions, TransformResult } from '../shared/types.js';
|
|
||||||
import '../shared/ast.js';
|
|
||||||
import '../shared/diagnostics.js';
|
|
||||||
|
|
||||||
declare const transform: typeof transform$1;
|
|
||||||
declare const parse: typeof parse$1;
|
|
||||||
declare const convertToTSX: typeof convertToTSX$1;
|
|
||||||
declare const compile: (template: string) => Promise<string>;
|
|
||||||
declare const teardown: typeof teardown$1;
|
|
||||||
|
|
||||||
export { compile, convertToTSX, parse, teardown, transform };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/index.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/index.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
import{a as c}from"../chunk-W5DTLHV4.js";import{promises as m}from"fs";import{fileURLToPath as f}from"url";var w=async(t,s)=>i().then(r=>r.transform(t,s)),l=async(t,s)=>i().then(r=>r.parse(t,s)),b=async(t,s)=>i().then(r=>r.convertToTSX(t,s)),P=async t=>{let{default:s}=await import(`data:text/javascript;charset=utf-8;base64,${Buffer.from(t).toString("base64")}`);return s},n,g=()=>{n=void 0,globalThis["@astrojs/compiler"]=void 0},i=()=>(n||(n=d().catch(t=>{throw n=void 0,t})),n),y=async(t,s)=>{let r;return r=await(async()=>{let o=await m.readFile(t).then(e=>e.buffer);return WebAssembly.instantiate(new Uint8Array(o),s)})(),r},d=async()=>{let t=new c,s=await y(f(new URL("../astro.wasm",import.meta.url)),t.importObject);t.run(s.instance);let r=globalThis["@astrojs/compiler"];return{transform:(a,o)=>new Promise(e=>{try{e(r.transform(a,o||{}))}catch(p){throw n=void 0,p}}),parse:(a,o)=>new Promise(e=>e(r.parse(a,o||{}))).catch(e=>{throw n=void 0,e}).then(e=>({...e,ast:JSON.parse(e.ast)})),convertToTSX:(a,o)=>new Promise(e=>e(r.convertToTSX(a,o||{}))).catch(e=>{throw n=void 0,e}).then(e=>({...e,map:JSON.parse(e.map)}))}};export{P as compile,b as convertToTSX,l as parse,g as teardown,w as transform};
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/sync.cjs
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/sync.cjs
generated
vendored
File diff suppressed because one or more lines are too long
16
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/sync.d.ts
generated
vendored
16
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/sync.d.ts
generated
vendored
@@ -1,16 +0,0 @@
|
|||||||
import { TransformOptions, TransformResult, ParseOptions, ParseResult, ConvertToTSXOptions, TSXResult, transform as transform$1, parse as parse$1, convertToTSX as convertToTSX$1 } from '../shared/types.js';
|
|
||||||
import '../shared/ast.js';
|
|
||||||
import '../shared/diagnostics.js';
|
|
||||||
|
|
||||||
type UnwrappedPromise<T> = T extends (...params: any) => Promise<infer Return> ? (...params: Parameters<T>) => Return : T;
|
|
||||||
interface Service {
|
|
||||||
transform: UnwrappedPromise<typeof transform$1>;
|
|
||||||
parse: UnwrappedPromise<typeof parse$1>;
|
|
||||||
convertToTSX: UnwrappedPromise<typeof convertToTSX$1>;
|
|
||||||
}
|
|
||||||
declare const transform: (input: string, options: TransformOptions | undefined) => TransformResult;
|
|
||||||
declare const parse: (input: string, options: ParseOptions | undefined) => ParseResult;
|
|
||||||
declare const convertToTSX: (input: string, options: ConvertToTSXOptions | undefined) => TSXResult;
|
|
||||||
declare function startRunningService(): Service;
|
|
||||||
|
|
||||||
export { convertToTSX, parse, startRunningService, transform };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/sync.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/sync.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
import{a as c}from"../chunk-W5DTLHV4.js";import{readFileSync as p}from"fs";import{fileURLToPath as m}from"url";function i(){return s||(s=f()),s}var s,l=(e,t)=>i().transform(e,t),w=(e,t)=>i().parse(e,t),h=(e,t)=>i().convertToTSX(e,t);function f(){let e=new c,t=v(m(new URL("../astro.wasm",import.meta.url)),e.importObject);e.run(t);let o=globalThis["@astrojs/compiler"];return{transform:(n,a)=>{try{return o.transform(n,a||{})}catch(r){throw s=void 0,r}},parse:(n,a)=>{try{let r=o.parse(n,a||{});return{...r,ast:JSON.parse(r.ast)}}catch(r){throw s=void 0,r}},convertToTSX:(n,a)=>{try{let r=o.convertToTSX(n,a||{});return{...r,map:JSON.parse(r.map)}}catch(r){throw s=void 0,r}}}}function v(e,t){let o=p(e);return new WebAssembly.Instance(new WebAssembly.Module(o),t)}export{h as convertToTSX,w as parse,f as startRunningService,l as transform};
|
|
||||||
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/utils.cjs
generated
vendored
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/utils.cjs
generated
vendored
@@ -1,3 +0,0 @@
|
|||||||
"use strict";var m=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var t in e)m(o,t,{get:e[t],enumerable:!0})},f=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!N.call(o,r)&&r!==t&&m(o,r,{get:()=>e[r],enumerable:!(a=d(e,r))||a.enumerable});return o};var y=o=>f(m({},"__esModule",{value:!0}),o);var v={};u(v,{is:()=>s,serialize:()=>k,walk:()=>h,walkAsync:()=>x});module.exports=y(v);function n(o){return e=>e.type===o}var s={parent(o){return Array.isArray(o.children)},literal(o){return typeof o.value=="string"},tag(o){return o.type==="element"||o.type==="custom-element"||o.type==="component"||o.type==="fragment"},whitespace(o){return o.type==="text"&&o.value.trim().length===0},root:n("root"),element:n("element"),customElement:n("custom-element"),component:n("component"),fragment:n("fragment"),expression:n("expression"),text:n("text"),doctype:n("doctype"),comment:n("comment"),frontmatter:n("frontmatter")},l=class{constructor(e){this.callback=e}async visit(e,t,a){if(await this.callback(e,t,a),s.parent(e)){let r=[];for(let i=0;i<e.children.length;i++){let c=e.children[i];r.push(this.callback(c,e,i))}await Promise.all(r)}}};function h(o,e){new l(e).visit(o)}function x(o,e){return new l(e).visit(o)}function g(o){let e="";for(let t of o.attributes)switch(e+=" ",t.kind){case"empty":{e+=`${t.name}`;break}case"expression":{e+=`${t.name}={${t.value}}`;break}case"quoted":{e+=`${t.name}=${t.raw}`;break}case"template-literal":{e+=`${t.name}=\`${t.value}\``;break}case"shorthand":{e+=`{${t.name}}`;break}case"spread":{e+=`{...${t.name}}`;break}}return e}function k(o,e={selfClose:!0}){let t="";function a(r){if(s.root(r))for(let i of r.children)a(i);else if(s.frontmatter(r))t+=`---${r.value}---
|
|
||||||
|
|
||||||
`;else if(s.comment(r))t+=`<!--${r.value}-->`;else if(s.expression(r)){t+="{";for(let i of r.children)a(i);t+="}"}else if(s.literal(r))t+=r.value;else if(s.tag(r))if(t+=`<${r.name}`,t+=g(r),r.children.length===0&&e.selfClose)t+=" />";else{t+=">";for(let i of r.children)a(i);t+=`</${r.name}>`}}return a(o),t}0&&(module.exports={is,serialize,walk,walkAsync});
|
|
||||||
29
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/utils.d.ts
generated
vendored
29
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/utils.d.ts
generated
vendored
@@ -1,29 +0,0 @@
|
|||||||
import { Node, ParentNode, LiteralNode, TagLikeNode, TextNode, RootNode, ElementNode, CustomElementNode, ComponentNode, FragmentNode, ExpressionNode, DoctypeNode, CommentNode, FrontmatterNode } from '../shared/ast.js';
|
|
||||||
|
|
||||||
type Visitor = (node: Node, parent?: ParentNode, index?: number) => void | Promise<void>;
|
|
||||||
declare const is: {
|
|
||||||
parent(node: Node): node is ParentNode;
|
|
||||||
literal(node: Node): node is LiteralNode;
|
|
||||||
tag(node: Node): node is TagLikeNode;
|
|
||||||
whitespace(node: Node): node is TextNode;
|
|
||||||
root: (node: Node) => node is RootNode;
|
|
||||||
element: (node: Node) => node is ElementNode;
|
|
||||||
customElement: (node: Node) => node is CustomElementNode;
|
|
||||||
component: (node: Node) => node is ComponentNode;
|
|
||||||
fragment: (node: Node) => node is FragmentNode;
|
|
||||||
expression: (node: Node) => node is ExpressionNode;
|
|
||||||
text: (node: Node) => node is TextNode;
|
|
||||||
doctype: (node: Node) => node is DoctypeNode;
|
|
||||||
comment: (node: Node) => node is CommentNode;
|
|
||||||
frontmatter: (node: Node) => node is FrontmatterNode;
|
|
||||||
};
|
|
||||||
declare function walk(node: ParentNode, callback: Visitor): void;
|
|
||||||
declare function walkAsync(node: ParentNode, callback: Visitor): Promise<void>;
|
|
||||||
interface SerializeOptions {
|
|
||||||
selfClose: boolean;
|
|
||||||
}
|
|
||||||
/** @deprecated Please use `SerializeOptions` */
|
|
||||||
type SerializeOtions = SerializeOptions;
|
|
||||||
declare function serialize(root: Node, opts?: SerializeOptions): string;
|
|
||||||
|
|
||||||
export { SerializeOptions, SerializeOtions, Visitor, is, serialize, walk, walkAsync };
|
|
||||||
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/utils.js
generated
vendored
3
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/utils.js
generated
vendored
@@ -1,3 +0,0 @@
|
|||||||
function n(o){return t=>t.type===o}var a={parent(o){return Array.isArray(o.children)},literal(o){return typeof o.value=="string"},tag(o){return o.type==="element"||o.type==="custom-element"||o.type==="component"||o.type==="fragment"},whitespace(o){return o.type==="text"&&o.value.trim().length===0},root:n("root"),element:n("element"),customElement:n("custom-element"),component:n("component"),fragment:n("fragment"),expression:n("expression"),text:n("text"),doctype:n("doctype"),comment:n("comment"),frontmatter:n("frontmatter")},l=class{constructor(t){this.callback=t}async visit(t,e,s){if(await this.callback(t,e,s),a.parent(t)){let r=[];for(let i=0;i<t.children.length;i++){let m=t.children[i];r.push(this.callback(m,t,i))}await Promise.all(r)}}};function N(o,t){new l(t).visit(o)}function u(o,t){return new l(t).visit(o)}function c(o){let t="";for(let e of o.attributes)switch(t+=" ",e.kind){case"empty":{t+=`${e.name}`;break}case"expression":{t+=`${e.name}={${e.value}}`;break}case"quoted":{t+=`${e.name}=${e.raw}`;break}case"template-literal":{t+=`${e.name}=\`${e.value}\``;break}case"shorthand":{t+=`{${e.name}}`;break}case"spread":{t+=`{...${e.name}}`;break}}return t}function f(o,t={selfClose:!0}){let e="";function s(r){if(a.root(r))for(let i of r.children)s(i);else if(a.frontmatter(r))e+=`---${r.value}---
|
|
||||||
|
|
||||||
`;else if(a.comment(r))e+=`<!--${r.value}-->`;else if(a.expression(r)){e+="{";for(let i of r.children)s(i);e+="}"}else if(a.literal(r))e+=r.value;else if(a.tag(r))if(e+=`<${r.name}`,e+=c(r),r.children.length===0&&t.selfClose)e+=" />";else{e+=">";for(let i of r.children)s(i);e+=`</${r.name}>`}}return s(o),e}export{a as is,f as serialize,N as walk,u as walkAsync};
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/wasm_exec.cjs
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/wasm_exec.cjs
generated
vendored
File diff suppressed because one or more lines are too long
37
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/wasm_exec.d.ts
generated
vendored
37
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/wasm_exec.d.ts
generated
vendored
@@ -1,37 +0,0 @@
|
|||||||
declare class Go {
|
|
||||||
importObject: {
|
|
||||||
gojs: {
|
|
||||||
'runtime.wasmExit': (sp: any) => void;
|
|
||||||
'runtime.wasmWrite': (sp: any) => void;
|
|
||||||
'runtime.resetMemoryDataView': (sp: any) => void;
|
|
||||||
'runtime.nanotime1': (sp: any) => void;
|
|
||||||
'runtime.walltime': (sp: any) => void;
|
|
||||||
'runtime.scheduleTimeoutEvent': (sp: any) => void;
|
|
||||||
'runtime.clearTimeoutEvent': (sp: any) => void;
|
|
||||||
'runtime.getRandomData': (sp: any) => void;
|
|
||||||
'syscall/js.finalizeRef': (sp: any) => void;
|
|
||||||
'syscall/js.stringVal': (sp: any) => void;
|
|
||||||
'syscall/js.valueGet': (sp: any) => void;
|
|
||||||
'syscall/js.valueSet': (sp: any) => void;
|
|
||||||
'syscall/js.valueDelete': (sp: any) => void;
|
|
||||||
'syscall/js.valueIndex': (sp: any) => void;
|
|
||||||
'syscall/js.valueSetIndex': (sp: any) => void;
|
|
||||||
'syscall/js.valueCall': (sp: any) => void;
|
|
||||||
'syscall/js.valueInvoke': (sp: any) => void;
|
|
||||||
'syscall/js.valueNew': (sp: any) => void;
|
|
||||||
'syscall/js.valueLength': (sp: any) => void;
|
|
||||||
'syscall/js.valuePrepareString': (sp: any) => void;
|
|
||||||
'syscall/js.valueLoadString': (sp: any) => void;
|
|
||||||
'syscall/js.valueInstanceOf': (sp: any) => void;
|
|
||||||
'syscall/js.copyBytesToGo': (sp: any) => void;
|
|
||||||
'syscall/js.copyBytesToJS': (sp: any) => void;
|
|
||||||
debug: (value: any) => void;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
constructor();
|
|
||||||
run(instance: any): Promise<void>;
|
|
||||||
private _resume;
|
|
||||||
private _makeFuncWrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
export { Go as default };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/wasm_exec.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/node/wasm_exec.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
import{a}from"../chunk-W5DTLHV4.js";export{a as default};
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/ast.cjs
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/ast.cjs
generated
vendored
@@ -1 +0,0 @@
|
|||||||
"use strict";var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var p=(t,e,d,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of i(e))!N.call(t,o)&&o!==d&&r(t,o,{get:()=>e[o],enumerable:!(n=a(e,o))||n.enumerable});return t};var s=t=>p(r({},"__esModule",{value:!0}),t);var m={};module.exports=s(m);
|
|
||||||
74
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/ast.d.ts
generated
vendored
74
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/ast.d.ts
generated
vendored
@@ -1,74 +0,0 @@
|
|||||||
type ParentNode = RootNode | ElementNode | ComponentNode | CustomElementNode | FragmentNode | ExpressionNode;
|
|
||||||
type LiteralNode = TextNode | DoctypeNode | CommentNode | FrontmatterNode;
|
|
||||||
type Node = RootNode | ElementNode | ComponentNode | CustomElementNode | FragmentNode | ExpressionNode | TextNode | FrontmatterNode | DoctypeNode | CommentNode;
|
|
||||||
interface Position {
|
|
||||||
start: Point;
|
|
||||||
end?: Point;
|
|
||||||
}
|
|
||||||
interface Point {
|
|
||||||
/** 1-based line number */
|
|
||||||
line: number;
|
|
||||||
/** 1-based column number, per-line */
|
|
||||||
column: number;
|
|
||||||
/** 0-based byte offset */
|
|
||||||
offset: number;
|
|
||||||
}
|
|
||||||
interface BaseNode {
|
|
||||||
type: string;
|
|
||||||
position?: Position;
|
|
||||||
}
|
|
||||||
interface ParentLikeNode extends BaseNode {
|
|
||||||
type: 'element' | 'component' | 'custom-element' | 'fragment' | 'expression' | 'root';
|
|
||||||
children: Node[];
|
|
||||||
}
|
|
||||||
interface ValueNode extends BaseNode {
|
|
||||||
value: string;
|
|
||||||
}
|
|
||||||
interface RootNode extends ParentLikeNode {
|
|
||||||
type: 'root';
|
|
||||||
}
|
|
||||||
interface AttributeNode extends BaseNode {
|
|
||||||
type: 'attribute';
|
|
||||||
kind: 'quoted' | 'empty' | 'expression' | 'spread' | 'shorthand' | 'template-literal';
|
|
||||||
name: string;
|
|
||||||
value: string;
|
|
||||||
raw?: string;
|
|
||||||
}
|
|
||||||
interface TextNode extends ValueNode {
|
|
||||||
type: 'text';
|
|
||||||
}
|
|
||||||
interface ElementNode extends ParentLikeNode {
|
|
||||||
type: 'element';
|
|
||||||
name: string;
|
|
||||||
attributes: AttributeNode[];
|
|
||||||
}
|
|
||||||
interface FragmentNode extends ParentLikeNode {
|
|
||||||
type: 'fragment';
|
|
||||||
name: string;
|
|
||||||
attributes: AttributeNode[];
|
|
||||||
}
|
|
||||||
interface ComponentNode extends ParentLikeNode {
|
|
||||||
type: 'component';
|
|
||||||
name: string;
|
|
||||||
attributes: AttributeNode[];
|
|
||||||
}
|
|
||||||
interface CustomElementNode extends ParentLikeNode {
|
|
||||||
type: 'custom-element';
|
|
||||||
name: string;
|
|
||||||
attributes: AttributeNode[];
|
|
||||||
}
|
|
||||||
type TagLikeNode = ElementNode | FragmentNode | ComponentNode | CustomElementNode;
|
|
||||||
interface DoctypeNode extends ValueNode {
|
|
||||||
type: 'doctype';
|
|
||||||
}
|
|
||||||
interface CommentNode extends ValueNode {
|
|
||||||
type: 'comment';
|
|
||||||
}
|
|
||||||
interface FrontmatterNode extends ValueNode {
|
|
||||||
type: 'frontmatter';
|
|
||||||
}
|
|
||||||
interface ExpressionNode extends ParentLikeNode {
|
|
||||||
type: 'expression';
|
|
||||||
}
|
|
||||||
|
|
||||||
export { AttributeNode, BaseNode, CommentNode, ComponentNode, CustomElementNode, DoctypeNode, ElementNode, ExpressionNode, FragmentNode, FrontmatterNode, LiteralNode, Node, ParentLikeNode, ParentNode, Point, Position, RootNode, TagLikeNode, TextNode, ValueNode };
|
|
||||||
0
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/ast.js
generated
vendored
0
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/ast.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/diagnostics.cjs
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/diagnostics.cjs
generated
vendored
@@ -1 +0,0 @@
|
|||||||
"use strict";var I=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var U=(E,N)=>{for(var _ in N)I(E,_,{get:N[_],enumerable:!0})},H=(E,N,_,A)=>{if(N&&typeof N=="object"||typeof N=="function")for(let T of G(N))!S.call(E,T)&&T!==_&&I(E,T,{get:()=>N[T],enumerable:!(A=M(N,T))||A.enumerable});return E};var W=E=>H(I({},"__esModule",{value:!0}),E);var P={};U(P,{DiagnosticCode:()=>O});module.exports=W(P);var O=(R=>(R[R.ERROR=1e3]="ERROR",R[R.ERROR_UNTERMINATED_JS_COMMENT=1001]="ERROR_UNTERMINATED_JS_COMMENT",R[R.ERROR_FRAGMENT_SHORTHAND_ATTRS=1002]="ERROR_FRAGMENT_SHORTHAND_ATTRS",R[R.ERROR_UNMATCHED_IMPORT=1003]="ERROR_UNMATCHED_IMPORT",R[R.ERROR_UNSUPPORTED_SLOT_ATTRIBUTE=1004]="ERROR_UNSUPPORTED_SLOT_ATTRIBUTE",R[R.WARNING=2e3]="WARNING",R[R.WARNING_UNTERMINATED_HTML_COMMENT=2001]="WARNING_UNTERMINATED_HTML_COMMENT",R[R.WARNING_UNCLOSED_HTML_TAG=2002]="WARNING_UNCLOSED_HTML_TAG",R[R.WARNING_DEPRECATED_DIRECTIVE=2003]="WARNING_DEPRECATED_DIRECTIVE",R[R.WARNING_IGNORED_DIRECTIVE=2004]="WARNING_IGNORED_DIRECTIVE",R[R.WARNING_UNSUPPORTED_EXPRESSION=2005]="WARNING_UNSUPPORTED_EXPRESSION",R[R.WARNING_SET_WITH_CHILDREN=2006]="WARNING_SET_WITH_CHILDREN",R[R.INFO=3e3]="INFO",R[R.HINT=4e3]="HINT",R))(O||{});0&&(module.exports={DiagnosticCode});
|
|
||||||
18
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/diagnostics.d.ts
generated
vendored
18
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/diagnostics.d.ts
generated
vendored
@@ -1,18 +0,0 @@
|
|||||||
declare enum DiagnosticCode {
|
|
||||||
ERROR = 1000,
|
|
||||||
ERROR_UNTERMINATED_JS_COMMENT = 1001,
|
|
||||||
ERROR_FRAGMENT_SHORTHAND_ATTRS = 1002,
|
|
||||||
ERROR_UNMATCHED_IMPORT = 1003,
|
|
||||||
ERROR_UNSUPPORTED_SLOT_ATTRIBUTE = 1004,
|
|
||||||
WARNING = 2000,
|
|
||||||
WARNING_UNTERMINATED_HTML_COMMENT = 2001,
|
|
||||||
WARNING_UNCLOSED_HTML_TAG = 2002,
|
|
||||||
WARNING_DEPRECATED_DIRECTIVE = 2003,
|
|
||||||
WARNING_IGNORED_DIRECTIVE = 2004,
|
|
||||||
WARNING_UNSUPPORTED_EXPRESSION = 2005,
|
|
||||||
WARNING_SET_WITH_CHILDREN = 2006,
|
|
||||||
INFO = 3000,
|
|
||||||
HINT = 4000
|
|
||||||
}
|
|
||||||
|
|
||||||
export { DiagnosticCode };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/diagnostics.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/diagnostics.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
var N=(R=>(R[R.ERROR=1e3]="ERROR",R[R.ERROR_UNTERMINATED_JS_COMMENT=1001]="ERROR_UNTERMINATED_JS_COMMENT",R[R.ERROR_FRAGMENT_SHORTHAND_ATTRS=1002]="ERROR_FRAGMENT_SHORTHAND_ATTRS",R[R.ERROR_UNMATCHED_IMPORT=1003]="ERROR_UNMATCHED_IMPORT",R[R.ERROR_UNSUPPORTED_SLOT_ATTRIBUTE=1004]="ERROR_UNSUPPORTED_SLOT_ATTRIBUTE",R[R.WARNING=2e3]="WARNING",R[R.WARNING_UNTERMINATED_HTML_COMMENT=2001]="WARNING_UNTERMINATED_HTML_COMMENT",R[R.WARNING_UNCLOSED_HTML_TAG=2002]="WARNING_UNCLOSED_HTML_TAG",R[R.WARNING_DEPRECATED_DIRECTIVE=2003]="WARNING_DEPRECATED_DIRECTIVE",R[R.WARNING_IGNORED_DIRECTIVE=2004]="WARNING_IGNORED_DIRECTIVE",R[R.WARNING_UNSUPPORTED_EXPRESSION=2005]="WARNING_UNSUPPORTED_EXPRESSION",R[R.WARNING_SET_WITH_CHILDREN=2006]="WARNING_SET_WITH_CHILDREN",R[R.INFO=3e3]="INFO",R[R.HINT=4e3]="HINT",R))(N||{});export{N as DiagnosticCode};
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/types.cjs
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/types.cjs
generated
vendored
@@ -1 +0,0 @@
|
|||||||
"use strict";var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(r,t)=>{for(var n in t)o(r,n,{get:t[n],enumerable:!0})},g=(r,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of p(t))!c.call(r,e)&&e!==n&&o(r,e,{get:()=>t[e],enumerable:!(s=a(t,e))||s.enumerable});return r};var d=r=>g(o({},"__esModule",{value:!0}),r);var m={};l(m,{DiagnosticSeverity:()=>i});module.exports=d(m);var i=(e=>(e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e))(i||{});0&&(module.exports={DiagnosticSeverity});
|
|
||||||
160
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/types.d.ts
generated
vendored
160
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/types.d.ts
generated
vendored
@@ -1,160 +0,0 @@
|
|||||||
import { RootNode } from './ast.js';
|
|
||||||
export { AttributeNode, BaseNode, CommentNode, ComponentNode, CustomElementNode, DoctypeNode, ElementNode, ExpressionNode, FragmentNode, FrontmatterNode, LiteralNode, Node, ParentLikeNode, ParentNode, Point, Position, TagLikeNode, TextNode, ValueNode } from './ast.js';
|
|
||||||
import { DiagnosticCode } from './diagnostics.js';
|
|
||||||
|
|
||||||
interface PreprocessorResult {
|
|
||||||
code: string;
|
|
||||||
map?: string;
|
|
||||||
}
|
|
||||||
interface PreprocessorError {
|
|
||||||
error: string;
|
|
||||||
}
|
|
||||||
interface ParseOptions {
|
|
||||||
position?: boolean;
|
|
||||||
}
|
|
||||||
declare enum DiagnosticSeverity {
|
|
||||||
Error = 1,
|
|
||||||
Warning = 2,
|
|
||||||
Information = 3,
|
|
||||||
Hint = 4
|
|
||||||
}
|
|
||||||
interface DiagnosticMessage {
|
|
||||||
severity: DiagnosticSeverity;
|
|
||||||
code: DiagnosticCode;
|
|
||||||
location: DiagnosticLocation;
|
|
||||||
hint?: string;
|
|
||||||
text: string;
|
|
||||||
}
|
|
||||||
interface DiagnosticLocation {
|
|
||||||
file: string;
|
|
||||||
line: number;
|
|
||||||
column: number;
|
|
||||||
length: number;
|
|
||||||
}
|
|
||||||
interface TransformOptions {
|
|
||||||
internalURL?: string;
|
|
||||||
filename?: string;
|
|
||||||
normalizedFilename?: string;
|
|
||||||
sourcemap?: boolean | 'inline' | 'external' | 'both';
|
|
||||||
astroGlobalArgs?: string;
|
|
||||||
compact?: boolean;
|
|
||||||
resultScopedSlot?: boolean;
|
|
||||||
scopedStyleStrategy?: 'where' | 'class' | 'attribute';
|
|
||||||
/**
|
|
||||||
* @deprecated "as" has been removed and no longer has any effect!
|
|
||||||
*/
|
|
||||||
as?: 'document' | 'fragment';
|
|
||||||
transitionsAnimationURL?: string;
|
|
||||||
resolvePath?: (specifier: string) => Promise<string> | string;
|
|
||||||
preprocessStyle?: (content: string, attrs: Record<string, string>) => null | Promise<PreprocessorResult | PreprocessorError>;
|
|
||||||
annotateSourceFile?: boolean;
|
|
||||||
/**
|
|
||||||
* Render script tags to be processed (e.g. script tags that have no attributes or only a `src` attribute)
|
|
||||||
* using a `renderScript` function from `internalURL`, instead of stripping the script entirely.
|
|
||||||
* @experimental
|
|
||||||
*/
|
|
||||||
renderScript?: boolean;
|
|
||||||
experimentalScriptOrder?: boolean;
|
|
||||||
}
|
|
||||||
type ConvertToTSXOptions = Pick<TransformOptions, 'filename' | 'normalizedFilename' | 'sourcemap'> & {
|
|
||||||
/** If set to true, script tags content will be included in the generated TSX
|
|
||||||
* Scripts will be wrapped in an arrow function to be compatible with JSX's spec
|
|
||||||
*/
|
|
||||||
includeScripts?: boolean;
|
|
||||||
/** If set to true, style tags content will be included in the generated TSX
|
|
||||||
* Styles will be wrapped in a template literal to be compatible with JSX's spec
|
|
||||||
*/
|
|
||||||
includeStyles?: boolean;
|
|
||||||
};
|
|
||||||
type HoistedScript = {
|
|
||||||
type: string;
|
|
||||||
} & ({
|
|
||||||
type: 'external';
|
|
||||||
src: string;
|
|
||||||
} | {
|
|
||||||
type: 'inline';
|
|
||||||
code: string;
|
|
||||||
map: string;
|
|
||||||
});
|
|
||||||
interface HydratedComponent {
|
|
||||||
exportName: string;
|
|
||||||
localName: string;
|
|
||||||
specifier: string;
|
|
||||||
resolvedPath: string;
|
|
||||||
}
|
|
||||||
interface TransformResult {
|
|
||||||
code: string;
|
|
||||||
map: string;
|
|
||||||
scope: string;
|
|
||||||
styleError: string[];
|
|
||||||
diagnostics: DiagnosticMessage[];
|
|
||||||
css: string[];
|
|
||||||
scripts: HoistedScript[];
|
|
||||||
hydratedComponents: HydratedComponent[];
|
|
||||||
clientOnlyComponents: HydratedComponent[];
|
|
||||||
serverComponents: HydratedComponent[];
|
|
||||||
containsHead: boolean;
|
|
||||||
propagation: boolean;
|
|
||||||
}
|
|
||||||
interface SourceMap {
|
|
||||||
file: string;
|
|
||||||
mappings: string;
|
|
||||||
names: string[];
|
|
||||||
sources: string[];
|
|
||||||
sourcesContent: string[];
|
|
||||||
version: number;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Represents a location in a TSX file.
|
|
||||||
* Both the `start` and `end` properties are 0-based, and are based off utf-16 code units. (i.e. JavaScript's `String.prototype.length`)
|
|
||||||
*/
|
|
||||||
interface TSXLocation {
|
|
||||||
start: number;
|
|
||||||
end: number;
|
|
||||||
}
|
|
||||||
interface TSXExtractedTag {
|
|
||||||
position: TSXLocation;
|
|
||||||
content: string;
|
|
||||||
}
|
|
||||||
interface TSXExtractedScript extends TSXExtractedTag {
|
|
||||||
type: 'processed-module' | 'module' | 'inline' | 'event-attribute' | 'json' | 'raw' | 'unknown';
|
|
||||||
}
|
|
||||||
interface TSXExtractedStyle extends TSXExtractedTag {
|
|
||||||
type: 'tag' | 'style-attribute';
|
|
||||||
lang: 'css' | 'scss' | 'sass' | 'less' | 'stylus' | 'styl' | 'postcss' | 'pcss' | 'unknown' | (string & {});
|
|
||||||
}
|
|
||||||
interface TSXResult {
|
|
||||||
code: string;
|
|
||||||
map: SourceMap;
|
|
||||||
diagnostics: DiagnosticMessage[];
|
|
||||||
metaRanges: {
|
|
||||||
frontmatter: TSXLocation;
|
|
||||||
body: TSXLocation;
|
|
||||||
scripts?: TSXExtractedScript[];
|
|
||||||
styles?: TSXExtractedStyle[];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
interface ParseResult {
|
|
||||||
ast: RootNode;
|
|
||||||
diagnostics: DiagnosticMessage[];
|
|
||||||
}
|
|
||||||
declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
|
|
||||||
declare function parse(input: string, options?: ParseOptions): Promise<ParseResult>;
|
|
||||||
declare function convertToTSX(input: string, options?: ConvertToTSXOptions): Promise<TSXResult>;
|
|
||||||
declare function initialize(options: InitializeOptions): Promise<void>;
|
|
||||||
/**
|
|
||||||
* When calling the core compiler APIs, e.g. `transform`, `parse`, etc, they
|
|
||||||
* would automatically instantiate a WASM instance to process the input. When
|
|
||||||
* done, you can call this to manually teardown the WASM instance.
|
|
||||||
*
|
|
||||||
* If the APIs are called again, they will automatically instantiate a new WASM
|
|
||||||
* instance. In browsers, you have to call `initialize()` again before using the APIs.
|
|
||||||
*
|
|
||||||
* Note: Calling teardown is optional and exists mostly as an optimization only.
|
|
||||||
*/
|
|
||||||
declare function teardown(): void;
|
|
||||||
interface InitializeOptions {
|
|
||||||
wasmURL?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export { ConvertToTSXOptions, DiagnosticLocation, DiagnosticMessage, DiagnosticSeverity, HoistedScript, HydratedComponent, InitializeOptions, ParseOptions, ParseResult, PreprocessorError, PreprocessorResult, RootNode, SourceMap, TSXExtractedScript, TSXExtractedStyle, TSXExtractedTag, TSXLocation, TSXResult, TransformOptions, TransformResult, convertToTSX, initialize, parse, teardown, transform };
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/types.js
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/dist/shared/types.js
generated
vendored
@@ -1 +0,0 @@
|
|||||||
var t=(e=>(e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e))(t||{});export{t as DiagnosticSeverity};
|
|
||||||
58
dealplustech-astro/node_modules/@astrojs/compiler/package.json
generated
vendored
58
dealplustech-astro/node_modules/@astrojs/compiler/package.json
generated
vendored
@@ -1,58 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@astrojs/compiler",
|
|
||||||
"author": "withastro",
|
|
||||||
"license": "MIT",
|
|
||||||
"type": "module",
|
|
||||||
"bugs": "https://github.com/withastro/compiler/issues",
|
|
||||||
"homepage": "https://astro.build",
|
|
||||||
"version": "2.13.1",
|
|
||||||
"main": "./dist/node/index.js",
|
|
||||||
"types": "./dist/shared/types.d.ts",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/withastro/compiler.git"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"dist",
|
|
||||||
"types.d.ts",
|
|
||||||
"utils.d.ts",
|
|
||||||
"sync.d.ts"
|
|
||||||
],
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"types": "./dist/node/index.d.ts",
|
|
||||||
"browser": "./dist/browser/index.js",
|
|
||||||
"import": "./dist/node/index.js",
|
|
||||||
"require": "./dist/node/index.cjs",
|
|
||||||
"default": "./dist/browser/index.js"
|
|
||||||
},
|
|
||||||
"./sync": {
|
|
||||||
"types": "./dist/node/sync.d.ts",
|
|
||||||
"import": "./dist/node/sync.js",
|
|
||||||
"require": "./dist/node/sync.cjs",
|
|
||||||
"default": "./dist/node/sync.js"
|
|
||||||
},
|
|
||||||
"./utils": {
|
|
||||||
"types": "./dist/node/utils.d.ts",
|
|
||||||
"browser": "./dist/browser/utils.js",
|
|
||||||
"import": "./dist/node/utils.js",
|
|
||||||
"require": "./dist/node/utils.cjs",
|
|
||||||
"default": "./dist/browser/utils.js"
|
|
||||||
},
|
|
||||||
"./astro.wasm": "./dist/astro.wasm",
|
|
||||||
"./types": "./dist/shared/types.d.ts",
|
|
||||||
"./package.json": "./package.json"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@jridgewell/trace-mapping": "^0.3.16",
|
|
||||||
"@types/node": "^18.15.11",
|
|
||||||
"@types/sass": "^1.43.1",
|
|
||||||
"acorn": "^8.8.1",
|
|
||||||
"esbuild": "^0.17.17",
|
|
||||||
"tsup": "^6.7.0",
|
|
||||||
"typescript": "~5.0.2"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"build": "tsup"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/sync.d.ts
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/sync.d.ts
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export * from './dist/node/sync.js';
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/types.d.ts
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/types.d.ts
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export type * from './dist/shared/types.js';
|
|
||||||
1
dealplustech-astro/node_modules/@astrojs/compiler/utils.d.ts
generated
vendored
1
dealplustech-astro/node_modules/@astrojs/compiler/utils.d.ts
generated
vendored
@@ -1 +0,0 @@
|
|||||||
export * from './dist/node/utils.js';
|
|
||||||
59
dealplustech-astro/node_modules/@astrojs/db/LICENSE
generated
vendored
59
dealplustech-astro/node_modules/@astrojs/db/LICENSE
generated
vendored
@@ -1,59 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2021 Fred K. Schott
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
"""
|
|
||||||
This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/sveltejs/kit repository:
|
|
||||||
|
|
||||||
Copyright (c) 2020 [these people](https://github.com/sveltejs/kit/graphs/contributors)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
"""
|
|
||||||
|
|
||||||
"""
|
|
||||||
This license applies to parts of the `packages/create-astro` and `packages/astro` subdirectories originating from the https://github.com/vitejs/vite repository:
|
|
||||||
|
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
"""
|
|
||||||
38
dealplustech-astro/node_modules/@astrojs/db/README.md
generated
vendored
38
dealplustech-astro/node_modules/@astrojs/db/README.md
generated
vendored
@@ -1,38 +0,0 @@
|
|||||||
# @astrojs/db (experimental) 💿
|
|
||||||
|
|
||||||
This **[Astro integration][astro-integration]** enables the usage of [SQLite](https://www.sqlite.org/) in Astro Projects.
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
Read the [`@astrojs/db` docs][docs]
|
|
||||||
|
|
||||||
## Support
|
|
||||||
|
|
||||||
- Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more!
|
|
||||||
|
|
||||||
- Check our [Astro Integration Documentation][astro-integration] for more on integrations.
|
|
||||||
|
|
||||||
- Submit bug reports and feature requests as [GitHub issues][issues].
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started:
|
|
||||||
|
|
||||||
- [Contributor Manual][contributing]
|
|
||||||
- [Code of Conduct][coc]
|
|
||||||
- [Community Guide][community]
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
MIT
|
|
||||||
|
|
||||||
Copyright (c) 2023–present [Astro][astro]
|
|
||||||
|
|
||||||
[astro]: https://astro.build/
|
|
||||||
[docs]: https://docs.astro.build/en/guides/integrations-guide/db/
|
|
||||||
[contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md
|
|
||||||
[coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md
|
|
||||||
[community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md
|
|
||||||
[discord]: https://astro.build/chat/
|
|
||||||
[issues]: https://github.com/withastro/astro/issues
|
|
||||||
[astro-integration]: https://docs.astro.build/en/guides/integrations-guide/
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/**
|
|
||||||
* This is a modified version of Astro's error map. source:
|
|
||||||
* https://github.com/withastro/astro/blob/main/packages/astro/src/content/error-map.ts
|
|
||||||
*/
|
|
||||||
import type { z } from 'astro/zod';
|
|
||||||
export declare const errorMap: z.ZodErrorMap;
|
|
||||||
3023
dealplustech-astro/node_modules/@astrojs/db/dist/_internal/core/schemas.d.ts
generated
vendored
3023
dealplustech-astro/node_modules/@astrojs/db/dist/_internal/core/schemas.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user