diff --git a/.gitignore b/.gitignore index 26a9c88..003c518 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ Thumbs.db .vscode/ .idea/ +/node_modules diff --git a/TODO.md b/TODO.md index 736dd05..c3ac07f 100644 --- a/TODO.md +++ b/TODO.md @@ -12,3 +12,4 @@ - [x] Delete public/admin/pages-edit.php - [x] Delete public/admin/actions/page.php - [x] Update storage/schema.sql with apropos_contents table + trigger +- [x] Rework system.php/system.js: replace custom fetch() JS with HTMX, inline onclick for copy + collapse diff --git a/package.json b/package.json new file mode 100644 index 0000000..2ccef6f --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "posterg", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "vendor": "cp node_modules/htmx.org/dist/htmx.min.js public/assets/js/htmx.min.js" + }, + "keywords": [], + "author": "", + "license": "ISC", + "packageManager": "pnpm@10.33.0", + "dependencies": { + "htmx.org": "^2.0.8" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..8e4568f --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,22 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + htmx.org: + specifier: ^2.0.8 + version: 2.0.8 + +packages: + + htmx.org@2.0.8: + resolution: {integrity: sha512-fm297iru0iWsNJlBrjvtN7V9zjaxd+69Oqjh4F/Vq9Wwi2kFisLcrLCiv5oBX0KLfOX/zG8AUo9ROMU5XUB44Q==} + +snapshots: + + htmx.org@2.0.8: {} diff --git a/public/admin/system-fragment.php b/public/admin/system-fragment.php index 30b50eb..131a5fc 100644 --- a/public/admin/system-fragment.php +++ b/public/admin/system-fragment.php @@ -77,7 +77,8 @@ if ($tab === 'nginx_config') {