feat(manager): Media page, photo field for products and categories (platform-v2 step 5.2)
- Management → Media (src/pages/media/): every picture and video, search, pictures / videos, batch upload (many files or drop on the page) with a result per file, details (preview, display name, kind, resolution, length, file size, uploaded file, when / who, the sizes made, what uses it, delete off while used). - MediaField: upload on the spot (into the library and set at once), pick from the library (MediaPicker, which can also upload), remove; after an upload on the spot "Name it after the product / category" renames it in Latin letters. Used by the product editor and the category dialog. - nav: `anyPerm` (any of the keys that manage pictures); the route guard uses the same rule. Product rows have test ids. - @xenia/i18n: latin() (Greek to Latin, the way venues write it) + tests. - tests: manager media.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
"sessions": "Συνδεδεμένοι τώρα",
|
||||
"approvals": "Εγκρίσεις υπευθύνου",
|
||||
"deliveryFees": "Online παραγγελίες (ρύθμιση)",
|
||||
"qrCodes": "QR τραπεζιών"
|
||||
"qrCodes": "QR τραπεζιών",
|
||||
"media": "Πολυμέσα"
|
||||
},
|
||||
"profile": {
|
||||
"edit": "Επεξεργασία προφίλ",
|
||||
@@ -702,5 +703,70 @@
|
||||
"setup": "Σύνδεση του τηλεφωνικού κέντρου",
|
||||
"setupBody": "Στο Grandstream UCM, ορίστε το Action URL για τις εισερχόμενες κλήσεις σε αυτή τη διεύθυνση (λειτουργεί μόνο μέσα από το κατάστημα):",
|
||||
"setupSecret": "Για επιπλέον ασφάλεια, ορίστε ένα κλειδί στις Ρυθμίσεις (caller_id.secret) και προσθέστε &key=<το κλειδί> στη διεύθυνση."
|
||||
},
|
||||
"media": {
|
||||
"title": "Πολυμέσα",
|
||||
"intro": "Όλες οι εικόνες και τα βίντεο του καταστήματος σε ένα μέρος. Ανεβάστε πολλά μαζί και διαλέξτε τα μετά για προϊόντα, κατηγορίες και οθόνες. Ο διακομιστής κρατά το πρωτότυπο και φτιάχνει μικρότερα αντίγραφα που φορτώνουν γρήγορα· το όνομα είναι μόνο για εσάς.",
|
||||
"upload": "Ανέβασμα αρχείων",
|
||||
"uploadNew": "Ανέβασμα νέου",
|
||||
"dropHint": "ή αφήστε αρχεία οπουδήποτε σε αυτή τη σελίδα",
|
||||
"search": "Αναζήτηση με όνομα",
|
||||
"kind": "Είδος",
|
||||
"kinds": {
|
||||
"all": "Όλα",
|
||||
"images": "Εικόνες",
|
||||
"videos": "Βίντεο",
|
||||
"image": "Εικόνα",
|
||||
"video": "Βίντεο"
|
||||
},
|
||||
"noMatch": "Δεν βρέθηκε τίποτα.",
|
||||
"empty": "Η βιβλιοθήκη είναι άδεια.",
|
||||
"emptyHint": "Ανεβάστε εδώ τις φωτογραφίες σας ή προσθέστε μία απευθείας από ένα προϊόν.",
|
||||
"count_one": "{{count}} αρχείο",
|
||||
"count_other": "{{count}} αρχεία",
|
||||
"more": "Εμφανίζονται τα νεότερα {{shown}} από {{total}}. Αναζητήστε για να βρείτε παλαιότερα.",
|
||||
"uploading": "Ανέβασμα {{done}} από {{total}}…",
|
||||
"uploaded": "Έτοιμο: {{added}} νέα, {{existing}} υπήρχαν ήδη, {{failed}} απέτυχαν.",
|
||||
"clearList": "Καθαρισμός λίστας",
|
||||
"alreadyThere": "υπάρχει ήδη στη βιβλιοθήκη",
|
||||
"alreadyThereUsed": "Αυτή η φωτογραφία υπήρχε ήδη στη βιβλιοθήκη ως «{{name}}»: χρησιμοποιείται αυτή.",
|
||||
"renamed": "Το όνομα αποθηκεύτηκε.",
|
||||
"deleted": "Διαγράφηκε από τη βιβλιοθήκη.",
|
||||
"deleteConfirm": "Οριστική διαγραφή αυτού του αρχείου;",
|
||||
"delete": "Διαγραφή",
|
||||
"close": "Κλείσιμο",
|
||||
"resolution": "Ανάλυση",
|
||||
"length": "Διάρκεια",
|
||||
"fileSize": "Μέγεθος αρχείου",
|
||||
"originalName": "Αρχείο που ανέβηκε",
|
||||
"uploadedAt": "Ανέβηκε",
|
||||
"uploadedBy": "Από",
|
||||
"displayName": "Όνομα",
|
||||
"displayNameHint": "Αυτό που βλέπετε στη βιβλιοθήκη. Το ίδιο το αρχείο έχει όνομα που χρησιμοποιεί μόνο ο διακομιστής.",
|
||||
"saveName": "Αποθήκευση ονόματος",
|
||||
"sizes": "Μεγέθη που φτιάχτηκαν",
|
||||
"sizesHint": "Ο διακομιστής τα έφτιαξε από το πρωτότυπο· κάθε οθόνη φορτώνει το μικρότερο που χρειάζεται.",
|
||||
"sizesVideo": "Τα βίντεο κρατιούνται όπως ανέβηκαν προς το παρόν· μικρότερες εκδοχές και στιγμιότυπο έρχονται αργότερα.",
|
||||
"variants": {
|
||||
"thumb": "Μικρό (λίστες)",
|
||||
"card": "Κάρτα (μενού)",
|
||||
"full": "Μεγάλο (πλήρης οθόνη)",
|
||||
"original": "Πρωτότυπο"
|
||||
},
|
||||
"usedBy": "Χρησιμοποιείται από",
|
||||
"unused": "Δεν χρησιμοποιείται ακόμα.",
|
||||
"usedCantDelete": "Ένα αρχείο σε χρήση δεν διαγράφεται. Αφαιρέστε το πρώτα από εκεί.",
|
||||
"uses": {
|
||||
"product": "Προϊόν",
|
||||
"category": "Κατηγορία"
|
||||
},
|
||||
"pickTitle": "Επιλογή εικόνας",
|
||||
"photo": "Φωτογραφία",
|
||||
"uploadPhoto": "Ανέβασμα φωτογραφίας",
|
||||
"replace": "Ανέβασμα άλλης",
|
||||
"fromLibrary": "Από τη βιβλιοθήκη",
|
||||
"removePhoto": "Αφαίρεση",
|
||||
"nameAfterProduct": "Ονομασία με το όνομα του προϊόντος",
|
||||
"nameAfterCategory": "Ονομασία με το όνομα της κατηγορίας"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,8 @@
|
||||
"sessions": "Signed in now",
|
||||
"approvals": "Manager approvals",
|
||||
"deliveryFees": "Online ordering",
|
||||
"qrCodes": "Table QR codes"
|
||||
"qrCodes": "Table QR codes",
|
||||
"media": "Media"
|
||||
},
|
||||
"profile": {
|
||||
"edit": "Edit profile",
|
||||
@@ -702,5 +703,70 @@
|
||||
"setup": "Connect the phone system",
|
||||
"setupBody": "In the Grandstream UCM, set the Action URL for incoming calls to this address (it only works from inside the venue):",
|
||||
"setupSecret": "For extra safety, set a key in Settings (caller_id.secret) and add &key=<the key> to the address."
|
||||
},
|
||||
"media": {
|
||||
"title": "Media",
|
||||
"intro": "Every picture and video of the venue, in one place. Upload many at once, then pick them for products, categories and screens. The server keeps the original and makes smaller copies that load fast; the name is only for you.",
|
||||
"upload": "Upload files",
|
||||
"uploadNew": "Upload a new one",
|
||||
"dropHint": "or drop files anywhere on this page",
|
||||
"search": "Search by name",
|
||||
"kind": "Kind",
|
||||
"kinds": {
|
||||
"all": "All",
|
||||
"images": "Pictures",
|
||||
"videos": "Videos",
|
||||
"image": "Picture",
|
||||
"video": "Video"
|
||||
},
|
||||
"noMatch": "Nothing matches.",
|
||||
"empty": "The library is empty.",
|
||||
"emptyHint": "Upload your photos here, or add one straight from a product.",
|
||||
"count_one": "{{count}} file",
|
||||
"count_other": "{{count}} files",
|
||||
"more": "Showing the newest {{shown}} of {{total}}. Search to find older ones.",
|
||||
"uploading": "Uploading {{done}} of {{total}}…",
|
||||
"uploaded": "Done: {{added}} added, {{existing}} already in the library, {{failed}} failed.",
|
||||
"clearList": "Clear the list",
|
||||
"alreadyThere": "already in the library",
|
||||
"alreadyThereUsed": "This photo was already in the library as \"{{name}}\": using that one.",
|
||||
"renamed": "Name saved.",
|
||||
"deleted": "Deleted from the library.",
|
||||
"deleteConfirm": "Delete this file for good?",
|
||||
"delete": "Delete",
|
||||
"close": "Close",
|
||||
"resolution": "Resolution",
|
||||
"length": "Length",
|
||||
"fileSize": "File size",
|
||||
"originalName": "Uploaded file",
|
||||
"uploadedAt": "Uploaded",
|
||||
"uploadedBy": "By",
|
||||
"displayName": "Name",
|
||||
"displayNameHint": "What you see in the library. The file itself keeps a name only the server uses.",
|
||||
"saveName": "Save name",
|
||||
"sizes": "Sizes made",
|
||||
"sizesHint": "The server made these from the original; each screen loads the smallest one it needs.",
|
||||
"sizesVideo": "Videos are kept as uploaded for now; smaller versions and a still frame come later.",
|
||||
"variants": {
|
||||
"thumb": "Small (lists)",
|
||||
"card": "Card (menus)",
|
||||
"full": "Large (full screen)",
|
||||
"original": "Original"
|
||||
},
|
||||
"usedBy": "Used by",
|
||||
"unused": "Nothing uses it yet.",
|
||||
"usedCantDelete": "A file in use can't be deleted. Remove it there first.",
|
||||
"uses": {
|
||||
"product": "Product",
|
||||
"category": "Category"
|
||||
},
|
||||
"pickTitle": "Pick a picture",
|
||||
"photo": "Photo",
|
||||
"uploadPhoto": "Upload a photo",
|
||||
"replace": "Upload another",
|
||||
"fromLibrary": "From the library",
|
||||
"removePhoto": "Remove",
|
||||
"nameAfterProduct": "Name it after the product",
|
||||
"nameAfterCategory": "Name it after the category"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user