Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
@@ -0,0 +1,15 @@
self.__BUILD_MANIFEST = {
"__rewrites": {
"afterFiles": [
{
"source": "/api/:path*"
}
],
"beforeFiles": [],
"fallback": []
},
"sortedPages": [
"/_app",
"/_error"
]
};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
@@ -0,0 +1 @@
self.__MIDDLEWARE_MATCHERS = [];self.__MIDDLEWARE_MATCHERS_CB && self.__MIDDLEWARE_MATCHERS_CB()
@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},18967,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={DecodeError:function(){return P},MiddlewareNotFoundError:function(){return O},MissingStaticPage:function(){return h},NormalizeError:function(){return E},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return y},WEB_VITALS:function(){return i},execOnce:function(){return u},getDisplayName:function(){return l},getLocationOrigin:function(){return c},getURL:function(){return f},isAbsoluteUrl:function(){return a},isResSent:function(){return d},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return N}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function u(e){let r,t=!1;return(...n)=>(t||(t=!0,r=e(...n)),r)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>s.test(e);function c(){let{protocol:e,hostname:r,port:t}=window.location;return`${e}//${r}${t?":"+t:""}`}function f(){let{href:e}=window.location,r=c();return e.substring(r.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let r=e.split("?");return r[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(r[1]?`?${r.slice(1).join("?")}`:"")}async function g(e,r){let t=r.res||r.ctx&&r.ctx.res;if(!e.getInitialProps)return r.ctx&&r.Component?{pageProps:await g(r.Component,r.ctx)}:{};let n=await e.getInitialProps(r);if(t&&d(t))return n;if(!n)throw Object.defineProperty(Error(`"${l(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,y=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class P extends Error{}class E extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class h extends Error{constructor(e,r){super(),this.message=`Failed to load static file for page: ${e} ${r}`}}class O extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={assign:function(){return a},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});function i(e){let r={};for(let[t,n]of e.entries()){let e=r[t];void 0===e?r[t]=n:Array.isArray(e)?e.push(n):r[t]=[e,n]}return r}function u(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let r=new URLSearchParams;for(let[t,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)r.append(t,u(e));else r.set(t,u(n));return r}function a(e,...r){for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22023,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(57688),r=e.i(22016),l=e.i(88589),c=e.i(13642),i=e.i(9165);e.s(["default",0,function(){let[e,n]=(0,t.useState)([]),[d,o]=(0,t.useState)(!0),[x,u]=(0,t.useState)(null);return(0,t.useEffect)(()=>{!async function(){try{let{data:e,error:s}=await i.api.get("/photos");s?u(s):e&&n(e)}catch{u("Er is een fout opgetreden bij het laden van de foto's")}o(!1)}()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{}),(0,s.jsx)("main",{className:"bg-background min-h-screen",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto p-4 lg:p-6",children:[(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-main",children:"Foto's"}),(0,s.jsx)("p",{className:"text-text-muted",children:"Bekijk de mooiste foto's van onze spelers"})]})]})}),d?(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,s.jsx)("p",{className:"text-text-muted",children:"Foto's laden..."})}):x?(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,s.jsx)("p",{className:"text-danger",children:x})}):e.length>0?(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4",children:e.map(e=>(0,s.jsxs)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden group",children:[(0,s.jsx)("div",{className:"aspect-square relative bg-background",children:e.url?(0,s.jsx)(a.default,{src:`/storage/${e.url}`,alt:e.caption||"Foto",fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"}):(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-12 h-12 text-text-muted",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}),(0,s.jsxs)("div",{className:"p-3",children:[e.caption&&(0,s.jsx)("p",{className:"text-sm text-text-main truncate",children:e.caption}),(0,s.jsxs)(r.default,{href:`/profile/${e.user.username}`,className:"flex items-center gap-2 mt-2",children:[(0,s.jsx)("div",{className:"w-6 h-6 rounded-full overflow-hidden bg-background relative flex-shrink-0",children:(0,s.jsx)(a.default,{src:`https://epicnabbo.nl/imaging/?figure=${e.user.look}&headonly=1&direction=2`,alt:e.user.username,fill:!0,className:"object-cover"})}),(0,s.jsx)("span",{className:"text-xs text-text-muted hover:text-primary transition-colors truncate",children:e.user.username})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-1",children:new Date(e.created_at).toLocaleDateString("nl-NL",{day:"numeric",month:"short",year:"numeric"})})]})]},e.id))}):(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,s.jsx)("p",{className:"text-text-muted",children:"Nog geen foto's beschikbaar"})})]})}),(0,s.jsx)(c.default,{})]})}])}]);
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13979,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(22016),l=e.i(57688),r=e.i(88589),i=e.i(13642),d=e.i(9165);e.s(["default",0,function(){let[e,c]=(0,s.useState)(null),[n,x]=(0,s.useState)(!0),[o,m]=(0,s.useState)("rich");return(0,s.useEffect)(()=>{!async function(){let{data:e}=await d.api.get("/leaderboard");e&&c(e),x(!1)}()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{}),(0,t.jsx)("main",{className:"bg-background min-h-screen",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto p-4 lg:p-6",children:[(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-main",children:"Leaderboard"}),(0,t.jsx)("p",{className:"text-text-muted",children:"Bekijk de top gebruikers van het hotel"})]})]})}),(0,t.jsx)("div",{className:"flex gap-2 mb-6 overflow-x-auto pb-2",children:[{id:"rich",label:"Rijkste"},{id:"online",label:"Meeste uur online"},{id:"respect",label:"Meeste respect"}].map(e=>(0,t.jsx)("button",{onClick:()=>m(e.id),className:`px-4 py-2 rounded-lg font-semibold whitespace-nowrap transition-colors ${o===e.id?"bg-primary text-text-main":"bg-surface text-text-muted hover:bg-gray-100"}`,children:e.label},e.id))}),n?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-text-muted",children:"Laden..."})}):e?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{className:"bg-background",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-4 py-3 text-left text-sm font-semibold text-text-muted",children:"Rank"}),(0,t.jsx)("th",{className:"px-4 py-3 text-left text-sm font-semibold text-text-muted",children:"Gebruiker"}),(0,t.jsxs)("th",{className:"px-4 py-3 text-right text-sm font-semibold text-text-muted",children:["rich"===o&&"Credits","online"===o&&"Uren","respect"===o&&"Respect"]})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-gray-100",children:e[o]?.map((e,s)=>{var r,i;return(0,t.jsxs)("tr",{className:"hover:bg-background transition-colors",children:[(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)("span",{className:`text-lg font-bold ${1===(r=s+1)?"text-yellow-400":2===r?"text-gray-400":3===r?"text-orange-400":"text-text-muted"}`,children:1===(i=s+1)?"🥇":2===i?"🥈":3===i?"🥉":`#${i}`})}),(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsxs)(a.default,{href:`/profile/${e.username}`,className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg overflow-hidden bg-background relative",children:(0,t.jsx)(l.default,{src:`https://epicnabbo.nl/imaging/?figure=${e.look}&headonly=1&direction=2`,alt:e.username,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-text-main",children:e.username}),e.motto&&(0,t.jsx)("p",{className:"text-xs text-text-muted truncate max-w-[200px]",children:e.motto})]})]})}),(0,t.jsx)("td",{className:"px-4 py-3 text-right",children:(0,t.jsxs)("span",{className:"font-bold text-primary",children:["rich"===o&&e.credits?.toLocaleString(),"online"===o&&e.online_time?.toLocaleString(),"respect"===o&&e.respect?.toLocaleString()]})})]},e.id)})})]})})}):(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-text-muted",children:"Geen data beschikbaar"})})]})}),(0,t.jsx)(i.default,{})]})}])}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53013,e=>{"use strict";var t=e.i(43476),n=e.i(71645),a=e.i(57688),s=e.i(22016),r=e.i(88589),l=e.i(13642),i=e.i(9165);e.s(["default",0,function(){let[e,d]=(0,n.useState)(null),[c,o]=(0,n.useState)(!0),[m,x]=(0,n.useState)(null);return(0,n.useEffect)(()=>{!async function(){try{let{data:e,error:t}=await i.api.get("/banned");t?x(t):e&&d(e)}catch{x("Er is een fout opgetreden bij het laden van je ban informatie")}o(!1)}()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{}),(0,t.jsx)("main",{className:"bg-background min-h-screen",children:(0,t.jsx)("div",{className:"max-w-2xl mx-auto p-4 lg:p-6",children:(0,t.jsxs)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:[(0,t.jsxs)("div",{className:"bg-danger p-6 text-center",children:[(0,t.jsx)("svg",{className:"w-16 h-16 text-white mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})}),(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-white",children:"Account Geblokkeerd"})]}),(0,t.jsx)("div",{className:"p-6",children:c?(0,t.jsx)("p",{className:"text-text-muted text-center",children:"Informatie laden..."}):m?(0,t.jsx)("p",{className:"text-danger text-center",children:m}):e?(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-lg overflow-hidden bg-background relative",children:(0,t.jsx)(a.default,{src:`https://epicnabbo.nl/imaging/?figure=${e.look}&direction=2`,alt:e.username,fill:!0,className:"object-contain"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-text-main",children:e.username}),(0,t.jsxs)("p",{className:"text-sm text-text-muted",children:["Geblokkeerd op"," ",new Date(e.banned_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]})]}),(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main mb-2",children:"Reden"}),(0,t.jsx)("p",{className:"text-text-main",children:e.ban_reason})]}),e.ban_expire&&(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main mb-2",children:"Ontgrendeld op"}),(0,t.jsx)("p",{className:"text-text-main",children:new Date(e.ban_expire).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"})})]}),e.staff_username&&(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main mb-2",children:"Geblokkeerd door"}),(0,t.jsx)(s.default,{href:`/profile/${e.staff_username}`,className:"text-primary hover:underline",children:e.staff_username})]}),(0,t.jsxs)("div",{className:"pt-4 border-t border-gray-100",children:[(0,t.jsx)("p",{className:"text-sm text-text-muted mb-3",children:"Ben je het niet eens met deze blokkering? Neem dan contact op met ons support team."}),(0,t.jsx)(s.default,{href:"/help-center/contact",className:"block w-full text-center py-3 rounded-lg bg-primary text-text-main font-semibold hover:bg-primary-hover transition-colors",children:"Contact Support"})]})]}):(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-text-muted",children:"Geen ban informatie gevonden"}),(0,t.jsx)(s.default,{href:"/",className:"inline-block mt-4 px-6 py-2 rounded-lg bg-primary text-text-main font-semibold hover:bg-primary-hover transition-colors",children:"Terug naar Home"})]})})]})})}),(0,t.jsx)(l.default,{})]})}])}]);
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21388,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(57688),l=e.i(22016),r=e.i(88589),n=e.i(13642),d=e.i(9165);e.s(["default",0,function(){let[e,c]=(0,t.useState)([]),[i,m]=(0,t.useState)(!0),[x,o]=(0,t.useState)(null);return(0,t.useEffect)(()=>{!async function(){try{let{data:e,error:s}=await d.api.get("/teams");s?o(s):e&&c(e)}catch{o("Er is een fout opgetreden bij het laden van de teams")}m(!1)}()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.default,{}),(0,s.jsx)("main",{className:"bg-background min-h-screen",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto p-4 lg:p-6",children:[(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-main",children:"Teams & Guilds"}),(0,s.jsx)("p",{className:"text-text-muted",children:"Ontdek alle teams en guilds in het hotel"})]})]})}),i?(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,s.jsx)("p",{className:"text-text-muted",children:"Teams laden..."})}):x?(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,s.jsx)("p",{className:"text-danger",children:x})}):e.length>0?(0,s.jsx)("div",{className:"space-y-4",children:e.map(e=>(0,s.jsxs)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6",children:[(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[e.badge?(0,s.jsx)("div",{className:"w-16 h-16 rounded-lg overflow-hidden bg-background relative flex-shrink-0",children:(0,s.jsx)(a.default,{src:`/storage/${e.badge}`,alt:e.name,fill:!0,className:"object-contain"})}):(0,s.jsx)("div",{className:"w-16 h-16 rounded-lg flex items-center justify-center flex-shrink-0 text-white text-2xl font-bold",style:{backgroundColor:e.color||"#eeb425"},children:e.name.charAt(0).toUpperCase()}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("h2",{className:"text-xl font-bold text-text-main",children:e.name}),e.description&&(0,s.jsx)("p",{className:"text-text-muted mt-1 text-sm",children:e.description}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-3 text-sm text-text-muted",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})}),e.member_count," leden"]}),(0,s.jsxs)("span",{children:["Opgericht"," ",new Date(e.created_at).toLocaleDateString("nl-NL")]})]})]})]}),e.members.length>0&&(0,s.jsxs)("div",{className:"mt-4 pt-4 border-t border-gray-100",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-text-muted mb-3",children:"Leden"}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[e.members.slice(0,10).map(e=>(0,s.jsxs)(l.default,{href:`/profile/${e.username}`,className:"flex items-center gap-2 px-3 py-1.5 rounded-lg bg-background hover:bg-gray-200 transition-colors",children:[(0,s.jsx)("div",{className:"w-6 h-6 rounded-full overflow-hidden bg-surface relative",children:(0,s.jsx)(a.default,{src:`https://epicnabbo.nl/imaging/?figure=${e.look}&headonly=1&direction=2`,alt:e.username,fill:!0,className:"object-cover"})}),(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:e.username}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["(",e.rank,")"]})]},e.id)),e.members.length>10&&(0,s.jsxs)("span",{className:"px-3 py-1.5 text-sm text-text-muted",children:["+",e.members.length-10," meer"]})]})]})]},e.id))}):(0,s.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,s.jsx)("p",{className:"text-text-muted",children:"Nog geen teams beschikbaar"})})]})}),(0,s.jsx)(n.default,{})]})}])}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52873,e=>{"use strict";var a=e.i(43476),s=e.i(71645),t=e.i(57688),r=e.i(22016),l=e.i(88589),n=e.i(13642),d=e.i(9165);e.s(["default",0,function(){let[e,c]=(0,s.useState)([]),[i,o]=(0,s.useState)(!0),[m,x]=(0,s.useState)(null);return(0,s.useEffect)(()=>{!async function(){try{let{data:e,error:a}=await d.api.get("/staff");if(a)x(a);else if(e){let a={};e.forEach(e=>{a[e.rank_name]||(a[e.rank_name]={rank_name:e.rank_name,rank_color:e.rank_color,members:[]}),a[e.rank_name].members.push(e)}),c(Object.values(a))}}catch{x("Er is een fout opgetreden bij het laden van het staff team")}o(!1)}()},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{}),(0,a.jsx)("main",{className:"bg-background min-h-screen",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto p-4 lg:p-6",children:[(0,a.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-main",children:"Staff Team"}),(0,a.jsx)("p",{className:"text-text-muted",children:"Ontmoet het team dat Epicnabbo draaiende houdt"})]})]})}),i?(0,a.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,a.jsx)("p",{className:"text-text-muted",children:"Staff laden..."})}):m?(0,a.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,a.jsx)("p",{className:"text-danger",children:m})}):e.length>0?(0,a.jsx)("div",{className:"space-y-6",children:e.map(e=>(0,a.jsxs)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:[(0,a.jsx)("div",{className:"px-4 md:px-6 py-3",style:{backgroundColor:e.rank_color||"#eeb425"},children:(0,a.jsx)("h2",{className:"text-lg font-bold text-white",children:e.rank_name})}),(0,a.jsx)("div",{className:"p-4 md:p-6",children:(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:e.members.map(e=>(0,a.jsxs)(r.default,{href:`/profile/${e.username}`,className:"flex items-center gap-3 p-3 rounded-lg bg-background hover:bg-gray-200 transition-colors group",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-surface relative",children:(0,a.jsx)(t.default,{src:`https://epicnabbo.nl/imaging/?figure=${e.look}&headonly=1&direction=2`,alt:e.username,fill:!0,className:"object-cover"})}),e.online&&(0,a.jsx)("span",{className:"absolute -top-1 -right-1 w-3 h-3 rounded-full bg-accent border-2 border-surface"})]}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"font-semibold text-text-main group-hover:text-primary transition-colors truncate",children:e.username}),e.motto&&(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:e.motto})]})]},e.id))})})]},e.rank_name))}):(0,a.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,a.jsx)("p",{className:"text-text-muted",children:"Geen staff leden gevonden"})})]})}),(0,a.jsx)(n.default,{})]})}])}]);
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98282,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(57688),a=e.i(22016),d=e.i(88589),l=e.i(13642),n=e.i(9165);e.s(["default",0,function(){let[e,i]=(0,s.useState)([]),[c,o]=(0,s.useState)(!0),[x,m]=(0,s.useState)(null),[u,h]=(0,s.useState)(""),[g,p]=(0,s.useState)(!1);(0,s.useEffect)(()=>{async function e(){try{let{data:e,error:t}=await n.api.get("/radio/shouts");t?m(t):e&&i(e)}catch{m("Er is een fout opgetreden bij het laden van de berichten")}o(!1)}e();let t=setInterval(e,15e3);return()=>clearInterval(t)},[]);let f=async()=>{if(u.trim()){p(!0);try{let{data:e,error:t}=await n.api.post("/radio/shouts",{message:u});!t&&e&&(i(t=>[e,...t]),h(""))}catch{}p(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.default,{}),(0,t.jsx)("main",{className:"bg-background min-h-screen",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto p-4 lg:p-6",children:[(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-main",children:"Live Berichten"}),(0,t.jsx)("p",{className:"text-text-muted",children:"Stuur berichten naar de DJ en andere luisteraars"})]})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[(0,t.jsx)(a.default,{href:"/community/radio",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"Radio Home"}),(0,t.jsx)(a.default,{href:"/community/radio/rooster",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"DJ Rooster"}),(0,t.jsx)(a.default,{href:"/community/radio/dj-aanmelden",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"DJ worden"})]}),(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("input",{type:"text",value:u,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&f(),placeholder:"Stuur een bericht...",className:"flex-1 px-3 py-2 rounded-lg border border-input-border bg-background text-text-main text-sm focus:outline-none focus:ring-2 focus:ring-primary",maxLength:200}),(0,t.jsx)("button",{onClick:f,disabled:g||!u.trim(),className:"px-4 py-2 rounded-lg bg-primary text-text-main font-semibold text-sm hover:bg-primary-hover transition-colors disabled:opacity-50",children:g?"...":"Verstuur"})]})}),c?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-text-muted",children:"Berichten laden..."})}):x?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-danger",children:x})}):e.length>0?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:(0,t.jsx)("div",{className:"max-h-[600px] overflow-y-auto divide-y divide-gray-100",children:e.map(e=>(0,t.jsxs)("div",{className:"flex gap-3 p-4",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg overflow-hidden bg-background relative flex-shrink-0",children:(0,t.jsx)(r.default,{src:e.user.look?`https://epicnabbo.nl/imaging/?figure=${e.user.look}&headonly=1&direction=2`:"https://epicnabbo.nl/imaging/?figure=hr-893-45.hd-180-14.ch-210-30.lg-270-75.sh-290-75&headonly=1&direction=2",alt:e.user.username,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsx)(a.default,{href:`/profile/${e.user.username}`,className:"font-semibold text-primary hover:underline",children:e.user.username}),(0,t.jsx)("span",{className:"text-xs text-text-muted",children:new Date(e.created_at).toLocaleString("nl-NL")})]}),(0,t.jsx)("p",{className:"text-text-main mt-1 break-words",children:e.message})]})]},e.id))})}):(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-text-muted",children:"Nog geen berichten. Wees de eerste!"})})]})}),(0,t.jsx)(l.default,{})]})}])}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long