remove console debug, timezone fix, color of text, about text, center tables

This commit is contained in:
2024-03-30 07:02:34 +01:00
parent 51f600f2c0
commit 2d2f639e36
6 changed files with 65 additions and 12 deletions

View File

@@ -0,0 +1,47 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\DataTableRequest;
use App\Models\Login;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;
use Inertia\Inertia;
class LoggingController extends Controller
{
/**
* @return \Illuminate\Http\Response
*/
public function logging()
{
return Inertia::render('Superuser/Activity/Logging');
}
/**
* @param \App\Http\Requests\DataTableRequest $request
* @return \Illuminate\Http\Response
*/
public function records(DataTableRequest $request)
{
$request->validated();
return Logging::join('users', 'login_activities.user_id', '=', 'users.id')
->where(function (Builder $query) use ($request) {
$search = '%' . $request->search . '%';
$query->where('users.name', 'like', $search)
->orWhere('users.username', 'like', $search)
->orWhere('login_activities.ip_address', 'like', $search)
->orWhere('login_activities.browser', 'like', $search)
->orWhere('login_activities.platform', 'like', $search)
->orWhere('login_activities.created_at', 'like', $search);
})
->when(!$request->user()->hasRole('superuser'), function (Builder $query) use ($request) {
$query->where('users.id', $request->user()->id);
})
->select(['users.*', 'login_activities.*'])
->orderBy($request->input('order.key') ?: 'login_activities.created_at', $request->input('order.dir') ?: 'desc')
->paginate($request->per_page ?: 10);
}
}

View File

@@ -69,7 +69,7 @@ return [
|
*/
'timezone' => 'Asia/Jakarta',
'timezone' => 'Europe/Bratislava',
/*
|--------------------------------------------------------------------------

View File

@@ -279,7 +279,7 @@ onMounted(fetch_menu);
<div class="m-3 mb-0 pb-24">
<slot />
</div>
<fwb-footer class="p-4 dark:text-white rounded-none bg-white shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-900 bottom-0 absolute w-full">
<fwb-footer class="p-4 text-gray-400 dark:text-gray-400 rounded-none bg-white shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-900 bottom-0 absolute w-full">
All information without guarantee
<fwb-footer-copyright
by="JD a MH Slovakia™"

View File

@@ -48,13 +48,15 @@ const onSubmit = async (data) => {
<p>
It is a community project of a group of enthusiasts from Slovakia.
This service provides price comparison of Ikea products in European countries.
Product prices are converted to EUR at the current rate and appear in resulting table.
Information about the prices of Ikea products is obtained online.
You can go to the appropriate product page by clicking on the country name.
Thanks to this service, you can find out in which country a given Ikea product is the cheapest (you can sort
them in the resulting table).
</p>
<br />
<p>
Product prices are converted to appropriate currency (you can change it in settings menu) at the current rate and appear in resulting table.
You can go to the appropriate product page by clicking on the country name.
</p>
<p>
Thanks to this service, you can find out in which country a given Ikea product is the cheapest (you can sort them in the resulting table).
</p>
Enjoy :)
</div>
</div>
@@ -63,7 +65,8 @@ const onSubmit = async (data) => {
<div>
<h1 class="text-3xl font-extrabold">Message</h1>
<p class="text-sm text-gray-400 mt-3">If you have some comments or ideas for improvement about project, let as know...</p>
<div class="mt-12">
<!-- <div class="mt-12">
<h2 class="text-lg font-extrabold">Email</h2>
<ul class="mt-3">
<li class="flex items-center">
@@ -105,7 +108,7 @@ const onSubmit = async (data) => {
</a>
</li>
</ul>
</div>
</div> -->
</div>
<Form @submit="onSubmit" :validation-schema="schema" v-slot="{ errors }" >

View File

@@ -499,7 +499,7 @@ const selectedRowClassNameFunction = (item) => {
settingsStore.settings["LAST_REFRESH_TIME"] }}</div>
</div>
</div>
<div class="mr-auto">
<div class="">
<form @submit.prevent="submit">
<div>
<div class="flex flex-col start-0">

View File

@@ -19,6 +19,9 @@ export default defineConfig({
build: {
assetsInlineLimit: 0
},
esbuild: {
drop: ['console', 'debugger'],
},
resolve: {
dedupe: ["vue"],
}