mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
5 lines
8.5 KiB
JavaScript
5 lines
8.5 KiB
JavaScript
|
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}({"goosemodModule.json":[function(require,module,exports) {
|
||
|
module.exports={main:"index.js",name:"Comfy Theme Pure",description:"Direct port of NYRI4's Comfy Discord theme to GooseMod",tags:["theme"],authors:["265924886461939712","186496078273708033"],version:"1.0.0"};
|
||
|
},{}],"index.js":[function(require,module,exports) {
|
||
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t,o,e,n=require("./goosemodModule.json");function r(t,o){return l(t)||s(t,o)||a(t,o)||i()}function i(){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 a(t,o){if(t){if("string"==typeof t)return u(t,o);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,o):void 0}}function u(t,o){(null==o||o>t.length)&&(o=t.length);for(var e=0,n=new Array(o);e<o;e++)n[e]=t[e];return n}function s(t,o){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],n=!0,r=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(e.push(a.value),!o||e.length!==o);n=!0);}catch(s){r=!0,i=s}finally{try{n||null==u.return||u.return()}finally{if(r)throw i}}return e}}function l(t){if(Array.isArray(t))return t}var c={usrbgXoff:"-180px",usrbgYoff:"-95px",usrbgWidth:"700px",usrbgHeight:"600px",modalAvatarRoundness:"10%",modalAvatarWidth:"130px",popoutRoleCircles:"7px",serverIconRoundness:"8px",colouredEmoji:!0,messageButtonsColour:"#6E85D3",mentionBarColour:"#C66262",mentionBackgroundColour:"#C662621F",mentionHoverColour:"#C6626226",discordTitlebar:!1,tooltips:!0,settingsButtonsColour:"096DC0",spotifySeekColour:"096DC0"};function d(){try{o.remove()}catch(t){}(o=document.createElement("style")).innerText="/* Comfy Theme overrides */ ",o.innerText+=":root{",e.usrbgXoff!=c.usrbgXoff&&(o.innerText+="--usrbg-modal-x-offset: ".concat(e.usrbgXoff," !important;")),e.usrbgYoff!=c.usrbgYoff&&(o.innerText+="--usrbg-modal-y-offset: ".concat(e.usrbgYoff," !important;")),e.usrbgWidth!=c.usrbgWidth&&(o.innerText+="--usrbg-modal-width: ".concat(e.usrbgWidth," !important;")),e.usrbgHeight!=c.usrbgHeight&&(o.innerText+="--usrbg-modal-height: ".concat(e.usrbgHeight," !important;")),e.modalAvatarRoundness!=c.modalAvatarRoundness&&(o.innerText+="--avatar-radius: ".concat(e.modalAvatarRoundness," !important;")),e.modalAvatarWidth!=c.modalAvatarWidth&&(o.innerText+="--avatar-width: ".concat(e.modalAvatarWidth," !important;")),e.popoutRoleCircles!=c.popoutRoleCircles&&(o.innerText+="--role-circles: ".concat(e.popoutRoleCircles," !important;")),e.serverIconRoundness!=c.serverIconRoundness&&(o.innerText+="--server-radius: ".concat(e.serverIconRoundness," !important;")),e.colouredEmoji!=c.colouredEmoji&&(o.innerText+="--colored-emoji: grayscale(".concat(e.colouredEmoji?0:100,"%) !important;")),e.messageButtonsColour!=c.messageButtonsColour&&(o.innerText+="--chat-buttons: ".concat(e.messageButtonsColour," !important;")),e.mentionBarColour!=c.mentionBarColour&&(o.innerText+="--mention-color-bar: ".concat(e.mentionBarColour," !important;")),e.mentionBackgroundColour!=c.mentionBackgroundColour&&(o.innerText+="--mention-color-background: ".concat(e.mentionBackgroundColour," !important;")),e.mentionHoverColour!=c.mentionHoverColour&&(o.innerText+="--mention-color-hover: ".concat(e.mentionHoverColour," !important;")),e.discordTitlebar!=c.discordTitlebar&&(o.innerText+="--discord-logo: ".concat(e.discordTitlebar?"block":"none"," !important;")),e.tooltips!=c.tooltips&&(o.innerText+="--tooltips: ".concat(e.tooltips?"block":"none"," !important;")),e.settingsButtonsColour!=c.settingsButtonsColour&&(o.innerText+="--user-buttons-color: ".concat(e.settingsButtonsColour," !important;")),e.spotifySeekColour!=c.spotifySeekColour&&(o.innerText+="--spotify-color: ".concat(e.spotifySeekColour," !important;")),o.innerText+="}",document.head.appendChild(o)}var p={goosemodHandlers:{onImport:function(){(t=document.createElement("style")).innerText="@import url('https://nyri4.github.io/Comfy/support/comfy.theme.css')",document.head.appendChild(t)},onLoadingFinished:function(){goosemodScope.settings.createItem("Comfy Theme",["(".concat(n.version,")"),{type:"header",text:"USRBG settings"},{type:"text",text:"U
|
||
|
},{"./goosemodModule.json":"goosemodModule.json"}]},{},["index.js"], null);parcelRequire('index.js').default
|