Commit Graph

589 Commits

Author SHA1 Message Date
Kostiantyn
a8edb30ae4 Refactor Docker build workflows (#1221)
* Initial implementation

* Multiple fixes and improvemens

* Better `curl` retries timing

* Remove unused `TARGETOS` and `TARGETVARIANT` vars; add the version fetch fallback code to the build scripts

* Move the fallback code before the var usage

* Use double braces to make the code compatible with the `set -u`

---------

Co-authored-by: Konstantin Koval
2025-06-26 11:58:50 +03:00
marc7s
1d1305628a Add multiple face group merge support (#1162)
* Migrate multiple merge faces code from merge-multiple branch

* Revert translations

* Remove unnecessary node

* Add aria labels

* Code review changes

* Add frontend test for MergeFaceGroupsModal
2025-06-07 10:21:02 +03:00
Googol Lee
fe3cc16026 Remove Thumbnail Preferences. (#1200)
* Remove thumbnail preferences. #1089

* Remove thumbnail preferences test.

* Remove thumbnail preferences from backend.

* Fix database.go

* Update generated TS files.

* Reorder the migrations.
2025-05-11 10:44:58 +02:00
Peter Dave Hello
cda043ddb8 Add a basic zh-TW Traditional Chinese translation (#1187) 2025-04-22 19:09:49 +03:00
Googol Lee
ce68c25f45 Update apollo config to fix genSchemaTypes (#1154) 2025-01-09 19:51:39 +01:00
Kostiantyn
6c020cc1f9 Enhance Codecov integration (#1136)
* Define sub-projects and set coverage threshold for failure in the `codecov.yml`; make both test execution engines to generate also JUnit reports; upload these JUnit reports to Codecov for analysis

* Fix UI Vite config and add more details to the API is-generated-code script

* Add API JUnit report file to `.gitignore`

* Fix the copy issue by mounting the volume

* put the exact report name to the `docker cp` command

* Added `set -euxo pipeline` to the `test_api_coverage.sh` script; try to fix the missing report issue by setting immutable flag and report directoty

* Revert `chattr` and `set` commands, as they cause errors

* debug

* put the filename of the JUnit report to upload

* `set -euxo pipefail` in `scripts/test_api_coverage.sh`

---------

Co-authored-by: Konstantin Koval
2024-11-25 16:25:38 +02:00
Michał
21bf945aeb Capitalize Polish language label for consistency in language preferences (#1119) 2024-11-12 09:42:13 +02:00
Kostiantyn
87acd54291 Fix ESLint step in CI - part 2 (#1086)
* Run ESLint inside the testing container

* Switch to `docker exec` as the container is still alive after the testing

* Get back to `docker run`, as `exec` doesn't work for stopped containers

* Add missing ESLint plugin for React

* And 1 more missing plugin

* Add missing command to copy the report

* Set `$PHOTOVIEW_LISTEN_IP` to "0.0.0.0" as it has to accept connections from outside and from the healthcheck in localhost

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-10-04 11:56:17 +02:00
Kostiantyn
ff009a6ae6 Set $NODE_ENV according to the image purpose during Docker build (#1088)
* Set $NODE_ENV according to the image purpose during Docker build

* Move `husky` from dev-deps to prod-deps, as it is used during prod `npm ci`

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-10-04 11:20:49 +02:00
Kostiantyn
7057643b5d Fix ESLint step in UI testing job and add CodeCov tokens (#1084)
* Add missing script line back to the `package.json`

* Set CodeCov token for coverage upload steps

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-10-03 18:03:50 +02:00
Googol Lee
bdae9a67ce Add Set up Docker development environment in README.md (#997) 2024-07-23 21:56:30 +02:00
dependabot[bot]
7559a609aa Bump the npm_and_yarn group across 1 directory with 4 updates (#991)
Bumps the npm_and_yarn group with 4 updates in the /ui directory: [postcss](https://github.com/postcss/postcss), [braces](https://github.com/micromatch/braces), [ejs](https://github.com/mde/ejs) and [ws](https://github.com/websockets/ws).


Updates `postcss` from 8.4.38 to 8.4.39
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.38...8.4.39)

Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

Updates `ejs` from 3.1.8 to 3.1.10
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.8...v3.1.10)

Updates `ws` from 7.5.6 to 7.5.10
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.6...7.5.10)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: braces
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: ejs
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: ws
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 19:29:42 +03:00
Googol Lee
2f8f01b6d3 Add nodemon for ui developing. 2024-07-07 10:05:26 +02:00
Kostiantyn
cd8d086429 Fix missing space and word duplication (#964)
Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-06-17 13:27:05 +01:00
David Valdez
7c7089e320 Fix download path on custom base path (#889)
Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-05-20 11:31:53 +01:00
Jordan Hellier
f900d55300 Fix audit issues in production (#933)
* chore: upgrade api dependencies to latest compatible version

* chore: update ui dependencies first pass

* chore: migrate ui dependency to latests

Migrates i18next-parser from 6.x -> 8.x per documentation

* chore: add missing tools file

* chore: regenerate files

* chore: fix docker build from incorrect depedency

bookworms latest stable version of libheif-dev is 1.15.1
2024-04-11 22:21:08 +01:00
Connor
896cd1c2fe Remove login page non-empty password requirement (#828)
* Remove login page non-empty password requirement

* Remove required property from password register
2024-04-08 07:22:50 +01:00
Dorian
87365c1a62 feat: complete PL translation (#909) 2024-03-29 21:07:41 +00:00
Davide Cavestro
b8504c47be Fix UI not serving media and tests expecting localhost:3000 as base URL (#874)
* fix UI tests expecting localhost:3000 as base URL

* fix: avoid prefixing UI domain when serving media URLs
2024-03-29 15:49:50 +02:00
Konstantin
a90f30391c Add Ukrainian translation (#875) 2024-03-24 22:42:44 +01:00
Davide Cavestro
1e981339a0 Update italian translation (#873)
Add missing labels
2024-03-24 20:25:04 +02:00
4ich
aed0a17166 update german translation
fixing my mistake on timeline year selector
missing label for share/password protection and expiration,
missing label for thumbnail settings ...
2023-05-06 17:35:48 +02:00
4ich
fe4e2ffc06 Updated Translation for German
i'm hoping i got all the fields filled, where the german translation was missing. 
i also found a spelling mistage  in the password reset dialogue and a "usernamevar" wich is not yet used.
2023-05-06 15:27:44 +02:00
David Valdez
efda44a20b Fix case of double slash 2023-04-30 17:17:59 -05:00
David Valdez
18c9acfa81 Merge branch 'dev' of github.com:djvaldez/photoview into fix-custom-basepath 2023-04-29 20:38:28 -05:00
David Valdez
170f1ac59c Fix for login URL 2023-04-30 01:37:36 +00:00
David Valdez
d8bb69bbba Remove hardcoded basepath 2023-04-29 20:36:07 -05:00
David Valdez
31f1810e5e Add support for custom base path to URL generator 2023-04-26 04:41:08 +00:00
David Valdez
cb44e8572f Changes to support custom basepath in routing 2023-04-25 02:20:29 +00:00
WindLi001
1795a27ae3 Fix translation error of Chinese UI. The "detach_image" should be "解除面孔标记", but not "修改面孔命名". 2023-02-09 15:15:51 +08:00
queeup
a797170881 Add Turkish language 2022-12-02 15:32:49 +03:00
Joe
89a3830c17 chore: add mapbox globe view 2022-11-14 11:23:11 +05:30
Orel
f54e6c7cb5 Restyle titles and spacing in timeline gallery
Restyle the title and album names so that the title will pop out more,
and decrease the horizontal spacing between photos in the same album.
2022-10-07 01:32:28 +03:00
ryanpenber
efbc54017b config🔧: Improved Simplified Chinese language translation
Modified the translation to fit the simplified Chinese user's habit
while paying respect to the predecessor

Change Explained:
- type 种类 (catagory) → 文件类型 (file type) or 格式 (file format)
- all of 'faces' 脸孔 (Traditional Chinese) → 面孔 (Simplified Chinese)
- search placeholder 搜寻 (Traditional Chinese) → 查找 (Simplified Chinese)
-  Simple and User-friendly Photo Gallery for Personal Servers
old: 简单及易用的照片库给个人服务器 (grammar mistake)
→ 为个人服务器 打造的 简单及易用的照片库 (put the "for..." part upfront)
- detach image:
分离照片脸孔 is confusing, may indicate to remove literal face from photo
解除标记:remove tag (from the photo)
- (scanner) jobs: 工作 ( has the meaning of employment in most scenario)
→  任务 (tasks)
- all of the 'iser':使用者 (correct but low word frequency) → 用户
- action:动作 (means movement in most scenario) → 操作 (operation)
- capabilities: 能力(capable of) → 权限 (access to)
- release: 释出版本(Traditional Chinese) → 发行版 (Simplified Chinese)

- add translation to the face label
- add translation to the preference page
- add translation to sidebar
- add translation to media EXIF info
- add translation to timeline filter

translation media EXIF info reference:
https://bbs.zol.com.cn/dcbbs/d167_107631.html
2022-09-14 10:49:08 +08:00
PJ-Watson
0d106274d2 Manual merge of changes from react-swipeable branch, update react-swipeable version 2022-08-12 07:00:05 +01:00
PJ-Watson
4169a2c102 Merge branch 'master' into add_swipe_gesture 2022-08-12 15:42:18 +10:00
PJ-Watson
3e780dbe48 Changed downsampling method to custom type. 2022-08-09 06:09:55 +01:00
PJ-Watson
866a3b4c1d Fixed ui test (default export). 2022-08-05 20:56:38 +01:00
PJ-Watson
31025f7616 Updated ui layout. 2022-08-05 20:35:00 +01:00
PJ-Watson
ccf4e30639 Including ui test 2022-08-05 19:39:06 +01:00
PJ-Watson
5c4eeef870 Introduce thumbnail filtering options. 2022-08-05 19:37:55 +01:00
viktorstrate
446ef9a464 Remove regenerator-runtime from UI 2022-07-13 21:45:06 +02:00
viktorstrate
4c9e9a2b9a Make eslint check for typescript errors
Fix errors after making eslint more strict
2022-07-13 18:02:06 +02:00
viktorstrate
b0512d7128 Add MediaGalleryFields fragment 2022-07-13 15:10:00 +02:00
viktorstrate
0a73484474 Attempt to fix Docker again 2022-07-08 17:56:52 +02:00
viktorstrate
214aa389fb Fix Docker builds 2022-07-08 16:49:46 +02:00
viktorstrate
d1a92afe0f Fix UI tests by replacing jest with vitest 2022-07-08 15:23:34 +02:00
viktorstrate
fdcf0cfd05 Update UI deps + replace create-react-app with vite 2022-07-08 00:33:35 +02:00
viktorstrate
248d858592 Add Basque language
Thank you to Xabi for the translation
2022-07-05 15:11:49 +02:00
Nathan Dodson
29516a3b49 Following breadcrumbs closes sidebar 2022-06-29 15:59:37 -05:00