@hostlink/nuxt-light 1.21.1 → 1.21.3
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 +23 -24
- package/dist/runtime/components/L/Database/create-table-dialog.vue +72 -0
- package/dist/runtime/components/L/System/Setting/modules.vue +6 -44
- package/dist/runtime/components/l-dialog-database-field-add.vue +1 -1
- package/dist/runtime/components/l-file-upload.vue +7 -3
- package/dist/runtime/components/l-file.vue +3 -2
- package/dist/runtime/components/l-page.vue +9 -5
- package/dist/runtime/formkit/File.vue +2 -2
- package/dist/runtime/formkit/Repeater.vue +6 -6
- package/dist/runtime/index.d.ts +38 -39
- package/dist/runtime/index.js +0 -4
- package/dist/runtime/lib/collect.d.ts +3 -0
- package/dist/runtime/lib/collect.js +4 -0
- package/dist/runtime/lib/getObject.js +1 -1
- package/dist/runtime/lib/index.d.ts +1 -0
- package/dist/runtime/lib/index.js +1 -0
- package/dist/runtime/light.d.ts +8 -8
- package/dist/runtime/light.js +6 -6
- package/dist/runtime/pages/Role/index.vue +40 -31
- package/dist/runtime/pages/System/database/backup.vue +1 -1
- package/dist/runtime/pages/System/database/table.vue +161 -50
- package/dist/runtime/pages/System/fs.vue +48 -34
- package/dist/runtime/pages/System/mailtest.vue +1 -1
- package/dist/runtime/pages/System/package.vue +6 -2
- package/dist/runtime/pages/System/phpinfo.vue +7 -3
- package/dist/runtime/pages/System/setting.vue +1 -2
- package/dist/runtime/pages/User/profile.vue +30 -24
- package/dist/runtime/pages/User/setting/index.vue +10 -19
- package/dist/runtime/pages/User/setting/information.vue +10 -3
- package/dist/runtime/pages/User/setting/style.vue +6 -3
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +24 -11
- package/package.json +2 -3
- package/dist/runtime/components/l-file-manager copy.vue +0 -750
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -267,37 +267,36 @@ const module = defineNuxtModule({
|
|
|
267
267
|
await addComponentsDir({
|
|
268
268
|
path: resolver.resolve("./runtime/components")
|
|
269
269
|
});
|
|
270
|
-
const from = resolver.resolve("./runtime/lib");
|
|
271
270
|
const index = resolver.resolve("./runtime/index");
|
|
272
271
|
const SystemValue = resolver.resolve("./runtime/lib/SystemValue");
|
|
273
272
|
addImports([
|
|
274
|
-
{ name: "api", from },
|
|
275
|
-
{ name: "id", from },
|
|
276
|
-
{ name: "getID", from },
|
|
277
|
-
{ name: "addObject", from },
|
|
278
|
-
{ name: "f", from },
|
|
279
|
-
{ name: "getApiUrl", from },
|
|
280
|
-
{ name: "getCurrentUser", from },
|
|
273
|
+
{ name: "api", from: index },
|
|
274
|
+
{ name: "id", from: index },
|
|
275
|
+
{ name: "getID", from: index },
|
|
276
|
+
{ name: "addObject", from: index },
|
|
277
|
+
{ name: "f", from: index },
|
|
278
|
+
{ name: "getApiUrl", from: index },
|
|
279
|
+
{ name: "getCurrentUser", from: index },
|
|
281
280
|
{ name: "getObject", from: index },
|
|
282
|
-
{ name: "list", from },
|
|
283
|
-
{ name: "m", from },
|
|
284
|
-
{ name: "q", from },
|
|
285
|
-
{ name: "removeObject", from },
|
|
286
|
-
{ name: "t", from },
|
|
281
|
+
{ name: "list", from: index },
|
|
282
|
+
{ name: "m", from: index },
|
|
283
|
+
{ name: "q", from: index },
|
|
284
|
+
{ name: "removeObject", from: index },
|
|
285
|
+
{ name: "t", from: index },
|
|
287
286
|
{ name: "useLight", from: index },
|
|
288
|
-
{ name: "isGranted", from },
|
|
289
|
-
{ name: "sv", from },
|
|
287
|
+
{ name: "isGranted", from: index },
|
|
288
|
+
{ name: "sv", from: index },
|
|
290
289
|
{ name: "loadSV", from: SystemValue },
|
|
291
290
|
{ name: "getSV", from: SystemValue },
|
|
292
|
-
{ name: "getModelColumns", from },
|
|
293
|
-
{ name: "getModelFields", from },
|
|
294
|
-
{ name: "getModelField", from },
|
|
295
|
-
{ name: "getGQLFields", from },
|
|
296
|
-
{ name: "model", from },
|
|
297
|
-
{ name: "notify", from },
|
|
298
|
-
{ name: "defineLightModel", from },
|
|
299
|
-
{ name: "LightModelField", from, type: true },
|
|
300
|
-
{ name: "LightModel", from, type: true },
|
|
291
|
+
{ name: "getModelColumns", from: index },
|
|
292
|
+
{ name: "getModelFields", from: index },
|
|
293
|
+
{ name: "getModelField", from: index },
|
|
294
|
+
{ name: "getGQLFields", from: index },
|
|
295
|
+
{ name: "model", from: index },
|
|
296
|
+
{ name: "notify", from: index },
|
|
297
|
+
{ name: "defineLightModel", from: index },
|
|
298
|
+
{ name: "LightModelField", from: index, type: true },
|
|
299
|
+
{ name: "LightModel", from: index, type: true },
|
|
301
300
|
{ name: "collect", from: index }
|
|
302
301
|
]);
|
|
303
302
|
const files = await resolveFiles(process.cwd() + "/models", ["*"]);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useDialogPluginComponent } from 'quasar'
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
// ...your custom props
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
// this is part of our example (so not required)
|
|
9
|
+
function onOKClick(value) {
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
//nullable are boolean values
|
|
13
|
+
value.fields.forEach((field) => {
|
|
14
|
+
field.nullable = field.nullable ? true : false;
|
|
15
|
+
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// on OK, it is REQUIRED to
|
|
20
|
+
// call onDialogOK (with optional payload)
|
|
21
|
+
onDialogOK(value)
|
|
22
|
+
// or with payload: onDialogOK({ ... })
|
|
23
|
+
// ...and it will also hide the dialog automatically
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
defineEmits([
|
|
27
|
+
// REQUIRED; need to specify some events that your
|
|
28
|
+
// component will emit through useDialogPluginComponent()
|
|
29
|
+
...useDialogPluginComponent.emits
|
|
30
|
+
])
|
|
31
|
+
|
|
32
|
+
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent()
|
|
33
|
+
const types = ["varchar", "int", "date", "time", "datetime", "timestamp", "text", "blob", "json", "jsonb", "uuid", "boolean", "decimal", "float", "double", "real", "numeric", "smallint", "bigint", "tinyint", "mediumint", "char", "binary", "varbinary", "enum"]
|
|
34
|
+
|
|
35
|
+
</script>
|
|
36
|
+
<template>
|
|
37
|
+
|
|
38
|
+
<q-dialog ref="dialogRef" full-width>
|
|
39
|
+
<q-card class="q-dialog-plugin">
|
|
40
|
+
<q-toolbar>
|
|
41
|
+
<q-toolbar-title>Create Table</q-toolbar-title>
|
|
42
|
+
<q-space />
|
|
43
|
+
<q-btn dense flat icon="sym_o_close" v-close-popup />
|
|
44
|
+
</q-toolbar>
|
|
45
|
+
<form-kit type="l-form" :bordered="false" @submit="onOKClick" :value="{
|
|
46
|
+
name: '',
|
|
47
|
+
fields: [],
|
|
48
|
+
}" :action="false" #default="{ value }">
|
|
49
|
+
|
|
50
|
+
<form-kit type="l-input" name="name" label="Name" validation="required" />
|
|
51
|
+
|
|
52
|
+
<form-kit type="l-repeater" name="fields">
|
|
53
|
+
<div class="row q-gutter-sm">
|
|
54
|
+
<form-kit type="l-input" name="name" label="Name" validation="required" class="col" />
|
|
55
|
+
|
|
56
|
+
<form-kit type="l-select" name="type" label="Type" :options="types" validation="required"
|
|
57
|
+
class="col" />
|
|
58
|
+
<form-kit type="l-input" name="length" label="Length" class="col" number />
|
|
59
|
+
<form-kit type="l-input" name="default" label="Default" class="col" />
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="row">
|
|
63
|
+
<form-kit type="l-checkbox" name="nullable" label="Nullable" />
|
|
64
|
+
</div>
|
|
65
|
+
</form-kit>
|
|
66
|
+
|
|
67
|
+
</form-kit>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</q-card>
|
|
71
|
+
</q-dialog>
|
|
72
|
+
</template>
|
|
@@ -1,52 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const $q = useQuasar()
|
|
6
|
-
|
|
7
|
-
const modelValue = defineModel<{
|
|
2
|
+
const emits = defineEmits(["submit"])
|
|
3
|
+
defineProps<{
|
|
8
4
|
file_manager: string
|
|
9
|
-
revision: string
|
|
10
5
|
}>()
|
|
11
|
-
|
|
12
|
-
const onSubmit = async (d, form) => {
|
|
13
|
-
let data = [];
|
|
14
|
-
Object.keys(d).forEach((key) => {
|
|
15
|
-
data.push({
|
|
16
|
-
name: key,
|
|
17
|
-
value: d[key]
|
|
18
|
-
})
|
|
19
|
-
})
|
|
20
|
-
await m("updateAppConfigs", {
|
|
21
|
-
data
|
|
22
|
-
})
|
|
23
|
-
//update the modelValue
|
|
24
|
-
Object.keys(d).forEach((key) => {
|
|
25
|
-
modelValue.value[key] = d[key]
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
$q.notify({
|
|
29
|
-
message: "Settings saved",
|
|
30
|
-
color: "positive"
|
|
31
|
-
})
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
6
|
</script>
|
|
36
|
-
|
|
37
7
|
<template>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}" @submit="onSubmit">
|
|
42
|
-
<q-field :label="$t('File Manager')" stack-label>
|
|
43
|
-
<FormKit type="l-checkbox" label="Show" name="file_manager" true-value="1" false-value="0" />
|
|
8
|
+
<form-kit type="l-form" :bordered="false" :value="$props" @submit="$emit('submit', $event)">
|
|
9
|
+
<q-field :label="$t('File Manager')" stack-label :color="$light.color">
|
|
10
|
+
<form-kit type="l-checkbox" label="Show" name="file_manager" true-value="1" false-value="0" />
|
|
44
11
|
</q-field>
|
|
45
|
-
|
|
46
|
-
<FormKit type="l-select" label="Revision" name="revision" use-input use-chips multiple hide-dropdown-icon
|
|
47
|
-
input-debounce="0" new-value-mode="add-unique" />
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</FormKit>
|
|
12
|
+
</form-kit>
|
|
51
13
|
|
|
52
14
|
</template>
|
|
@@ -53,7 +53,7 @@ const types = ["varchar", "int", "date", "time", "datetime", "timestamp", "text"
|
|
|
53
53
|
<form-kit type="l-input" name="length" label="Length" />
|
|
54
54
|
<form-kit type="l-input" name="default" label="Default" />
|
|
55
55
|
<form-kit type="l-checkbox" name="nullable" label="Nullable" />
|
|
56
|
-
<form-kit type="l-checkbox" name="autoincrement" label="
|
|
56
|
+
<form-kit type="l-checkbox" name="autoincrement" label="Auto increment" />
|
|
57
57
|
</form-kit>
|
|
58
58
|
|
|
59
59
|
|
|
@@ -10,6 +10,7 @@ const i18n = useI18n();
|
|
|
10
10
|
const quasar = useQuasar();
|
|
11
11
|
const $q = quasar;
|
|
12
12
|
|
|
13
|
+
|
|
13
14
|
const { system } = await q({
|
|
14
15
|
system: {
|
|
15
16
|
maxUploadSize: true
|
|
@@ -28,6 +29,7 @@ export interface LFileProps {
|
|
|
28
29
|
stackLabel?: boolean;
|
|
29
30
|
path?: string;
|
|
30
31
|
accept?: string;
|
|
32
|
+
driveIndex?: number;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
const props = withDefaults(defineProps<LFileProps>(), {
|
|
@@ -40,6 +42,7 @@ const props = withDefaults(defineProps<LFileProps>(), {
|
|
|
40
42
|
stackLabel: undefined,
|
|
41
43
|
path: "",
|
|
42
44
|
accept: "*",
|
|
45
|
+
driveIndex: 0
|
|
43
46
|
});
|
|
44
47
|
|
|
45
48
|
const emit = defineEmits(["update:modelValue"]);
|
|
@@ -96,7 +99,8 @@ const onUploadFile = async () => {
|
|
|
96
99
|
});
|
|
97
100
|
|
|
98
101
|
try {
|
|
99
|
-
let v = await m("
|
|
102
|
+
let v = await m("lightDriveUploadFile", {
|
|
103
|
+
index: props.driveIndex,
|
|
100
104
|
path: props.path,
|
|
101
105
|
file: uploadFile.value,
|
|
102
106
|
rename: rename.value
|
|
@@ -124,7 +128,7 @@ const onUploadFile = async () => {
|
|
|
124
128
|
|
|
125
129
|
</script>
|
|
126
130
|
<template>
|
|
127
|
-
<
|
|
131
|
+
<l-input v-bind="attrs" v-model="localValue" hide-bottom-space>
|
|
128
132
|
<q-dialog v-model="show" persistent transition-show="scale" transition-hide="scale">
|
|
129
133
|
<l-card style="width:300px">
|
|
130
134
|
<q-card-section>
|
|
@@ -147,5 +151,5 @@ const onUploadFile = async () => {
|
|
|
147
151
|
<template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
|
|
148
152
|
<slot :name="name" v-bind="props ?? {}"></slot>
|
|
149
153
|
</template>
|
|
150
|
-
</
|
|
154
|
+
</l-input>
|
|
151
155
|
</template>
|
|
@@ -14,6 +14,7 @@ export interface LFileProps {
|
|
|
14
14
|
dense?: boolean;
|
|
15
15
|
square?: boolean;
|
|
16
16
|
stackLabel?: boolean;
|
|
17
|
+
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
const props = withDefaults(defineProps<LFileProps>(), {
|
|
@@ -59,12 +60,12 @@ const attrs = computed(() => {
|
|
|
59
60
|
|
|
60
61
|
</script>
|
|
61
62
|
<template>
|
|
62
|
-
<
|
|
63
|
+
<l-input v-bind="attrs" v-model="localValue" hide-bottom-space>
|
|
63
64
|
<q-dialog v-model="show" full-height full-width>
|
|
64
65
|
<l-file-manager closable @close="show = false" @input="onInput"></l-file-manager>
|
|
65
66
|
</q-dialog>
|
|
66
67
|
<template v-slot:prepend>
|
|
67
68
|
<q-btn dense flat round icon="sym_o_folder" @click="show = true"></q-btn>
|
|
68
69
|
</template>
|
|
69
|
-
</
|
|
70
|
+
</l-input>
|
|
70
71
|
</template>
|
|
@@ -32,12 +32,16 @@ const showToolbar = computed(() => {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
const title = computed(() => {
|
|
36
|
+
let t = props.title || route.path.split("/")[1].replace(/([a-z])(?=[A-Z])/g, '$1 ').replace(/([A-Z]*)(?=[A-Z][a-z])/g, '$1 ')
|
|
37
|
+
//remove double space
|
|
38
|
+
t = t.replace(/\s\s+/g, ' ');
|
|
39
|
+
//trim title
|
|
40
|
+
t = t.trim()
|
|
41
|
+
return t
|
|
42
|
+
})
|
|
43
|
+
|
|
36
44
|
|
|
37
|
-
//remove double space
|
|
38
|
-
title = title.replace(/\s\s+/g, ' ');
|
|
39
|
-
//trim title
|
|
40
|
-
title = title.trim()
|
|
41
45
|
const module = route.path.split("/")[1];
|
|
42
46
|
const onDelete = async () => {
|
|
43
47
|
|
|
@@ -40,10 +40,10 @@ const attrs = {
|
|
|
40
40
|
|
|
41
41
|
</script>
|
|
42
42
|
<template>
|
|
43
|
-
<
|
|
43
|
+
<l-file v-model="value" :label="context.label" v-bind="attrs" :error="error" :error-message="errorMessage"
|
|
44
44
|
@blur="onBlur">
|
|
45
45
|
<template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
|
|
46
46
|
<slot :name="name" v-bind="props ?? {}"></slot>
|
|
47
47
|
</template>
|
|
48
|
-
</
|
|
48
|
+
</l-file>
|
|
49
49
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import {
|
|
2
|
+
import { computed } from 'vue'
|
|
3
3
|
import { useDragAndDrop } from "@formkit/drag-and-drop/vue";
|
|
4
4
|
import { animations } from "@formkit/drag-and-drop";
|
|
5
5
|
|
|
@@ -74,26 +74,26 @@ const isAllowMoveDown = (index) => {
|
|
|
74
74
|
|
|
75
75
|
<div ref="parent">
|
|
76
76
|
<FormKit type="group" v-for="(item, index) in items" :index="index" :key="item">
|
|
77
|
-
<q-card class="q-mb-sm" flat>
|
|
77
|
+
<q-card class="q-mb-sm" flat bordered>
|
|
78
78
|
<q-card-section>
|
|
79
79
|
<div class="row q-col-gutter-md">
|
|
80
80
|
<div class="col-shrink">
|
|
81
|
-
<div class="q-mb-
|
|
81
|
+
<div class="q-mb-xs" v-if="sortable">
|
|
82
82
|
<q-btn icon="sym_o_drag_handle" dense unelevated :color="$light.color"
|
|
83
83
|
style="cursor: grab;" class="l-repeater-handle">
|
|
84
84
|
</q-btn>
|
|
85
85
|
</div>
|
|
86
|
-
<div class="q-mb-
|
|
86
|
+
<div class="q-mb-xs" v-if="sortable">
|
|
87
87
|
<!-- up -->
|
|
88
88
|
<q-btn type="button" @click="onMoveUp(index)" icon="sym_o_arrow_upward"
|
|
89
89
|
:color="$light.color" dense unelevated :disable="!isAllowMoveUp(index)" />
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
|
-
<div class="q-mb-
|
|
92
|
+
<div class="q-mb-xs">
|
|
93
93
|
<q-btn type="button" @click="onRemove" icon="sym_o_remove" :color="$light.color"
|
|
94
94
|
dense unelevated :disable="!isAllowRemove" />
|
|
95
95
|
</div>
|
|
96
|
-
<div class="q-mb-
|
|
96
|
+
<div class="q-mb-xs" v-if="sortable">
|
|
97
97
|
<!-- down -->
|
|
98
98
|
<q-btn type="button" @click="onMoveDown(index)" icon="sym_o_arrow_downward"
|
|
99
99
|
:color="$light.color" dense unelevated :disable="!isAllowMoveDown(index)" />
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { type FormKitInputs } from '@formkit/inputs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export declare const collect: (name: string, fields: Object) => ReturnType<typeof api.collect>;
|
|
1
|
+
import { type FormKitInputs } from '@formkit/inputs';
|
|
2
|
+
|
|
3
|
+
declare module '@formkit/inputs' {
|
|
4
|
+
export interface FormKitInputProps<Props extends FormKitInputs<Props>> {
|
|
5
|
+
lInput: {
|
|
6
|
+
type: 'l-input';
|
|
7
|
+
name: string;
|
|
8
|
+
label: string;
|
|
9
|
+
number?: string;
|
|
10
|
+
dense?: boolean;
|
|
11
|
+
},
|
|
12
|
+
lCheckbox: {
|
|
13
|
+
type: 'l-checkbox';
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
dense?: boolean;
|
|
17
|
+
},
|
|
18
|
+
lDatePicker: {
|
|
19
|
+
type: 'l-date-picker';
|
|
20
|
+
name: string;
|
|
21
|
+
label: string;
|
|
22
|
+
dense?: boolean;
|
|
23
|
+
},
|
|
24
|
+
lForm: {
|
|
25
|
+
type: 'l-form';
|
|
26
|
+
gutter?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
27
|
+
bordered?: boolean;
|
|
28
|
+
},
|
|
29
|
+
lSelect: {
|
|
30
|
+
type: 'l-select';
|
|
31
|
+
name: string;
|
|
32
|
+
label: string;
|
|
33
|
+
options: Array<any>;
|
|
34
|
+
dense?: boolean;
|
|
35
|
+
optionsDense?: boolean;
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
}
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toQuery } from "@hostlink/light";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
3
|
import { default as getModelField } from "./getModelField.js";
|
|
4
|
-
import { collect } from "
|
|
4
|
+
import { default as collect } from "./collect.js";
|
|
5
5
|
export default async function(fields = []) {
|
|
6
6
|
let route = useRoute();
|
|
7
7
|
if (!route.name) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useRuntimeConfig } from "nuxt/app";
|
|
2
2
|
import { Notify } from "quasar";
|
|
3
3
|
export { default as api } from "./api.js";
|
|
4
|
+
export { default as collect } from "./collect.js";
|
|
4
5
|
export { default as f } from "./f.js";
|
|
5
6
|
export { default as getApiUrl } from "./getApiUrl.js";
|
|
6
7
|
export { default as getCurrentUser } from "./getCurrentUser.js";
|
package/dist/runtime/light.d.ts
CHANGED
|
@@ -227,7 +227,6 @@ declare const light: {
|
|
|
227
227
|
clear: string;
|
|
228
228
|
set: string;
|
|
229
229
|
search: string;
|
|
230
|
-
filter: string;
|
|
231
230
|
remove: string;
|
|
232
231
|
ok: string;
|
|
233
232
|
cancel: string;
|
|
@@ -235,6 +234,7 @@ declare const light: {
|
|
|
235
234
|
reset: string;
|
|
236
235
|
update: string;
|
|
237
236
|
create: string;
|
|
237
|
+
filter: string;
|
|
238
238
|
refresh: string;
|
|
239
239
|
};
|
|
240
240
|
date: {
|
|
@@ -261,10 +261,10 @@ declare const light: {
|
|
|
261
261
|
pagination: (start: number, end: number, total: number) => string;
|
|
262
262
|
};
|
|
263
263
|
editor: {
|
|
264
|
-
bold: string;
|
|
265
264
|
left: string;
|
|
266
265
|
right: string;
|
|
267
266
|
center: string;
|
|
267
|
+
bold: string;
|
|
268
268
|
align: string;
|
|
269
269
|
url: string;
|
|
270
270
|
italic: string;
|
|
@@ -357,10 +357,10 @@ declare const light: {
|
|
|
357
357
|
};
|
|
358
358
|
editor: {
|
|
359
359
|
size: string;
|
|
360
|
-
bold: string;
|
|
361
360
|
left: string;
|
|
362
361
|
right: string;
|
|
363
362
|
center: string;
|
|
363
|
+
bold: string;
|
|
364
364
|
align: string;
|
|
365
365
|
italic: string;
|
|
366
366
|
strikethrough: string;
|
|
@@ -445,8 +445,8 @@ declare const light: {
|
|
|
445
445
|
};
|
|
446
446
|
uploader: {
|
|
447
447
|
clear: string;
|
|
448
|
-
add: string;
|
|
449
448
|
done: string;
|
|
449
|
+
add: string;
|
|
450
450
|
upload: string;
|
|
451
451
|
removeQueue: string;
|
|
452
452
|
removeUploaded: string;
|
|
@@ -832,7 +832,6 @@ export declare const useLight: () => {
|
|
|
832
832
|
clear: string;
|
|
833
833
|
set: string;
|
|
834
834
|
search: string;
|
|
835
|
-
filter: string;
|
|
836
835
|
remove: string;
|
|
837
836
|
ok: string;
|
|
838
837
|
cancel: string;
|
|
@@ -840,6 +839,7 @@ export declare const useLight: () => {
|
|
|
840
839
|
reset: string;
|
|
841
840
|
update: string;
|
|
842
841
|
create: string;
|
|
842
|
+
filter: string;
|
|
843
843
|
refresh: string;
|
|
844
844
|
};
|
|
845
845
|
date: {
|
|
@@ -866,10 +866,10 @@ export declare const useLight: () => {
|
|
|
866
866
|
pagination: (start: number, end: number, total: number) => string;
|
|
867
867
|
};
|
|
868
868
|
editor: {
|
|
869
|
-
bold: string;
|
|
870
869
|
left: string;
|
|
871
870
|
right: string;
|
|
872
871
|
center: string;
|
|
872
|
+
bold: string;
|
|
873
873
|
align: string;
|
|
874
874
|
url: string;
|
|
875
875
|
italic: string;
|
|
@@ -962,10 +962,10 @@ export declare const useLight: () => {
|
|
|
962
962
|
};
|
|
963
963
|
editor: {
|
|
964
964
|
size: string;
|
|
965
|
-
bold: string;
|
|
966
965
|
left: string;
|
|
967
966
|
right: string;
|
|
968
967
|
center: string;
|
|
968
|
+
bold: string;
|
|
969
969
|
align: string;
|
|
970
970
|
italic: string;
|
|
971
971
|
strikethrough: string;
|
|
@@ -1050,8 +1050,8 @@ export declare const useLight: () => {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
uploader: {
|
|
1052
1052
|
clear: string;
|
|
1053
|
-
add: string;
|
|
1054
1053
|
done: string;
|
|
1054
|
+
add: string;
|
|
1055
1055
|
upload: string;
|
|
1056
1056
|
removeQueue: string;
|
|
1057
1057
|
removeUploaded: string;
|
package/dist/runtime/light.js
CHANGED
|
@@ -203,6 +203,12 @@ const light = reactive({
|
|
|
203
203
|
watch(() => light.theme, async () => {
|
|
204
204
|
await light.setStyle("theme", light.theme);
|
|
205
205
|
});
|
|
206
|
+
watch(() => light.color, async () => {
|
|
207
|
+
await m("updateMyStyle", {
|
|
208
|
+
name: "color",
|
|
209
|
+
value: light.color
|
|
210
|
+
});
|
|
211
|
+
});
|
|
206
212
|
},
|
|
207
213
|
isGranted(right) {
|
|
208
214
|
if (right === void 0) return true;
|
|
@@ -230,12 +236,6 @@ export const createLight = (opts) => {
|
|
|
230
236
|
};
|
|
231
237
|
};
|
|
232
238
|
let currentRoute = null;
|
|
233
|
-
watch(() => light.color, async () => {
|
|
234
|
-
await m("updateMyStyle", {
|
|
235
|
-
name: "color",
|
|
236
|
-
value: light.color
|
|
237
|
-
});
|
|
238
|
-
});
|
|
239
239
|
export const useLight = () => {
|
|
240
240
|
light.$q = useQuasar();
|
|
241
241
|
return light;
|