Skip to content

Commit 9decf3c

Browse files
committed
Merge branch 'develop'
2 parents 561c2f2 + b31c3cf commit 9decf3c

File tree

15 files changed

+1713
-1562
lines changed

15 files changed

+1713
-1562
lines changed

.github/workflows/build-docker-open-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Build Vue frontend
5656
- uses: actions/setup-node@v3
5757
with:
58-
node-version: '14'
58+
node-version: '18'
5959
cache: yarn
6060
cache-dependency-path: vue/yarn.lock
6161
- name: Install dependencies

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
# Build Vue frontend
5454
- uses: actions/setup-node@v3
5555
with:
56-
node-version: '14'
56+
node-version: '18'
5757
cache: yarn
5858
cache-dependency-path: vue/yarn.lock
5959
- name: Install dependencies

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# Build Vue frontend
2121
- uses: actions/setup-node@v3
2222
with:
23-
node-version: '16'
23+
node-version: '18'
2424
- name: Install Vue dependencies
2525
working-directory: ./vue
2626
run: yarn install

cookbook/helper/recipe_url_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def parse_keywords(keyword_json, space):
409409
# retrieve keyword automation cache if it exists, otherwise build from database
410410
KEYWORD_CACHE_KEY = f'automation_keyword_alias_{space.pk}'
411411
if c := caches['default'].get(KEYWORD_CACHE_KEY, None):
412-
self.food_aliases = c
412+
keyword_aliases = c
413413
caches['default'].touch(KEYWORD_CACHE_KEY, 30)
414414
else:
415415
for a in Automation.objects.filter(space=space, disabled=False, type=Automation.KEYWORD_ALIAS).only('param_1', 'param_2').order_by('order').all():

cookbook/locale/de/LC_MESSAGES/django.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ msgstr ""
1515
"Project-Id-Version: PACKAGE VERSION\n"
1616
"Report-Msgid-Bugs-To: \n"
1717
"POT-Creation-Date: 2023-05-18 14:28+0200\n"
18-
"PO-Revision-Date: 2023-02-09 13:55+0000\n"
19-
"Last-Translator: Marion Kämpfer <marion@murphyslantech.de>\n"
20-
"Language-Team: German <http://translate.tandoor.dev/projects/tandoor/recipes-"
21-
"backend/de/>\n"
18+
"PO-Revision-Date: 2023-06-21 14:19+0000\n"
19+
"Last-Translator: Tobias Huppertz <tobias.huppertz@mail.de>\n"
20+
"Language-Team: German <http://translate.tandoor.dev/projects/tandoor/"
21+
"recipes-backend/de/>\n"
2222
"Language: de\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -600,9 +600,8 @@ msgid "Imported %s recipes."
600600
msgstr "%s Rezepte importiert."
601601

602602
#: .\cookbook\integration\openeats.py:26
603-
#, fuzzy
604603
msgid "Recipe source:"
605-
msgstr "Rezept-Hauptseite"
604+
msgstr "Rezept-Quelle:"
606605

607606
#: .\cookbook\integration\paprika.py:49
608607
msgid "Notes"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.1.9 on 2023-06-21 13:19
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('cookbook', '0192_food_food_unique_open_data_slug_per_space_and_more'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='space',
15+
name='internal_note',
16+
field=models.TextField(blank=True, null=True),
17+
),
18+
]

cookbook/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ class Space(ExportModelOperationsMixin('space'), models.Model):
270270
food_inherit = models.ManyToManyField(FoodInheritField, blank=True)
271271
show_facet_count = models.BooleanField(default=False)
272272

273+
internal_note = models.TextField(blank=True, null=True)
274+
273275
def safe_delete(self):
274276
"""
275277
Safely deletes a space by deleting all objects belonging to the space first and then deleting the space itself

cookbook/templates/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
<a class="nav-link" href="{% url 'view_books' %}"><i
119119
class="fas fa-fw fa-book-open"></i> {% trans 'Books' %}</a>
120120
</li>
121+
{% plugin_main_nav_templates as plugin_main_nav_templates %}
122+
{% for pn in plugin_main_nav_templates %}
123+
{% include pn %}
124+
{% endfor %}
121125
</ul>
122126

123127
<ul class="navbar-nav ml-auto">

cookbook/templatetags/custom_tags.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ def plugin_dropdown_nav_templates():
140140
templates.append(p['nav_dropdown'])
141141
return templates
142142

143+
@register.simple_tag
144+
def plugin_main_nav_templates():
145+
templates = []
146+
for p in PLUGINS:
147+
if p['nav_main']:
148+
templates.append(p['nav_main'])
149+
return templates
150+
143151

144152
@register.simple_tag
145153
def bookmarklet(request):

vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"vue-multiselect": "^2.1.6",
4141
"vue-property-decorator": "^9.1.2",
4242
"vue-sanitize": "^0.2.2",
43-
"vue-simple-calendar": "5.0.1",
43+
"vue-simple-calendar": "TandoorRecipes/vue-simple-calendar#lastvue2",
4444
"vue-template-compiler": "2.7.14",
4545
"vue2-touch-events": "^3.2.2",
4646
"vuedraggable": "^2.24.3",

0 commit comments

Comments
 (0)