feat: Add complete PDPA compliance pages
- Admin dashboard (/admin/consent-logs) with password auth - Consent API (/api/consent) with SQLite + IP hashing - Privacy Policy (Thai) - PDPA Section 36 compliant - Terms & Conditions (Thai) - 9 standard clauses - .env.example template with Umami placeholder All pages preserve current design system.
This commit is contained in:
30
dealplustech-astro/node_modules/@libsql/hrana-client/lib-cjs/queue.js
generated
vendored
Normal file
30
dealplustech-astro/node_modules/@libsql/hrana-client/lib-cjs/queue.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Queue = void 0;
|
||||
class Queue {
|
||||
#pushStack;
|
||||
#shiftStack;
|
||||
constructor() {
|
||||
this.#pushStack = [];
|
||||
this.#shiftStack = [];
|
||||
}
|
||||
get length() {
|
||||
return this.#pushStack.length + this.#shiftStack.length;
|
||||
}
|
||||
push(elem) {
|
||||
this.#pushStack.push(elem);
|
||||
}
|
||||
shift() {
|
||||
if (this.#shiftStack.length === 0 && this.#pushStack.length > 0) {
|
||||
this.#shiftStack = this.#pushStack.reverse();
|
||||
this.#pushStack = [];
|
||||
}
|
||||
return this.#shiftStack.pop();
|
||||
}
|
||||
first() {
|
||||
return this.#shiftStack.length !== 0
|
||||
? this.#shiftStack[this.#shiftStack.length - 1]
|
||||
: this.#pushStack[0];
|
||||
}
|
||||
}
|
||||
exports.Queue = Queue;
|
||||
Reference in New Issue
Block a user