✅ 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:
27
dealplustech-astro/node_modules/@astrojs/db/dist/runtime/errors.js
generated
vendored
Normal file
27
dealplustech-astro/node_modules/@astrojs/db/dist/runtime/errors.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import colors from "piccolore";
|
||||
const FOREIGN_KEY_DNE_ERROR = (tableName) => {
|
||||
return `Table ${colors.bold(
|
||||
tableName
|
||||
)} references a table that does not exist. Did you apply the referenced table to the \`tables\` object in your db config?`;
|
||||
};
|
||||
const FOREIGN_KEY_REFERENCES_LENGTH_ERROR = (tableName) => {
|
||||
return `Foreign key on ${colors.bold(
|
||||
tableName
|
||||
)} is misconfigured. \`columns\` and \`references\` must be the same length.`;
|
||||
};
|
||||
const FOREIGN_KEY_REFERENCES_EMPTY_ERROR = (tableName) => {
|
||||
return `Foreign key on ${colors.bold(
|
||||
tableName
|
||||
)} is misconfigured. \`references\` array cannot be empty.`;
|
||||
};
|
||||
const REFERENCE_DNE_ERROR = (columnName) => {
|
||||
return `Column ${colors.bold(
|
||||
columnName
|
||||
)} references a table that does not exist. Did you apply the referenced table to the \`tables\` object in your db config?`;
|
||||
};
|
||||
export {
|
||||
FOREIGN_KEY_DNE_ERROR,
|
||||
FOREIGN_KEY_REFERENCES_EMPTY_ERROR,
|
||||
FOREIGN_KEY_REFERENCES_LENGTH_ERROR,
|
||||
REFERENCE_DNE_ERROR
|
||||
};
|
||||
Reference in New Issue
Block a user