web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit e637580c481252d1ed27d2ad25a274b9ea69231c
parent aa24dc24645da97eb68cba03cb94dd30b420923e
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Sat, 16 Nov 2024 09:03:32 +0000

apps-lib: add/edit elements, types, locales

Diffstat:
Mapps-lib/src/lib/el/css_styles.svelte | 4++--
Mapps-lib/src/lib/locales/en/common.json | 4++++
Mapps-lib/src/lib/locales/en/error.json | 9+++++++++
Mapps-lib/src/lib/locales/en/icu.json | 4++++
Mapps-lib/src/lib/locales/en/models.json | 30++++++++++++++++++++++++++++++
Mapps-lib/src/lib/types/el.ts | 1+
6 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/apps-lib/src/lib/el/css_styles.svelte b/apps-lib/src/lib/el/css_styles.svelte @@ -1,3 +1,3 @@ <div class="hidden h-[12px] w-[12px] h-[16px] w-[16px] h-[17px] w-[17px] h-[18px] w-[18px] h-[20px] w-[20px] h-[22px] w-[22px] h-[24px] w-[24px] h-[28px] w-[28px] h-[36px] w-[36px]"></div> <div class="hidden text-[12px] text-[15px] text-[16px] text-[18px] text-[19px] text-[20px] text-[21px] text-[23px] text-[24px] text-[26px] text-[28px] text-[30px] text-[36px] text-[40px]"></div> -<div class="hidden h-tabs_mobile_base pt-h_tabs_mobile_base pb-h_tabs_mobile_base translate-y-h_tabs_mobile_base -translate-y-h_tabs_mobile_base h-tabs_mobile_y pt-h_tabs_mobile_y pb-h_tabs_mobile_y translate-y-h_tabs_mobile_y -translate-y-h_tabs_mobile_y h-nav_mobile_base pt-h_nav_mobile_base pb-h_nav_mobile_base translate-y-h_nav_mobile_base -translate-y-h_nav_mobile_base h-nav_mobile_y pt-h_nav_mobile_y pb-h_nav_mobile_y translate-y-h_nav_mobile_y -translate-y-h_nav_mobile_y h-view_mobile_base pt-h_view_mobile_base pb-h_view_mobile_base translate-y-h_view_mobile_base -translate-y-h_view_mobile_base h-view_mobile_y pt-h_view_mobile_y pb-h_view_mobile_y translate-y-h_view_mobile_y -translate-y-h_view_mobile_y h-view_offset_mobile_base pt-h_view_offset_mobile_base pb-h_view_offset_mobile_base translate-y-h_view_offset_mobile_base -translate-y-h_view_offset_mobile_base h-view_offset_mobile_y pt-h_view_offset_mobile_y pb-h_view_offset_mobile_y translate-y-h_view_offset_mobile_y -translate-y-h_view_offset_mobile_y w-mobile_base w-mobile_y top-dim_map_offset_top_mobile_base top-dim_map_offset_top_mobile_y"></div> -\ No newline at end of file +<div class="hidden h-tabs_mobile_base pt-h_tabs_mobile_base pb-h_tabs_mobile_base translate-y-h_tabs_mobile_base -translate-y-h_tabs_mobile_base h-tabs_mobile_y pt-h_tabs_mobile_y pb-h_tabs_mobile_y translate-y-h_tabs_mobile_y -translate-y-h_tabs_mobile_y h-nav_mobile_base pt-h_nav_mobile_base pb-h_nav_mobile_base translate-y-h_nav_mobile_base -translate-y-h_nav_mobile_base h-nav_mobile_y pt-h_nav_mobile_y pb-h_nav_mobile_y translate-y-h_nav_mobile_y -translate-y-h_nav_mobile_y h-view_mobile_base pt-h_view_mobile_base pb-h_view_mobile_base translate-y-h_view_mobile_base -translate-y-h_view_mobile_base h-view_mobile_y pt-h_view_mobile_y pb-h_view_mobile_y translate-y-h_view_mobile_y -translate-y-h_view_mobile_y h-view_offset_mobile_base pt-h_view_offset_mobile_base pb-h_view_offset_mobile_base translate-y-h_view_offset_mobile_base -translate-y-h_view_offset_mobile_base h-view_offset_mobile_y pt-h_view_offset_mobile_y pb-h_view_offset_mobile_y translate-y-h_view_offset_mobile_y -translate-y-h_view_offset_mobile_y h-trellis_centered_mobile_base pt-h_trellis_centered_mobile_base pb-h_trellis_centered_mobile_base translate-y-h_trellis_centered_mobile_base -translate-y-h_trellis_centered_mobile_base h-trellis_centered_mobile_y pt-h_trellis_centered_mobile_y pb-h_trellis_centered_mobile_y translate-y-h_trellis_centered_mobile_y -translate-y-h_trellis_centered_mobile_y w-mobile_base w-mobile_y top-dim_map_offset_top_mobile_base top-dim_map_offset_top_mobile_y"></div> +\ No newline at end of file diff --git a/apps-lib/src/lib/locales/en/common.json b/apps-lib/src/lib/locales/en/common.json @@ -5,6 +5,7 @@ "add": "Add", "add_current_location": "Add current location", "add_map_location": "Add map location", + "add_new": "Add new", "add_new_location": "Add new location", "agree": "Agree", "all_accounts": "All accounts", @@ -19,6 +20,7 @@ "cancel": "Cancel", "close": "Close", "color_mode": "Color mode", + "complete": "Complete", "configure": "Configure", "connect": "Connect", "connected": "Connected", @@ -90,6 +92,7 @@ "per": "Per", "personal": "Personal", "photo": "Photo", + "photo_hosting": "Photo hosting", "photos": "Photos", "post": "Post", "preview": "Preview", @@ -127,6 +130,7 @@ "to": "To", "unlock": "Unlock", "update": "Update", + "upload_url": "Upload url", "url": "URL", "value": "Value", "view": "View", diff --git a/apps-lib/src/lib/locales/en/error.json b/apps-lib/src/lib/locales/en/error.json @@ -1,5 +1,8 @@ { "client": { + "database_read_failure": "There was an error reading the device database", + "file_path_read_bin_undefined": "The file was not found", + "keystore_nostr_secretkey": "The nostr key is not configured", "network_failure": "The requested resource is not available", "page": { "load": "There was an error loading the page", @@ -8,6 +11,7 @@ } }, "request_failure": "The request was not successful", + "request_unhandled": "The request did not complete", "unhandled": "There was an error during your request" }, "device": { @@ -18,5 +22,10 @@ "request": { "current": "Geolocation request failure" } + }, + "radroots": { + "account_required_upload": "To post photos using Radroots hosting you must request a profile name registration. There is no cost to register, do you want to continue?", + "account_required_upload_cancel": "Change Host", + "account_required_upload_ok": "Ok" } } \ No newline at end of file diff --git a/apps-lib/src/lib/locales/en/icu.json b/apps-lib/src/lib/locales/en/icu.json @@ -25,6 +25,7 @@ "choose_*": "Choose {value}", "choose_a_*": "Choose a {}", "choose_on_*": "Choose on {value}", + "click_to_*": "Click to {value}", "click_to_add_a_*": "Click to add a {value}", "configure_*": "Configure {value}", "connect_*": "Connect {value}", @@ -68,13 +69,16 @@ "the_*_is_required": "The {value} is missing", "the_current_entry_*_will_be_deleted": "The current entry \"{value}\" will be deleted", "the_listing_will_be_created_without_a_*": "The listing will be created without a {value}", + "there_was_a_failure_while_*": "There was a failure while {value}", "this_*": "This {value}", "toggle_*": "Toggle {value}", "total_*": "Total {value}", "unable_to_save_*": "Unable to save {value}", "unconnected_*": "Unconnected {value}", + "uploading_*_photos": "Uploading {value} photos", "use_existing_*": "Use existing {value}", "valid_*": "Valid {value}", "view_*": "View {value}", + "view_the_*": "View the {value}", "your_*": "Your {value}" } \ No newline at end of file diff --git a/apps-lib/src/lib/locales/en/models.json b/apps-lib/src/lib/locales/en/models.json @@ -43,6 +43,36 @@ "lng.required": "The location latitude is required" } }, + "media_upload": { + "fields": { + "description": { + "label": "Description" + }, + "file_path": { + "label": "File Path" + }, + "label": { + "label": "Label" + }, + "mime_type": { + "label": "Mime Type" + }, + "res_base": { + "label": "Resource Endpoint" + }, + "res_path": { + "label": "Resource Path" + } + }, + "schema": { + "file_path.required": "The media file path is required", + "mime_type.required": "The media mime type is required", + "res_base.regex": "The media resource endpoint requires an http protocol", + "res_base.required": "The media resource endpoint is required", + "res_base.url": "The media resource endpoint is incorrectly formatted", + "res_path.required": "The media resource path is required" + } + }, "nostr_profile": { "fields": { "about": { diff --git a/apps-lib/src/lib/types/el.ts b/apps-lib/src/lib/types/el.ts @@ -4,6 +4,7 @@ import type { ThemeLayer } from "@radroots/theme"; export type GlyphKeyCurrency = `dollar` | `eur`; export type GlyphKey = | + `seal-check` | `selection-foreground` | `image-square` | `image-broken` |