Simplification complète de l'app - Suppression admin/WiFi/bungalow
- Suppression de toute la partie admin (routes, composants, API) - Suppression du WiFi et du numéro de bungalow - Simplification de l'accueil (logo, météo, message statique) - App 100% statique maintenant - Redirection simple vers /accueil - Nettoyage des hooks et types inutilisés
This commit is contained in:
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(3634)}])},3634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(7043);let i=n(7437);n(2265);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,117,744],function(){return e(e.s=7589)}),_N_E=e.O()}]);
|
||||
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
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{1098:function(e,t,n){Promise.resolve().then(n.bind(n,1454)),Promise.resolve().then(n.bind(n,5495)),Promise.resolve().then(n.t.bind(n,4742,23)),Promise.resolve().then(n.t.bind(n,7960,23))},1454:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var r=n(2265);function o(){return(0,r.useEffect)(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").then(e=>{console.log("Service Worker registered:",e)}).catch(e=>{console.log("Service Worker registration failed:",e)})})},[]),null}},5495:function(e,t,n){"use strict";n.d(t,{ThemeProvider:function(){return s}});var r=n(7437),o=n(5922);function s(e){let{children:t,...n}=e;return(0,r.jsx)(o.f,{...n,children:t})}},7960:function(){},4742:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},5922:function(e,t,n){"use strict";n.d(t,{F:function(){return m},f:function(){return u}});var r=n(2265),o=(e,t,n,r,o,s,a,i)=>{let l=document.documentElement,c=["light","dark"];function m(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&s?o.map(e=>s[e]||e):o;n?(l.classList.remove(...r),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),i&&c.includes(t)&&(l.style.colorScheme=t)}if(r)m(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;m(r)}catch(e){}},s=["light","dark"],a="(prefers-color-scheme: dark)",i="undefined"==typeof window,l=r.createContext(void 0),c={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=r.useContext(l))?e:c},u=e=>r.useContext(l)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),d=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:i=!0,storageKey:c="theme",themes:m=d,defaultTheme:u=o?"system":"light",attribute:h="data-theme",value:p,children:b,nonce:w,scriptProps:k}=e,[E,S]=r.useState(()=>y(c,u)),[_,C]=r.useState(()=>"system"===E?g():E),T=p?Object.values(p):m,L=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=g());let r=p?p[t]:t,a=n?v(w):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...T),r&&l.classList.add(r)):e.startsWith("data-")&&(r?l.setAttribute(e,r):l.removeAttribute(e))};if(Array.isArray(h)?h.forEach(c):c(h),i){let e=s.includes(u)?u:null,n=s.includes(t)?t:e;l.style.colorScheme=n}null==a||a()},[w]),P=r.useCallback(e=>{let t="function"==typeof e?e(E):e;S(t);try{localStorage.setItem(c,t)}catch(e){}},[E]),A=r.useCallback(e=>{C(g(e)),"system"===E&&o&&!t&&L("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),r.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?S(e.newValue):P(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),r.useEffect(()=>{L(null!=t?t:E)},[t,E]);let N=r.useMemo(()=>({theme:E,setTheme:P,forcedTheme:t,resolvedTheme:"system"===E?_:E,themes:o?[...m,"system"]:m,systemTheme:o?_:void 0}),[E,P,t,_,o,m]);return r.createElement(l.Provider,{value:N},r.createElement(f,{forcedTheme:t,storageKey:c,attribute:h,enableSystem:o,enableColorScheme:i,defaultTheme:u,value:p,themes:m,nonce:w,scriptProps:k}),b)},f=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:s,enableSystem:a,enableColorScheme:i,defaultTheme:l,value:c,themes:m,nonce:u,scriptProps:d}=e,h=JSON.stringify([s,n,l,t,m,c,a,i]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(h,")")}})}),y=(e,t)=>{let n;if(!i){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}},function(e){e.O(0,[540,971,117,744],function(){return e(e.s=1098)}),_N_E=e.O()}]);
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[200],{9186:function(r,e,a){Promise.resolve().then(a.bind(a,9673))},7683:function(r,e,a){"use strict";a.d(e,{T:function(){return l}});var t=a(7437),n=a(5922),i=a(5929),s=a(7226),o=a(2869),d=a(2265);function l(){let{theme:r,setTheme:e}=(0,n.F)(),[a,l]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{l(!0)},[]),a)?(0,t.jsx)(o.z,{variant:"ghost",size:"sm",onClick:()=>e("dark"===r?"light":"dark"),className:"h-10 w-10 rounded-full hover:bg-secondary dark:hover:bg-gray-800 p-0","aria-label":"Changer de th\xe8me",children:"dark"===r?(0,t.jsx)(i.Z,{className:"h-5 w-5 text-primary dark:text-yellow-400"}):(0,t.jsx)(s.Z,{className:"h-5 w-5 text-primary dark:text-blue-300"})}):(0,t.jsx)(o.z,{variant:"ghost",size:"sm",className:"h-9 w-9 rounded-full p-0","aria-label":"Changer de th\xe8me",children:(0,t.jsx)(i.Z,{className:"h-5 w-5"})})}},9673:function(r,e,a){"use strict";a.d(e,{default:function(){return h}});var t=a(7437),n=a(7648),i=a(9376),s=a(4938),o=a(3774),d=a(4394),l=a(3245),c=a(4508),u=a(7683);let f=[{name:"Accueil",href:"/accueil",icon:s.Z},{name:"Explorer",href:"/explorer",icon:o.Z},{name:"Mana",href:"/mana-tracker",icon:d.Z},{name:"Infos",href:"/infos",icon:l.Z}];function h(){let r=(0,i.usePathname)();return(0,t.jsx)("nav",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white dark:bg-gray-900 border-t border-gray-200 dark:border-gray-800 shadow-lg",children:(0,t.jsxs)("div",{className:"flex items-center justify-around h-16 px-2",children:[f.map(e=>{let a=e.icon,i=r===e.href;return(0,t.jsxs)(n.default,{href:e.href,className:(0,c.cn)("flex flex-col items-center justify-center gap-1 flex-1 h-full rounded-xl transition-colors",i?"text-primary bg-secondary dark:bg-primary/20":"text-gray-500 dark:text-gray-400 hover:text-primary dark:hover:text-primary hover:bg-gray-50 dark:hover:bg-gray-800"),children:[(0,t.jsx)(a,{className:"h-6 w-6"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:e.name})]},e.href)}),(0,t.jsx)("div",{className:"flex items-center justify-center h-full px-2",children:(0,t.jsx)(u.T,{})})]})})}},2869:function(r,e,a){"use strict";a.d(e,{z:function(){return d}});var t=a(7437),n=a(2265),i=a(535),s=a(4508);let o=(0,i.j)("inline-flex items-center justify-center whitespace-nowrap rounded-xl text-base font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 dark:bg-primary dark:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:bg-primary/20 dark:text-primary dark:hover:bg-primary/30",outline:"border-2 border-primary text-primary hover:bg-primary hover:text-white dark:border-primary dark:text-primary dark:hover:bg-primary dark:hover:text-white",ghost:"hover:bg-secondary hover:text-secondary-foreground dark:hover:bg-gray-800 dark:hover:text-gray-200"},size:{default:"h-12 px-6 py-3",sm:"h-10 px-4",lg:"h-14 px-8 text-lg"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((r,e)=>{let{className:a,variant:n,size:i,...d}=r;return(0,t.jsx)("button",{className:(0,s.cn)(o({variant:n,size:i,className:a})),ref:e,...d})});d.displayName="Button"},4508:function(r,e,a){"use strict";a.d(e,{cn:function(){return i}});var t=a(1994),n=a(3335);function i(){for(var r=arguments.length,e=Array(r),a=0;a<r;a++)e[a]=arguments[a];return(0,n.m6)((0,t.W)(e))}}},function(r){r.O(0,[130,876,971,117,744],function(){return r(r.s=9186)}),_N_E=r.O()}]);
|
||||
1
deploy/.next/static/chunks/app/page-66582cb216c486f4.js
Normal file
1
deploy/.next/static/chunks/app/page-66582cb216c486f4.js
Normal file
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{239:function(e,t,a){Promise.resolve().then(a.bind(a,7340))},7340:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var n=a(7437),r=a(2265),i=a(9376);function c(){let e=(0,i.useRouter)(),[t,a]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let t=!1;{let e=window.Capacitor;if(e)try{let a=e.getPlatform();if("android"===a){var n;let a=null===(n=e.Plugins)||void 0===n?void 0:n.App;a&&a.getInfo().then(e=>{(e.id||e.appId||"").includes("admin")&&(t=!0)}).catch(()=>{}),null!==localStorage.getItem("adminPassword")&&(t=!0)}else null!==localStorage.getItem("adminPassword")&&(t=!0)}catch(e){console.warn("Erreur lors de la d\xe9tection Capacitor:",e)}!t&&(window.location.pathname.startsWith("/admin")||window.location.search.includes("admin=true"))&&(t=!0)}if(t){let t=localStorage.getItem("adminPassword");t?fetch("/api/admin/clients",{headers:{Authorization:"Bearer ".concat(t)}}).then(t=>{t.ok?e.replace("/admin"):404===t.status?e.replace("/admin"):(localStorage.removeItem("adminPassword"),e.replace("/admin/login"))}).catch(()=>{e.replace("/admin")}):e.replace("/admin/login")}else e.replace("/accueil");a(!0)},[e]),t)?null:(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-background dark:bg-background-dark",children:(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Chargement..."})})})}},9376:function(e,t,a){"use strict";var n=a(5475);a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}})}},function(e){e.O(0,[971,117,744],function(){return e(e.s=239)}),_N_E=e.O()}]);
|
||||
Reference in New Issue
Block a user