Kaynağa Gözat

增加新的脚本编辑器

(cherry picked from commit 230c074a3674dcfeae543271692060888c3625c5)
huqi 5 yıl önce
ebeveyn
işleme
16797a45bd
87 değiştirilmiş dosya ile 907 ekleme ve 66 silme
  1. 1 0
      o2web/source/o2_core/o2.js
  2. 162 28
      o2web/source/o2_core/o2/widget/JavascriptEditor.js
  3. 25 0
      o2web/source/o2_core/o2/widget/monaco.js
  4. BIN
      o2web/source/o2_lib/vs/base/browser/ui/codiconLabel/codicon/codicon.ttf
  5. 85 0
      o2web/source/o2_lib/vs/base/worker/workerMain.js
  6. 6 0
      o2web/source/o2_lib/vs/basic-languages/abap/abap.js
  7. 6 0
      o2web/source/o2_lib/vs/basic-languages/apex/apex.js
  8. 7 0
      o2web/source/o2_lib/vs/basic-languages/azcli/azcli.js
  9. 7 0
      o2web/source/o2_lib/vs/basic-languages/bat/bat.js
  10. 6 0
      o2web/source/o2_lib/vs/basic-languages/cameligo/cameligo.js
  11. 6 0
      o2web/source/o2_lib/vs/basic-languages/clojure/clojure.js
  12. 6 0
      o2web/source/o2_lib/vs/basic-languages/coffee/coffee.js
  13. 6 0
      o2web/source/o2_lib/vs/basic-languages/cpp/cpp.js
  14. 6 0
      o2web/source/o2_lib/vs/basic-languages/csharp/csharp.js
  15. 7 0
      o2web/source/o2_lib/vs/basic-languages/csp/csp.js
  16. 6 0
      o2web/source/o2_lib/vs/basic-languages/css/css.js
  17. 7 0
      o2web/source/o2_lib/vs/basic-languages/dockerfile/dockerfile.js
  18. 6 0
      o2web/source/o2_lib/vs/basic-languages/fsharp/fsharp.js
  19. 6 0
      o2web/source/o2_lib/vs/basic-languages/go/go.js
  20. 6 0
      o2web/source/o2_lib/vs/basic-languages/graphql/graphql.js
  21. 6 0
      o2web/source/o2_lib/vs/basic-languages/handlebars/handlebars.js
  22. 6 0
      o2web/source/o2_lib/vs/basic-languages/html/html.js
  23. 7 0
      o2web/source/o2_lib/vs/basic-languages/ini/ini.js
  24. 6 0
      o2web/source/o2_lib/vs/basic-languages/java/java.js
  25. 6 0
      o2web/source/o2_lib/vs/basic-languages/javascript/javascript.js
  26. 6 0
      o2web/source/o2_lib/vs/basic-languages/kotlin/kotlin.js
  27. 6 0
      o2web/source/o2_lib/vs/basic-languages/less/less.js
  28. 6 0
      o2web/source/o2_lib/vs/basic-languages/lua/lua.js
  29. 6 0
      o2web/source/o2_lib/vs/basic-languages/markdown/markdown.js
  30. 6 0
      o2web/source/o2_lib/vs/basic-languages/mips/mips.js
  31. 6 0
      o2web/source/o2_lib/vs/basic-languages/msdax/msdax.js
  32. 6 0
      o2web/source/o2_lib/vs/basic-languages/mysql/mysql.js
  33. 6 0
      o2web/source/o2_lib/vs/basic-languages/objective-c/objective-c.js
  34. 6 0
      o2web/source/o2_lib/vs/basic-languages/pascal/pascal.js
  35. 7 0
      o2web/source/o2_lib/vs/basic-languages/pascaligo/pascaligo.js
  36. 6 0
      o2web/source/o2_lib/vs/basic-languages/perl/perl.js
  37. 6 0
      o2web/source/o2_lib/vs/basic-languages/pgsql/pgsql.js
  38. 6 0
      o2web/source/o2_lib/vs/basic-languages/php/php.js
  39. 6 0
      o2web/source/o2_lib/vs/basic-languages/postiats/postiats.js
  40. 6 0
      o2web/source/o2_lib/vs/basic-languages/powerquery/powerquery.js
  41. 6 0
      o2web/source/o2_lib/vs/basic-languages/powershell/powershell.js
  42. 6 0
      o2web/source/o2_lib/vs/basic-languages/pug/pug.js
  43. 6 0
      o2web/source/o2_lib/vs/basic-languages/python/python.js
  44. 6 0
      o2web/source/o2_lib/vs/basic-languages/r/r.js
  45. 6 0
      o2web/source/o2_lib/vs/basic-languages/razor/razor.js
  46. 6 0
      o2web/source/o2_lib/vs/basic-languages/redis/redis.js
  47. 6 0
      o2web/source/o2_lib/vs/basic-languages/redshift/redshift.js
  48. 6 0
      o2web/source/o2_lib/vs/basic-languages/restructuredtext/restructuredtext.js
  49. 6 0
      o2web/source/o2_lib/vs/basic-languages/ruby/ruby.js
  50. 6 0
      o2web/source/o2_lib/vs/basic-languages/rust/rust.js
  51. 7 0
      o2web/source/o2_lib/vs/basic-languages/sb/sb.js
  52. 7 0
      o2web/source/o2_lib/vs/basic-languages/scheme/scheme.js
  53. 6 0
      o2web/source/o2_lib/vs/basic-languages/scss/scss.js
  54. 6 0
      o2web/source/o2_lib/vs/basic-languages/shell/shell.js
  55. 6 0
      o2web/source/o2_lib/vs/basic-languages/solidity/solidity.js
  56. 6 0
      o2web/source/o2_lib/vs/basic-languages/sophia/sophia.js
  57. 6 0
      o2web/source/o2_lib/vs/basic-languages/sql/sql.js
  58. 6 0
      o2web/source/o2_lib/vs/basic-languages/st/st.js
  59. 9 0
      o2web/source/o2_lib/vs/basic-languages/swift/swift.js
  60. 6 0
      o2web/source/o2_lib/vs/basic-languages/tcl/tcl.js
  61. 6 0
      o2web/source/o2_lib/vs/basic-languages/twig/twig.js
  62. 6 0
      o2web/source/o2_lib/vs/basic-languages/typescript/typescript.js
  63. 6 0
      o2web/source/o2_lib/vs/basic-languages/vb/vb.js
  64. 7 0
      o2web/source/o2_lib/vs/basic-languages/xml/xml.js
  65. 6 0
      o2web/source/o2_lib/vs/basic-languages/yaml/yaml.js
  66. 5 0
      o2web/source/o2_lib/vs/editor/editor.main.css
  67. 7 0
      o2web/source/o2_lib/vs/editor/editor.main.js
  68. 10 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.de.js
  69. 10 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.es.js
  70. 10 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.fr.js
  71. 10 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.it.js
  72. 9 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.ja.js
  73. 10 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.js
  74. 9 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.ko.js
  75. 9 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.ru.js
  76. 9 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.zh-cn.js
  77. 9 0
      o2web/source/o2_lib/vs/editor/editor.main.nls.zh-tw.js
  78. 6 0
      o2web/source/o2_lib/vs/language/css/cssMode.js
  79. 6 0
      o2web/source/o2_lib/vs/language/css/cssWorker.js
  80. 6 0
      o2web/source/o2_lib/vs/language/html/htmlMode.js
  81. 6 0
      o2web/source/o2_lib/vs/language/html/htmlWorker.js
  82. 6 0
      o2web/source/o2_lib/vs/language/json/jsonMode.js
  83. 6 0
      o2web/source/o2_lib/vs/language/json/jsonWorker.js
  84. 6 0
      o2web/source/o2_lib/vs/language/typescript/tsMode.js
  85. 20 0
      o2web/source/o2_lib/vs/language/typescript/tsWorker.js
  86. 37 0
      o2web/source/o2_lib/vs/loader.js
  87. 56 38
      o2web/source/x_component_process_ScriptDesigner/Script.js

+ 1 - 0
o2web/source/o2_core/o2.js

@@ -346,6 +346,7 @@
         "raphael": ["/o2_lib/raphael/raphael.js"],
         "d3": ["/o2_lib/d3/d3.min.js"],
         "ace": ["/o2_lib/ace/src-min-noconflict/ace.js","/o2_lib/ace/src-min-noconflict/ext-language_tools.js"],
+        "monaco": ["/o2_lib/vs/loader.js"],
         "JSBeautifier": ["/o2_lib/JSBeautifier/beautify.js"],
         "JSBeautifier_css": ["/o2_lib/JSBeautifier/beautify-css.js"],
         "JSBeautifier_html": ["/o2_lib/JSBeautifier/beautify-html.js"],

+ 162 - 28
o2web/source/o2_core/o2/widget/JavascriptEditor.js

@@ -1,11 +1,13 @@
 o2.widget = o2.widget || {};
 o2.require("o2.widget.codemirror", null, false);
 o2.require("o2.widget.ace", null, false);
+o2.require("o2.widget.monaco", null, false);
 o2.require("o2.xDesktop.UserData", null, false);
 o2.widget.JavascriptEditor = new Class({
 	Implements: [Options, Events],
 	options: {
-        "type": "ace",
+        //"type": "ace",
+        "type": "monaco",
 		"title": "JavascriptEditor",
 		"style": "default",
 		"option": {
@@ -16,53 +18,172 @@ o2.widget.JavascriptEditor = new Class({
 	},
 	initialize: function(node, options){
 		this.setOptions(options);
+		this.unbindEvents = [];
 		this.editorClass = o2.widget[this.options.type];
 		this.node = $(node);
 	},
+    getDefaultEditorData: function(){
+	    switch (this.options.type) {
+            case "ace":
+                return {
+                    "javascriptEditor": {
+                        "theme": "tomorrow",
+                        "fontSize" : "12px"
+                    }
+                };
+            case "monaco":
+                return {
+                    "javascriptEditor": {
+                        "monaco_theme": "vs",
+                        "fontSize" : "12px"
+                    }
+                };
+        }
+    },
     getEditorTheme: function(callback){
         if (!o2.editorData){
             o2.UD.getData("editor", function(json){
                 if (json.data){
                     o2.editorData = JSON.decode(json.data);
                 }else{
-                    o2.editorData = {
-                        "javascriptEditor": {
-                            "theme": "tomorrow",
-                            "fontSize" : "12px"
-                        }
-                    };
+                    o2.editorData = this.getDefaultEditorData();
                 }
                 if (callback) callback();
-            });
+            }.bind(this));
         }else{
             if (callback) callback();
         }
     },
     load: function(callback){
         this.getEditorTheme(function(json){
-            if (o2.editorData.javascriptEditor){
-                this.theme = o2.editorData.javascriptEditor.theme;
-                this.fontSize = o2.editorData.javascriptEditor.fontSize;
-            }else{
-                o2.editorData.javascriptEditor = {
-                    "theme": "tomorrow",
-                    "fontSize" : "12px"
-                };
-            }
-            if (!this.theme) this.theme = "tomorrow";
-            if( !this.fontSize )this.fontSize = "12px";
             if (this.options.type.toLowerCase()=="ace"){
                 this.loadAce(callback);
             }
+            if (this.options.type.toLowerCase()=="monaco"){
+                this.loadMonaco(callback);
+            }
             if (this.options.type.toLowerCase()=="codeMirror"){
                 this.loadCodeMirror(callback);
             }
+
+            while (this.unbindEvents.length){
+                var ev = this.unbindEvents.shift();
+                this.addEditorEvent(ev.name, ev.fun);
+            }
         }.bind(this));
     },
+
+    loadMonaco: function(callback){
+	    debugger;
+        if (o2.editorData.javascriptEditor){
+            this.theme = o2.editorData.javascriptEditor.monaco_theme;
+            this.fontSize = o2.editorData.javascriptEditor.fontSize;
+        }else{
+            o2.editorData.javascriptEditor = {
+                "monaco_theme": "vs",
+                "fontSize" : "12px"
+            };
+        }
+        if (!this.theme) this.theme = "vs";
+        if( !this.fontSize )this.fontSize = "12px";
+
+        this.editorClass.load(function(){
+            this.editor = monaco.editor.create(this.node, {
+                value: this.options.option.value,
+                language: "javascript",
+                theme: this.theme,
+                fontSize: this.fontSize,
+                lineNumbersMinChars: 3,
+                mouseWheelZoom: true,
+                automaticLayout: true
+            });
+            this.focus();
+
+            this.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S, function(e){
+                this.fireEvent("save");
+            }.bind(this));
+
+            this.fireEvent("postLoad");
+            if (callback) callback();
+
+        }.bind(this));
+    },
+
+    setValue: function(v){
+        //if (this.options.type.toLowerCase()=="ace"){
+        if (this.editor) this.editor.setValue(v);
+        //}
+        // if (this.options.type.toLowerCase()=="monaco"){
+        //     setValue
+        //
+        //     setTimeout(function() {
+        //         this.editor.updateOptions({
+        //             "value": v
+        //         });
+        //     }, 1000);
+        // }
+    },
+    getValue: function(){
+        return (this.editor) ? this.editor.getValue() : "";
+    },
+    resize: function(y){
+        if (this.editor){
+            if (this.options.type.toLowerCase()=="ace"){
+                this.editor.resize();
+            }
+            if (this.options.type.toLowerCase()=="monaco"){
+                this.editor.layout();
+            }
+        }
+    },
+    addEditorEvent: function(name, fun){
+        if (this.editor){
+            if (this.options.type.toLowerCase()=="ace"){
+                this.editor.on(name, fun);
+            }
+            if (this.options.type.toLowerCase()=="monaco"){
+                var ev = name;
+                switch (ev) {
+                    case "change": ev = "onDidChangeModelContent";
+                }
+                if (this.editor[ev]) this.editor[ev](fun);
+            }
+        }else{
+            this.unbindEvents.push({"name": name, "fun": fun});
+        }
+    },
+    validatedAce: function(){
+        var session = this.editor.getSession();
+        var annotations = session.getAnnotations();
+        for (var i=0; i<annotations.length; i++){
+            if (annotations[i].type=="error") return false;
+        }
+        return true;
+    },
+    validatedMonaco: function(){
+        var mod = this.editor.getModel();
+        var ms = monaco.editor.getModelMarkers({"resource": mod.uri});
+        for (var i=0; i<ms.length; i++){
+            if (ms[i].severity==8) return false;
+        }
+        return true;
+    },
+
+    validated: function(){
+        if (this.editor){
+           switch (this.options.type.toLowerCase()) {
+               case "ace": return this.validatedAce();
+               case "monaco": return this.validatedMonaco();
+           }
+            return true;
+        }
+        return true
+    },
+
     focus: function(){
         if (this.editor){
             this.editor.focus();
-            this.goto();
+            if (this.options.type.toLowerCase()=="ace") this.goto();
         }
     },
     goto: function(){
@@ -73,6 +194,18 @@ o2.widget.JavascriptEditor = new Class({
         this.editor.gotoLine(p.row+1, p.column+1, true);
     },
     loadAce: function(callback){
+        if (o2.editorData.javascriptEditor){
+            this.theme = o2.editorData.javascriptEditor.theme;
+            this.fontSize = o2.editorData.javascriptEditor.fontSize;
+        }else{
+            o2.editorData.javascriptEditor = {
+                "theme": "tomorrow",
+                "fontSize" : "12px"
+            };
+        }
+        if (!this.theme) this.theme = "tomorrow";
+        if( !this.fontSize )this.fontSize = "12px";
+
         this.editorClass.load(function(){
             var exports = ace.require("ace/ext/language_tools");
             this.editor = ace.edit(this.node);
@@ -155,14 +288,14 @@ o2.widget.JavascriptEditor = new Class({
                 }.bind(this),
                 readOnly: false // false if this command should not apply in readOnly mode
             });
-            this.editor.commands.addCommand({
-                name: 'help',
-                bindKey: {win: 'Ctrl-Q|Ctrl-Alt-Space|Ctrl-Space|Alt-/',  mac: 'Command-Q'},
-                exec: function(editor, e, e1) {
-                    this.fireEvent("reference", [editor, e, e1]);
-                }.bind(this),
-                readOnly: false // false if this command should not apply in readOnly mode
-            });
+            // this.editor.commands.addCommand({
+            //     name: 'help',
+            //     bindKey: {win: 'Ctrl-Q|Ctrl-Alt-Space|Ctrl-Space|Alt-/',  mac: 'Command-Q'},
+            //     exec: function(editor, e, e1) {
+            //         this.fireEvent("reference", [editor, e, e1]);
+            //     }.bind(this),
+            //     readOnly: false // false if this command should not apply in readOnly mode
+            // });
 
             this.editor.commands.addCommand({
                 name: 'format',
@@ -217,6 +350,7 @@ o2.widget.JavascriptEditor = new Class({
         }.bind(this));
     },
 
+
 	loadCodeMirror: function(callback){
 		if (this.fireEvent("queryLoad")){
 			this.editorClass.load(function(){

+ 25 - 0
o2web/source/o2_core/o2/widget/monaco.js

@@ -0,0 +1,25 @@
+o2.widget = o2.widget || {};
+o2.widget.monaco = {
+    //"ace": COMMON.contentPath+"/res/framework/ace/src-min/ace.js",
+    //"tools": COMMON.contentPath+"/res/framework/ace/src-min/ext-language_tools.js",
+    "load": function(callback){
+        if (!window.monaco){
+            o2.load("monaco", {"sequence": true}, function(){
+                require.config({ paths: { "vs": "/o2_lib/vs" }});
+                require(["vs/editor/editor.main"], function() {
+                    if (callback) callback();
+                    // var editor = monaco.editor.create(document.getElementById('container'), {
+                    //     value: [
+                    //         'function x() {',
+                    //         '\tconsole.log("Hello world!");',
+                    //         '}'
+                    //     ].join('\n'),
+                    //     language: 'javascript'
+                    // });
+                });
+            }.bind(this));
+        }else{
+            if (callback) callback();
+        }
+    }
+};

BIN
o2web/source/o2_lib/vs/base/browser/ui/codiconLabel/codicon/codicon.ttf


Dosya farkı çok büyük olduğundan ihmal edildi
+ 85 - 0
o2web/source/o2_lib/vs/base/worker/workerMain.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/abap/abap.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/apex/apex.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/azcli/azcli.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/azcli/azcli",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"#"}},t.language={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}));

+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/bat/bat.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/bat/bat",["require","exports"],(function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/cameligo/cameligo.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/clojure/clojure.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/coffee/coffee.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/cpp/cpp.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/csharp/csharp.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/csp/csp.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/csp/csp",["require","exports"],(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conf={brackets:[],autoClosingPairs:[],surroundingPairs:[]},e.language={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/css/css.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/dockerfile/dockerfile.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/dockerfile/dockerfile",["require","exports"],(function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s.language={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/fsharp/fsharp.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/go/go.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/graphql/graphql.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/handlebars/handlebars.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/html/html.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/ini/ini.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/ini/ini",["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n.language={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/java/java.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/javascript/javascript.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/kotlin/kotlin.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/less/less.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/lua/lua.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/markdown/markdown.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/mips/mips.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/msdax/msdax.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/mysql/mysql.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/objective-c/objective-c.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/pascal/pascal.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/pascaligo/pascaligo.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/pascaligo/pascaligo",["require","exports"],(function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.conf={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},o.language={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/perl/perl.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/pgsql/pgsql.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/php/php.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/postiats/postiats.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/powerquery/powerquery.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/powershell/powershell.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/pug/pug.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/python/python.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/r/r.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/razor/razor.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/redis/redis.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/redshift/redshift.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/restructuredtext/restructuredtext.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/ruby/ruby.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/rust/rust.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/sb/sb.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/sb/sb",["require","exports"],(function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.conf={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},o.language={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}));

+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/scheme/scheme.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/scheme/scheme",["require","exports"],(function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.conf={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o.language={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/scss/scss.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/shell/shell.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/solidity/solidity.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/sophia/sophia.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/sql/sql.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/st/st.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
o2web/source/o2_lib/vs/basic-languages/swift/swift.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/tcl/tcl.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/twig/twig.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/typescript/typescript.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/vb/vb.js


+ 7 - 0
o2web/source/o2_lib/vs/basic-languages/xml/xml.js

@@ -0,0 +1,7 @@
+/*!-----------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * monaco-languages version: 1.10.0(1b4729c63bdb0d1e06d4e637e5c3977ddeb714dd)
+ * Released under the MIT license
+ * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md
+ *-----------------------------------------------------------------------------*/
+define("vs/basic-languages/xml/xml",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},t.language={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/basic-languages/yaml/yaml.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 5 - 0
o2web/source/o2_lib/vs/editor/editor.main.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 7 - 0
o2web/source/o2_lib/vs/editor/editor.main.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.de.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.es.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.fr.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.it.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.ja.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.ko.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.ru.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.zh-cn.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
o2web/source/o2_lib/vs/editor/editor.main.nls.zh-tw.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/css/cssMode.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/css/cssWorker.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/html/htmlMode.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/html/htmlWorker.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/json/jsonMode.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/json/jsonWorker.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 6 - 0
o2web/source/o2_lib/vs/language/typescript/tsMode.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 20 - 0
o2web/source/o2_lib/vs/language/typescript/tsWorker.js


+ 37 - 0
o2web/source/o2_lib/vs/loader.js

@@ -0,0 +1,37 @@
+/*!-----------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Version: 0.20.0(6363745c0a33c27b149b89342a7b96d354fb554c)
+ * Released under the MIT license
+ * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
+ *-----------------------------------------------------------*/
+"use strict";var define,AMDLoader,_amdLoaderGlobal=this,_commonjsGlobal="object"==typeof global?global:{};!function(e){e.global=_amdLoaderGlobal;var t=function(){function t(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1}return Object.defineProperty(t.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!0,configurable:!0}),t.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=t._isWindows(),this._isNode="undefined"!=typeof module&&!!module.exports,
+this._isElectronRenderer="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type,this._isWebWorker="function"==typeof e.global.importScripts)},t._isWindows=function(){return!!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0)||"undefined"!=typeof process&&"win32"===process.platform},t}();e.Environment=t}(AMDLoader||(AMDLoader={})),function(e){var t=function(e,t,r){this.type=e,this.detail=t,this.timestamp=r};e.LoaderEvent=t;var r=function(){function r(e){this._events=[new t(1,"",e)]}return r.prototype.record=function(r,n){this._events.push(new t(r,n,e.Utilities.getHighPerformanceTimestamp()))},r.prototype.getEvents=function(){return this._events},r}();e.LoaderEventRecorder=r;var n=function(){function e(){}return e.prototype.record=function(e,t){},e.prototype.getEvents=function(){return[]},e.INSTANCE=new e,e}();e.NullLoaderEventRecorder=n}(AMDLoader||(AMDLoader={})),function(e){var t=function(){
+function t(){}return t.fileUriToFilePath=function(e,t){if(t=decodeURI(t).replace(/%23/g,"#"),e){if(/^file:\/\/\//.test(t))return t.substr(8);if(/^file:\/\//.test(t))return t.substr(5)}else if(/^file:\/\//.test(t))return t.substr(7);return t},t.startsWith=function(e,t){return e.length>=t.length&&e.substr(0,t.length)===t},t.endsWith=function(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t},t.containsQueryString=function(e){return/^[^\#]*\?/gi.test(e)},t.isAbsolutePath=function(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)},t.forEachProperty=function(e,t){if(e){var r=void 0;for(r in e)e.hasOwnProperty(r)&&t(r,e[r])}},t.isEmpty=function(e){var r=!0;return t.forEachProperty(e,(function(){r=!1})),r},t.recursiveClone=function(e){if(!e||"object"!=typeof e)return e;var r=Array.isArray(e)?[]:{};return t.forEachProperty(e,(function(e,n){r[e]=n&&"object"==typeof n?t.recursiveClone(n):n})),r},t.generateAnonymousModule=function(){return"===anonymous"+t.NEXT_ANONYMOUS_ID+++"==="},
+t.isAnonymousModule=function(e){return t.startsWith(e,"===anonymous")},t.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=e.global.performance&&"function"==typeof e.global.performance.now),this.HAS_PERFORMANCE_NOW?e.global.performance.now():Date.now()},t.NEXT_ANONYMOUS_ID=1,t.PERFORMANCE_NOW_PROBED=!1,t.HAS_PERFORMANCE_NOW=!1,t}();e.Utilities=t}(AMDLoader||(AMDLoader={})),function(e){function t(e){if(e instanceof Error)return e;var t=new Error(e.message||String(e)||"Unknown Error");return e.stack&&(t.stack=e.stack),t}e.ensureError=t;var r=function(){function r(){}return r.validateConfigurationOptions=function(r){if("string"!=typeof(r=r||{}).baseUrl&&(r.baseUrl=""),"boolean"!=typeof r.isBuild&&(r.isBuild=!1),"object"!=typeof r.paths&&(r.paths={}),"object"!=typeof r.config&&(r.config={}),void 0===r.catchError&&(r.catchError=!1),void 0===r.recordStats&&(r.recordStats=!1),"string"!=typeof r.urlArgs&&(r.urlArgs=""),
+"function"!=typeof r.onError&&(r.onError=function(e){return"loading"===e.phase?(console.error('Loading "'+e.moduleId+'" failed'),console.error(e),console.error("Here are the modules that depend on it:"),void console.error(e.neededBy)):"factory"===e.phase?(console.error('The factory method of "'+e.moduleId+'" has thrown an exception'),void console.error(e)):void 0}),Array.isArray(r.ignoreDuplicateModules)||(r.ignoreDuplicateModules=[]),r.baseUrl.length>0&&(e.Utilities.endsWith(r.baseUrl,"/")||(r.baseUrl+="/")),"string"!=typeof r.cspNonce&&(r.cspNonce=""),Array.isArray(r.nodeModules)||(r.nodeModules=[]),r.nodeCachedData&&"object"==typeof r.nodeCachedData&&("string"!=typeof r.nodeCachedData.seed&&(r.nodeCachedData.seed="seed"),("number"!=typeof r.nodeCachedData.writeDelay||r.nodeCachedData.writeDelay<0)&&(r.nodeCachedData.writeDelay=7e3),!r.nodeCachedData.path||"string"!=typeof r.nodeCachedData.path)){var n=t(new Error("INVALID cached data configuration, 'path' MUST be set"));n.phase="configuration",
+r.onError(n),r.nodeCachedData=void 0}return r},r.mergeConfigurationOptions=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.Utilities.recursiveClone(n||{});return e.Utilities.forEachProperty(t,(function(t,r){"ignoreDuplicateModules"===t&&void 0!==o.ignoreDuplicateModules?o.ignoreDuplicateModules=o.ignoreDuplicateModules.concat(r):"paths"===t&&void 0!==o.paths?e.Utilities.forEachProperty(r,(function(e,t){return o.paths[e]=t})):"config"===t&&void 0!==o.config?e.Utilities.forEachProperty(r,(function(e,t){return o.config[e]=t})):o[t]=e.Utilities.recursiveClone(r)})),r.validateConfigurationOptions(o)},r}();e.ConfigurationOptionsUtil=r;var n=function(){function t(e,t){if(this._env=e,this.options=r.mergeConfigurationOptions(t),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),""===this.options.baseUrl){if(this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){
+var n=this.options.nodeRequire.main.filename,o=Math.max(n.lastIndexOf("/"),n.lastIndexOf("\\"));this.options.baseUrl=n.substring(0,o+1)}if(this.options.nodeMain&&this._env.isNode){n=this.options.nodeMain,o=Math.max(n.lastIndexOf("/"),n.lastIndexOf("\\"));this.options.baseUrl=n.substring(0,o+1)}}}return t.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var e=0;e<this.options.ignoreDuplicateModules.length;e++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[e]]=!0},t.prototype._createNodeModulesMap=function(){this.nodeModulesMap=Object.create(null);for(var e=0,t=this.options.nodeModules;e<t.length;e++){var r=t[e];this.nodeModulesMap[r]=!0}},t.prototype._createSortedPathsRules=function(){var t=this;this.sortedPathsRules=[],e.Utilities.forEachProperty(this.options.paths,(function(e,r){Array.isArray(r)?t.sortedPathsRules.push({from:e,to:r}):t.sortedPathsRules.push({from:e,to:[r]})})),this.sortedPathsRules.sort((function(e,t){
+return t.from.length-e.from.length}))},t.prototype.cloneAndMerge=function(e){return new t(this._env,r.mergeConfigurationOptions(e,this.options))},t.prototype.getOptionsLiteral=function(){return this.options},t.prototype._applyPaths=function(t){for(var r,n=0,o=this.sortedPathsRules.length;n<o;n++)if(r=this.sortedPathsRules[n],e.Utilities.startsWith(t,r.from)){for(var i=[],s=0,d=r.to.length;s<d;s++)i.push(r.to[s]+t.substr(r.from.length));return i}return[t]},t.prototype._addUrlArgsToUrl=function(t){return e.Utilities.containsQueryString(t)?t+"&"+this.options.urlArgs:t+"?"+this.options.urlArgs},t.prototype._addUrlArgsIfNecessaryToUrl=function(e){return this.options.urlArgs?this._addUrlArgsToUrl(e):e},t.prototype._addUrlArgsIfNecessaryToUrls=function(e){if(this.options.urlArgs)for(var t=0,r=e.length;t<r;t++)e[t]=this._addUrlArgsToUrl(e[t]);return e},t.prototype.moduleIdToPaths=function(t){if(!0===this.nodeModulesMap[t])return this.isBuild()?["empty:"]:["node|"+t];var r,n=t
+;if(e.Utilities.endsWith(n,".js")||e.Utilities.isAbsolutePath(n))e.Utilities.endsWith(n,".js")||e.Utilities.containsQueryString(n)||(n+=".js"),r=[n];else for(var o=0,i=(r=this._applyPaths(n)).length;o<i;o++)this.isBuild()&&"empty:"===r[o]||(e.Utilities.isAbsolutePath(r[o])||(r[o]=this.options.baseUrl+r[o]),e.Utilities.endsWith(r[o],".js")||e.Utilities.containsQueryString(r[o])||(r[o]=r[o]+".js"));return this._addUrlArgsIfNecessaryToUrls(r)},t.prototype.requireToUrl=function(t){var r=t;return e.Utilities.isAbsolutePath(r)||(r=this._applyPaths(r)[0],e.Utilities.isAbsolutePath(r)||(r=this.options.baseUrl+r)),this._addUrlArgsIfNecessaryToUrl(r)},t.prototype.isBuild=function(){return this.options.isBuild},t.prototype.isDuplicateMessageIgnoredFor=function(e){return this.ignoreDuplicateModulesMap.hasOwnProperty(e)},t.prototype.getConfigForModule=function(e){if(this.options.config)return this.options.config[e]},t.prototype.shouldCatchError=function(){return this.options.catchError},
+t.prototype.shouldRecordStats=function(){return this.options.recordStats},t.prototype.onError=function(e){this.options.onError(e)},t}();e.Configuration=n}(AMDLoader||(AMDLoader={})),function(e){var t=function(){function e(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}return e.prototype.load=function(e,t,i,s){var d=this;this._scriptLoader||(this._scriptLoader=this._env.isWebWorker?new n:this._env.isNode?new o(this._env):new r);var a={callback:i,errorback:s};this._callbackMap.hasOwnProperty(t)?this._callbackMap[t].push(a):(this._callbackMap[t]=[a],this._scriptLoader.load(e,t,(function(){return d.triggerCallback(t)}),(function(e){return d.triggerErrorback(t,e)})))},e.prototype.triggerCallback=function(e){var t=this._callbackMap[e];delete this._callbackMap[e];for(var r=0;r<t.length;r++)t[r].callback()},e.prototype.triggerErrorback=function(e,t){var r=this._callbackMap[e];delete this._callbackMap[e];for(var n=0;n<r.length;n++)r[n].errorback(t)},e}(),r=function(){function e(){}
+return e.prototype.attachListeners=function(e,t,r){var n=function(){e.removeEventListener("load",o),e.removeEventListener("error",i)},o=function(e){n(),t()},i=function(e){n(),r(e)};e.addEventListener("load",o),e.addEventListener("error",i)},e.prototype.load=function(e,t,r,n){var o=document.createElement("script");o.setAttribute("async","async"),o.setAttribute("type","text/javascript"),this.attachListeners(o,r,n),o.setAttribute("src",t);var i=e.getConfig().getOptionsLiteral().cspNonce;i&&o.setAttribute("nonce",i),document.getElementsByTagName("head")[0].appendChild(o)},e}(),n=function(){function e(){}return e.prototype.load=function(e,t,r,n){try{importScripts(t),r()}catch(e){n(e)}},e}(),o=function(){function t(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}return t.prototype._init=function(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))},t.prototype._initNodeRequire=function(e,t){
+var r=t.getConfig().getOptionsLiteral().nodeCachedData;if(r&&!this._didPatchNodeRequire){this._didPatchNodeRequire=!0;var n=this,o=e("module");o.prototype._compile=function(e,i){var s,d=o.wrap(e.replace(/^#!.*/,"")),a=t.getRecorder(),u=n._getCachedDataPath(r,i),l={filename:i};try{var c=n._fs.readFileSync(u);s=c.slice(0,16),l.cachedData=c.slice(16),a.record(60,u)}catch(e){a.record(61,u)}var h=new n._vm.Script(d,l),f=h.runInThisContext(l),p=n._path.dirname(i),_=function(e){var t=e.constructor,r=function(t){try{return e.require(t)}finally{}};return r.resolve=function(r){return t._resolveFilename(r,e)},r.main=process.mainModule,r.extensions=t._extensions,r.cache=t._cache,r}(this),g=[this.exports,_,this,i,p,process,_commonjsGlobal,Buffer],v=f.apply(this.exports,g);return n._handleCachedData(h,d,u,!l.cachedData,t),n._verifyCachedData(h,d,u,s,t),v}}},t.prototype.load=function(r,n,o,i){var s=this,d=r.getConfig().getOptionsLiteral(),a=d.nodeRequire||e.global.nodeRequire,u=d.nodeInstrumenter||function(e){return e}
+;this._init(a),this._initNodeRequire(a,r);var l=r.getRecorder();if(/^node\|/.test(n)){var c=n.split("|"),h=null;try{h=a(c[1])}catch(e){return void i(e)}r.enqueueDefineAnonymousModule([],(function(){return h})),o()}else{n=e.Utilities.fileUriToFilePath(this._env.isWindows,n);var f=this._path.normalize(n),p=this._getElectronRendererScriptPathOrUri(f),_=Boolean(d.nodeCachedData),g=_?this._getCachedDataPath(d.nodeCachedData,n):void 0;this._readSourceAndCachedData(f,g,l,(function(e,n,d,a){if(e)i(e);else{var l;l=n.charCodeAt(0)===t._BOM?t._PREFIX+n.substring(1)+t._SUFFIX:t._PREFIX+n+t._SUFFIX,l=u(l,f);var c={filename:p,cachedData:d},h=s._createAndEvalScript(r,l,c,o,i);s._handleCachedData(h,l,g,_&&!d,r),s._verifyCachedData(h,l,g,a,r)}}))}},t.prototype._createAndEvalScript=function(t,r,n,o,i){var s=t.getRecorder();s.record(31,n.filename);var d=new this._vm.Script(r,n),a=d.runInThisContext(n),u=t.getGlobalAMDDefineFunc(),l=!1,c=function(){return l=!0,u.apply(null,arguments)};return c.amd=u.amd,
+a.call(e.global,t.getGlobalAMDRequireFunc(),c,n.filename,this._path.dirname(n.filename)),s.record(32,n.filename),l?o():i(new Error("Didn't receive define call in "+n.filename+"!")),d},t.prototype._getElectronRendererScriptPathOrUri=function(e){if(!this._env.isElectronRenderer)return e;var t=e.match(/^([a-z])\:(.*)/i);return t?"file:///"+(t[1].toUpperCase()+":"+t[2]).replace(/\\/g,"/"):"file://"+e},t.prototype._getCachedDataPath=function(e,t){var r=this._crypto.createHash("md5").update(t,"utf8").update(e.seed,"utf8").digest("hex"),n=this._path.basename(t).replace(/\.js$/,"");return this._path.join(e.path,n+"-"+r+".code")},t.prototype._handleCachedData=function(e,t,r,n,o){var i=this;e.cachedDataRejected?this._fs.unlink(r,(function(n){o.getRecorder().record(62,r),i._createAndWriteCachedData(e,t,r,o),n&&o.getConfig().onError(n)})):n&&this._createAndWriteCachedData(e,t,r,o)},t.prototype._createAndWriteCachedData=function(e,t,r,n){
+var o=this,i=Math.ceil(n.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),s=-1,d=0,a=void 0,u=function(){setTimeout((function(){a||(a=o._crypto.createHash("md5").update(t,"utf8").digest());var i=e.createCachedData();0===i.length||i.length===s||d>=5||(s=i.length,o._fs.writeFile(r,Buffer.concat([a,i]),(function(e){e&&n.getConfig().onError(e),n.getRecorder().record(63,r),u()})))}),i*Math.pow(4,d++))};u()},t.prototype._readSourceAndCachedData=function(e,t,r,n){if(t){var o=void 0,i=void 0,s=void 0,d=2,a=function(e){e?n(e):0==--d&&n(void 0,o,i,s)};this._fs.readFile(e,{encoding:"utf8"},(function(e,t){o=t,a(e)})),this._fs.readFile(t,(function(e,n){!e&&n&&n.length>0?(s=n.slice(0,16),i=n.slice(16),r.record(60,t)):r.record(61,t),a()}))}else this._fs.readFile(e,{encoding:"utf8"},n)},t.prototype._verifyCachedData=function(e,t,r,n,o){var i=this;n&&(e.cachedDataRejected||setTimeout((function(){var e=i._crypto.createHash("md5").update(t,"utf8").digest()
+;n.equals(e)||(o.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+r+"' now, but a RESTART IS REQUIRED")),i._fs.unlink(r,(function(e){return o.getConfig().onError(e)})))}),Math.ceil(5e3*(1+Math.random()))))},t._BOM=65279,t._PREFIX="(function (require, define, __filename, __dirname) { ",t._SUFFIX="\n});",t}();e.createScriptLoader=function(e){return new t(e)}}(AMDLoader||(AMDLoader={})),function(e){var t=function(){function t(e){var t=e.lastIndexOf("/");this.fromModulePath=-1!==t?e.substr(0,t+1):""}return t._normalizeModuleId=function(e){var t,r=e;for(t=/\/\.\//;t.test(r);)r=r.replace(t,"/");for(r=r.replace(/^\.\//g,""),t=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;t.test(r);)r=r.replace(t,"/");return r=r.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,"")},t.prototype.resolveModule=function(r){var n=r
+;return e.Utilities.isAbsolutePath(n)||(e.Utilities.startsWith(n,"./")||e.Utilities.startsWith(n,"../"))&&(n=t._normalizeModuleId(this.fromModulePath+n)),n},t.ROOT=new t(""),t}();e.ModuleIdResolver=t;var r=function(){function t(e,t,r,n,o,i){this.id=e,this.strId=t,this.dependencies=r,this._callback=n,this._errorback=o,this.moduleIdResolver=i,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return t._safeInvokeFunction=function(t,r){try{return{returnedValue:t.apply(e.global,r),producedError:null}}catch(e){return{returnedValue:null,producedError:e}}},t._invokeFactory=function(t,r,n,o){return t.isBuild()&&!e.Utilities.isAnonymousModule(r)?{returnedValue:null,producedError:null}:t.shouldCatchError()?this._safeInvokeFunction(n,o):{returnedValue:n.apply(e.global,o),producedError:null}},t.prototype.complete=function(r,n,o){this._isComplete=!0;var i=null;if(this._callback)if("function"==typeof this._callback){r.record(21,this.strId)
+;var s=t._invokeFactory(n,this.strId,this._callback,o);i=s.producedError,r.record(22,this.strId),i||void 0===s.returnedValue||this.exportsPassedIn&&!e.Utilities.isEmpty(this.exports)||(this.exports=s.returnedValue)}else this.exports=this._callback;if(i){var d=e.ensureError(i);d.phase="factory",d.moduleId=this.strId,this.error=d,n.onError(d)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},t.prototype.onDependencyError=function(e){return this._isComplete=!0,this.error=e,!!this._errorback&&(this._errorback(e),!0)},t.prototype.isComplete=function(){return this._isComplete},t}();e.Module=r;var n=function(){function e(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return e.prototype.getMaxModuleId=function(){return this._nextId},e.prototype.getModuleId=function(e){var t=this._strModuleIdToIntModuleId.get(e);return void 0===t&&(t=this._nextId++,
+this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t},e.prototype.getStrModuleId=function(e){return this._intModuleIdToStrModuleId[e]},e}(),o=function(){function e(e){this.id=e}return e.EXPORTS=new e(0),e.MODULE=new e(1),e.REQUIRE=new e(2),e}();e.RegularDependency=o;var i=function(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r};e.PluginDependency=i;var s=function(){function s(t,r,o,i,s){void 0===s&&(s=0),this._env=t,this._scriptLoader=r,this._loaderAvailableTimestamp=s,this._defineFunc=o,this._requireFunc=i,this._moduleIdProvider=new n,this._config=new e.Configuration(this._env),this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[]}return s.prototype.reset=function(){return new s(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},
+s.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},s.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},s._findRelevantLocationInStack=function(e,t){for(var r=function(e){return e.replace(/\\/g,"/")},n=r(e),o=t.split(/\n/),i=0;i<o.length;i++){var s=o[i].match(/(.*):(\d+):(\d+)\)?$/);if(s){var d=s[1],a=s[2],u=s[3],l=Math.max(d.lastIndexOf(" ")+1,d.lastIndexOf("(")+1);if((d=r(d=d.substr(l)))===n){var c={line:parseInt(a,10),col:parseInt(u,10)};return 1===c.line&&(c.col-="(function (require, define, __filename, __dirname) { ".length),c}}}throw new Error("Could not correlate define call site for needle "+e)},s.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var e=[],t=0,r=0,n=this._modules2.length;r<n;r++){var o=this._modules2[r];if(o){var i=this._buildInfoPath[o.id]||null,d=this._buildInfoDefineStack[o.id]||null,a=this._buildInfoDependencies[o.id];e[t++]={id:o.strId,path:i,defineLocation:i&&d?s._findRelevantLocationInStack(i,d):null,
+dependencies:a,shim:null,exports:o.exports}}}return e},s.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new e.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=e.NullLoaderEventRecorder.INSTANCE),this._recorder},s.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},s.prototype.enqueueDefineAnonymousModule=function(e,t){if(null!==this._currentAnnonymousDefineCall)throw new Error("Can only have one anonymous define call per script file");var r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnnonymousDefineCall={stack:r,dependencies:e,callback:t}},s.prototype.defineModule=function(e,n,o,i,s,d){var a=this;void 0===d&&(d=new t(e));var u=this._moduleIdProvider.getModuleId(e);if(this._modules2[u])this._config.isDuplicateMessageIgnoredFor(e)||console.warn("Duplicate definition of module '"+e+"'");else{var l=new r(u,e,this._normalizeDependencies(n,d),o,i,d);this._modules2[u]=l,
+this._config.isBuild()&&(this._buildInfoDefineStack[u]=s,this._buildInfoDependencies[u]=(l.dependencies||[]).map((function(e){return a._moduleIdProvider.getStrModuleId(e.id)}))),this._resolve(l)}},s.prototype._normalizeDependency=function(e,t){if("exports"===e)return o.EXPORTS;if("module"===e)return o.MODULE;if("require"===e)return o.REQUIRE;var r=e.indexOf("!");if(r>=0){var n=t.resolveModule(e.substr(0,r)),s=t.resolveModule(e.substr(r+1)),d=this._moduleIdProvider.getModuleId(n+"!"+s),a=this._moduleIdProvider.getModuleId(n);return new i(d,a,s)}return new o(this._moduleIdProvider.getModuleId(t.resolveModule(e)))},s.prototype._normalizeDependencies=function(e,t){for(var r=[],n=0,o=0,i=e.length;o<i;o++)r[n++]=this._normalizeDependency(e[o],t);return r},s.prototype._relativeRequire=function(t,r,n,o){if("string"==typeof r)return this.synchronousRequire(r,t);this.defineModule(e.Utilities.generateAnonymousModule(),r,n,o,null,t)},s.prototype.synchronousRequire=function(e,r){void 0===r&&(r=new t(e))
+;var n=this._normalizeDependency(e,r),o=this._modules2[n.id];if(!o)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This is the first mention of this module!");if(!o.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This module has not been resolved completely yet.");if(o.error)throw o.error;return o.exports},s.prototype.configure=function(t,r){var n=this._config.shouldRecordStats();this._config=r?new e.Configuration(this._env,t):this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!n&&(this._recorder=null)},s.prototype.getConfig=function(){return this._config},s.prototype._onLoad=function(e){if(null!==this._currentAnnonymousDefineCall){var t=this._currentAnnonymousDefineCall;this._currentAnnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(e),t.dependencies,t.callback,null,t.stack)}},s.prototype._createLoadError=function(t,r){
+var n=this,o=this._moduleIdProvider.getStrModuleId(t),i=(this._inverseDependencies2[t]||[]).map((function(e){return n._moduleIdProvider.getStrModuleId(e)})),s=e.ensureError(r);return s.phase="loading",s.moduleId=o,s.neededBy=i,s},s.prototype._onLoadError=function(e,t){var n=this._createLoadError(e,t);this._modules2[e]||(this._modules2[e]=new r(e,this._moduleIdProvider.getStrModuleId(e),[],(function(){}),(function(){}),null));for(var o=[],i=0,s=this._moduleIdProvider.getMaxModuleId();i<s;i++)o[i]=!1;var d=!1,a=[];for(a.push(e),o[e]=!0;a.length>0;){var u=a.shift(),l=this._modules2[u];l&&(d=l.onDependencyError(n)||d);var c=this._inverseDependencies2[u];if(c)for(i=0,s=c.length;i<s;i++){var h=c[i];o[h]||(a.push(h),o[h]=!0)}}d||this._config.onError(n)},s.prototype._hasDependencyPath=function(e,t){var r=this._modules2[e];if(!r)return!1;for(var n=[],o=0,i=this._moduleIdProvider.getMaxModuleId();o<i;o++)n[o]=!1;var s=[];for(s.push(r),n[e]=!0;s.length>0;){var d=s.shift().dependencies;if(d)for(o=0,i=d.length;o<i;o++){
+var a=d[o];if(a.id===t)return!0;var u=this._modules2[a.id];u&&!n[a.id]&&(n[a.id]=!0,s.push(u))}}return!1},s.prototype._findCyclePath=function(e,t,r){if(e===t||50===r)return[e];var n=this._modules2[e];if(!n)return null;var o=n.dependencies;if(o)for(var i=0,s=o.length;i<s;i++){var d=this._findCyclePath(o[i].id,t,r+1);if(null!==d)return d.push(e),d}return null},s.prototype._createRequire=function(t){var r=this,n=function(e,n,o){return r._relativeRequire(t,e,n,o)};return n.toUrl=function(e){return r._config.requireToUrl(t.resolveModule(e))},n.getStats=function(){return r.getLoaderEvents()},n.__$__nodeRequire=e.global.nodeRequire,n},s.prototype._loadModule=function(e){var t=this;if(!this._modules2[e]&&!this._knownModules2[e]){this._knownModules2[e]=!0;var r=this._moduleIdProvider.getStrModuleId(e),n=this._config.moduleIdToPaths(r);this._env.isNode&&(-1===r.indexOf("/")||/^@[^\/]+\/[^\/]+$/.test(r))&&n.push("node|"+r);var o=-1,i=function(r){if(++o>=n.length)t._onLoadError(e,r);else{var s=n[o],d=t.getRecorder()
+;if(t._config.isBuild()&&"empty:"===s)return t._buildInfoPath[e]=s,t.defineModule(t._moduleIdProvider.getStrModuleId(e),[],null,null,null),void t._onLoad(e);d.record(10,s),t._scriptLoader.load(t,s,(function(){t._config.isBuild()&&(t._buildInfoPath[e]=s),d.record(11,s),t._onLoad(e)}),(function(e){d.record(12,s),i(e)}))}};i(null)}},s.prototype._loadPluginDependency=function(e,r){var n=this;if(!this._modules2[r.id]&&!this._knownModules2[r.id]){this._knownModules2[r.id]=!0;var o=function(e){n.defineModule(n._moduleIdProvider.getStrModuleId(r.id),[],e,null,null)};o.error=function(e){n._config.onError(n._createLoadError(r.id,e))},e.load(r.pluginParam,this._createRequire(t.ROOT),o,this._config.getOptionsLiteral())}},s.prototype._resolve=function(e){var t=this,r=e.dependencies;if(r)for(var n=0,s=r.length;n<s;n++){var d=r[n];if(d!==o.EXPORTS)if(d!==o.MODULE)if(d!==o.REQUIRE){var a=this._modules2[d.id];if(a&&a.isComplete()){if(a.error)return void e.onDependencyError(a.error);e.unresolvedDependenciesCount--
+}else if(this._hasDependencyPath(d.id,e.id)){console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(d.id)+"' and '"+this._moduleIdProvider.getStrModuleId(e.id)+"'. The cyclic path follows:");var u=this._findCyclePath(d.id,e.id,0)||[];u.reverse(),u.push(d.id),console.warn(u.map((function(e){return t._moduleIdProvider.getStrModuleId(e)})).join(" => \n")),e.unresolvedDependenciesCount--}else if(this._inverseDependencies2[d.id]=this._inverseDependencies2[d.id]||[],this._inverseDependencies2[d.id].push(e.id),d instanceof i){var l=this._modules2[d.pluginId];if(l&&l.isComplete()){this._loadPluginDependency(l.exports,d);continue}var c=this._inversePluginDependencies2.get(d.pluginId);c||(c=[],this._inversePluginDependencies2.set(d.pluginId,c)),c.push(d),this._loadModule(d.pluginId)}else this._loadModule(d.id)}else e.unresolvedDependenciesCount--;else e.unresolvedDependenciesCount--;else e.exportsPassedIn=!0,e.unresolvedDependenciesCount--}
+0===e.unresolvedDependenciesCount&&this._onModuleComplete(e)},s.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var n=e.dependencies,i=[];if(n)for(var s=0,d=n.length;s<d;s++){var a=n[s];if(a!==o.EXPORTS)if(a!==o.MODULE)if(a!==o.REQUIRE){var u=this._modules2[a.id];i[s]=u?u.exports:null}else i[s]=this._createRequire(e.moduleIdResolver);else i[s]={id:e.strId,config:function(){return t._config.getConfigForModule(e.strId)}};else i[s]=e.exports}e.complete(r,this._config,i);var l=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,l)for(s=0,d=l.length;s<d;s++){var c=l[s],h=this._modules2[c];h.unresolvedDependenciesCount--,0===h.unresolvedDependenciesCount&&this._onModuleComplete(h)}var f=this._inversePluginDependencies2.get(e.id);if(f){this._inversePluginDependencies2.delete(e.id);for(s=0,d=f.length;s<d;s++)this._loadPluginDependency(e.exports,f[s])}}},s}();e.ModuleManager=s}(AMDLoader||(AMDLoader={})),function(e){
+var t=new e.Environment,r=null,n=function(e,t,n){"string"!=typeof e&&(n=t,t=e,e=null),"object"==typeof t&&Array.isArray(t)||(n=t,t=null),t||(t=["require","exports","module"]),e?r.defineModule(e,t,n,null,null):r.enqueueDefineAnonymousModule(t,n)};n.amd={jQuery:!0};var o=function(e,t){void 0===t&&(t=!1),r.configure(e,t)},i=function(){if(1===arguments.length){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0]))return void o(arguments[0]);if("string"==typeof arguments[0])return r.synchronousRequire(arguments[0])}if(2!==arguments.length&&3!==arguments.length||!Array.isArray(arguments[0]))throw new Error("Unrecognized require call");r.defineModule(e.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null)};function s(){if(void 0!==e.global.require||"undefined"!=typeof require){var o=e.global.require||require;if("function"==typeof o&&"function"==typeof o.resolve){var s=function(e){r.getRecorder().record(33,e);try{return o(e)}finally{r.getRecorder().record(34,e)}}
+;e.global.nodeRequire=s,i.nodeRequire=s,i.__$__nodeRequire=s}}t.isNode&&!t.isElectronRenderer?(module.exports=i,require=i):(t.isElectronRenderer||(e.global.define=n),e.global.require=i)}i.config=o,i.getConfig=function(){return r.getConfig().getOptionsLiteral()},i.reset=function(){r=r.reset()},i.getBuildInfo=function(){return r.getBuildInfo()},i.getStats=function(){return r.getLoaderEvents()},i.define=function(){return n.apply(null,arguments)},e.init=s,"function"==typeof e.global.define&&e.global.define.amd||(r=new e.ModuleManager(t,e.createScriptLoader(t),n,i,e.Utilities.getHighPerformanceTimestamp()),void 0!==e.global.require&&"function"!=typeof e.global.require&&i.config(e.global.require),(define=function(){return n.apply(null,arguments)}).amd=n.amd,"undefined"==typeof doNotInitLoader&&s())}(AMDLoader||(AMDLoader={}));
+//# sourceMappingURL=../../min-maps/vs/loader.js.map

+ 56 - 38
o2web/source/x_component_process_ScriptDesigner/Script.js

@@ -63,6 +63,7 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
     //},
 
     load : function(){
+        debugger;
         this.setAreaNodeSize();
         this.designer.addEvent("resize", this.setAreaNodeSize.bind(this));
 
@@ -86,9 +87,10 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
             this.setPropertyContent();
             this.setIncludeNode();
 
-            if (this.editor.editor){
-                this.editor.editor.focus();
-                //this.editor.editor.navigateFileStart();
+            if (this.editor){
+                this.editor.focus();
+            }else{
+                this.loadEditor();
             }
         }.bind(this));
         var _self = this;
@@ -100,40 +102,49 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
         });
         this.page.tabNode.addEvent("dblclick", this.designer.maxOrReturnEditor.bind(this.designer));
 
+        if (this.options.showTab) this.page.showTabIm();
+    },
+    loadEditor:function(){
+        this.editor = new MWF.widget.JavascriptEditor(this.areaNode, {"option": {"value": this.data.text}});
+        this.editor.load(function(){
 
+            if (this.data.text) this.editor.setValue(this.data.text);
 
-        this.editor = new MWF.widget.JavascriptEditor(this.areaNode);
-        this.editor.load(function(){
-            if (this.data.text){
-                this.editor.editor.setValue(this.data.text);
-            }
-            this.editor.editor.on("change", function(e){
+            // this.editor.addEditorEvent("onDidChangeModelContent", function(e){
+            //     if (!this.isChanged){
+            //         this.isChanged = true;
+            //         this.page.textNode.set("text", " * "+this.page.textNode.get("text"));
+            //     }
+            // }.bind(this));
+            this.editor.addEditorEvent("change", function(e){
                 if (!this.isChanged){
                     this.isChanged = true;
                     this.page.textNode.set("text", " * "+this.page.textNode.get("text"));
                 }
             }.bind(this));
+
             this.editor.addEvent("save", function(){
                 this.save();
             }.bind(this));
-            this.editor.addEvent("reference", function(editor, e, e1){
-                if (!this.scriptReferenceMenu){
-                    MWF.require("MWF.widget.ScriptHelp", function(){
-                        this.scriptReferenceMenu = new MWF.widget.ScriptHelp(null, this.editor.editor, {
-                            "onPostLoad": function(){
-                                this.showReferenceMenu();
-                            }.bind(this)
-                        });
-                        this.scriptReferenceMenu.getEditor = function(){return this.editor.editor;}.bind(this)
-                    }.bind(this));
-                }else{
-                    this.showReferenceMenu();
-                }
-            }.bind(this));
+
+            // this.editor.addEvent("reference", function(editor, e, e1){
+            //     if (!this.scriptReferenceMenu){
+            //         MWF.require("MWF.widget.ScriptHelp", function(){
+            //             this.scriptReferenceMenu = new MWF.widget.ScriptHelp(null, this.editor.editor, {
+            //                 "onPostLoad": function(){
+            //                     this.showReferenceMenu();
+            //                 }.bind(this)
+            //             });
+            //             this.scriptReferenceMenu.getEditor = function(){return this.editor.editor;}.bind(this)
+            //         }.bind(this));
+            //     }else{
+            //         this.showReferenceMenu();
+            //     }
+            // }.bind(this));
 
             var options = this.designer.styleSelectNode.options;
             for (var i=0; i<options.length; i++){
-                    var option = options[i];
+                var option = options[i];
                 if (option.value==this.editor.theme){
                     option.set("selected", true);
                     break;
@@ -149,9 +160,9 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
                 }
             }
         }.bind(this));
-
-        if (this.options.showTab) this.page.showTabIm();
     },
+
+
     showReferenceMenu: function(){
         var pos = this.editor.getCursorPixelPosition();
         var e = {"page": {}};
@@ -172,11 +183,13 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
         this.designer.propertyDescriptionNode.set("value", this.data.description || "");
     },
     setAreaNodeSize: function(){
-        var size = this.node.getSize();
+        //var size = this.node.getSize();
+        var size = this.node.getComputedSize();
+        size.y = size.height;
         var tabSize = this.tab.tabNodeContainer.getSize();
         var y = size.y - tabSize.y;
         this.areaNode.setStyle("height", ""+y+"px");
-        if (this.editor) if (this.editor.editor) this.editor.editor.resize();
+        if (this.editor) this.editor.resize(y);
     },
 
     addInclude: function(){
@@ -186,15 +199,20 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
 
     save: function(callback){
         if (!this.isSave){
-            var session = this.editor.editor.getSession();
-            var annotations = session.getAnnotations();
-            var validated = true;
-            for (var i=0; i<annotations.length; i++){
-                if (annotations[i].type=="error"){
-                    validated = false;
-                    break;
-                }
-            }
+            debugger;
+            // var m = monaco.editor.getModelMarkers();
+            // var mod = this.editor.editor.getModel();
+            // var ms = monaco.editor.getModelMarkers({"resource": mod.uri});
+            //
+            // var session = this.editor.editor.getSession();
+            // var annotations = session.getAnnotations();
+            var validated = this.editor.validated();
+            // for (var i=0; i<annotations.length; i++){
+            //     if (annotations[i].type=="error"){
+            //         validated = false;
+            //         break;
+            //     }
+            // }
 
             var name = this.designer.propertyNameNode.get("value");
             var alias = this.designer.propertyAliasNode.get("value");
@@ -207,7 +225,7 @@ MWF.xApplication.process.ScriptDesigner.Script = new Class({
             this.data.alias = alias;
             this.data.description = description;
             this.data.validated = validated;
-            this.data.text = this.editor.editor.getValue();
+            this.data.text = this.editor.getValue();
 
             this.isSave = true;
             this.designer.actions.saveScript(this.data, function(json){

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor