refactor: Move Astro to root, use PORT env (default 80), allow all hosts

- Move Astro files from dealplustech-astro/ to project root
- Update Dockerfile: PORT environment variable (default 80)
- Add vite.config.ts with allowedHosts: true
- Matches nixpacks behavior for Easypanel deployment
- No hardcoded ports or domains
This commit is contained in:
Kunthawat Greethong committed 2026-03-03 11:40:50 +07:00
1 parent f972f68875
commit 443c3377e2
10383 files changed
+4019 -19183

No files matched your search

Vendored
BIN
View File
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
View File
@@ -0,0 +1,2 @@
HOST=0.0.0.0
PORT=${PORT:-80}
+1 -39
View File
@@ -1,39 +1 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env*.local
.env
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
# IDE
.idea/
.vscode/
.node-version
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+29 -111
View File
@@ -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.
## 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
```sh
npm create astro@latest -- --template minimal
```
### Environment Variables
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
Copy `.env.example` to `.env.local` and fill in your values:
## 🚀 Project Structure
```bash
cp .env.example .env.local
Inside of your Astro project, you'll see the following folders and files:
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```
Required environment variables:
- `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
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
### Development
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
```bash
npm run dev
```
Any static assets, like images, can be placed in the `public/` directory.
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
npm run build
npm start
```
| 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 |
## Project Structure
## 👀 Want to learn more?
```
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.
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
+3
View File
@@ -0,0 +1,3 @@
# Ignore all files in backup folder
*
!.gitignore
File renamed without changes.
-1
View File
@@ -1 +0,0 @@
.node-version
-43
View File
@@ -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).
File diff suppressed because it is too large. Load diff
-16
View File
@@ -1,16 +0,0 @@
{
"name": "dealplustech-astro",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@tailwindcss/vite": "^4.2.1",
"astro": "^5.17.1",
"tailwindcss": "^4.2.1"
}
}
@@ -1,104 +0,0 @@
---
id: hdpe-pipe-advantages
title: "ข้อดีของท่อ HDPE ในงานระบบน้ำ ทำไมถึงเป็นตัวเลือกยอดนิยม"
excerpt: "ท่อ HDPE (High Density Polyethylene) เป็นท่อที่ได้รับความนิยมสูงในงานระบบน้ำ เนื่องจากความทนทานและความยืดหยุ่นที่เหนือกว่าท่อชนิดอื่น"
date: "2024-01-10"
author: "Deal Plus Tech"
categories: ["ท่อ HDPE", "ความรู้"]
featuredImage: "/images/2021/03/hdpe-pipe_000C.jpg"
---
## ท่อ HDPE คืออะไร?
ท่อ HDPE (High Density Polyethylene) หรือท่อเอชดีพีอี เป็นท่อที่ผลิตจากโพลิเอทิลีนความหนาแน่นสูง เป็นวัสดุพลาสติกที่มีความแข็งแรงและทนทานเป็นอย่างมาก
## ข้อดีของท่อ HDPE
### 1. ความยืดหยุ่นสูง
ท่อ HDPE สามารถโค้งงอได้ถึง 45 องศา ทำให้เหมาะสำหรับพื้นที่ติดตั้งจำกัด และสามารถรองรับการเคลื่อนไหวของดินได้ดี
### 2. ทนทานต่อสารเคมี
ท่อ HDPE ทนทานต่อการกัดกร่อนของสารเคมี กรด และด่าง ทำให้เหมาะสำหรับงานอุตสาหกรรม
### 3. อายุการใช้งานยาวนาน
ท่อ HDPE มีอายุการใช้งานมากกว่า 50 ปี เมื่อติดตั้งและใช้งานอย่างถูกต้อง
### 4. น้ำหนักเบา
ท่อ HDPE มีน้ำหนักเบากว่าท่อโลหะ ทำให้ง่ายต่อการขนส่งและติดตั้ง
### 5. การเชื่อมต่อที่แน่นหนา
การเชื่อมท่อ HDPE ด้วยวิธี Butt Fusion ทำให้ท่อเชื่อมต่อกันเป็นเนื้อเดียว ไม่มีรอยต่อ ป้องกันการรั่วซึม
### 6. ปลอดภัยต่อสุขภาพ
ท่อ HDPE ไม่เป็นสนิม ไม่ปล่อยสารพิษ ปลอดภัยสำหรับน้ำดื่ม
## การใช้งานท่อ HDPE
### งานประปา
- ท่อส่งน้ำประปา
- ระบบประปาในบ้านเรือน
- ระบบประปาในอาคาร
### งานเกษตร
- ระบบน้ำหยด
- ระบบสปริงเกลอร์
- ระบบน้ำเพื่อการเกษตร
### งานอุตสาหกรรม
- ท่อส่งสารเคมี
- ระบบบำบัดน้ำเสีย
- งานโรงงานอุตสาหกรรม
### งานโครงสร้างพื้นฐาน
- งานท่อใต้ดิน
- ท่อร้อยสายไฟ
- งานสาธารณูปโภค
## ขนาดท่อ HDPE ที่นิยมใช้
| ขนาด (มม.) | การใช้งาน |
|------------|-----------|
| 16-32 | งานประปาภายในบ้าน |
| 40-63 | งานประปาอาคารขนาดเล็ก |
| 75-110 | งานประปาอาคารขนาดใหญ่ |
| 125-315 | งานท่อส่งน้ำหลัก |
| 355-1200 | งานโครงสร้างพื้นฐาน |
## เกรดของท่อ HDPE
### PE80
- เหมาะสำหรับงานทั่วไป
- ทนแรงดันสูงสุด 8 MPa
### PE100
- เหมาะสำหรับงานที่ต้องการความแข็งแรงสูง
- ทนแรงดันสูงสุด 10 MPa
- เป็นเกรดที่นิยมใช้ในปัจจุบัน
## การติดตั้งท่อ HDPE
### วิธี Butt Fusion
1. ตัดท่อให้ตรง
2. ทำความสะอาดผิวท่อ
3. ใช้เครื่องเชื่อมท่อ HDPE
4. ให้ความร้อนจนผิวท่อละลาย
5. กดท่อเข้าด้วยกัน
6. รอให้เย็นตัวลง
### วิธี Electrofusion
1. ใช้ข้อต่อแบบ Electrofusion
2. เสียบปลั๊กไฟเข้ากับข้อต่อ
3. รอจนกระบวนการเชื่อมเสร็จสิ้น
## สรุป
ท่อ HDPE เป็นตัวเลือกที่ยอดเยี่ยมสำหรับงานระบบน้ำ เนื่องจากมีความทนทาน ความยืดหยุ่น และอายุการใช้งานที่ยาวนาน ไม่ว่าจะเป็นงานประปา งานเกษตร หรืองานอุตสาหกรรม ท่อ HDPE สามารถตอบโจทย์ได้ทุกการใช้งาน
---
**สนใจสินค้าท่อ HDPE?**
ติดต่อเราได้ที่:
- โทร: 090-555-1415
- LINE: jppselection
[ดูสินค้าท่อ HDPE ทั้งหมด](/ท่อhdpe)
@@ -1,80 +0,0 @@
---
id: ppr-pipe-guide
title: "ท่อ PPR คืออะไร? คู่มือฉบับสมบูรณ์สำหรับการเลือกใช้งาน"
excerpt: "ท่อ PPR (Polypropylene Random Copolymer) เป็นท่อพลาสติกที่ได้รับความนิยมสูงในการใช้งานระบบประปา บทความนี้จะอธิบายทุกสิ่งที่คุณต้องรู้เกี่ยวกับท่อ PPR"
date: "2024-01-15"
author: "Deal Plus Tech"
categories: ["ท่อ PPR", "ความรู้", "คู่มือ"]
featuredImage: "/images/2021/03/ppr-pipe_000C.jpg"
---
## ท่อ PPR คืออะไร?
ท่อ PPR (Polypropylene Random Copolymer) หรือท่อพีพีอาร์ เป็นท่อพลาสติกที่ผลิตจากเม็ดพลาสติก PP-R 80 (Polypropylene Random Copolymer 80) ซึ่งเป็นวัสดุพลาสติกคุณภาพสูงที่มีความแข็งแรงและทนทานเป็นอย่างดี
## ข้อดีของท่อ PPR
### 1. ทนแรงดันและอุณหภูมิสูง
ท่อ PPR สามารถทนแรงดันได้สูงถึง 20 บาร์ และทนต่ออุณหภูมิได้สูงถึง 95°C ทำให้เหมาะสำหรับใช้งานทั้งระบบน้ำเย็นและน้ำร้อน
### 2. สะอาดและปลอดภัย
ท่อ PPR ไม่เป็นสนิม ปราศจากโลหะหนักและสิ่งปนเปื้อน ทำให้น้ำที่ไหลผ่านสะอาดและปลอดภัยต่อการบริโภค
### 3. อายุการใช้งานยาวนาน
ด้วยคุณสมบัติที่ทนทาน ท่อ PPR มีอายุการใช้งานยาวนานกว่า 50 ปี
### 4. ติดตั้งง่าย
การเชื่อมต่อท่อ PPR ใช้วิธีเชื่อมด้วยความร้อน ทำให้ท่อและข้อต่อเป็นเนื้อเดียวกัน ไม่มีปัญหารั่วซึม
### 5. ประหยัดพลังงาน
ท่อ PPR เป็นฉนวนกันความร้อนที่ดี ช่วยรักษาอุณหภูมิของน้ำได้ดีกว่าท่อโลหะ
## การเลือกท่อ PPR ที่เหมาะสม
### ขนาดท่อ
เลือกขนาดท่อให้เหมาะสมกับปริมาณน้ำที่ต้องการใช้งาน:
- ท่อขนาด 20-25 มม. เหมาะสำหรับบ้านเรือนทั่วไป
- ท่อขนาด 32-63 มม. เหมาะสำหรับอาคารขนาดใหญ่
### เกรดของท่อ
- **PN10** - สำหรับน้ำเย็น ทนแรงดัน 10 บาร์
- **PN16** - สำหรับน้ำอุ่น ทนแรงดัน 16 บาร์
- **PN20** - สำหรับน้ำร้อน ทนแรงดัน 20 บาร์
## การติดตั้งท่อ PPR
### ขั้นตอนการเชื่อมท่อ
1. ตัดท่อให้ตรงและเรียบ
2. ทำความสะอาดผิวท่อและข้อต่อ
3. ใช้เครื่องเชื่อมท่ออุณหภูมิ 260°C
4. สอดท่อและข้อต่อเข้าด้วยกัน
5. รอให้เย็นตัวลงประมาณ 2-3 นาที
### ข้อควรระวัง
- หลีกเลี่ยงการติดตั้งในพื้นที่ที่มีแสงแดดโดยตรง
- ควรทิ้งระยะห่างสำหรับการขยายตัวของท่อ
- ตรวจสอบความร้อนของเครื่องเชื่อมก่อนใช้งาน
## ท่อ PPR ตราช้าง
ท่อ PPR ตราช้าง เป็นท่อ PPR คุณภาพสูงที่ผลิตจากเม็ดพลาสติก PP-R 80 วัตถุดิบคุณภาพสูงมาตรฐานยุโรปจาก lyondellbasell
**คุณสมบัติเด่น:**
- ทนแรงดันได้สูงสุด 20 บาร์
- ทนต่ออุณหภูมิได้สูงถึง 95°C
- ผลิตตามมาตรฐาน DIN8077 และ DIN8078 ของประเทศเยอรมัน
- รับประกันคุณภาพ
## สรุป
ท่อ PPR เป็นตัวเลือกที่ดีสำหรับระบบประปาในปัจจุบัน เนื่องจากมีความทนทานสูง ติดตั้งง่าย และมีอายุการใช้งานยาวนาน หากคุณกำลังมองหาท่อสำหรับงานระบบน้ำ ท่อ PPR เป็นตัวเลือกที่คุ้มค่าและเหมาะสม
---
**สนใจสินค้าท่อ PPR?**
ติดต่อเราได้ที่:
- โทร: 090-555-1415
- LINE: jppselection
- อีเมล: dealplustech@gmail.com
[ดูสินค้าท่อ PPR ทั้งหมด](/ท่อพีพีอาร์ตราช้าง)
@@ -1,126 +0,0 @@
---
id: water-pump-maintenance
title: "การบำรุงรักษาปั๊มน้ำให้มีอายุการใช้งานยาวนาน"
excerpt: "ปั๊มน้ำเป็นอุปกรณ์สำคัญในระบบน้ำทุกบ้าน การบำรุงรักษาที่ถูกต้องจะช่วยยืดอายุการใช้งานและประหยัดค่าไฟฟ้า"
date: "2024-01-05"
author: "Deal Plus Tech"
categories: ["ปั๊มน้ำ", "บำรุงรักษา", "เคล็ดลับ"]
featuredImage: "/images/2021/02/Water-Pump1.jpg"
---
## ความสำคัญของการบำรุงรักษาปั๊มน้ำ
ปั๊มน้ำเป็นหัวใจของระบบน้ำในบ้าน การบำรุงรักษาอย่างสม่ำเสมอจะช่วย:
- ยืดอายุการใช้งานของปั๊มน้ำ
- ลดปัญหาการเสีย
- ประหยัดค่าไฟฟ้า
- ป้องกันอุบัติเหตุจากการรั่วซึม
## การบำรุงรักษาปั๊มน้ำแบบทำเอง
### 1. ตรวจสอบสายไฟและสวิตช์
- ตรวจสอบสายไฟว่ามีรอยชำรุดหรือไม่
- ตรวจสอบสวิตช์ว่าทำงานปกติหรือไม่
- หากพบความผิดปกติควรเรียกช่าง
### 2. ทำความสะอาดตัวกรอง
- ปิดวาล์วน้ำเข้าก่อนทำความสะอาด
- ถอดตัวกรองออกมาล้าง
- ตรวจสอบว่ามีสิ่งปนเปื้อนหรือไม่
- ติดตั้งกลับเข้าที่เดิม
### 3. ตรวจสอบแรงดันน้ำ
- สังเกตแรงดันน้ำว่าลดลงหรือไม่
- ตรวจสอบว่ามีเสียงผิดปกติหรือไม่
- หากแรงดันลดลงอาจมีการรั่วซึม
### 4. ตรวจสอบถังแรงดัน (Pressure Tank)
- ตรวจสอบว่าถังมีอากาศเพียงพอหรือไม่
- หากปั๊มเปิด-ปิดบ่อยผิดปกติ อาจต้องเติมอากาศ
- ควรตรวจสอบทุก 6 เดือน
## ปัญหาที่พบบ่อยและวิธีแก้ไข
### ปั๊มไม่ทำงาน
**สาเหตุ:**
- ไฟดับหรือสายไฟขาด
- สวิตช์เสีย
- มอเตอร์เสีย
**วิธีแก้:**
- ตรวจสอบไฟและสายไฟ
- เปลี่ยนสวิตช์
- เรียกช่างซ่อมมอเตอร์
### แรงดันน้ำต่ำ
**สาเหตุ:**
- ตัวกรองอุดตัน
- ท่อรั่ว
- ใบพัดสึกหรอ
**วิธีแก้:**
- ทำความสะอาดตัวกรอง
- ตรวจสอบและซ่อมท่อ
- เปลี่ยนใบพัด
### ปั๊มเปิด-ปิดบ่อย
**สาเหตุ:**
- ถังแรงดันอากาศรั่ว
- แผ่นไดอะแฟรมแตก
- วาล์วตรวจสอบแรงดันเสีย
**วิธีแก้:**
- เติมอากาศในถัง
- เปลี่ยนแผ่นไดอะแฟรม
- เปลี่ยนวาล์ว
### ปั๊มมีเสียงดังผิดปกติ
**สาเหตุ:**
- ลูกปืนเสีย
- ใบพัดชำรุด
- การติดตั้งไม่แน่นหนา
**วิธีแก้:**
- เปลี่ยนลูกปืน
- เปลี่ยนใบพัด
- ตรวจสอบการยึดแน่น
## ตารางการบำรุงรักษา
| รายการ | ความถี่ | หมายเหตุ |
|--------|---------|----------|
| ตรวจสอบสายไฟ | ทุกเดือน | มองหารอยชำรุด |
| ทำความสะอาดตัวกรอง | ทุก 3 เดือน | หรือเมื่อแรงดันลด |
| ตรวจสอบถังแรงดัน | ทุก 6 เดือน | เติมอากาศหากจำเป็น |
| ตรวจสอบสวิตช์ | ทุกปี | เปลี่ยนหากเสีย |
| ตรวจสอบใบพัด | ทุก 2 ปี | โดยช่างผู้เชี่ยวชาญ |
## เคล็ดลับการใช้งานปั๊มน้ำ
### ประหยัดไฟฟ้า
- เลือกขนาดปั๊มที่เหมาะสมกับการใช้งาน
- ติดตั้งถังแรงดันขนาดเหมาะสม
- หลีกเลี่ยงการเปิด-ปิดปั๊มบ่อย
### ป้องกันปัญหา
- อย่าให้ปั๊มแห้ง (ทำงานโดยไม่มีน้ำ)
- ตรวจสอบรอยรั่วอย่างสม่ำเสมอ
- ใช้ตัวกรองเพื่อป้องกันสิ่งสกปรก
### เมื่อต้องเปลี่ยนปั๊ม
- เลือกปั๊มที่มีคุณภาพ
- พิจารณาขนาดและกำลังที่เหมาะสม
- ติดตั้งโดยช่างผู้เชี่ยวชาญ
## สรุป
การบำรุงรักษาปั๊มน้ำอย่างสม่ำเสมอจะช่วยยืดอายุการใช้งาน ลดปัญหาการเสีย และประหยัดค่าใช้จ่ายในระยะยาว ควรตรวจสอบและบำรุงรักษาตามตารางที่กำหนด และหากพบปัญหาที่ไม่สามารถแก้ไขได้เอง ควรติดต่อช่างผู้เชี่ยวชาญ
---
**ต้องการซื้อปั๊มน้ำหรืออุปกรณ์เสริม?**
ติดต่อเราได้ที่:
- โทร: 090-555-1415
- LINE: jppselection
[ดูสินค้าปั๊มน้ำทั้งหมด](/ปั๊มน้ำ-pump)
File diff suppressed because it is too large. Load diff
-42
View File
@@ -1,42 +0,0 @@
// Utility functions migrated from Next.js
/**
* Combines class names conditionally (like clsx + tailwind-merge)
*/
export function cn(...classes: Array<string | false | null | undefined>): string {
return classes.filter(Boolean).join(' ');
}
/**
* Format price in Thai Baht
*/
export function formatPrice(price: number): string {
return new Intl.NumberFormat('th-TH', {
style: 'currency',
currency: 'THB',
}).format(price);
}
/**
* Format date to Thai locale
*/
export function formatDateThai(date: Date | string): string {
return new Intl.DateTimeFormat('th-TH', {
year: 'numeric',
month: 'long',
day: 'numeric',
}).format(new Date(date));
}
/**
* Generate slug from Thai text
*/
export function generateSlug(text: string): string {
return text
.toLowerCase()
.replace(/\s+/g, '-')
.replace(/[^\w-]+/g, '')
.replace(/--+/g, '-')
.replace(/^-+/, '')
.replace(/-+$/, '');
}
-5
View File
@@ -1,5 +0,0 @@
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 749 B

After

Width:  |  Height:  |  Size: 749 B

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 10383 files, more files were not shown because too many files have changed in this diff. Show more