deploy: 5942bf8629
This commit is contained in:
parent
1126989cef
commit
7b0befbc24
8 changed files with 10 additions and 9 deletions
|
|
@ -1 +1 @@
|
|||
!function(t,n,o){"use strict";let e;let i=o.findByDisplayName("ChatInput"),a=function(){function t(){!function(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}(this,t)}var o=t.prototype;return o.onLoad=function(){n.logger.log("Starting HideGiftButton..."),e=i.defaultProps.hideGiftButton,i.defaultProps.hideGiftButton=!0},o.onUnload=function(){n.logger.log("Unloading HideGiftButton.."),i.defaultProps.hideGiftButton=e},t}();t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}({},vendetta,vendetta.metro);
|
||||
(function(exports,_vendetta,metro){'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}let origState;const ChatInput=metro.findByDisplayName("ChatInput");var index = new(function(){function HideGiftButton(){_classCallCheck(this,HideGiftButton);}var _proto=HideGiftButton.prototype;_proto.onLoad=function onLoad(){_vendetta.logger.log("Starting HideGiftButton...");origState=ChatInput.defaultProps.hideGiftButton;ChatInput.defaultProps.hideGiftButton=true;};_proto.onUnload=function onUnload(){_vendetta.logger.log("Unloading HideGiftButton..");ChatInput.defaultProps.hideGiftButton=origState;};return HideGiftButton}());exports.default=index;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},vendetta,vendetta.metro);
|
||||
|
|
@ -1 +1 @@
|
|||
{"name":"HideGiftButton","description":"Hides the gift button in the chat input.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_gift_24px"},"hash":"dc67a237c1d3b7742a0fb004f5783ce77538d638c6fb3582f2df7bd5d83e2af5"}
|
||||
{"name":"HideGiftButton","description":"Hides the gift button in the chat input.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_gift_24px"},"hash":"9b9fc17e867866e0674424d44c542243771214fc72585b4819d50a24c92e2289"}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_stage_music"},"hash":"791791ff254d47c04f1ddcf461601121457989d41688c9d5756c79e4e6491298"}
|
||||
{"name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_stage_music"},"hash":"1087f232a8340002a9e8e03369f651085c7bcba655d7391fb20884056d9346d0"}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
!function(t,o,e){"use strict";/*!
|
||||
(function(exports,_vendetta,metro){'use strict';/*!
|
||||
* https://github.com/amsyarasyiq/aliucordrn-plugins/blob/6c0be39ca673c6ebcf48c0f397246b76d578aa26/MoarConfirm/index.tsx
|
||||
*
|
||||
* Copyright (c) 2022 Amsyar Rasyiq
|
||||
|
|
@ -15,4 +15,4 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/let n=e.findByProps("show","confirm","close"),r=e.findByProps("handleStartCall"),a=function(){function t(){!function(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.onLoad=function(){o.logger.log("MoreConfirm: patching calls..."),o.patcher.instead("handleStartCall",r,function(t,e){let[{rawRecipients:[{username:r,discriminator:a},l]},c]=t,i=c?"video call":"call";n.show({title:l?`MoreConfirm: Start a group ${i}?`:`MoreConfirm: Start a ${i} with ${r}#${a}?`,body:l?"Are you sure you want to start the group call?":`Are you sure you want to ${i} ${r}#${a}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{e(...t)}catch(t){o.logger.error("Failed to start call",t)}}})})},t}();t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}({},vendetta,vendetta.metro);
|
||||
*/function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}const dialog=metro.findByProps("show","confirm","close");const CallManager=metro.findByProps("handleStartCall");var index = new(function(){function MoreConfirm(){_classCallCheck(this,MoreConfirm);}var _proto=MoreConfirm.prototype;_proto.onLoad=function onLoad(){_vendetta.logger.log("MoreConfirm: patching calls...");_vendetta.patcher.instead("handleStartCall",CallManager,function(args,orig){const[{rawRecipients:[{username,discriminator},multiple]},isVideo]=args;const action=isVideo?"video call":"call";dialog.show({title:multiple?`MoreConfirm: Start a group ${action}?`:`MoreConfirm: Start a ${action} with ${username}#${discriminator}?`,body:multiple?"Are you sure you want to start the group call?":`Are you sure you want to ${action} ${username}#${discriminator}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{orig(...args);}catch(e){_vendetta.logger.error("Failed to start call",e);}}});});};return MoreConfirm}());exports.default=index;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},vendetta,vendetta.metro);
|
||||
|
|
@ -1 +1 @@
|
|||
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"cba9c7a3326d2eaf34b3a0ad8795940d1721ad929146b21db556fefc9f82d323"}
|
||||
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"94e433cbfbd4551fc7bed612eaec9d5c68ca645d9df0cb4bc6be762d22958cb8"}
|
||||
|
|
@ -1 +1 @@
|
|||
!function(t,e,n){"use strict";let o;let i=function(){function t(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t)}var i=t.prototype;return i.onLoad=function(){e.logger.log("Starting NoIdle..."),o=e.patcher.before("dispatch",n.FluxDispatcher,function(t){let[{type:e}]=t;if("IDLE"===e)return[{type:"IDLE",idle:!1}]})},i.onUnload=function(){e.logger.log("Disabling NoIdle.."),o?.()},t}();t.default=i,Object.defineProperty(t,"__esModule",{value:!0})}({},vendetta,vendetta.metro.common);
|
||||
(function(exports,_vendetta,common){'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}let unpatch;var index = new(function(){function NoIdle(){_classCallCheck(this,NoIdle);}var _proto=NoIdle.prototype;_proto.onLoad=function onLoad(){_vendetta.logger.log("Starting NoIdle...");unpatch=_vendetta.patcher.before("dispatch",common.FluxDispatcher,function(param){let[{type}]=param;if(type!=="IDLE")return;return [{type:"IDLE",idle:false}]});};_proto.onUnload=function onUnload(){_vendetta.logger.log("Disabling NoIdle..");unpatch?.();};return NoIdle}());exports.default=index;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},vendetta,vendetta.metro.common);
|
||||
|
|
@ -1 +1 @@
|
|||
{"name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"StatusIdle"},"hash":"30d9755940198cb7ef712d4b13bc55a6f49454ba48496ba986a5df7e7e80e58c"}
|
||||
{"name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"StatusIdle"},"hash":"256e4ec951c2e6cd397f16fe007ac0ca68ad3b63ec43acc8d8d23834dbe31b63"}
|
||||
Loading…
Add table
Reference in a new issue