deploy: b79971248c
This commit is contained in:
parent
8229befd24
commit
f6c6eb0474
8 changed files with 6 additions and 8 deletions
|
|
@ -1 +1 @@
|
|||
(function(a,f,r){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=r.findByName("ChatInput");var g=new(function(){function e(){o(this,e),d(this,"origState",void 0)}return c(e,[{key:"onLoad",value:function(){f.logger.log("Starting HideGiftButton..."),this.origState=u.defaultProps.hideGiftButton,u.defaultProps.hideGiftButton=!0}},{key:"onUnload",value:function(){f.logger.log("Unloading HideGiftButton.."),u.defaultProps.hideGiftButton=this.origState}}]),e}());return a.default=g,Object.defineProperty(a,"__esModule",{value:!0}),a})({},vendetta,vendetta.metro);
|
||||
(function(t,n){"use strict";const e=n.findByName("ChatInput");var d={onLoad(){e.defaultProps.hideGiftButton=!0},onUnload(){e.defaultProps.hideGiftButton=!1}};return t.default=d,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta.metro);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"HideGiftButton","description":"Hides the gift button in the chat input.","vendetta":{"icon":"ic_gift_24px"},"hash":"91ed3f7d05f57115e9f4e2fb20f92362eb34c657d01855de5f0c684e1d569944"}
|
||||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"HideGiftButton","description":"Hides the gift button in the chat input.","vendetta":{"icon":"ic_gift_24px"},"hash":"396107bace5af9e356aa5ae29c6a33f732189d3abbeba82af79213fcbd591907"}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"0275abf3ddb12fa47986b16e887c062e18232b91c5c2d8ac4c7efbee1f165d1b"}
|
||||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"d29cfa07eba14d6d0ad1f22d1c074dd0ed17043e26549322e0d4754967efa3c6"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(s,b,g,m,e,v,u,w,f,i){"use strict";function x(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}function p(n,a,r){return a in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n}const R=g.findByStoreName("UserStore"),{FormInput:F,FormDivider:h,FormText:I,FormIcon:o,FormRow:E,FormSection:_,FormSwitchRow:B}=w.Forms,y=e.stylesheet.createThemedStyleSheet({avatar:{height:36,width:36,borderRadius:18},button:{marginRight:12}});function S(n){let{callback:a}=n;return e.React.createElement(i.TouchableOpacity,{onPress:a},e.React.createElement(I,{style:y.button},"ADD"))}function T(n){let{onFinish:a}=n;const[r,l]=f.useState(""),d=function(){!isNaN(parseInt(r))&&R.getUser(r)&&!t.exempted.includes(r)&&(t.exempted=[...t.exempted,r],l("")),a()};return e.React.createElement(E,{leading:e.React.createElement(o,{source:u.getAssetIDByName("ic_add_friend")}),label:e.React.createElement(F,{autoFocus:!0,title:"User ID",placeholder:"123456789012345678",value:r,keyboardType:"numeric",onChangeText:function(c){return l(c.replace(/[^0-9]/g,"").trim())},returnKeyType:"done"}),trailing:e.React.createElement(i.TouchableOpacity,{onPress:d},e.React.createElement(o,{source:u.getAssetIDByName("ic_add_24px")}))})}function k(){v.useProxy(t);const[n,a]=f.useState(!1),r=e.NavigationNative.useNavigation();return f.useEffect(function(){r.setOptions({headerRight:function(){return e.React.createElement(S,{callback:function(){return a(!0)}})}})},[]),e.React.createElement(i.ScrollView,null,e.React.createElement(B,{label:"Enable blacklist mode",subLabel:"If enabled, only users in the exempted list will be affected by the plugin.",leading:e.React.createElement(o,{source:u.getAssetIDByName("ic_block")}),value:t.isBlacklistMode,onValueChange:function(l){return t.isBlacklistMode=l}}),e.React.createElement(_,{title:"Exempted Users"},t.exempted?.length>0&&e.React.createElement(i.FlatList,{data:t.exempted,keyExtractor:function(l){return l},renderItem:function(l){let{item:d}=l;const c=R.getUser(d);if(!c)throw new Error("User not found/is not cached");return e.React.createElement(E,{label:c.username,leading:e.React.createElement(i.Image,{style:y.avatar,source:{uri:c.getAvatarURL()}}),trailing:e.React.createElement(i.TouchableOpacity,{onPress:function(){t.exempted=t.exempted.filter(function(D){return D!==d})}},e.React.createElement(o,{source:u.getAssetIDByName("Small"),disableColor:!0}))})},ItemSeparatorComponent:h}),n&&e.React.createElement(e.React.Fragment,null,e.React.createElement(h,null),e.React.createElement(T,{onFinish:function(){return a(!1)}}))))}const t=m.storage,P=g.findByProps("createPendingReply");t.isBlacklistMode??=!1,t.exempted??=[];var U=new function n(){x(this,n),p(this,"settings",k),p(this,"onUnload",b.patcher.before("createPendingReply",P,function(a){let[r]=a;const l=t.exempted.includes(r.message?.author?.id);r.shouldMention&&=t.isBlacklistMode?!l:l}))};return s.default=U,s.settings=t,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro,vendetta.plugin,vendetta.metro.common,vendetta.storage,vendetta.ui.assets,vendetta.ui.components,window.React,vendetta.metro.common.ReactNative);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoAutoReplyMention","description":"Turns off auto mention when replying to someone.","vendetta":{"icon":"ic_notif_off"},"hash":"4ca2dc122f625dd6de9e08cf77fa382b54b8f7b4f6771d2db6a9d928319ad1e0"}
|
||||
|
|
@ -1 +1 @@
|
|||
(function(t,u,o){"use strict";function c(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function f(e,n){for(var l=0;l<n.length;l++){var a=n[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,n,l){return n&&f(e.prototype,n),l&&f(e,l),e}let i;var g=new(function(){function e(){c(this,e)}return r(e,[{key:"onLoad",value:function(){u.logger.log("Starting NoIdle..."),i=u.patcher.before("dispatch",o.FluxDispatcher,function(n){let[{type:l}]=n;if(l==="IDLE")return[{type:"IDLE",idle:!1}]})}},{key:"onUnload",value:function(){u.logger.log("Disabling NoIdle.."),i?.()}}]),e}());return t.default=g,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta,vendetta.metro.common);
|
||||
(function(t,e,n){"use strict";const o=e.patcher.before("dispatch",n.FluxDispatcher,function(c){let[{type:r}]=c;if(r==="IDLE")return[{type:"IDLE",idle:!1}]});return t.onUnload=o,t})({},vendetta,vendetta.metro.common);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","vendetta":{"icon":"StatusIdle"},"hash":"65f8433e59b46edc78b3b7ed188f860b6091857660dff990931b1be3d19bb8e6"}
|
||||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","vendetta":{"icon":"StatusIdle"},"hash":"477734b6a288567c5ce4439ca1e1dec77b369106ab8ea4993db308bf2261a17c"}
|
||||
Loading…
Add table
Reference in a new issue