From 88ed3498d175e4e8e0e3285bdae9bad14dfd2178 Mon Sep 17 00:00:00 2001
From: Vincent Baaij
Date: Tue, 5 Sep 2023 23:16:50 +0200
Subject: [PATCH] Re-add scripts to index.html/_Layout.cshtml Update docs
---
examples/Demo/Client/wwwroot/index.html | 9 ++++++---
examples/Demo/Server/Pages/_Layout.cshtml | 5 ++++-
.../Demo/Shared/Pages/CodeEditor/CodeEditorPage.razor | 10 +++++++---
3 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/examples/Demo/Client/wwwroot/index.html b/examples/Demo/Client/wwwroot/index.html
index c62650857d..c51b1c8445 100644
--- a/examples/Demo/Client/wwwroot/index.html
+++ b/examples/Demo/Client/wwwroot/index.html
@@ -48,11 +48,14 @@
🗙
-
+
-
-
+
+
+
+
+
diff --git a/examples/Demo/Server/Pages/_Layout.cshtml b/examples/Demo/Server/Pages/_Layout.cshtml
index eb96176c80..0718c20fdf 100644
--- a/examples/Demo/Server/Pages/_Layout.cshtml
+++ b/examples/Demo/Server/Pages/_Layout.cshtml
@@ -44,7 +44,10 @@
-
+
+
+
+
diff --git a/examples/Demo/Shared/Pages/CodeEditor/CodeEditorPage.razor b/examples/Demo/Shared/Pages/CodeEditor/CodeEditorPage.razor
index 2d796bc317..8c4c120d5c 100644
--- a/examples/Demo/Shared/Pages/CodeEditor/CodeEditorPage.razor
+++ b/examples/Demo/Shared/Pages/CodeEditor/CodeEditorPage.razor
@@ -12,7 +12,11 @@
Important: When using this component, make sure to add the following line to your index.html
/ _Layout.cshtml
before where the Blazor script is added:
- <script src="_content/Microsoft.Fast.Components.FluentUI/lib/monaco-editor/min/vs/loader.min.js"></script>
+
+ <script src="_content/Microsoft.Fast.Components.FluentUI/lib/monaco-editor/min/vs/loader.min.js"></script>
+ <script>require.config({ paths: { 'vs': '_content/Microsoft.Fast.Components.FluentUI/lib/monaco-editor/min/vs' } });</script>
+ <script src="_content/Microsoft.Fast.Components.FluentUI/lib/monaco-editor/min/vs/editor/editor.main.js"></script>
+
@@ -22,9 +26,9 @@
An example of this can be found in this demo site's source code available on GitHub.
-
-
Example
+API Documentation
+
\ No newline at end of file