feat: three nuxt frontends, demo seed, rounding + money-exponent + rate-cast fixes, archived specs

This commit is contained in:
Chengdong Zhang
2026-09-17 13:34:38 +08:00
parent dc9fd31c5e
commit 653f13161a
85 changed files with 4327 additions and 106 deletions
+19
View File
@@ -0,0 +1,19 @@
<script setup lang="ts">
const props = defineProps<{ status: string; kind: "order" | "shipment" | "invoice" }>();
const tone = computed(() => {
if (["completed", "delivered", "issued"].includes(props.status)) return "green";
if (["paid", "fulfilling", "shipped"].includes(props.status)) return "blue";
if (["cancelled"].includes(props.status)) return "red";
return "orange";
});
const label = computed(() => {
const root = props.kind === "order" ? "order.status" : props.kind === "shipment" ? "shipment.status" : "invoice.status";
return `${root}.${props.status}`;
});
</script>
<template>
<span class="badge" :class="tone">{{ $t(label) }}</span>
</template>