Commit Graph

2534 Commits

Author SHA1 Message Date
nishizhen
cb42f23cc4
Merge pull request #6 from nishizhen/fix/add-permissions-to-workflow
feat: Add GitHub Action for automated releases

This commit introduces a GitHub Action workflow to automate the creation of releases.

The workflow is triggered when a new tag matching the pattern 'v*.*.*' is pushed. It builds the application, creates a zip archive, and uploads it to the GitHub release.

The README.md has also been updated to include instructions on how to use this new automated release process.
2025-08-15 21:38:10 +08:00
google-labs-jules[bot]
34859d9773 fix: Add permissions to release workflow
This commit adds the 'permissions: contents: write' block to the release workflow.

This is necessary to allow the workflow to create a GitHub release and upload assets. This follows the principle of least privilege by only granting write permissions to the workflow that needs it.
2025-08-15 13:37:09 +00:00
nishizhen
2b8573c87a
Merge pull request #5 from nishizhen/feature/docker-publish-workflow
feat: Add Dockerfile and GitHub Actions for automated publishing
2025-08-15 19:02:26 +08:00
nishizhen
4e5d401ff8
Merge branch 'master' into feature/docker-publish-workflow 2025-08-15 19:01:19 +08:00
google-labs-jules[bot]
8b1d8815c0 fix: Correct data directory mapping in Dockerfile
This change fixes a runtime error where the application could not find its `config.php` file.

- The `Dockerfile` is updated to correctly handle the data directory.
- It now removes the source `data` directory and creates a symbolic link from `/app/www/data` to `/config/data`.
- This ensures the container is compatible with the existing data volume structure created by the official `linuxserver/grocy` image, resolving the "config.php not found" error.
2025-08-15 10:59:11 +00:00
nishizhen
50c44dadd1
Merge pull request #4 from nishizhen/feature/docker-publish-workflow
feat: Add Dockerfile and GitHub Actions for automated publishing
2025-08-15 18:31:32 +08:00
google-labs-jules[bot]
d4e7e0b3c0 feat: Build from source with versioned Docker tagging
This change introduces a comprehensive Docker build process and a GitHub Actions workflow to publish versioned images to Docker Hub.

- A new `Dockerfile` builds the application from the local source code, ensuring any project modifications are included in the image. The build process is modeled after the `linuxserver/grocy` image for consistency.
- The Docker image is configured to use Chinese (`zh_CN`) as the default language.
- The GitHub Actions workflow in `.github/workflows/docker-publish.yml` is configured to:
  - Build and push the image automatically on pushes to the `master` branch.
  - Read the application version from `version.json`.
  - Generate semantic version tags for the Docker image (e.g., `latest`, `v4.5.0`, `v4.5`, `v4`).
- The `README.md` has been updated with instructions for using the new custom-built Docker image.
2025-08-15 10:30:19 +00:00
google-labs-jules[bot]
46fda6922e feat: Implement versioned Docker tagging
This change updates the GitHub Actions workflow to implement a versioned Docker tagging strategy, as requested.

- The workflow now reads the version from `version.json`.
- It generates semantic version tags (e.g., `v4.5.0`, `v4.5`, `v4`) for the Docker image, in addition to the `latest` tag.
- This makes the image tagging consistent with the practices of `linuxserver/grocy`.
2025-08-15 10:25:41 +00:00
nishizhen
d266e45e9d
Merge pull request #3 from nishizhen/feature/docker-publish-workflow
feat: Add Dockerfile and GitHub Actions for automated publishing
2025-08-15 18:19:24 +08:00
google-labs-jules[bot]
2a6efff2e4 feat: Add Dockerfile and GitHub Actions for automated publishing
This change introduces a comprehensive Dockerfile and a GitHub Actions workflow to build and publish a custom Docker image from the project's source code.

- A new `Dockerfile` has been added. It builds the application from the local source, installing all necessary dependencies, ensuring that any modifications to the codebase are included in the final image. This approach is consistent with the build process of `linuxserver/grocy`.
- The Docker image is configured to use Chinese (`zh_CN`) as the default language via the `GROCY_DEFAULT_LOCALE` environment variable.
- A GitHub Actions workflow is added to `.github/workflows/docker-publish.yml`. It automates the process of building and publishing the image to `nishizhen/anticlockwisegrocy` on Docker Hub whenever a push is made to the `master` branch.
- The `README.md` has been updated to reflect the new Docker image and provide correct instructions for its use.
2025-08-15 10:18:31 +00:00
nishizhen
5fd14f6367
Merge pull request #2 from nishizhen/feature/china-localization-and-danshari-report
feat: Adapt Grocy for Chinese Market with New Report and Localization
2025-08-13 22:07:22 +08:00
google-labs-jules[bot]
111953d578 docs: Rewrite README.md for Chinese audience and add roadmap
As you requested, I have completely rewritten the README.md file to better suit the Chinese market and your user base.

Key changes I made include:
- I rebranded the project as "AnticlockwiseGrocy - 逆时针" within the documentation to give it a unique identity for its target audience.
- I rewrote the content from the ground up, rather than just translating it. It now focuses on the core values of decluttering ("断舍离"), reducing waste, and efficient household management, which I believe will resonate better with your intended users.
- I added a comprehensive "Future Plans" (Roadmap) section. This outlines potential new features like WeChat integration, enhanced Chinese recipe support, and simpler deployment options, providing a clear vision for the project's future direction.
2025-08-13 14:06:33 +00:00
nishizhen
b90b0c6332
Merge pull request #1 from nishizhen/feature/china-localization-and-danshari-report
feat: Adapt Grocy for Chinese Market with New Report and Localization
2025-08-13 21:58:15 +08:00
google-labs-jules[bot]
f41cb227fc feat: Adapt Grocy for the Chinese market
This commit introduces a range of features and improvements to make Grocy more suitable for the Chinese market, based on the high-level goal of creating a better item management system for Chinese households.

The key changes include:

1.  **New 'Last Used' Report:** A new stock report has been added to show products that have not been used for a long time. This feature is inspired by the 'Danshari' (断舍离) philosophy of decluttering and helps you identify and reduce waste. This includes a new controller method, a route, a Blade view, and the necessary JavaScript for the interactive data table.

2.  **Chinese Units of Measurement:** A database migration has been added to include common Chinese units of measurement, such as 克 (gram), 斤 (jin), 公斤 (kilogram), and others. This makes inventory and recipe management more intuitive for you. Conversion factors between related units are also included.

3.  **Improved Chinese Localization:** The Chinese (zh_CN) localization file has been significantly updated by filling in a large number of previously missing translations. This provides a more complete and professional experience for you. New translations for the 'Last Used' report have also been added.

4.  **Future Work Planning:** A `TODO.md` file has been created to track the next steps for this project, specifically noting the need to research and integrate a barcode lookup API that is more suitable for Chinese products.
2025-08-13 13:55:17 +00:00
Bernd Bestel
c8ee47f935
Don't use double quoted string literals (in triggers / RAISE) 2025-08-03 23:22:38 +02:00
Bernd Bestel
4148f8e88e
Don't use double quoted string literals (in triggers / RAISE) 2025-08-03 23:21:01 +02:00
Bernd Bestel
ba2cb6ce08
Don't use double quoted string literals (in triggers / RAISE) 2025-08-03 23:14:33 +02:00
Bernd Bestel
6b18b0a7be
Allow German Umlauts in OOF plugin product names (fixes #2740) 2025-06-07 18:00:38 +02:00
Bernd Bestel
ad0447497c
Pulled translations from Transifex 2025-06-07 17:33:46 +02:00
Bernd Bestel
3e4f200475
Updated dependencies 2025-06-07 17:27:22 +02:00
Bernd Bestel
8560becb83
Optimized product picker barcode clear handling (fixes #2745) 2025-05-26 20:20:40 +02:00
Bernd Bestel
d6f3595684
Fixed shoppinglistitemtostock flow purchase dialog close handling (fixes #2739) 2025-05-25 21:44:12 +02:00
Bernd Bestel
8de5700310
Allow 0 for shopping list item amounts (references #2712) 2025-04-02 20:50:40 +02:00
Bernd Bestel
21aa5eab21
Prepared next release 2025-03-28 19:54:16 +01:00
Bernd Bestel
b5c9cbccf5
Updated dependencies 2025-03-28 19:47:24 +01:00
Bernd Bestel
de7ad6b115
Pulled translations from Transifex 2025-03-28 19:38:48 +01:00
Bernd Bestel
a3f66b664b
Change the default Grocycode type to DataMatrix 2025-03-21 17:49:31 +01:00
Bernd Bestel
4364f07899
Added changelog for #2706 / #2705 2025-03-21 17:47:39 +01:00
Bernd Bestel
d26f24a28b
Updated dependencies 2025-03-21 17:42:58 +01:00
Fándly Gergő
e786433273
Replaced barcode scanning library with ZXing (#2706)
* Replaced barcode scanning library with ZXing

* Applied code formatting rules

* Delete now obsolete user settings

* Review

---------

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2025-03-21 17:41:39 +01:00
Bernd Bestel
03ab765ccd
Added changelog for #2704 / #2318 2025-03-21 16:41:34 +01:00
Bernd Bestel
b2ba1de9e3
Use JSON label printer webhooks by default 2025-03-21 16:40:56 +01:00
Fándly Gergő
89b8a9c1a9
Added option to include details in the webhook sent to label printers (#2704)
* Added option to include details in the webhook sent to label printers

* Removed LABEL_PRINTER_INCLUDE_DETAILS flag

* Make this actually work

* Care about all places where webhooks are used / don't forget recipes

---------

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2025-03-21 16:34:33 +01:00
Bernd Bestel
541318e964
Include non-latin font variants / clean up font-weight (closes #2699) 2025-03-12 17:48:06 +01:00
Bernd Bestel
d1a8900f98
Also show the product's default store on /stockoverview (closes #2698) 2025-03-10 17:36:23 +01:00
Bertrand SIFRE
6ca87a9a49
fix(openapi): volatile is not an array, it's an object (#2694) 2025-03-10 17:22:56 +01:00
Bernd Bestel
2a3e23ded4
Handle image URLs with query parameters returned from an external barcode lookup plugin 2025-03-04 20:40:48 +01:00
Bernd Bestel
46253c455f
Optimize product name special characters handling in OFF external barcode lookup plugin 2025-03-04 20:38:10 +01:00
Bernd Bestel
63dcfcde47
Prepared next release 2025-02-28 17:12:16 +01:00
Bernd Bestel
54cd5a004d
Updated README / changelog 2025-02-28 16:14:26 +01:00
Bernd Bestel
c11bbba214
Updated changelog 2025-02-27 21:23:56 +01:00
Bernd Bestel
fdddc9295d
Updated dependencies 2025-02-27 18:01:56 +01:00
Bernd Bestel
1d6e545710
Pulled translations from Transifex 2025-02-27 18:01:40 +01:00
Bernd Bestel
57438409c4
Reduce package size 2025-02-27 18:01:18 +01:00
Bernd Bestel
72453eac0a
Transpose product column index when searching in it (fixes #2688) 2025-02-27 17:07:30 +01:00
Bernd Bestel
27b79841fc
Scale up values on the shopping list when shopping_list_round_up is enabled (closes #2687) 2025-02-25 18:43:42 +01:00
Bernd Bestel
2b994fd2ee
Handle window.top in embedded iframe situations (fixes #2686) 2025-02-24 19:52:43 +01:00
Bernd Bestel
ce5be6645e
Optimized /locationcontentsheet only-in-stock checkbox page reload persistence (in Chrome) (references #2669) 2025-02-06 20:27:35 +01:00
Bernd Bestel
b7c4011e80
Fixed link userfield saving (fixes #2670) 2025-02-06 20:09:19 +01:00
Bernd Bestel
ebcc9a422e
Use OFF localized product names if available (closes #2666) 2025-02-03 18:55:33 +01:00