From 5c0ba37eda80d39e6ceca59bb1d5f4942f858995 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Thu, 17 Sep 2026 14:32:37 +0800 Subject: chore: establish Strategy Lab source baseline (development, not release) --- frontend/src/components/DiffView.svelte | 71 +++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 frontend/src/components/DiffView.svelte (limited to 'frontend/src/components/DiffView.svelte') diff --git a/frontend/src/components/DiffView.svelte b/frontend/src/components/DiffView.svelte new file mode 100644 index 0000000..cf0c1be --- /dev/null +++ b/frontend/src/components/DiffView.svelte @@ -0,0 +1,71 @@ + + +
+
+ 新增({afterLabel}) + 删除({beforeLabel}) +
+ +
+ {#each lines as l, i (i)} + {#if l.t === 'a'} + +{l.text} + {:else if l.t === 'd'} + −{l.text} + {:else} + {l.text} + {/if} + {/each} +
+
+ + -- cgit v1.2.3