- Unit and Group get hidden?: boolean — filtered server-side before render
- Hidden group also suppresses all its units from the converter
- New resolveDescription() utility in src/lib/description.ts
supports {id}, {id:label}, {id:plural}, {id:symbol} placeholders
- ConverterCard pre-resolves descriptions and passes result to ConversionResult
- ConversionResult accepts description prop instead of reading unit.description
- Admin forms: Hidden checkbox added for both units and groups
- drag-handle color overridden to --pico-primary-inverse on selected/drag-over rows
(white in light/dark themes, black on Dan Mode yellow)
101 lines
2.0 KiB
JSON
101 lines
2.0 KiB
JSON
{
|
|
"units": [
|
|
{
|
|
"id": "dickload",
|
|
"label": "Dickload",
|
|
"labelPlural": "Dickloads",
|
|
"symbol": "dl",
|
|
"group": "dickloads",
|
|
"toBase": 1
|
|
},
|
|
{
|
|
"id": "pound",
|
|
"label": "Pound",
|
|
"labelPlural": "Pounds",
|
|
"symbol": "lb",
|
|
"group": "dickloads",
|
|
"toBase": 0.038
|
|
},
|
|
{
|
|
"id": "barrel",
|
|
"label": "Barrel",
|
|
"labelPlural": "Barrels",
|
|
"symbol": "dlbbl",
|
|
"group": "dickloads",
|
|
"toBase": 19
|
|
},
|
|
{
|
|
"id": "hogshead",
|
|
"label": "Hogshead",
|
|
"labelPlural": "Hogsheads",
|
|
"symbol": "dlhhd",
|
|
"group": "dickloads",
|
|
"toBase": 38
|
|
},
|
|
{
|
|
"id": "assload",
|
|
"label": "Assload",
|
|
"labelPlural": "Assloads",
|
|
"symbol": "assl",
|
|
"group": "dickloads",
|
|
"toBase": 2
|
|
},
|
|
{
|
|
"id": "short-ton",
|
|
"label": "Short ton",
|
|
"labelPlural": "Short tons",
|
|
"symbol": "t",
|
|
"group": "dickloads",
|
|
"toBase": 76
|
|
},
|
|
{
|
|
"id": "long-ton",
|
|
"label": "Long ton",
|
|
"labelPlural": "Long tons",
|
|
"symbol": "long tn",
|
|
"group": "dickloads",
|
|
"toBase": 85.1199999999
|
|
},
|
|
{
|
|
"id": "fuckton",
|
|
"label": "Fuck ton",
|
|
"labelPlural": "Fucktons",
|
|
"symbol": "fcktn",
|
|
"group": "dickloads",
|
|
"toBase": 152
|
|
},
|
|
{
|
|
"id": "metric-fuckton",
|
|
"label": "Metric fuckton",
|
|
"labelPlural": "Metric fucktons",
|
|
"symbol": "mfcktn",
|
|
"group": "dickloads",
|
|
"toBase": 170.2399999998
|
|
},
|
|
{
|
|
"id": "shitload",
|
|
"label": "Shitload",
|
|
"labelPlural": "Shitloads",
|
|
"symbol": "shtld",
|
|
"group": "dickloads",
|
|
"toBase": 12.6666666667
|
|
},
|
|
{
|
|
"id": "shit-ton",
|
|
"label": "Shit ton",
|
|
"labelPlural": "Shit tons",
|
|
"symbol": "shttn",
|
|
"group": "dickloads",
|
|
"toBase": 38
|
|
}
|
|
],
|
|
"groups": [
|
|
{
|
|
"id": "dickloads",
|
|
"label": "Dickloads",
|
|
"baseUnitId": "",
|
|
"toUniversal": 1
|
|
}
|
|
]
|
|
}
|