Skip to content

Commit

Permalink
Update: Various bugfixes, improvements, upgrades
Browse files Browse the repository at this point in the history
- Corrected issues preventing ssr service
- Implemented primevue toast for flash notifications
- Improvements to UserProfile services,handling
- Upgraded to latest primevue component library
- Removed 'enraiged' middleware group; Moved to Authenticate class
  • Loading branch information
Todd Cytra committed Dec 31, 2024
1 parent ff09db4 commit 36ae3e2
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 43 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ The enraiged-laravel starter framework will be moving into v0.4.x soon with a fu

---

2024-12-31 : 0.3.15
Update: Various bugfixes, improvements, upgrades

- Corrected issues preventing ssr service
- Implemented primevue toast for flash notifications
- Improvements to UserProfile services,handling
- Upgraded to latest primevue component library
- Removed 'enraiged' middleware group; Moved to Authenticate class

---

2024-12-16 : 0.3.14.6
Secure: Updated vendor packages, node modules to correct vulnerabilities

Expand Down
7 changes: 3 additions & 4 deletions app/Enums/Languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ final class Languages
*/
public static function Select()
{
return collect(config('enraiged.languages'))
->transform(function ($each, $index) {
return collect(config('app.locales'))
->transform(function ($name, $index) {
return [
'id' => $index,
'name' => __($each['name']),
'name' => __($name, [], $index),
];
})
//->sort() // ?
->values()
->toArray();
}
Expand Down
7 changes: 6 additions & 1 deletion app/Http/Controllers/Avatars/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ public function __invoke(UpdateRequest $request, Avatar $avatar)
->save();

if ($request->is('api/*')) {
return response()->json(['color' => $request->get('color'), 'success' => __('Avatar color updated')]);
$data = [
'color' => $request->get('color'),
'success' => __('Avatar color updated'),
];

return response()->json($data);
}

$request->session()->put('status', 205);
Expand Down
15 changes: 15 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@

'locale' => 'en',

/*
|--------------------------------------------------------------------------
| Multiple Locales Configuration
|--------------------------------------------------------------------------
|
| Defining multiple locales here will provide these as options for i18n.
|
*/

'locales' => [
'en' => 'English',
'fr' => 'French',
'es' => 'Spanish',
],

/*
|--------------------------------------------------------------------------
| Application Fallback Locale
Expand Down
38 changes: 0 additions & 38 deletions config/enraiged/languages.php

This file was deleted.

2 changes: 2 additions & 0 deletions resources/js/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createInertiaApp } from '@inertiajs/vue3';
import createServer from '@inertiajs/vue3/server';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { i18nVue } from 'laravel-vue-i18n';
import PrimeVue from 'primevue/config';

const appName = import.meta.env.VITE_APP_NAME || 'Laravel';

Expand All @@ -16,6 +17,7 @@ createServer(page =>
setup({ App, props, plugin }) {
return createSSRApp({ render: () => h(App, props) })
.use(plugin)
.use(PrimeVue, { inputStyle: 'filled', ripple: true })
.use(i18nVue, {
lang: 'en',
resolve: lang => {
Expand Down

0 comments on commit 36ae3e2

Please sign in to comment.