mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[Chore] Update dist
This commit is contained in:
parent
4134a7d575
commit
04794d33a2
4 changed files with 4 additions and 9 deletions
5
dist/module/Example Module.js
vendored
5
dist/module/Example Module.js
vendored
|
@ -1,5 +0,0 @@
|
||||||
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"second.js":[function(require,module,exports) {
|
|
||||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.exampleImportedFunction=void 0;var e=function(){console.log("example imported function")};exports.exampleImportedFunction=e;
|
|
||||||
},{}],"index.js":[function(require,module,exports) {
|
|
||||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("./second.js"),o={goosemodHandlers:{onImport:function(){(0,e.exampleImportedFunction)()},onRemove:function(){}}};exports.default=o;
|
|
||||||
},{"./second.js":"second.js"}]},{},["index.js"], null);parcelRequire('index.js').default
|
|
3
dist/module/Example Sub-Module.js
vendored
3
dist/module/Example Sub-Module.js
vendored
|
@ -1,3 +0,0 @@
|
||||||
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"index.js":[function(require,module,exports) {
|
|
||||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={goosemodHandlers:{onImport:function(){},onRemove:function(){}}};exports.default=e;
|
|
||||||
},{}]},{},["index.js"], null);parcelRequire('index.js').default
|
|
3
dist/module/Message Click Actions.js
vendored
Normal file
3
dist/module/Message Click Actions.js
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"index.js":[function(require,module,exports) {
|
||||||
|
"use strict";function e(e,r){return i(e)||o(e,r)||n(e,r)||t()}function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}function i(e){if(Array.isArray(e))return e}function c(e,t,n,r,o,i,c){try{var u=e[i](c),a=u.value}catch(l){return void n(l)}u.done?t(a):Promise.resolve(a).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function u(e){c(i,r,o,u,a,"next",e)}function a(e){c(i,r,o,u,a,"throw",e)}u(void 0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a,l="Message Click Actions",s={deleteClick:!0,doubleClickEdit:!0,controlClickReply:!0,keepDiscordBehavior:!0},d={Delete:!1,Control:!1},f=function(e){return function(t){t.key in d&&(d[t.key]=e)}},p=f(!0),g=f(!1),y={},v=function(e){return e.childrenMessageContent.props.message},m=function(e){if(d.Delete&&s.deleteClick){var t=v(e);y.edit.deleteMessage(t.channel_id,t.id)}else{if(!d.Control||!s.controlClickReply)return!0;var n=v(e);y.replyToMessage(y.getChannel(n.channel_id),n)}},h=function(e){if(s.doubleClickEdit){var t=v(e);y.edit.startEditMessage(t.channel_id,t.id,t.content||"")}},k={goosemodHandlers:{onImport:function(){var e=u(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=goosemodScope.webpackModules,y.edit=t.findByProps("startEditMessage"),y.getChannel=t.findByProps("getChannel").getChannel,y.replyToMessage=t.findByProps("replyToMessage").replyToMessage,n=t.find(function(e){return e.default&&"Message"===e.default.displayName}),a=goosemodScope.patcher.patch(n,"default",function(e){var t=e[0].onClick;e[0].onClick=function(){m(e[0])&&s.keepDiscordBehavior&&t.apply(this,arguments)},e[0].onDoubleClick=function(){return h(e[0])}},!0),document.addEventListener("keydown",p),document.addEventListener("keyup",g);case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onLoadingFinished:function(){var e=u(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:goosemodScope.settings.createItem(l,[{type:"header",text:"Actions"},{type:"toggle",text:"Double-Click to edit",onToggle:function(e){return s.doubleClickEdit=e},isToggled:function(){return s.doubleClickEdit}},{type:"toggle",text:"Control + Click to reply",onToggle:function(e){return s.controlClickReply=e},isToggled:function(){return s.controlClickReply}},{type:"toggle",text:"Delete + Click to delete",onToggle:function(e){return s.deleteClick=e},isToggled:function(){return s.deleteClick}},{type:"toggle",text:"Keep Default Discord Behavior (Alt+Click to mark unread)",onToggle:function(e){return s.keepDiscordBehavior=e},isToggled:function(){return s.keepDiscordBehavior}}]);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onRemove:function(){var e=u(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:goosemodScope.settings.removeItem(l),a(),document.removeEventListener("keydown",p),document.removeEventListener("keyup",g);case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),getSettings:function(){return[s]},loadSettings:function(t){var n=e(t,1)[0];s=n}}};exports.default=k;
|
||||||
|
},{}]},{},["index.js"], null);parcelRequire('index.js').default
|
2
dist/modules.json
vendored
2
dist/modules.json
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue