remove console debug, timezone fix, color of text, about text, center tables
This commit is contained in:
47
app/Http/Controllers/LoggingController.php
Normal file
47
app/Http/Controllers/LoggingController.php
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -69,7 +69,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'timezone' => 'Asia/Jakarta',
|
'timezone' => 'Europe/Bratislava',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ onMounted(fetch_menu);
|
|||||||
<div class="m-3 mb-0 pb-24">
|
<div class="m-3 mb-0 pb-24">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</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
|
All information without guarantee
|
||||||
<fwb-footer-copyright
|
<fwb-footer-copyright
|
||||||
by="JD a MH Slovakia™"
|
by="JD a MH Slovakia™"
|
||||||
|
|||||||
@@ -47,14 +47,16 @@ const onSubmit = async (data) => {
|
|||||||
<strong>What is Ikea price comparison?</strong>
|
<strong>What is Ikea price comparison?</strong>
|
||||||
<p>
|
<p>
|
||||||
It is a community project of a group of enthusiasts from Slovakia.
|
It is a community project of a group of enthusiasts from Slovakia.
|
||||||
This service provides price comparison of Ikea products in European countries.
|
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.
|
</p>
|
||||||
Information about the prices of Ikea products is obtained online.
|
<p>
|
||||||
You can go to the appropriate product page by clicking on the country name.
|
Product prices are converted to appropriate currency (you can change it in settings menu) at the current rate and appear in resulting table.
|
||||||
Thanks to this service, you can find out in which country a given Ikea product is the cheapest (you can sort
|
You can go to the appropriate product page by clicking on the country name.
|
||||||
them in the resulting table).
|
</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>
|
</p>
|
||||||
<br />
|
|
||||||
Enjoy :)
|
Enjoy :)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -63,7 +65,8 @@ const onSubmit = async (data) => {
|
|||||||
<div>
|
<div>
|
||||||
<h1 class="text-3xl font-extrabold">Message</h1>
|
<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>
|
<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>
|
<h2 class="text-lg font-extrabold">Email</h2>
|
||||||
<ul class="mt-3">
|
<ul class="mt-3">
|
||||||
<li class="flex items-center">
|
<li class="flex items-center">
|
||||||
@@ -105,7 +108,7 @@ const onSubmit = async (data) => {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Form @submit="onSubmit" :validation-schema="schema" v-slot="{ errors }" >
|
<Form @submit="onSubmit" :validation-schema="schema" v-slot="{ errors }" >
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ const selectedRowClassNameFunction = (item) => {
|
|||||||
settingsStore.settings["LAST_REFRESH_TIME"] }}</div>
|
settingsStore.settings["LAST_REFRESH_TIME"] }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mr-auto">
|
<div class="">
|
||||||
<form @submit.prevent="submit">
|
<form @submit.prevent="submit">
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-col start-0">
|
<div class="flex flex-col start-0">
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ export default defineConfig({
|
|||||||
build: {
|
build: {
|
||||||
assetsInlineLimit: 0
|
assetsInlineLimit: 0
|
||||||
},
|
},
|
||||||
|
esbuild: {
|
||||||
|
drop: ['console', 'debugger'],
|
||||||
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
dedupe: ["vue"],
|
dedupe: ["vue"],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user