From 60efeb9b19e0af4860a795b843fcbb340717203c Mon Sep 17 00:00:00 2001
From: Recolic K <bensl@microsoft.com>
Date: Wed, 12 May 2021 17:05:25 +0800
Subject: [PATCH] add web

---
 web/cis.cc    | 6 +++---
 web/index.php | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/web/cis.cc b/web/cis.cc
index 90c8ba3..cc42a36 100644
--- a/web/cis.cc
+++ b/web/cis.cc
@@ -1,11 +1,11 @@
 // This is a DEMO. You may use any C++17 syntax here. 
 
-// 先用这种语法定义每一个单独的Activity。
+// 先演示一下定义一个Activity的正常语法。
 //                  (ActivityName,   ClassName_In_Our_Code            , DependencyEntityName)
 Activity HaveASleep ("HaveASleep", "FleetAGC.Activities.DelayActivity", "");
 HaveASleep.addInputSetting("Timespan", "60");
 
-// 不想把上面的定义复制粘贴很多遍。那就偷个懒。
+// 但是如果你要定义很多很多Activity,建议用这种方法偷懒。
 #define DEFINE_ACTIVITY(name, entityName) \
         Activity name (#name, "FleetAGC.Activities.DelayActivity", entityName); \
         name.addInputSetting("Timespan", "60");
@@ -25,7 +25,7 @@ DEFINE_ACTIVITY(ODFBSyncClient, "M365Poc.SPO.ODFBSyncClient")
 // 把定义好的Activity组合一下,其中箭头表示串行,竖线表示并行。
 auto block1 = GridManager >> FarmsAndTennats >> (CSC | FastSearch);
 auto block2 = Microservices | MonitorAndAlert;
-auto completeFlow = block1 | AuthAndProvision | block2 | SPOTooling | UXCDNFailover | ODFBSyncClient;
+auto completeFlow = block1 | AuthAndProvision | block2 >> SPOTooling | UXCDNFailover | ODFBSyncClient;
 
 // 最后指定一下workflow的名字就可以了。
 println(completeFlow.generateXaml("FleetAGC.Workflows.SPOBuildoutPOCWorkflow"));
diff --git a/web/index.php b/web/index.php
index 9715e64..b7d8b50 100644
--- a/web/index.php
+++ b/web/index.php
@@ -18,7 +18,7 @@ $temp_path = 'cis.cc';
 function showform($content) {
     global $demo_path;
     echo("<form action='index.php' id='subm' method='post'><input type='submit'><br /><br />");
-    echo('<textarea id="txa_content" name="content" form="subm" rows="50" cols="60">');
+    echo('<textarea id="txa_content" name="content" form="subm">');
     if($content == '') {
         $content = file_get_contents($demo_path);
         $content = htmlentities($content, ENT_QUOTES);
@@ -51,7 +51,7 @@ else {
     <script>
         var editor = CodeMirror.fromTextArea(document.getElementById("txa_content"), {
           lineNumbers: true,
-//          extraKeys: {"Ctrl-Space": "autocomplete"},
+          matchBrackets: true,
           mode: "text/x-c++src", 
         });
     </script>
-- 
GitLab