diff --git a/CHANGELOG.md b/CHANGELOG.md index c09ae23..27ad27d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,8 @@ - - ## [1.1.2](https://github.com/justdlabs/inertia.ts/compare/1.1.1...1.1.2) (2024-10-24) - ### Bug Fixes -* fix the navbar ([26859f4](https://github.com/justdlabs/inertia.ts/commit/26859f44dafa5519f46cb88235c3362b8c426548)) +- fix the navbar ([26859f4](https://github.com/justdlabs/inertia.ts/commit/26859f44dafa5519f46cb88235c3362b8c426548)) ## [1.1.1](https://github.com/justdlabs/inertia.ts/compare/1.1.0...1.1.1) (2024-10-22) diff --git a/bun.lockb b/bun.lockb new file mode 100644 index 0000000..75ac259 Binary files /dev/null and b/bun.lockb differ diff --git a/resources/js/components/ui/navbar.tsx b/resources/js/components/ui/navbar.tsx index a1649c0..f662ac5 100644 --- a/resources/js/components/ui/navbar.tsx +++ b/resources/js/components/ui/navbar.tsx @@ -106,7 +106,7 @@ const Navbar = ({ }; const navStyles = tv({ - base: 'hidden h-[--navbar-height] [--navbar-height:3.5rem] px-4 group peer lg:flex items-center w-full max-w-screen-2xl mx-auto', + base: 'hidden h-[--navbar-height] [--navbar-height:3.5rem] px-4 group peer lg:flex items-center w-full mx-auto', variants: { isSticky: { true: 'sticky top-0' diff --git a/resources/js/ziggy.js b/resources/js/ziggy.js index 2d3954c..ba3d102 100644 --- a/resources/js/ziggy.js +++ b/resources/js/ziggy.js @@ -1,34 +1,5 @@ -const Ziggy = { - url: 'http://inertia.ts.test', - port: null, - defaults: {}, - routes: { - 'sanctum.csrf-cookie': { uri: 'sanctum/csrf-cookie', methods: ['GET', 'HEAD'] }, - home: { uri: '/', methods: ['GET', 'HEAD'] }, - about: { uri: 'about', methods: ['GET', 'HEAD'] }, - dashboard: { uri: 'dashboard', methods: ['GET', 'HEAD'] }, - 'profile.edit': { uri: 'profile', methods: ['GET', 'HEAD'] }, - 'profile.update': { uri: 'profile', methods: ['PATCH'] }, - 'profile.destroy': { uri: 'profile', methods: ['DELETE'] }, - register: { uri: 'register', methods: ['GET', 'HEAD'] }, - login: { uri: 'login', methods: ['GET', 'HEAD'] }, - 'password.request': { uri: 'forgot-password', methods: ['GET', 'HEAD'] }, - 'password.email': { uri: 'forgot-password', methods: ['POST'] }, - 'password.reset': { uri: 'reset-password/{token}', methods: ['GET', 'HEAD'], parameters: ['token'] }, - 'password.store': { uri: 'reset-password', methods: ['POST'] }, - 'verification.notice': { uri: 'verify-email', methods: ['GET', 'HEAD'] }, - 'verification.verify': { - uri: 'verify-email/{id}/{hash}', - methods: ['GET', 'HEAD'], - parameters: ['id', 'hash'] - }, - 'verification.send': { uri: 'email/verification-notification', methods: ['POST'] }, - 'password.confirm': { uri: 'confirm-password', methods: ['GET', 'HEAD'] }, - 'password.update': { uri: 'password', methods: ['PUT'] }, - logout: { uri: 'logout', methods: ['POST'] } - } -}; +const Ziggy = {"url":"http:\/\/inertia.ts.test","port":null,"defaults":{},"routes":{"sanctum.csrf-cookie":{"uri":"sanctum\/csrf-cookie","methods":["GET","HEAD"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"about":{"uri":"about","methods":["GET","HEAD"]},"dashboard":{"uri":"dashboard","methods":["GET","HEAD"]},"profile.edit":{"uri":"profile","methods":["GET","HEAD"]},"profile.update":{"uri":"profile","methods":["PATCH"]},"profile.destroy":{"uri":"profile","methods":["DELETE"]},"register":{"uri":"register","methods":["GET","HEAD"]},"login":{"uri":"login","methods":["GET","HEAD"]},"password.request":{"uri":"forgot-password","methods":["GET","HEAD"]},"password.email":{"uri":"forgot-password","methods":["POST"]},"password.reset":{"uri":"reset-password\/{token}","methods":["GET","HEAD"],"parameters":["token"]},"password.store":{"uri":"reset-password","methods":["POST"]},"verification.notice":{"uri":"verify-email","methods":["GET","HEAD"]},"verification.verify":{"uri":"verify-email\/{id}\/{hash}","methods":["GET","HEAD"],"parameters":["id","hash"]},"verification.send":{"uri":"email\/verification-notification","methods":["POST"]},"password.confirm":{"uri":"confirm-password","methods":["GET","HEAD"]},"password.update":{"uri":"password","methods":["PUT"]},"logout":{"uri":"logout","methods":["POST"]}}}; if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') { - Object.assign(Ziggy.routes, window.Ziggy.routes); + Object.assign(Ziggy.routes, window.Ziggy.routes); } export { Ziggy };