Compare commits
4 Commits
0.1.0
...
e2d3d27587
| Author | SHA1 | Date | |
|---|---|---|---|
| e2d3d27587 | |||
| e45fe798dd | |||
| 07bd14b371 | |||
| 15ccd0ec82 |
17
.env
17
.env
@@ -1,17 +0,0 @@
|
|||||||
### Photon Environment Variables
|
|
||||||
PHOTON_PORT=8090
|
|
||||||
SHARE_DOMAIN=localhost:8080
|
|
||||||
USER_EMAIL=photon@jrdn.dev
|
|
||||||
SHARE_URL_SCHEME=http
|
|
||||||
DATA_PATH=./data
|
|
||||||
|
|
||||||
### Photon Worker Environment Variables
|
|
||||||
SCAN_RATE=10
|
|
||||||
|
|
||||||
### Database Environment Variables
|
|
||||||
MYSQL_HOST=db
|
|
||||||
MYSQL_DATABASE=photon
|
|
||||||
MYSQL_USER=photon
|
|
||||||
MYSQL_PASSWORD=changeme
|
|
||||||
MYSQL_ROOT_PASSWORD=pleasechangeme
|
|
||||||
|
|
||||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/data
|
||||||
|
/web
|
||||||
|
Dockerfile
|
||||||
102
README.md
102
README.md
@@ -6,4 +6,106 @@ To deploy Photon, use the included `docker-compose-example.yml`.
|
|||||||
|
|
||||||
Ensure you have a data folder that contains your screenshots. Current supported mimetypes are `JPG`, `PNG`, `GIF` and `MP4`.
|
Ensure you have a data folder that contains your screenshots. Current supported mimetypes are `JPG`, `PNG`, `GIF` and `MP4`.
|
||||||
|
|
||||||
|
```
|
||||||
|
services:
|
||||||
|
photon:
|
||||||
|
container_name: photon_dashboard
|
||||||
|
image: git.jrdn.dev/jordanwalster/photon-dashboard:latest
|
||||||
|
ports:
|
||||||
|
- 8090:80
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ./data
|
||||||
|
target: /var/www/html/data
|
||||||
|
bind:
|
||||||
|
propagation: rshared
|
||||||
|
environment:
|
||||||
|
ADMIN_DOMAIN: photon.jrdn.dev
|
||||||
|
SHARE_DOMAIN: ss.example.com
|
||||||
|
USER_EMAIL: me@example.com
|
||||||
|
```
|
||||||
|
|
||||||
|
There are additional environment variables that can be set to enable experimental features (defaults are set to false):
|
||||||
|
|
||||||
|
|
||||||
|
| Environment Variable | Values | Default | Description |
|
||||||
|
| -------------------- |:-----------------:|:-------:| ---------------------------------- |
|
||||||
|
| TAGS_ENABLED | `true` \| `false` | false | Enables the tagging functionality |
|
||||||
|
| SEARCH_ENABLED | `true` \| `false` | false | Enables screenshot search |
|
||||||
|
| PAGE_LIMIT | `int` | 24 | Override the default page limit |
|
||||||
|
| TRASH_ENABLED | `true` \| `false` | false | Enables the trash functionality |
|
||||||
|
|
||||||
You can find the container image history [here](https://git.jrdn.dev/jordanwalster/-/packages/container/photon-dashboard/versions).
|
You can find the container image history [here](https://git.jrdn.dev/jordanwalster/-/packages/container/photon-dashboard/versions).
|
||||||
|
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
## [v0.0.7] - 2025-01-29
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Empty trash button.
|
||||||
|
- Screenshot counter to sidebar.
|
||||||
|
- Trash counter to sidebar.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Expanded tags view persisting between page refreshes.
|
||||||
|
- Image names displaying the trash hash value when on trash page.
|
||||||
|
|
||||||
|
## [v0.0.6] - 2025-01-29
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Changelog URL set to Github changelog.md
|
||||||
|
- Deleted images hash separator
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Pagination layout issues [#10](https://git.jrdn.dev/jordanwalster/photon-dashboard/issues/10)
|
||||||
|
|
||||||
|
## [v0.0.5] - 2025-01-29
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Trash functionality to untagged images
|
||||||
|
- Permanent deletion functionality
|
||||||
|
- Configurable columns
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Padding at the bottom of the page is reduced to 35px from 50px.
|
||||||
|
|
||||||
|
## [v0.0.4] (The Tag Update) - 2025-01-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Update compose file to use bind mount.
|
||||||
|
- Delete tag button.
|
||||||
|
- Image tag pagination.
|
||||||
|
- Tagged Screenshots pages.
|
||||||
|
- Override for default page limit.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Bug where selected tags from a previous image wouldn't clear correctly after modal close.
|
||||||
|
|
||||||
|
## [v0.0.3] - 2025-01-27
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Filter buttons for mimetype.
|
||||||
|
- Tag attachment counter.
|
||||||
|
- Image tagging.
|
||||||
|
- Support for tag creation.
|
||||||
|
|
||||||
|
|
||||||
|
## [v0.0.2] - 2025-01-26
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Gravatar profile pictures.
|
||||||
|
- Download image function.
|
||||||
|
- Flags for disabling incomplete functions (search, tagging).
|
||||||
|
|
||||||
|
## [v0.0.1] - 2025-01-25
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Image format labels to dashboard.
|
||||||
|
- Rename image function.
|
||||||
|
- Copy link to clipboard function.
|
||||||
|
- A changelog to document changes.
|
||||||
|
|||||||
54
changelog.md
54
changelog.md
@@ -2,58 +2,6 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## [v0.1.0] - 2025-04-27
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- Sharing URL Scheme set to `https` regardless of setting in environment variables.
|
|
||||||
- Search not clearing the first two characters after emptying search field.
|
|
||||||
- Error handing for existing tag names.
|
|
||||||
- Double click bug on modals.
|
|
||||||
- Permanently deleting images did not remove from db
|
|
||||||
- Pagination on tagged pages showed in the corner.
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
- Upgraded to PHP 8.
|
|
||||||
- Database engine now using MySQL.
|
|
||||||
- Mandatory setting for admin url removed.
|
|
||||||
|
|
||||||
### Added
|
|
||||||
- Search by image content using OCR via worker container.
|
|
||||||
- Button for applying actions to multiple images at a time.
|
|
||||||
- Automatic migration tool for SQLite to MySQL
|
|
||||||
- Tag not found page for nonexistent tags.
|
|
||||||
- Custom time zone environment variable.
|
|
||||||
- Form validation using JS for frontend.
|
|
||||||
- Messaging for no OCR table.
|
|
||||||
- Icons on context menu.
|
|
||||||
|
|
||||||
## [v0.0.9] - 2025-04-21
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- Occasional redirection to a previous page when deleting or restoring images.
|
|
||||||
- Assign tags field remembers existing tags.
|
|
||||||
- Allowing removal of tags from an image.
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
- Pages no longer use query strings and instead use paths.
|
|
||||||
- Tags now replace spaces with dashes.
|
|
||||||
- Search, Tags and Trash now enabled by default.
|
|
||||||
- File format shown in badge.
|
|
||||||
- Links are now path based instead of query string based.
|
|
||||||
|
|
||||||
### Added
|
|
||||||
- Introduced search functionality.
|
|
||||||
- Rename tag button.
|
|
||||||
- Restore all button for trashed images.
|
|
||||||
|
|
||||||
## [v0.0.8] - 2025-01-30
|
|
||||||
|
|
||||||
### Added
|
|
||||||
- Support for displaying images with `.jpeg` extension in addition to `.jpg`.
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- Some tags elements attempting to load when `TAGS_ENABLED` set to false.
|
|
||||||
|
|
||||||
## [v0.0.7] - 2025-01-29
|
## [v0.0.7] - 2025-01-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@@ -84,7 +32,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Changed
|
### Changed
|
||||||
- Padding at the bottom of the page is reduced to 35px from 50px.
|
- Padding at the bottom of the page is reduced to 35px from 50px.
|
||||||
|
|
||||||
## [v0.0.4] - 2025-01-28
|
## [v0.0.4] (The Tag Update) - 2025-01-28
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|||||||
@@ -2,38 +2,17 @@ services:
|
|||||||
photon:
|
photon:
|
||||||
container_name: photon_dashboard
|
container_name: photon_dashboard
|
||||||
image: git.jrdn.dev/jordanwalster/photon-dashboard:latest
|
image: git.jrdn.dev/jordanwalster/photon-dashboard:latest
|
||||||
|
ports:
|
||||||
|
- 8090:80
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/www/html/db # Only required if migrating from SQLite
|
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ${DATA_PATH}
|
source: ./data
|
||||||
target: /var/www/html/data
|
target: /var/www/html/data
|
||||||
bind:
|
bind:
|
||||||
propagation: rshared
|
propagation: rshared
|
||||||
ports:
|
environment:
|
||||||
- ${PHOTON_PORT:-8090}:80
|
ADMIN_DOMAIN: photon.jrdn.dev
|
||||||
env_file:
|
SHARE_DOMAIN: ss.example.com
|
||||||
- .env
|
USER_EMAIL: me@example.com
|
||||||
web:
|
TAGS_ENABLED: false
|
||||||
container_name: public_web
|
SEARCH_ENABLED: false
|
||||||
image: nginx
|
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
volumes:
|
|
||||||
- ${DATA_PATH}:/usr/share/nginx/html:ro
|
|
||||||
worker:
|
|
||||||
container_name: photon_worker
|
|
||||||
image: git.jrdn.dev/jordanwalster/photon-worker:latest
|
|
||||||
volumes:
|
|
||||||
- ${DATA_PATH}:/var/www/html/data
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
db:
|
|
||||||
container_name: photon_db
|
|
||||||
image: mariadb
|
|
||||||
volumes:
|
|
||||||
- db:/var/lib/mysql
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
db:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user