initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";var t=function(){function t(t,e){for(var i in e){var n=e[i];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),e=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=require("atom-space-pen-views"),o=n.View,r=require("atom"),a=r.CompositeDisposable,s=require("react");module.exports=function(n,r){var u={};if(u[r])return u[r];var c=function(o){function u(){i(this,u),null!=o&&o.apply(this,arguments)}return e(u,o),t(u,{detached:{value:function(){return s.unmountComponentAtNode(this[0]),this.editor.dispose(),this.disposables.dispose()}},initialize:{value:function(t){this.disposables=new a,this.editor=t,t.shouldScroll&&(this[0].style.overflow="auto");var e=s.createElement(n,{parent:this[0],editor:t,paneWidth:this[0].offsetWidth,paneHeight:this[0].offsetHeight});return this.editor.container=this[0],s.render(e,this[0]),this.disposables.add(atom.workspace.onDidChangeActivePaneItem(this.onActivePaneChange.bind(this))),atom.workspace.getActivePaneItem()===this.editor?this.onActivePaneChange(null):void 0}},onActivePaneChange:{value:function(t){return t&&t.constructor.name!==r?this.editor.active===!0?(this.editor.active=!1,this.editor.onPaneDeactivated()):void 0:(this.editor.active=!0,this.editor.onPaneActivated())}}},{content:{value:function(){return this.div({"class":r.match(/[A-Z][a-z]+/g).map(function(t){return t.toLowerCase()}).join("-")})}}}),u}(o);return u[r]=c,c};

1
lib/atom-react/core/react-editor.js vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";var e=function(e){return e&&e.__esModule?e["default"]:e},t=function(){function e(e,t){for(var i in t){var n=t[i];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(e,t)}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=e(require("path")),o=e(require("fs")),a=e(require("./atom-view-react-bridge")),r=require("atom"),s=r.File,u=r.Emitter,l=function(){function e(t,o){i(this,e);var a=this;this.emitter=new u,this.modifiedStatus=!1,this.shouldScroll=o,this.uri=n.normalize(t),this.tabTitle=n.parse(t).base,this.file=new s(this.uri),this.ignoreFirstReload=!0,this.onDidChangeDisposable=this.file.onDidChange(function(){return a.ignoreFirstReload?void(a.ignoreFirstReload=!1):a.shouldPromptToSave()?void(a.ignoreFirstReload=!0):(a.reload(),void(a.ignoreFirstReload=!0))}),this.onDidRenameDisposable=this.file.onDidRename(function(){a.uri=a.file.getPath(),a.tabTitle=n.parse(a.uri).base,a.emitter.emit("did-change-title")}),this.active=!1,this.container=null}return t(e,{dispose:{value:function(){this.onDidChangeDisposable.dispose(),this.onDidRenameDisposable.dispose()}},isPaneActive:{value:function(){return this.active}},onPaneActivated:{value:function(){}},onPaneDeactivated:{value:function(){}},getTitle:{value:function(){return this.tabTitle}},isModified:{value:function(){return this.modifiedStatus}},shouldPromptToSave:{value:function(){return this.modifiedStatus}},onDidChangeModified:{value:function(e){return this.emitter.on("did-change-modified",e)}},getReactClass:{value:function(){throw new Error("Override ReactEditor.getReactClass()")}},getViewClass:{value:function(){return a(this.getReactClass(),this.constructor.name)}},getURI:{value:function(){return this.uri}},getPath:{value:function(){return this.uri}},onDidChangeTitle:{value:function(e){return this.emitter.on("did-change-title",e)}},setModifiedStatus:{value:function(e){this.modifiedStatus=e,this.emitter.emit("did-change-modified",e)}},serialize:{value:function(){return{filePath:this.uri,tabTitle:this.tabTitle,deserializer:this.constructor.name}}},save:{value:function(){this.saveFile(this.uri)&&(this.ignoreFirstReload=!0,this.setModifiedStatus(!1))}},saveAs:{value:function(e){this.saveFile(e)&&(this.ignoreFirstReload=!0,this.uri=n.normalize(e),this.tabTitle=n.parse(e).base,this.emitter.emit("did-change-title",this.getTitle()))}},saveFile:{value:function(){throw new Error("Override JiboEditor.saveFile()")}},undo:{value:function(){console.log("undo")}},redo:{value:function(){console.log("redo")}},saveUiState:{value:function(e){atom.config.set("jibo-sdk."+this.constructor.name,JSON.stringify(e))}},getUiState:{value:function(){var e=atom.config.get("jibo-sdk."+this.constructor.name);return e?JSON.parse(e):void 0}},reload:{value:function(){}}},{getProjectRoot:{value:function(e){e=n.normalize(e).toLowerCase();for(var t=atom.project.getPaths(),i=0;i<t.length;i++){var o=n.normalize(t[i]).toLowerCase();if("."===e||e.includes(o))return o}return null}},deserialize:{value:function(e){return 0===e.filePath.search("atom:/")||o.existsSync(e.filePath)?new this(e.filePath):void console.warn("Could not deserialize "+this.constructor.name+" for path '"+e.filePath+"' because that file no longer exists")}}}),e}();module.exports=l;

1
lib/atom-react/core/react-pane.js vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";var t=function(t){return t&&t.__esModule?t["default"]:t},e=function(){function t(t,e){for(var i in e){var n=e[i];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=t(require("fs")),r=t(require("./atom-view-react-bridge")),a=function(){function t(e,n,r){i(this,t),this.shouldScroll=n,this.tabTitle=r,this.uri=e}return e(t,{dispose:{value:function(){}},getTitle:{value:function(){return this.tabTitle}},getReactClass:{value:function(){throw new Error("Override ReactEditor.getReactClass()")}},serialize:{value:function(){return{filePath:this.uri,tabTitle:this.tabTitle,deserializer:this.constructor.name}}},getURI:{value:function(){return this.uri}},getPath:{value:function(){return this.uri}},saveUiState:{value:function(t){atom.config.set("jibo-sdk."+this.constructor.name,JSON.stringify(t))}},getUiState:{value:function(){var t=atom.config.get("jibo-sdk."+this.constructor.name);return t?JSON.parse(t):void 0}},onPaneActivated:{value:function(){}},onPaneDeactivated:{value:function(){}},getViewClass:{value:function(){return r(this.getReactClass(),this.constructor.name)}}},{deserialize:{value:function(t){return 0===t.filePath.search("atom:/")||n.existsSync(t.filePath)?new this(t.filePath):void console.warn("Could not deserialize "+this.constructor.name+" for path '"+t.filePath+"' because that file no longer exists")}}}),t}();module.exports=a;