This commit introduces a web-based admin UI to manage the store's status, backed by a simple Node.js/Express server for file writing. Key features: - **Admin UI (, ):** A form to update the scrolling message and closed status. It provides a user-friendly experience with loading states, in-page feedback, and change detection. - **Node.js Backend ():** A simple Express server that serves the static site and provides a endpoint. This endpoint receives data from the admin UI, authenticates it, and writes it to . - **Enhanced Security:** The password is no longer hardcoded in the client-side JavaScript. Authentication is handled server-side, and the password is read from a file for local development or an environment variable in production. - **Project Setup (, ):** The project is now a formal Node.js project with dependencies (, , ) and a file to exclude .
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Dependencies
|
|
/node_modules
|
|
|
|
# Logs
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
lerna-debug.log*
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
|
|
# IDEs and editors
|
|
.idea
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/tasks.json
|
|
!.vscode/launch.json
|
|
!.vscode/extensions.json
|
|
*.sublime-workspace
|
|
|
|
# Misc
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
/assets/pics/gallery/centerpiece/ │
|
|
/assets/pics/gallery/sculpture/ │
|
|
/assets/pics/gallery/classic/ │
|
|
/assets/pics/gallery/organic/ │
|
|
gallery/centerpiece/index.html │
|
|
gallery/organic/index.html │
|
|
gallery/classic/index.html │
|
|
gallery/sculpture/index.html |