Compare commits
6
Commits
c53d842c34
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eec69819e9 | ||
|
|
8998752865 | ||
|
|
fc349a418b | ||
|
|
058deacd32 | ||
|
|
6980a2acc0 | ||
|
|
0d7770a446 |
No files matched your search
Generated
+5
-5
@@ -395,7 +395,7 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "common"
|
name = "common"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -1144,7 +1144,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "label_editor"
|
name = "label_editor"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"common",
|
"common",
|
||||||
"server",
|
"server",
|
||||||
@@ -1573,7 +1573,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "server"
|
name = "server"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"common",
|
"common",
|
||||||
@@ -1969,9 +1969,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tokio"
|
name = "tokio"
|
||||||
version = "1.53.1"
|
version = "1.53.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
|
checksum = "e95f91fcc7a621e8b030f6aa23c71fe9838ae2fb4d8118b75602a328f5144044"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"libc",
|
"libc",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "label_editor"
|
name = "label_editor"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Matthias Lodner <matthias@lodner.de>"]
|
authors = ["Matthias Lodner <matthias@lodner.de>"]
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -92,3 +92,59 @@ ORDER BY a.name, v.weight ASC
|
|||||||
|
|
||||||
## Lodner kleines Etikett
|
## Lodner kleines Etikett
|
||||||
|
|
||||||
|
## Käfer Essen im Glas
|
||||||
|
### SQL Abfrage
|
||||||
|
```sql
|
||||||
|
SELECT
|
||||||
|
a.name AS product,
|
||||||
|
CONCAT(a.topm_id, v.topm_row) AS aritcle_number,
|
||||||
|
COALESCE(v.name, a.name) AS name,
|
||||||
|
COALESCE(a.additional_name, COALESCE(v.name, a.name)) AS sigel_name,
|
||||||
|
CONCAT(CONCAT(v.weight, ' '), u.display) AS weight,
|
||||||
|
v.ean AS ean,
|
||||||
|
COALESCE(v.description, a.description) AS description,
|
||||||
|
COALESCE(v.ingredients, a.ingredients) AS ingredients,
|
||||||
|
COALESCE(a.mhd, s.mhd) AS mhd,
|
||||||
|
COALESCE(a.allergens_text, s.allergens_text) AS allergens_info,
|
||||||
|
CONCAT(
|
||||||
|
CONCAT(n.calorific_value_kj, ' kJ<br>'),
|
||||||
|
CONCAT(n.calorific_value_kcal, ' kcal')
|
||||||
|
) AS energy,
|
||||||
|
n.fat,
|
||||||
|
n.saturated_fat,
|
||||||
|
n.carbohydrates,
|
||||||
|
n.sugar,
|
||||||
|
n.fibers,
|
||||||
|
n.protein,
|
||||||
|
n.salt
|
||||||
|
FROM article AS a
|
||||||
|
INNER JOIN variant AS v ON v.article_id = a.id
|
||||||
|
INNER JOIN settings AS s ON v.article_id = v.article_id
|
||||||
|
INNER JOIN unit AS u ON v.unit_id = u.id
|
||||||
|
INNER JOIN label AS l ON v.label_id = l.id
|
||||||
|
INNER JOIN nutrition AS n ON n.id = a.nutrition_id
|
||||||
|
WHERE v.label_id = 3
|
||||||
|
ORDER BY a.name, v.weight ASC
|
||||||
|
```
|
||||||
|
|
||||||
|
### HTML settings for label
|
||||||
|
|
||||||
|
#### Product title
|
||||||
|
```html
|
||||||
|
<div style="text-align: center; font-size: 16pt; font-family: Optima LT Std;">
|
||||||
|
</div><div style="text-align: center; font-size: 8pt; font-family: Optima nova LT Pro Titling Init;">- HANDGEMACHT -</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### MHD
|
||||||
|
```html
|
||||||
|
<div style="text-align: center; font-size: 7pt; font-family: Optima LT Std;">Ungeöffnet bei 4°C - 7°C mindestens haltbar bis:
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Impressum
|
||||||
|
```html
|
||||||
|
<div style="text-align: center; font-size: 7pt; font-family: Optima LT Std;">
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "common"
|
name = "common"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Matthias Lodner <matthias@lodner.de>"]
|
authors = ["Matthias Lodner <matthias@lodner.de>"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
|
"version": "0.4.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -13,14 +14,14 @@
|
|||||||
"@fontsource/roboto": "5.3.0",
|
"@fontsource/roboto": "5.3.0",
|
||||||
"@mdi/font": "7.4.47",
|
"@mdi/font": "7.4.47",
|
||||||
"@pinia/nuxt": "1.0.2",
|
"@pinia/nuxt": "1.0.2",
|
||||||
"nuxt": "4.5.2",
|
"nuxt": "4.6.1",
|
||||||
"pinia": "4.0.3",
|
"pinia": "4.0.3",
|
||||||
"vue": "3.5.43",
|
"vue": "3.5.43",
|
||||||
"vue-router": "5.3.1",
|
"vue-router": "5.4.0",
|
||||||
"vuetify-pro-tiptap": "3.0.0"
|
"vuetify-pro-tiptap": "3.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite-plugin-vuetify": "2.1.3",
|
"vite-plugin-vuetify": "2.1.3",
|
||||||
"vuetify": "4.2.2"
|
"vuetify": "4.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "server"
|
name = "server"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Matthias Lodner <matthias@lodner.de>"]
|
authors = ["Matthias Lodner <matthias@lodner.de>"]
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ path = "src/main.rs"
|
|||||||
common = {path = "../common"}
|
common = {path = "../common"}
|
||||||
|
|
||||||
axum = "0.8.9"
|
axum = "0.8.9"
|
||||||
tokio = { version = "1.53.1", default-features = false, features = ["full"] }
|
tokio = { version = "1.53.2", default-features = false, features = ["full"] }
|
||||||
http = "1.5.0"
|
http = "1.5.0"
|
||||||
tower-http = {version = "0.7.1", features = ["cors"]}
|
tower-http = {version = "0.7.1", features = ["cors"]}
|
||||||
tracing = "=0.1.44"
|
tracing = "=0.1.44"
|
||||||
|
|||||||
Reference in new issue
Block a user