mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 22:27:21 +00:00
Generated the JSON contracts of visual briefings and model answers at compile time (#1151)
This commit is contained in:
1 parent
24e3c22db3
commit
770c16e20a
101 files changed
+2333
-392
No files matched your search
@@ -49,19 +49,9 @@ internal sealed class VisualBriefingLayoutCompiler
|
||||
|
||||
var interactions = VisualBriefingInteractionCompiler.Compile(content.Controls, content.Formulas);
|
||||
|
||||
var data = JsonSerializer.SerializeToElement(new
|
||||
{
|
||||
slots,
|
||||
charts = chartOptions,
|
||||
interactions,
|
||||
accessibility = content.AccessibilityTexts,
|
||||
sourceReferences = content.SourceReferences,
|
||||
labels = new
|
||||
{
|
||||
reset = content.ResetLabel,
|
||||
brand = "MindWork AI Studio",
|
||||
},
|
||||
}, VisualBriefingJson.Canonical);
|
||||
var data = JsonSerializer.SerializeToElement(
|
||||
new VisualBriefingCompiledData(slots, chartOptions, interactions, content.AccessibilityTexts, content.SourceReferences, VisualBriefingLabels.Of(content.ResetLabel)),
|
||||
VisualBriefingJson.Canonical);
|
||||
|
||||
var html = CompileNode(layout, sections, components, content, true);
|
||||
var css = CompileCss(profile, layout);
|
||||
|
||||
Reference in new issue
Block a user