Fix bugs, vue-json-pretty package
This commit is contained in:
@@ -27,7 +27,7 @@ class ProductsCompareController extends Controller
|
|||||||
$text = $request->input("text");
|
$text = $request->input("text");
|
||||||
$country = $request->input("country");
|
$country = $request->input("country");
|
||||||
|
|
||||||
Log::channel('db')->info("{codes} {countries} {country} {online} {text} {ip} {referer}", ["codes" => $codes, "countries" => $countries, "country" => $country, "online" => $online, "text" => $text, "ip" => $request->ip(), $request->headers->get('referer')]);
|
Log::channel('db')->info("{codes} {countries} {country} {online} {text} {ip} {referer}", ["codes" => $codes, "countries" => $countries, "country" => $country, "online" => $online, "text" => $text, "ip" => $request->ip(), "referer" => $request->headers->get('referer')]);
|
||||||
|
|
||||||
$codes = collect($codes);
|
$codes = collect($codes);
|
||||||
$countries = collect($countries);
|
$countries = collect($countries);
|
||||||
|
|||||||
@@ -138,5 +138,6 @@
|
|||||||
"error: network error": "Error: Network Error",
|
"error: network error": "Error: Network Error",
|
||||||
"error: ziggy error: route 'products.count' is not in the route list.": "Error: Ziggy error: route 'products.count' is not in the route list.",
|
"error: ziggy error: route 'products.count' is not in the route list.": "Error: Ziggy error: route 'products.count' is not in the route list.",
|
||||||
"doc": "Doc",
|
"doc": "Doc",
|
||||||
"firefox 125": "Firefox 125"
|
"firefox 125": "Firefox 125",
|
||||||
|
"logs": "Logs"
|
||||||
}
|
}
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
"vee-validate": "^4.12.4",
|
"vee-validate": "^4.12.4",
|
||||||
"vue": "3.3.x",
|
"vue": "3.3.x",
|
||||||
"vue-google-charts": "^1.1.0",
|
"vue-google-charts": "^1.1.0",
|
||||||
|
"vue-json-pretty": "^2.4.0",
|
||||||
"vue-multiselect": "^3.0.0-beta.3",
|
"vue-multiselect": "^3.0.0-beta.3",
|
||||||
"vue3-easy-data-table": "^1.5.47",
|
"vue3-easy-data-table": "^1.5.47",
|
||||||
"vue3-multiselect-checkboxed": "^0.0.9",
|
"vue3-multiselect-checkboxed": "^0.0.9",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import Card from '@/Components/Card.vue';
|
|||||||
import Icon from '@/Components/Icon.vue';
|
import Icon from '@/Components/Icon.vue';
|
||||||
import Builder from '@/Components/DataTable/Builder.vue';
|
import Builder from '@/Components/DataTable/Builder.vue';
|
||||||
import Th from '@/Components/DataTable/Th.vue';
|
import Th from '@/Components/DataTable/Th.vue';
|
||||||
|
import VueJsonPretty from "vue-json-pretty";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -99,7 +100,7 @@ import Th from '@/Components/DataTable/Th.vue';
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="px-2 py-1 border border-inherit ">
|
<td class="px-2 py-1 border border-inherit ">
|
||||||
{{ rec.context }}
|
<vue-json-pretty :data="JSON.parse(rec.context)" />
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="px-2 py-1 border border-inherit ">
|
<td class="px-2 py-1 border border-inherit ">
|
||||||
@@ -113,3 +114,8 @@ import Th from '@/Components/DataTable/Th.vue';
|
|||||||
</Card>
|
</Card>
|
||||||
</DashboardLayout>
|
</DashboardLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import 'vue-json-pretty/lib/styles.css';
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user