Skip to content

Commit

Permalink
🎨 readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Oct 8, 2023
1 parent b10f715 commit a6588e9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/SessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class SessionController extends Controller
*/
public function index(): JsonResponse|Response
{
// sleep(2);

sleep(1);
return $this->render(Session::whereUserId(auth()->user()?->id)->get());
}

Expand Down
2 changes: 1 addition & 1 deletion client/components/layout/LayoutBreadCrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const { list, actions } = useCrumbs()
</router-link>
</div>
</nav>
<div class="my-12 md:mx-12">
<div>
<slot />
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions client/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ export default class Api {
}

public async setUser(): Promise<boolean> {
try {
const result = await $fetch<api.MetApiResults & { data: models.User }>('/me', this.fetchOptions())
if (!result || !result.status || result.status !== 'success') return false
Object.assign(this.$user, result.data)
} catch (e) { this.invalidate() }
this.setEcho()
return true
}
Expand Down
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
> Now supporting [Nuxt v3](https://nuxt.com)

> Are you using Laravel with vapor? want your Nuxt setup on lambda as well? [TRY FUME!](https://fume.app)

[![](https://img.shields.io/badge/nuxt.js-v3-04C690.svg)](https://nuxt.com)
[![](https://img.shields.io/badge/Laravel-v9.40.0-ff2e21.svg)](https://laravel.com)
[![MadeWithLaravel shield](https://madewithlaravel.com/storage/repo-shields/3372-shield.svg)](https://madewithlaravel.com/p/laranuxt/shield-link)
Expand All @@ -15,14 +18,14 @@
[![Lint Javascript](https://github.com/fumeapp/laranuxt/actions/workflows/lint-js.yml/badge.svg)](https://github.com/fumeapp/laranuxt/actions/workflows/lint-js.yml)
[![Lint PHP](https://github.com/fumeapp/laranuxt/actions/workflows/lint-php.yml/badge.svg)](https://github.com/fumeapp/laranuxt/actions/workflows/lint-php.yml)

![](resources/laranuxt.gif?raw=true)
![](resources/laranuxt.mp4)

> Examples on using Dark Mode, authentication, and listing data
### What is included

* [NUXT v3](https://nuxt.com) front end, a progressive Vue.js framework - For Nuxt v2 visit [this branch](https://github.com/fumeapp/laranuxt/tree/nuxt2)
* [tailvue](https://github.com/fumeapp/tailvue) a collection of components built for Nuxt.js, powered by WindiCSS|TailwindCSS
* [nuxt UI](https://ui.nuxt.com.com) a collection of components built by the NuxtJS team, powered by TailwindCSS
* [Authentication library](https://github.com/fumeapp/laranuxt#api-and-authentication) to assist with user sessions and logging in/out
* Example Authentication Middleware

Expand Down
Binary file removed resources/laranuxt.gif
Binary file not shown.
Binary file added resources/laranuxt.mp4
Binary file not shown.

0 comments on commit a6588e9

Please sign in to comment.