Nachrichten-Plugin 1.0.0: Direktnachrichten, Gruppen, Anhänge, GIFs, Emojis
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
2844452002
55 changed files with 5448 additions and 0 deletions
2
dist/assets/style-BXBiFiq8.css
vendored
Normal file
2
dist/assets/style-BXBiFiq8.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/chunks/createLucideIcon-CYyWUN7r.js
vendored
Normal file
1
dist/chunks/createLucideIcon-CYyWUN7r.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{h as e,inject as t}from"vue";var n={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},r=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function i(e){return e!=null}function a(e,t={}){let a=t.attributeNames??{},o=e=>a[e]??e,s=e.size??e.width??n.width,c=e.size??e.height??n.height,l=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...l],d=t.className?.split(` `).filter(Boolean)??[],f=t.includeDefaultClasses===!1?r(...d):r(`lucide`,...u,...d),p=t.absoluteStrokeWidth?Number(t.strokeWidth??n[`stroke-width`])*Number(e.size??e.width??n.width)/Number(t.size??t.width??n.width):t.strokeWidth??n[`stroke-width`];return[`svg`,{...Object.entries(n).reduce((e,[t,n])=>(e[o(t)]=n,e),{}),...`color`in t&&t.color&&{[o(`stroke`)]:t.color},...`size`in t&&i(t.size)&&{[o(`width`)]:t.size,[o(`height`)]:t.size},...`width`in t&&i(t.width)&&{[o(`width`)]:t.width},...`height`in t&&i(t.height)&&{[o(`height`)]:t.height},[o(`stroke-width`)]:p,...f&&{[o(`class`)]:f},[o(`viewBox`)]:`0 0 ${s} ${c}`,...t.hasA11yProp===!1?{[o(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,r,i]=e,a=t.nonScalingStroke?{[o(`vector-effect`)]:`non-scaling-stroke`,...r}:r;return i?[n,a,i]:[n,a]})]}var o=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},s=e=>e===``,c=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),l=Symbol(`lucide-icons`);function u(){return t(l,{})}var d=({name:t,iconNode:n,"icon-node":r,icon:i={name:t&&c(t),node:n??r??[],size:24,aliases:[]},absoluteStrokeWidth:l,"absolute-stroke-width":d,nonScalingStroke:f,"non-scaling-stroke":p,strokeWidth:m,"stroke-width":h,size:g,width:_=g,height:v=g,color:y,...b},{slots:x})=>{let{size:S,color:C,strokeWidth:w=2,absoluteStrokeWidth:T=!1,nonScalingStroke:E=!1,class:D=``}=u(),O=s(l)||s(d)||l===!0||d===!0||T===!0,k=s(f)||s(p)||f===!0||p===!0||E===!0;delete b.class;let A=x.default?.(),[,j,M=[]]=a(i,{color:y??C,width:_??g??S,height:v??g??S,strokeWidth:m??h??w,absoluteStrokeWidth:O,nonScalingStroke:k,className:D,hasA11yProp:A!=null&&A.length>0||o(b),attributes:b});return e(`svg`,j,[...M.map(([t,n])=>e(t,n)),...A??[]])};function f(t,n=[]){let r=typeof t==`string`?{name:t,node:n}:t;return(t,{slots:n})=>e(d,{...t,icon:r},n.default?{default:n.default}:void 0)}export{f as t};
|
||||
2
dist/chunks/pusher-DXDYBH7H.js
vendored
Normal file
2
dist/chunks/pusher-DXDYBH7H.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/chunks/rolldown-runtime-CbXtAM7H.js
vendored
Normal file
1
dist/chunks/rolldown-runtime-CbXtAM7H.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));export{c as n,o as t};
|
||||
1
dist/header/Unread.js
vendored
Normal file
1
dist/header/Unread.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{t as e}from"../chunks/createLucideIcon-CYyWUN7r.js";import{createCommentVNode as t,createElementBlock as n,createVNode as r,onBeforeUnmount as i,onMounted as a,openBlock as o,ref as s,toDisplayString as c,unref as l}from"vue";import{http as u}from"@inhaus/ui";var d=e({name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]}),f=[`aria-label`,`title`],p={key:0,class:`ih:absolute ih:top-0.5 ih:right-0.5 ih:grid ih:h-4 ih:min-w-4 ih:place-items-center ih:rounded-full ih:bg-brand ih:px-1 ih:text-[10px] ih:font-semibold ih:text-brand-foreground ih:tabular-nums`,"aria-hidden":`true`},m={__name:`Unread`,props:{unread:{type:Number,default:0}},setup(e){let m=s(e.unread),h,g=e=>m.value=e.detail;async function _(){document.visibilityState===`visible`&&!location.pathname.startsWith(`/chat`)&&(m.value=(await u.get(`/chat/api/ungelesen`).catch(()=>({unread:m.value}))).unread)}return a(()=>{window.addEventListener(`inhaus-chat:unread`,g),h=setInterval(_,3e4)}),i(()=>{window.removeEventListener(`inhaus-chat:unread`,g),clearInterval(h)}),(e,i)=>(o(),n(`a`,{href:`/chat`,class:`ih:relative ih:grid ih:size-9 ih:place-items-center ih:rounded-md ih:text-muted-foreground ih:transition-colors ih:hover:bg-accent ih:hover:text-foreground`,"aria-label":m.value?`Nachrichten, ${m.value} ungelesen`:`Nachrichten`,title:m.value?`${m.value} ungelesene Nachrichten`:`Nachrichten`},[r(l(d),{class:`ih:size-5`}),m.value?(o(),n(`span`,p,c(m.value>99?`99+`:m.value),1)):t(``,!0)],8,f))}};export{m as default};
|
||||
9
dist/inhaus.json
vendored
Normal file
9
dist/inhaus.json
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"components": {
|
||||
"header/Unread": "header/Unread.js",
|
||||
"pages/Index": "pages/Index.js"
|
||||
},
|
||||
"css": [
|
||||
"assets/style-BXBiFiq8.css"
|
||||
]
|
||||
}
|
||||
2
dist/pages/Index.js
vendored
Normal file
2
dist/pages/Index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue