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": "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