✅ Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
This commit is contained in:
22
dealplustech-astro/node_modules/promise-limit/example/example.ts
generated
vendored
Normal file
22
dealplustech-astro/node_modules/promise-limit/example/example.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as promiseLimit from '../'
|
||||
|
||||
const limit = promiseLimit<string>(2)
|
||||
var jobs = ['a', 'b', 'c', 'd', 'e']
|
||||
|
||||
Promise.all(jobs.map((name) => {
|
||||
return limit(() => job(name))
|
||||
})).then(results => {
|
||||
console.log('\nresults:', results)
|
||||
})
|
||||
|
||||
function job (name): Promise<string> {
|
||||
var text = `job ${name}`
|
||||
console.log('started', text)
|
||||
|
||||
return new Promise(function (resolve) {
|
||||
setTimeout(() => {
|
||||
console.log(' ', text, 'finished')
|
||||
resolve(text)
|
||||
}, 100)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user