@hostlink/nuxt-light 1.48.9 → 1.48.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -0
- package/dist/runtime/components/l-date-picker.d.vue.ts +1 -0
- package/dist/runtime/components/l-date-picker.vue +1 -1
- package/dist/runtime/components/l-date-picker.vue.d.ts +1 -0
- package/dist/runtime/composables/t.d.ts +1 -1
- package/dist/runtime/composables/t.js +2 -2
- package/dist/runtime/pages/System/database/event.d.vue.ts +2 -0
- package/dist/runtime/pages/System/database/event.vue +89 -0
- package/dist/runtime/pages/System/database/event.vue.d.ts +2 -0
- package/package.json +2 -2
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -151,6 +151,11 @@ const routes = [
|
|
|
151
151
|
path: "/System/database/table",
|
|
152
152
|
file: "runtime/pages/System/database/table.vue"
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
name: "System-database-event",
|
|
156
|
+
path: "/System/database/event",
|
|
157
|
+
file: "runtime/pages/System/database/event.vue"
|
|
158
|
+
},
|
|
154
159
|
{
|
|
155
160
|
name: "EventLog-eventlog_id-view",
|
|
156
161
|
path: "/EventLog/:eventlog_id/view",
|
|
@@ -14,7 +14,7 @@ const props = defineProps({
|
|
|
14
14
|
calendar: { type: null, required: false },
|
|
15
15
|
color: { type: Object, required: false },
|
|
16
16
|
textColor: { type: null, required: false },
|
|
17
|
-
dark: { type: [Boolean, null], required: false },
|
|
17
|
+
dark: { type: [Boolean, null], required: false, default: void 0 },
|
|
18
18
|
square: { type: Boolean, required: false, default: void 0 },
|
|
19
19
|
flat: { type: Boolean, required: false, skipCheck: true },
|
|
20
20
|
bordered: { type: Boolean, required: false, skipCheck: true },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function (
|
|
1
|
+
export default function (...args: any[]): string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q } from "#imports";
|
|
3
|
+
import { ref, watch } from "vue";
|
|
4
|
+
const { system } = await q({
|
|
5
|
+
system: {
|
|
6
|
+
database: {
|
|
7
|
+
events: true
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const selected = ref([]);
|
|
12
|
+
const eventDetail = ref(null);
|
|
13
|
+
watch(selected, async (newSelected) => {
|
|
14
|
+
if (newSelected.length > 0) {
|
|
15
|
+
const name = newSelected[0].Db + "." + newSelected[0].Name;
|
|
16
|
+
const event = await getEvent(name);
|
|
17
|
+
eventDetail.value = event;
|
|
18
|
+
console.log("\u53D6\u5F97\u7684\u4E8B\u4EF6\u8CC7\u6599:", event);
|
|
19
|
+
} else {
|
|
20
|
+
eventDetail.value = null;
|
|
21
|
+
}
|
|
22
|
+
}, { deep: true });
|
|
23
|
+
const getEvent = async (name) => {
|
|
24
|
+
const { system: system2 } = await q({
|
|
25
|
+
system: {
|
|
26
|
+
database: {
|
|
27
|
+
event: {
|
|
28
|
+
__args: {
|
|
29
|
+
name
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return system2.database.event;
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<template>
|
|
40
|
+
<l-page>
|
|
41
|
+
|
|
42
|
+
<q-table :rows="system.database.events" :pagination="{ rowsPerPage: 0 }" v-model:selected="selected"
|
|
43
|
+
selection="single" />
|
|
44
|
+
|
|
45
|
+
<!-- 顯示選中的事件詳細內容 -->
|
|
46
|
+
<div v-if="eventDetail" class="q-mt-md">
|
|
47
|
+
<q-card>
|
|
48
|
+
<q-card-section>
|
|
49
|
+
<div class="text-h6">事件詳細資料 - {{ eventDetail.Event }}</div>
|
|
50
|
+
</q-card-section>
|
|
51
|
+
<q-card-section>
|
|
52
|
+
<div class="row q-gutter-md">
|
|
53
|
+
<div class="col-12 col-md-6">
|
|
54
|
+
<q-card flat bordered>
|
|
55
|
+
<q-card-section>
|
|
56
|
+
<div class="text-subtitle1 text-weight-bold">基本資訊</div>
|
|
57
|
+
<q-separator class="q-my-sm" />
|
|
58
|
+
<div class="q-gutter-sm">
|
|
59
|
+
<div><strong>事件名稱:</strong> {{ eventDetail.Event }}</div>
|
|
60
|
+
<div>
|
|
61
|
+
<strong>SQL 模式:</strong>
|
|
62
|
+
<div class="q-mt-xs text-caption" style="word-break: break-all; line-height: 1.3;">
|
|
63
|
+
{{ eventDetail.sql_mode }}
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div><strong>時區:</strong> {{ eventDetail.time_zone }}</div>
|
|
67
|
+
<div><strong>字符集:</strong> {{ eventDetail.character_set_client }}</div>
|
|
68
|
+
<div><strong>連接校對:</strong> {{ eventDetail.collation_connection }}</div>
|
|
69
|
+
<div><strong>資料庫校對:</strong> {{ eventDetail['Database Collation'] }}</div>
|
|
70
|
+
</div>
|
|
71
|
+
</q-card-section>
|
|
72
|
+
</q-card>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-12 col-md-6">
|
|
75
|
+
<q-card flat bordered>
|
|
76
|
+
<q-card-section>
|
|
77
|
+
<div class="text-subtitle1 text-weight-bold">事件定義</div>
|
|
78
|
+
<q-separator class="q-my-sm" />
|
|
79
|
+
<pre class="q-pa-sm bg-grey-1" style="white-space: pre-wrap; font-size: 12px;">{{ eventDetail['Create Event'] }}</pre>
|
|
80
|
+
</q-card-section>
|
|
81
|
+
</q-card>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</q-card-section>
|
|
85
|
+
</q-card>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
</l-page>
|
|
89
|
+
</template>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.11",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"defu": "^6.1.4",
|
|
42
42
|
"diff2html": "^3.4.47",
|
|
43
43
|
"formkit-quasar": "^0.0.15",
|
|
44
|
-
"json-to-graphql-query": "^2.
|
|
44
|
+
"json-to-graphql-query": "^2.3.0",
|
|
45
45
|
"nuxt-quasar-ui": "^2.1.12",
|
|
46
46
|
"quasar": "^2.18.5",
|
|
47
47
|
"vue-i18n": "^9.2.2",
|