deploy: 8367311abe595ec9ac020e50099cc4bb0e1046d3
This commit is contained in:
parent
fa551b5aa8
commit
e3086b5a88
4 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"name":"ServerDrawer","description":"Replaces the Quest Dock with a server grid drawer above the YouBar - tap to expand, long-press a server for its context menu, plus a one-tap create/join button.","authors":[{"name":"everestmcarthur"},{"name":"kmmiio99o"},{"name":"fres"}],"main":"index.js","vendetta":{"icon":"ServerIcon"},"hash":"04043e6e6dd35166e5b53c10e790c71dbc13eb0856ead7a23214b875472170e4"}
|
||||
{"name":"ServerDrawer","description":"Replaces the Quest Dock with a server grid drawer above the YouBar - tap to expand, long-press a server for its context menu, plus a one-tap create/join button.","authors":[{"name":"everestmcarthur"},{"name":"kmmiio99o"},{"name":"fres"}],"main":"index.js","vendetta":{"icon":"ServerIcon"},"hash":"14169a67d3a37e0dd49f4b00b085b87bceac665390098d57f709e2d6b18bf1ff"}
|
||||
|
|
@ -1 +1 @@
|
|||
(function(d,B,i,p,n,R,y,b,S){"use strict";function E(t,e,r,a){try{return r()}catch(o){return a.error(`[${t}] Failed to apply the "${e}" patch, that surface will be skipped: ${o}`),function(){}}}function P(t,e,r){const a=Object.entries(r).map(function([o,u]){return E(t,o,u,e)});return function(){return a.forEach(function(o){return o()})}}function F(t,e,r=100){let a=!1,o;const u=t();return u?(e(u),{cancel(){}}):(o=setInterval(function(){if(a)return;const c=t();c&&(a=!0,clearInterval(o),e(c))},r),{cancel(){a=!0,o&&clearInterval(o)}})}const h=new Map;function I(){const t=window?.modules;if(t)for(const e in t){const r=Number(e);if(!h.has(r))try{const a=window.__r(r);a&&h.set(r,a)}catch{}}}function N(t){I();for(const e of h.values())try{if(t(e))return e;if(e?.default!=null&&t(e.default))return e.default}catch{}}function D(t){return N(function(e){return e?.name===t||e?.displayName===t||e?.type?.name===t||e?.type?.displayName===t})}let l=function(){};function M(){let t=function(){};const e=F(function(){return D("YouBarNotificationsButton")},function(r){t=V(r)});return function(){e.cancel(),t()}}function V(t){const e=p.findByProps("openUserSettings"),r=p.findByProps("transitionToGuild"),a=y.getAssetIDByName("ChatIcon"),o=y.getAssetIDByName("SettingsIcon");return R.instead("type",t,function(u,c){try{const[,A]=n.React.useReducer(function(L){return~L},0);l=function(){return A()};const s=c(...u);if(!s?.props?.children)return s;const v=s.props.children.type,f=s.props.children.props;return n.React.createElement(n.React.Fragment,null,i.storage.showDMButton&&n.React.createElement(v,{variant:f?.variant||"tertiary",size:f?.size||"sm",icon:a,onPress:function(){return r?.transitionToGuild?.("@me")}}),i.storage.showSettingsButton&&n.React.createElement(v,{variant:f?.variant||"tertiary",size:f?.size||"sm",icon:o,onPress:function(){return e?.openUserSettings?.()}}),s)}catch{return c(...u)}})}const{ScrollView:Y,View:m}=n.ReactNative;function z({children:t}){return n.React.createElement(Y,{style:{flex:1}},t,n.React.createElement(m,{style:{height:24}}))}const{View:$,Text:C}=n.ReactNative;function T({children:t,style:e}){return n.React.createElement($,{style:[{marginHorizontal:16,marginVertical:8,padding:10,borderRadius:8,borderWidth:1,borderColor:"rgba(128,128,128,0.25)"},e]},n.React.createElement(C,{style:{fontSize:12.5,lineHeight:18,opacity:.75}},t))}const{FormSection:_,FormSwitchRow:g}=S.Forms;function k(){return b.useProxy(i.storage),n.React.useEffect(function(){return function(){return l()}},[]),n.React.createElement(z,null,n.React.createElement(T,null,"Fork of Purple-EyeZ's YouBar+, ported to Revenge's Vendetta-compat API with a fix for a startup race that could silently skip the button patch for an entire session."),n.React.createElement(_,{title:"Buttons"},n.React.createElement(g,{label:"Direct Messages button",subLabel:"Show the DM button in the YouBar",value:!!i.storage.showDMButton,onValueChange:function(t){i.storage.showDMButton=t,l()}}),n.React.createElement(g,{label:"Settings button",subLabel:"Show the Settings button in the YouBar",value:!!i.storage.showSettingsButton,onValueChange:function(t){i.storage.showSettingsButton=t,l()}})))}let w=function(){};var x={onLoad:function(){i.storage.showDMButton??=!1,i.storage.showSettingsButton??=!0,w=P("YouBar+",B.logger,{"YouBar buttons":M})},onUnload:function(){return w()},settings:k};return d.default=x,Object.defineProperty(d,"__esModule",{value:!0}),d})({},vendetta,vendetta.plugin,vendetta.metro,vendetta.metro.common,vendetta.patcher,vendetta.ui.assets,vendetta.storage,vendetta.ui.components);
|
||||
(function(d,w,i,h,r,B,p,R,b){"use strict";function S(t,e,o,a){try{return o()}catch(n){return a.error(`[${t}] Failed to apply the "${e}" patch, that surface will be skipped: ${n}`),function(){}}}function E(t,e,o){const a=Object.entries(o).map(function([n,u]){return S(t,n,u,e)});return function(){return a.forEach(function(n){return n()})}}function I(t,e,o=100){let a=!1,n;const u=t();return u?(e(u),{cancel(){}}):(n=setInterval(function(){if(a)return;const c=t();c&&(a=!0,clearInterval(n),e(c))},o),{cancel(){a=!0,n&&clearInterval(n)}})}function P(t){const e=window?.modules;if(e)for(const o in e){const a=e[o];if(!a?.isInitialized)continue;const n=a.publicModule?.exports;if(n)try{if(t(n))return n;if(n.default!=null&&t(n.default))return n.default}catch{}}}function F(t){return P(function(e){return e?.name===t||e?.displayName===t||e?.type?.name===t||e?.type?.displayName===t})}let l=function(){};function D(){let t=function(){};const e=I(function(){return F("YouBarNotificationsButton")},function(o){t=M(o)});return function(){e.cancel(),t()}}function M(t){const e=h.findByProps("openUserSettings"),o=h.findByProps("transitionToGuild"),a=p.getAssetIDByName("ChatIcon"),n=p.getAssetIDByName("SettingsIcon");return B.instead("type",t,function(u,c){try{const[,k]=r.React.useReducer(function(A){return~A},0);l=function(){return k()};const s=c(...u);if(!s?.props?.children)return s;const v=s.props.children.type,f=s.props.children.props;return r.React.createElement(r.React.Fragment,null,i.storage.showDMButton&&r.React.createElement(v,{variant:f?.variant||"tertiary",size:f?.size||"sm",icon:a,onPress:function(){return o?.transitionToGuild?.("@me")}}),i.storage.showSettingsButton&&r.React.createElement(v,{variant:f?.variant||"tertiary",size:f?.size||"sm",icon:n,onPress:function(){return e?.openUserSettings?.()}}),s)}catch{return c(...u)}})}const{ScrollView:N,View:z}=r.ReactNative;function V({children:t}){return r.React.createElement(N,{style:{flex:1}},t,r.React.createElement(z,{style:{height:24}}))}const{View:Y,Text:m}=r.ReactNative;function $({children:t,style:e}){return r.React.createElement(Y,{style:[{marginHorizontal:16,marginVertical:8,padding:10,borderRadius:8,borderWidth:1,borderColor:"rgba(128,128,128,0.25)"},e]},r.React.createElement(m,{style:{fontSize:12.5,lineHeight:18,opacity:.75}},t))}const{FormSection:x,FormSwitchRow:y}=b.Forms;function C(){return R.useProxy(i.storage),r.React.useEffect(function(){return function(){return l()}},[]),r.React.createElement(V,null,r.React.createElement($,null,"Fork of Purple-EyeZ's YouBar+, ported to Revenge's Vendetta-compat API with a fix for a startup race that could silently skip the button patch for an entire session."),r.React.createElement(x,{title:"Buttons"},r.React.createElement(y,{label:"Direct Messages button",subLabel:"Show the DM button in the YouBar",value:!!i.storage.showDMButton,onValueChange:function(t){i.storage.showDMButton=t,l()}}),r.React.createElement(y,{label:"Settings button",subLabel:"Show the Settings button in the YouBar",value:!!i.storage.showSettingsButton,onValueChange:function(t){i.storage.showSettingsButton=t,l()}})))}let g=function(){};var T={onLoad:function(){i.storage.showDMButton??=!1,i.storage.showSettingsButton??=!0,g=E("YouBar+",w.logger,{"YouBar buttons":D})},onUnload:function(){return g()},settings:C};return d.default=T,Object.defineProperty(d,"__esModule",{value:!0}),d})({},vendetta,vendetta.plugin,vendetta.metro,vendetta.metro.common,vendetta.patcher,vendetta.ui.assets,vendetta.storage,vendetta.ui.components);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"name":"YouBar+","description":"Adds up to 2 configurable buttons (Direct Messages, Settings, or none) to the YouBar, in whatever order you pick.","authors":[{"name":"everestmcarthur"},{"name":"Purple_Ξye™"}],"main":"index.js","hash":"d73c15987b30a195ee5043525a3c55d0fa00aa31ed3fc6aafa88be1931bf3180"}
|
||||
{"name":"YouBar+","description":"Adds up to 2 configurable buttons (Direct Messages, Settings, or none) to the YouBar, in whatever order you pick.","authors":[{"name":"everestmcarthur"},{"name":"Purple_Ξye™"}],"main":"index.js","hash":"b491966e534b5e44c71be00a85b628cb56ad0d43d1e91ceae3339e2acb0040b4"}
|
||||
Loading…
Add table
Reference in a new issue