Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Update Grocy to v3.2.0 #284

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions grocy/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ The private key file to use for SSL.

Is used for setting the language. Choose between:

- `ca` (Catalan)
- `cs` (Czech)
- `da` (Danish)
- `de` (German)
Expand Down
2 changes: 1 addition & 1 deletion grocy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN \
\
&& yarn global add modclean \
\
&& git clone --branch "v3.1.3" --depth=1 \
&& git clone --branch "v3.2.0" --depth=1 \
https://github.com/grocy/grocy.git /var/www/grocy \
\
&& cd /var/www/grocy \
Expand Down
2 changes: 1 addition & 1 deletion grocy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ options:
keyfile: privkey.pem
schema:
log_level: list(trace|debug|info|notice|warning|error|fatal)?
culture: list(cs|da|de|el_GR|en|en_GB|es|fi|fr|he_IL|hu|it|ja|ko_KR|nl|no|pl|pt_BR|pt_PT|ru|sk_SK|sv_SE|ta|tr|zh_CN|zh_TW)
culture: list(ca|cs|da|de|el_GR|en|en_GB|es|fi|fr|he_IL|hu|it|ja|ko_KR|nl|no|pl|pt_BR|pt_PT|ru|sk_SK|sv_SE|ta|tr|zh_CN|zh_TW)
currency: match(^[A-Z]{3}$)
entry_page: list(stock|shoppinglist|recipes|chores|tasks|batteries|equipment|calendar|mealplan)
features:
Expand Down
7 changes: 3 additions & 4 deletions grocy/rootfs/patches/fix_braindamage.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php
index 4eb3fb8d..d4e5e007 100644
--- a/views/layout/default.blade.php
+++ b/views/layout/default.blade.php
@@ -88,7 +88,10 @@
Grocy.Version = '{{ $version }}';
@@ -88,6 +88,10 @@
Grocy.Mode = '{{ GROCY_MODE }}';
Grocy.BaseUrl = '{{ $U('/') }}';
Grocy.CurrentUrlRelative = "/" + window.location.href.split('?')[0].replace(Grocy.BaseUrl, "");
Grocy.CurrentUrlRelative = "/" + window.location.href.split('?')[0].replace(Grocy.BaseUrl, "");
+ if(Grocy.BaseUrl.indexOf('http') != 0 || Grocy.BaseUrl.indexOf('hassio_ingress') >= 0) {
+ Grocy.BaseUrl = window.location.origin + '{{ $U('/') }}';
+ Grocy.CurrentUrlRelative = "/" + window.location.pathname.replace(Grocy.BaseUrl, "");
+ };
Grocy.ActiveNav = '@yield('activeNav', '')';
Grocy.Culture = '{{ GROCY_LOCALE }}';
Grocy.Currency = '{{ GROCY_CURRENCY }}';
Grocy.CalendarFirstDayOfWeek = '{{ GROCY_CALENDAR_FIRST_DAY_OF_WEEK }}';