OnlineSheet
+ +@code { + +} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet.razor.cs new file mode 100644 index 00000000000..dc06fd5d6fc --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet.razor.cs @@ -0,0 +1,8 @@ +using Microsoft.AspNetCore.Components; + +namespace BootstrapBlazor.Server.Components.Samples.Tutorials; + +public partial class OnlineSheet : ComponentBase +{ +} + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet.razor.css b/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet.razor.css new file mode 100644 index 00000000000..5f282702bb0 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet.razor.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet/OnlineContributor.razor b/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet/OnlineContributor.razor new file mode 100644 index 00000000000..9a991e2de4b --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/Tutorials/OnlineSheet/OnlineContributor.razor @@ -0,0 +1,16 @@ +@namespace BootstrapBlazor.Server.Components.Samples.Tutorials + +Plugins parameter"
+ },
+ "BootstrapBlazor.Server.Components.Samples.Tutorials.OnlineSheet": {
+ "ToastOnReadyTitle": "Collaboration Notification",
+ "ToastOnReadyContent": "After 4 seconds the table is updated by other writers to change the content"
}
}
diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json
index 6b33b5ed63b..e51327f430c 100644
--- a/src/BootstrapBlazor.Server/Locales/zh-CN.json
+++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json
@@ -21,7 +21,8 @@
"WaterfallSummary": "瀑布流图片 Waterfall",
"TranslateSummary": "翻译工具 Translate",
"DrawingSummary": "画图 Drawing",
- "AdminSummary": "中台 Admin"
+ "AdminSummary": "中台 Admin",
+ "OnlineSheet": "在线表格 UniverSheet"
},
"BootstrapBlazor.Server.Components.Components.Pre": {
"LoadingText": "正在加载 ...",
@@ -7017,5 +7018,9 @@
"ToastOnReadyContent": "表格组件已就绪,可进行后续数据推送等操作",
"PluginTitle": "自定义插件",
"PluginIntro": "通过设置 Plugins 参数设置自己的插件"
+ },
+ "BootstrapBlazor.Server.Components.Samples.Tutorials.OnlineSheet": {
+ "ToastOnReadyTitle": "在线表格协作通知",
+ "ToastOnReadyContent": "4 秒后表格更新其他写作人员更改内容"
}
}
diff --git a/src/BootstrapBlazor.Server/Services/MockOnlineContributor.cs b/src/BootstrapBlazor.Server/Services/MockOnlineContributor.cs
new file mode 100644
index 00000000000..0a60295454c
--- /dev/null
+++ b/src/BootstrapBlazor.Server/Services/MockOnlineContributor.cs
@@ -0,0 +1,71 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License
+// See the LICENSE file in the project root for more information.
+// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
+
+using Longbow.Tasks;
+
+namespace BootstrapBlazor.Server.Services;
+
+class MockOnlineContributor(IDispatchService