✅ 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:
90
dealplustech-astro/node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_encode.js
generated
vendored
Normal file
90
dealplustech-astro/node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_encode.js
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Batch = exports.Stmt = void 0;
|
||||
const util_js_1 = require("../util.js");
|
||||
function Stmt(w, msg) {
|
||||
if (msg.sql !== undefined) {
|
||||
w.string(1, msg.sql);
|
||||
}
|
||||
if (msg.sqlId !== undefined) {
|
||||
w.int32(2, msg.sqlId);
|
||||
}
|
||||
for (const arg of msg.args) {
|
||||
w.message(3, arg, Value);
|
||||
}
|
||||
for (const arg of msg.namedArgs) {
|
||||
w.message(4, arg, NamedArg);
|
||||
}
|
||||
w.bool(5, msg.wantRows);
|
||||
}
|
||||
exports.Stmt = Stmt;
|
||||
function NamedArg(w, msg) {
|
||||
w.string(1, msg.name);
|
||||
w.message(2, msg.value, Value);
|
||||
}
|
||||
function Batch(w, msg) {
|
||||
for (const step of msg.steps) {
|
||||
w.message(1, step, BatchStep);
|
||||
}
|
||||
}
|
||||
exports.Batch = Batch;
|
||||
function BatchStep(w, msg) {
|
||||
if (msg.condition !== undefined) {
|
||||
w.message(1, msg.condition, BatchCond);
|
||||
}
|
||||
w.message(2, msg.stmt, Stmt);
|
||||
}
|
||||
function BatchCond(w, msg) {
|
||||
if (msg.type === "ok") {
|
||||
w.uint32(1, msg.step);
|
||||
}
|
||||
else if (msg.type === "error") {
|
||||
w.uint32(2, msg.step);
|
||||
}
|
||||
else if (msg.type === "not") {
|
||||
w.message(3, msg.cond, BatchCond);
|
||||
}
|
||||
else if (msg.type === "and") {
|
||||
w.message(4, msg.conds, BatchCondList);
|
||||
}
|
||||
else if (msg.type === "or") {
|
||||
w.message(5, msg.conds, BatchCondList);
|
||||
}
|
||||
else if (msg.type === "is_autocommit") {
|
||||
w.message(6, undefined, Empty);
|
||||
}
|
||||
else {
|
||||
throw (0, util_js_1.impossible)(msg, "Impossible type of BatchCond");
|
||||
}
|
||||
}
|
||||
function BatchCondList(w, msg) {
|
||||
for (const cond of msg) {
|
||||
w.message(1, cond, BatchCond);
|
||||
}
|
||||
}
|
||||
function Value(w, msg) {
|
||||
if (msg === null) {
|
||||
w.message(1, undefined, Empty);
|
||||
}
|
||||
else if (typeof msg === "bigint") {
|
||||
w.sint64(2, msg);
|
||||
}
|
||||
else if (typeof msg === "number") {
|
||||
w.double(3, msg);
|
||||
}
|
||||
else if (typeof msg === "string") {
|
||||
w.string(4, msg);
|
||||
}
|
||||
else if (msg instanceof Uint8Array) {
|
||||
w.bytes(5, msg);
|
||||
}
|
||||
else if (msg === undefined) {
|
||||
// do nothing
|
||||
}
|
||||
else {
|
||||
throw (0, util_js_1.impossible)(msg, "Impossible type of Value");
|
||||
}
|
||||
}
|
||||
function Empty(_w, _msg) {
|
||||
// do nothing
|
||||
}
|
||||
Reference in New Issue
Block a user