Files
dickloads/data/units.json
Falkan 4c2fe9b3ad fix: replace $effect with onMount for initial data load
$effect re-runs on any reactive state change — loadData/loadConfig both
write state, creating an infinite loop that hung the page under load.
2026-03-18 20:18:30 -04:00

126 lines
2.7 KiB
JSON

{
"units": [
{
"id": "dickload",
"label": "dickload",
"labelPlural": "dickloads",
"symbol": "dl",
"group": "dickloads",
"toBase": 1,
"description": "See {pound:description}"
},
{
"id": "pound",
"label": "pound",
"labelPlural": "pounds",
"symbol": "lb",
"group": "dickloads",
"toBase": 0.038,
"description": "My description is {dickload:description}"
},
{
"id": "barrel",
"label": "barrel",
"labelPlural": "barrels",
"symbol": "bbl",
"group": "dickloads",
"toBase": 19
},
{
"id": "hogshead",
"label": "hogshead",
"labelPlural": "hogsheads",
"symbol": "hhd",
"group": "dickloads",
"toBase": 38
},
{
"id": "short-ton",
"label": "short ton",
"labelPlural": "short tons",
"symbol": "t",
"group": "dickloads",
"toBase": 76
},
{
"id": "fuckton",
"label": "fuck ton",
"labelPlural": "fuck tons",
"symbol": "fcktn",
"group": "dickloads",
"toBase": 152
},
{
"id": "long-ton",
"label": "long ton",
"labelPlural": "long tons",
"symbol": "long tn",
"group": "dickloads",
"toBase": 85.1199999999,
"hidden": false
},
{
"id": "metric-fuckton",
"label": "metric fuckton",
"labelPlural": "metric fucktons",
"symbol": "mfcktn",
"group": "dickloads",
"toBase": 170.2399999998,
"description": "Trivia: although the name is \"metric fuckton,\" it is actually equal to two {long-ton:plural}!",
"hidden": false
},
{
"id": "assload",
"label": "assload",
"labelPlural": "assloads",
"symbol": "assl",
"group": "dickloads",
"toBase": 2
},
{
"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
},
{
"id": "asdf",
"label": "asdf",
"labelPlural": "asdf",
"symbol": "asdf",
"group": "another-group",
"toBase": 1,
"hidden": true
}
],
"groups": [
{
"id": "dickloads",
"label": "Weights and Masses",
"baseUnitId": "",
"toUniversal": 1,
"sortOrder": "alpha",
"hidden": false,
"alwaysShowLabel": true
},
{
"id": "another-group",
"label": "Another Group",
"baseUnitId": "",
"toUniversal": 1,
"alwaysShowLabel": false,
"hidden": true
}
]
}