adminforth 3.1.2 → 3.2.1-next.1
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/index.js
CHANGED
|
@@ -328,7 +328,7 @@ class AdminForth {
|
|
|
328
328
|
║ 💡 SOLUTION
|
|
329
329
|
║ Install the required package:
|
|
330
330
|
║
|
|
331
|
-
║ ${doesUserHavePnpmLock ? `pnpm add @adminforth/connector-${connectorName}` : `npm install @adminforth/connector-${connectorName}`}
|
|
331
|
+
║ ${doesUserHavePnpmLock ? `pnpm add @adminforth/connector-${connectorName}` : `npm install @adminforth/connector-${connectorName}`}
|
|
332
332
|
║
|
|
333
333
|
╚════════════════════════════════════════════════════════════════════════════
|
|
334
334
|
`);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="inline-flex items-center gap-1">
|
|
3
|
+
<div
|
|
4
|
+
class="overflow-hidden max-w-[200px] max-h-[20px] rounded-default"
|
|
5
|
+
:title="show ? $t('Click to hide') : $t('Click to show')"
|
|
6
|
+
@click="toggle"
|
|
7
|
+
>
|
|
8
|
+
<span
|
|
9
|
+
class="cursor-pointer select-none transition-all duration-200 text-lightListTableText dark:text-darkListTableText"
|
|
10
|
+
:class="{
|
|
11
|
+
'blur-[7px] hover:blur-[5px] brightness-50 dark:brightness-150': !show,
|
|
12
|
+
}"
|
|
13
|
+
>
|
|
14
|
+
<ValueRenderer :column="column" :record="record" />
|
|
15
|
+
</span>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { ref } from 'vue';
|
|
22
|
+
import ValueRenderer from '@/components/ValueRenderer.vue';
|
|
23
|
+
import type { AdminForthResourceColumnCommon, AdminForthResourceCommon, AdminUser } from '@/types/Common';
|
|
24
|
+
|
|
25
|
+
const props = defineProps<{
|
|
26
|
+
column: AdminForthResourceColumnCommon;
|
|
27
|
+
record: any;
|
|
28
|
+
meta: any;
|
|
29
|
+
resource: AdminForthResourceCommon;
|
|
30
|
+
adminUser: AdminUser;
|
|
31
|
+
}>();
|
|
32
|
+
|
|
33
|
+
const show = ref(false);
|
|
34
|
+
|
|
35
|
+
function toggle(event: MouseEvent) {
|
|
36
|
+
show.value = !show.value;
|
|
37
|
+
event.stopPropagation();
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface KeyValueAdapter {
|
|
6
6
|
get(key: string): Promise<string | null>;
|
|
7
|
+
listByPrefix(prefix: string, limit: number): Promise<Record<string, string>>;
|
|
7
8
|
set(key: string, value: string, expiresInSeconds?: number): Promise<void>;
|
|
8
9
|
delete(key: string): Promise<void>;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueAdapter.d.ts","sourceRoot":"","sources":["../../../types/adapters/KeyValueAdapter.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAE9B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEzC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAEpC"}
|
|
1
|
+
{"version":3,"file":"KeyValueAdapter.d.ts","sourceRoot":"","sources":["../../../types/adapters/KeyValueAdapter.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAE9B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEzC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAE7E,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAEpC"}
|