- Added role-based access control for user management links in admin navigation. - Improved user account display with a dedicated account link. - Implemented form submission confirmation for delete actions in the admin interface. - Introduced a password visibility toggle on the login page. - Added login throttling to prevent brute-force attacks, recording failed attempts. - Created a CLI script for creating an admin user, replacing the previous hardcoded admin credentials. - Updated database schema to support login attempt tracking. - Enhanced user editing functionality, allowing role changes with restrictions. - Improved modal handling for user actions, ensuring better focus management. - Added styles for new account management page and improved modal transitions.
28 lines
952 B
JSON
28 lines
952 B
JSON
{
|
|
"name": "theoldfitz",
|
|
"version": "1.0.0",
|
|
"description": "The Old Fitz Public House website",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "concurrently --kill-others-on-fail \"npm:dev:php\" \"npm:dev:sass\" \"npm:dev:browser\"",
|
|
"dev:php": "php -S localhost:8000",
|
|
"dev:sass": "sass --watch --source-map src/scss/styles.scss:styles.css",
|
|
"dev:browser": "browser-sync start --proxy http://localhost:8000 --files \"*.php,admin/**/*.php,inc/**/*.php,main.js,styles.css\" --no-open --no-ui",
|
|
"build:sass": "sass --no-source-map src/scss/styles.scss:styles.css",
|
|
"dist": "npm run build:sass && node scripts/build-dist.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.home.daviddyer.me/david/the-old-fitz.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"type": "commonjs",
|
|
"devDependencies": {
|
|
"browser-sync": "^3.0.4",
|
|
"concurrently": "^10.0.5",
|
|
"sass": "^1.103.1"
|
|
}
|
|
}
|