deploy: d8a8d2c551eac25dff24ac25606a521108e2e1a2

This commit is contained in:
kmmiio99o 2025-10-01 13:24:41 +00:00
parent 99a424416d
commit cc86b9c800
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
(function(l,h,a,o,f){"use strict";const n={avatarRadius:12,bubbleChatRadius:12,bubbleChatColor:""},p=function(){return{...n,...h.storage}},d=function(e){Object.assign(h.storage,e)};let r=[],b,i;const C=function(){try{b=a.findByName("Message")||a.findByProps("Message"),i=a.findByName("Avatar")||a.findByProps("Avatar")}catch(e){console.warn("Could not find some components:",e)}},u=function(){const e=p(),{avatarRadius:c,bubbleChatRadius:y,bubbleChatColor:R}=e;b&&r.push(f.after("render",b,function(g,t){return t&&t.props&&(t.props.style={...t.props.style,backgroundColor:R||"rgba(0, 0, 0, 0.1)",borderRadius:y,padding:8,margin:4}),t})),i&&r.push(f.after("render",i,function(g,t){return t&&t.props&&t.props.style&&(t.props.style={...t.props.style,borderRadius:c}),t}))},s=function(){r.forEach(function(e){try{e()}catch(c){console.warn("Error removing patch:",c)}}),r=[]};var v={onLoad:function(){try{C(),u(),o.showToast("ChatBubbles loaded successfully!")}catch(e){console.error("Failed to load ChatBubbles:",e),o.showToast("Failed to load ChatBubbles plugin")}},onUnload:function(){try{s(),o.showToast("ChatBubbles unloaded")}catch(e){console.error("Failed to unload ChatBubbles:",e)}},settings:{avatarRadius:{type:"slider",title:"Avatar Curve",note:"Adjust the border radius of avatars",default:n.avatarRadius,min:0,max:18,step:3,onValueChange:function(e){d({avatarRadius:e}),s(),u()}},bubbleChatRadius:{type:"slider",title:"Bubble Curve",note:"Adjust the border radius of chat bubbles",default:n.bubbleChatRadius,min:0,max:18,step:3,onValueChange:function(e){d({bubbleChatRadius:e}),s(),u()}},bubbleChatColor:{type:"text",title:"Bubble Color",note:"The color of the chat bubble (in #RRGGBBAA format). When empty, default background is used.",default:n.bubbleChatColor,placeholder:"#RRGGBBAA",onValueChange:function(e){e===""||/^#[0-9A-Fa-f]{8}$/.test(e)?(d({bubbleChatColor:e}),s(),u()):o.showToast("Invalid color format! Use #RRGGBBAA")}}}};return l.default=v,Object.defineProperty(l,"__esModule",{value:!0}),l})({},vendetta.plugin,vendetta.metro,vendetta.ui.toasts,vendetta.patcher);
(function(i,s,o,u,h){"use strict";const t={avatarRadius:12,bubbleChatRadius:12,bubbleChatColor:"#36393f"},p=function(){return{...t,...s.storage}};let l=[];const C=function(){try{const e=o.findByProps("MessageContent")||o.findByProps("Message","MessageHeader")||o.findByProps("default","MessageContent"),r=o.findByProps("Avatar")||o.findByProps("default","Avatar")||o.findByProps("getUserAvatarURL");return{MessageComponent:e,AvatarComponent:r}}catch(e){return console.log("Error finding components:",e),{MessageComponent:null,AvatarComponent:null}}},d=function(){const e=p(),{avatarRadius:r,bubbleChatRadius:v,bubbleChatColor:y}=e,{MessageComponent:c,AvatarComponent:f}=C();if(c)try{c.default&&l.push(h.after("default",c,function(n,a){return a&&typeof a=="object"&&a.props&&(a.props.style={...a.props.style,backgroundColor:y,borderRadius:v,padding:8,marginVertical:2,marginHorizontal:4}),a}))}catch(n){console.log("Error patching message component:",n)}if(f)try{f.default&&l.push(h.after("default",f,function(n,a){return a&&a.props&&(a.props.style={...a.props.style,borderRadius:r}),a}))}catch(n){console.log("Error patching avatar component:",n)}},b=function(){l.forEach(function(e){try{e()}catch(r){console.log("Error removing patch:",r)}}),l=[]};var g={onLoad:function(){try{d(),u.showToast("ChatBubbles loaded!")}catch(e){console.error("ChatBubbles load error:",e),u.showToast("ChatBubbles failed to load")}},onUnload:function(){try{b(),u.showToast("ChatBubbles unloaded")}catch(e){console.error("ChatBubbles unload error:",e)}},settings:{avatarRadius:{type:"slider",title:"Avatar Curve",note:"Adjust the border radius of avatars (0-18)",default:t.avatarRadius,min:0,max:18,step:3,onValueChange:function(e){s.storage.avatarRadius=e,b(),d()}},bubbleChatRadius:{type:"slider",title:"Bubble Curve",note:"Adjust the border radius of chat bubbles (0-18)",default:t.bubbleChatRadius,min:0,max:18,step:3,onValueChange:function(e){s.storage.bubbleChatRadius=e,b(),d()}},bubbleChatColor:{type:"text",title:"Bubble Color",note:"Hex color for chat bubbles (e.g., #36393f)",default:t.bubbleChatColor,placeholder:"#36393f",onValueChange:function(e){e===""||/^#[0-9A-Fa-f]{6,8}$/.test(e)?(s.storage.bubbleChatColor=e||t.bubbleChatColor,b(),d()):u.showToast("Invalid color! Use hex format like #36393f")}}}};return i.default=g,Object.defineProperty(i,"__esModule",{value:!0}),i})({},vendetta.plugin,vendetta.metro,vendetta.ui.toasts,vendetta.patcher);

View file

@ -1 +1 @@
{"authors":[{"name":"kmmiio99o","id":"879393496627306587"}],"main":"index.js","name":"Chat Bubbles","description":"Make the messages be in... bubbles...?","vendetta":{"icon":"ChatIcon","original":"plugins/Chat-Bubbles"},"version":"1.0.0","hash":"f946ab24c8cc6f961c0cbf868e3459fe914ca7f2d81b11cfa1fdf7ea91b20bf5"}
{"authors":[{"name":"kmmiio99o","id":"879393496627306587"}],"main":"index.js","name":"Chat Bubbles","description":"Make the messages be in... bubbles...?","vendetta":{"icon":"ChatIcon","original":"plugins/Chat-Bubbles"},"version":"1.0.0","hash":"69f050f13d9abd4ceaaabfbf688f136b1889dfa99fb5ead85c10f2c27522d836"}