commit 5747aeb1386dcab704de1ac576a490361dde7c0f
parent cec23f8009cbb63f37f94d82529b80ad0704a302
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Thu, 21 Nov 2024 08:34:20 +0000
apps-lib: edit component styles, add/edit locales. update packages
Diffstat:
3 files changed, 146 insertions(+), 111 deletions(-)
diff --git a/apps-lib/package.json b/apps-lib/package.json
@@ -43,7 +43,7 @@
"vite": "^5.0.11"
},
"dependencies": {
- "@nostr-dev-kit/ndk": "^2.10.0",
+ "@nostr-dev-kit/ndk": "^2.10.6",
"@nostr-dev-kit/ndk-cache-dexie": "^2.5.1",
"@nostr-dev-kit/ndk-svelte": "^2.2.18",
"@radroots/theme": "workspace:*",
diff --git a/apps-lib/src/lib/components/button_layout.svelte b/apps-lib/src/lib/components/button_layout.svelte
@@ -27,7 +27,7 @@
}}
>
<p
- class={`${fmt_cl(basis.classes_inner)} font-sans font-[600] tracking-wide text-layer-${layer}-glyph_d ${basis.disabled ? `` : `group-active:text-layer-${layer}-glyph/40 `} el-re`}
+ class={`${fmt_cl(basis.classes_inner)} font-sans font-[600] tracking-wide text-layer-${layer}-glyph-shade ${basis.disabled ? `` : `group-active:text-layer-${layer}-glyph/40 `} el-re`}
>
{basis.label}
</p>
diff --git a/apps-lib/src/lib/locales/en/models.json b/apps-lib/src/lib/locales/en/models.json
@@ -1,6 +1,24 @@
{
"location_gcs": {
"fields": {
+ "lat": {
+ "label": "Location Latitude"
+ },
+ "lng": {
+ "label": "Location Latitude"
+ },
+ "geohash": {
+ "label": "Location Geohash"
+ },
+ "label": {
+ "label": "Location Label"
+ },
+ "gc_id": {
+ "label": "Location Gc Id"
+ },
+ "gc_name": {
+ "label": "Location Gc Name"
+ },
"gc_admin1_id": {
"label": "Location Gc Admin1 Id"
},
@@ -12,48 +30,59 @@
},
"gc_country_name": {
"label": "Location Gc Country Name"
+ }
+ },
+ "schema": {
+ "lat.required": "The location latitude is required",
+ "lat.min": "The location latitude must be greater than -90",
+ "lat.max": "The location latitude must be less than 90",
+ "lng.required": "The location latitude is required",
+ "lng.min": "The location latitude must be greater than -180",
+ "lng.max": "The location latitude must be less than 180",
+ "geohash.required": "The location geohash is required",
+ "geohash.length": "The location geohash must be 9 characters"
+ }
+ },
+ "log_error": {
+ "fields": {
+ "error": {
+ "label": "Log Error"
},
- "gc_id": {
- "label": "Location Gc Id"
+ "message": {
+ "label": "Log Message"
},
- "gc_name": {
- "label": "Location Gc Name"
+ "stack_trace": {
+ "label": "Log Stack Trace"
},
- "geohash": {
- "label": "Location Geohash"
+ "cause": {
+ "label": "Log Cause"
},
- "label": {
- "label": "Location Label"
+ "app_system": {
+ "label": "Log App System"
},
- "lat": {
- "label": "Location Latitude"
+ "app_version": {
+ "label": "Log App Version"
},
- "lng": {
- "label": "Location Latitude"
+ "nostr_pubkey": {
+ "label": "Log Nostr Pubkey"
+ },
+ "data": {
+ "label": "Log Data"
}
},
"schema": {
- "geohash.length": "The location geohash must be 9 characters",
- "geohash.required": "The location geohash is required",
- "lat.max": "The location latitude must be less than 90",
- "lat.min": "The location latitude must be greater than -90",
- "lat.required": "The location latitude is required",
- "lng.max": "The location latitude must be less than 180",
- "lng.min": "The location latitude must be greater than -180",
- "lng.required": "The location latitude is required"
+ "error.required": "The log error is required",
+ "message.required": "The log message is required",
+ "app_system.required": "The log app system is required",
+ "app_version.required": "The log app version is required",
+ "nostr_pubkey.required": "The log nostr pubkey is required"
}
},
"media_upload": {
"fields": {
- "description": {
- "label": "Description"
- },
"file_path": {
"label": "File Path"
},
- "label": {
- "label": "Label"
- },
"mime_type": {
"label": "Mime Type"
},
@@ -62,96 +91,102 @@
},
"res_path": {
"label": "Resource Path"
+ },
+ "label": {
+ "label": "Label"
+ },
+ "description": {
+ "label": "Description"
}
},
"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_base.regex": "The media resource endpoint requires an http protocol",
"res_path.required": "The media resource path is required"
}
},
"nostr_profile": {
"fields": {
- "about": {
- "label": "Profile About"
+ "public_key": {
+ "label": "Profile Public Key"
},
- "banner": {
- "label": "Profile Banner"
+ "name": {
+ "label": "Profile Name"
},
"display_name": {
"label": "Profile Display Name"
},
- "lud06": {
- "label": "Profile Lud-06"
+ "about": {
+ "label": "Profile About"
},
- "lud16": {
- "label": "Profile Lud-16"
+ "website": {
+ "label": "Profile Website"
},
- "name": {
- "label": "Profile Name"
+ "picture": {
+ "label": "Profile Picture"
+ },
+ "banner": {
+ "label": "Profile Banner"
},
"nip05": {
"label": "Profile Nip-05"
},
- "picture": {
- "label": "Profile Picture"
- },
- "public_key": {
- "label": "Profile Public Key"
+ "lud06": {
+ "label": "Profile Lud-06"
},
- "website": {
- "label": "Profile Website"
+ "lud16": {
+ "label": "Profile Lud-16"
}
},
"schema": {
- "banner.url": "The profile banner url is incomplete",
- "nip05.email": "The profile nip-05 is incorrectly formatted",
- "picture.url": "The profile picture url is incomplete",
- "public_key.length": "The profile public key must be 64 characters",
"public_key.required": "The profile public key is required",
- "website.url": "The profile website url is incomplete"
+ "public_key.length": "The profile public key must be 64 characters",
+ "website.url": "The profile website url is incomplete",
+ "picture.url": "The profile picture url is incomplete",
+ "banner.url": "The profile banner url is incomplete",
+ "nip05.email": "The profile nip-05 is incorrectly formatted"
}
},
"nostr_relay": {
"fields": {
- "contact": {
- "label": "Administrator Contact"
- },
- "data": {
- "label": "Additional Information"
+ "url": {
+ "label": "Relay Endpoint"
},
- "description": {
- "label": "Relay Description"
+ "relay_id": {
+ "label": "Relay Id"
},
"name": {
"label": "Relay Name"
},
+ "description": {
+ "label": "Relay Description"
+ },
"pubkey": {
"label": "Administrator"
},
- "relay_id": {
- "label": "Relay Id"
- },
- "software": {
- "label": "Software"
+ "contact": {
+ "label": "Administrator Contact"
},
"supported_nips": {
"label": "Supported Nips"
},
- "url": {
- "label": "Relay Endpoint"
+ "software": {
+ "label": "Software"
},
"version": {
"label": "Software Version"
+ },
+ "data": {
+ "label": "Additional Information"
}
},
"schema": {
- "url.regex": "The relay relay endpoint requires a websocket protocol",
"url.required": "The relay relay endpoint is required",
- "url.url": "The relay relay endpoint is incorrectly formatted"
+ "url.url": "The relay relay endpoint is incorrectly formatted",
+ "url.regex": "The relay relay endpoint requires a websocket protocol"
}
},
"trade_product": {
@@ -159,78 +194,78 @@
"key": {
"label": "Product Kind"
},
- "lot": {
- "label": "Product Lot"
- },
- "notes": {
- "label": "Notes"
- },
- "price_amt": {
- "label": "Price Amount"
- },
- "price_currency": {
- "label": "Price Currency"
- },
- "price_qty_amt": {
- "label": "Price Quantity"
+ "title": {
+ "label": "Product Title"
},
- "price_qty_unit": {
- "label": "Price Quantity Unit"
+ "summary": {
+ "label": "Product Description"
},
"process": {
"label": "Processing Method"
},
+ "lot": {
+ "label": "Product Lot"
+ },
"profile": {
"label": "Flavor Profile"
},
+ "year": {
+ "label": "Production Year"
+ },
"qty_amt": {
"label": "Quantity Amount"
},
- "qty_avail": {
- "label": "Quantity Available"
+ "qty_unit": {
+ "label": "Quantity Unit"
},
"qty_label": {
"label": "Quantity Name"
},
- "qty_unit": {
- "label": "Quantity Unit"
+ "qty_avail": {
+ "label": "Quantity Available"
},
- "summary": {
- "label": "Product Description"
+ "price_amt": {
+ "label": "Price Amount"
},
- "title": {
- "label": "Product Title"
+ "price_currency": {
+ "label": "Price Currency"
},
- "year": {
- "label": "Production Year"
+ "price_qty_amt": {
+ "label": "Price Quantity"
+ },
+ "price_qty_unit": {
+ "label": "Price Quantity Unit"
+ },
+ "notes": {
+ "label": "Notes"
}
},
"schema": {
"key.required": "The product kind is required",
- "lot.max": "The product lot must be less than 120 characters",
- "lot.min": "The product lot must be more than 1 character",
- "lot.required": "The product lot is required",
- "price_amt.positive": "The product price amount must be positive",
- "price_amt.required": "The product price amount is required",
- "price_currency.length": "The product price currency must be 3 characters",
- "price_currency.required": "The product price currency is required",
- "price_qty_amt.int": "The product price quantity must be an integer",
- "price_qty_amt.positive": "The product price quantity must be positive",
- "price_qty_amt.required": "The product price quantity is required",
- "price_qty_unit.required": "The product price quantity unit is required",
+ "title.required": "The product title is required",
+ "summary.required": "The product description is required",
"process.required": "The product processing method is required",
+ "lot.required": "The product lot is required",
+ "lot.min": "The product lot must be more than 1 character",
+ "lot.max": "The product lot must be less than 120 characters",
"profile.required": "The product flavor profile is required",
+ "year.required": "The product production year is required",
+ "year.int": "The product production year must be an integer",
+ "year.positive": "The product production year must be positive",
+ "qty_amt.required": "The product quantity amount is required",
"qty_amt.int": "The product quantity amount must be an integer",
"qty_amt.positive": "The product quantity amount must be positive",
- "qty_amt.required": "The product quantity amount is required",
+ "qty_unit.required": "The product quantity unit is required",
"qty_avail.int": "The product quantity available must be an integer",
"qty_avail.positive": "The product quantity available must be positive",
- "qty_unit.required": "The product quantity unit is required",
- "summary.required": "The product description is required",
- "title.required": "The product title is required",
- "year.int": "The product production year must be an integer",
- "year.positive": "The product production year must be positive",
- "year.required": "The product production year is required"
+ "price_amt.required": "The product price amount is required",
+ "price_amt.positive": "The product price amount must be positive",
+ "price_currency.required": "The product price currency is required",
+ "price_currency.length": "The product price currency must be 3 characters",
+ "price_qty_amt.required": "The product price quantity is required",
+ "price_qty_amt.int": "The product price quantity must be an integer",
+ "price_qty_amt.positive": "The product price quantity must be positive",
+ "price_qty_unit.required": "The product price quantity unit is required"
}
}
}
\ No newline at end of file