adminforth 1.2.84 → 1.2.86
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
|
@@ -58,7 +58,6 @@ class AdminForth {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
allPluginInstances.sort(({ pi: a }, { pi: b }) => a.activationOrder - b.activationOrder);
|
|
61
|
-
console.log('🔌🔌🔌 Activating plugins', allPluginInstances.map(({ pi }) => pi.activationOrder));
|
|
62
61
|
allPluginInstances.forEach(({ pi: pluginInstance, resource }) => {
|
|
63
62
|
pluginInstance.modifyResourceConfig(this, resource);
|
|
64
63
|
const plugin = this.activatedPlugins.find((p) => p.pluginInstanceId === pluginInstance.pluginInstanceId);
|
|
@@ -149,7 +149,8 @@ export default class ConfigValidator {
|
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
res.resourceId = res.resourceId || res.table;
|
|
152
|
-
|
|
152
|
+
// as fallback value, capitalize and then replace _ with space
|
|
153
|
+
res.label = res.label || res.resourceId.replace(/_/g, ' ').replace(/\b\w/g, (l) => l.toUpperCase());
|
|
153
154
|
if (!res.dataSource) {
|
|
154
155
|
errors.push(`Resource "${res.resourceId}" is missing dataSource`);
|
|
155
156
|
}
|
package/dist/modules/styles.js
CHANGED
|
@@ -53,9 +53,9 @@ export const styles = () => ({
|
|
|
53
53
|
lightButtonsIcon: "#333333", // button icon
|
|
54
54
|
// colors for dark theme
|
|
55
55
|
darkHtml: "#111827",
|
|
56
|
-
darkPrimary: "
|
|
56
|
+
darkPrimary: "rgb(130 172 255)", // primary color
|
|
57
57
|
darkPrimaryContrast: "alias:darkPrimary inverse", // primary color contrast
|
|
58
|
-
darkPrimaryOpacity: "
|
|
58
|
+
darkPrimaryOpacity: "#212A40", // primary color opacity
|
|
59
59
|
darkNavbar: "#111827",
|
|
60
60
|
darkNavbarBorder: "#e5e7eb",
|
|
61
61
|
darkNavbarText: "#9ca3af",
|
|
@@ -80,7 +80,7 @@ export const styles = () => ({
|
|
|
80
80
|
darkListTableHeading: "#334155",
|
|
81
81
|
darkListTableHeadingText: "#9ca3af",
|
|
82
82
|
darkListTableText: "#9ca3af",
|
|
83
|
-
darkListTableRowHover: "
|
|
83
|
+
darkListTableRowHover: "rgb(35 47 65)",
|
|
84
84
|
darkListBreadcrumbsText: "#BBBBBB",
|
|
85
85
|
darkListBorder: "#444444",
|
|
86
86
|
darkForm: "#111111",
|
package/index.ts
CHANGED
|
@@ -20,7 +20,6 @@ import AdminForthPlugin from './basePlugin.js';
|
|
|
20
20
|
import ConfigValidator from './modules/configValidator.js';
|
|
21
21
|
import AdminForthRestAPI from './modules/restApi.js';
|
|
22
22
|
import ClickhouseConnector from './dataConnectors/clickhouse.js';
|
|
23
|
-
import { pid } from 'process';
|
|
24
23
|
|
|
25
24
|
// exports
|
|
26
25
|
export * from './types/AdminForthConfig.js';
|
|
@@ -87,7 +86,6 @@ class AdminForth implements IAdminForth {
|
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
allPluginInstances.sort(({pi: a}, {pi: b}) => a.activationOrder - b.activationOrder);
|
|
90
|
-
console.log('🔌🔌🔌 Activating plugins', allPluginInstances.map(({pi}) => pi.activationOrder));
|
|
91
89
|
allPluginInstances.forEach(
|
|
92
90
|
({pi: pluginInstance, resource}) => {
|
|
93
91
|
pluginInstance.modifyResourceConfig(this, resource);
|
|
@@ -162,7 +162,8 @@ export default class ConfigValidator implements IConfigValidator {
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
res.resourceId = res.resourceId || res.table;
|
|
165
|
-
|
|
165
|
+
// as fallback value, capitalize and then replace _ with space
|
|
166
|
+
res.label = res.label || res.resourceId.replace(/_/g, ' ').replace(/\b\w/g, (l) => l.toUpperCase());
|
|
166
167
|
if (!res.dataSource) {
|
|
167
168
|
errors.push(`Resource "${res.resourceId}" is missing dataSource`);
|
|
168
169
|
}
|
package/modules/styles.ts
CHANGED
|
@@ -65,9 +65,9 @@ export const styles = () => ({
|
|
|
65
65
|
// colors for dark theme
|
|
66
66
|
darkHtml: "#111827",
|
|
67
67
|
|
|
68
|
-
darkPrimary: "
|
|
68
|
+
darkPrimary: "rgb(130 172 255)", // primary color
|
|
69
69
|
darkPrimaryContrast: "alias:darkPrimary inverse", // primary color contrast
|
|
70
|
-
darkPrimaryOpacity: "
|
|
70
|
+
darkPrimaryOpacity: "#212A40", // primary color opacity
|
|
71
71
|
|
|
72
72
|
darkNavbar: "#111827",
|
|
73
73
|
darkNavbarBorder: "#e5e7eb",
|
|
@@ -96,7 +96,7 @@ export const styles = () => ({
|
|
|
96
96
|
darkListTableHeading: "#334155",
|
|
97
97
|
darkListTableHeadingText: "#9ca3af",
|
|
98
98
|
darkListTableText: "#9ca3af",
|
|
99
|
-
darkListTableRowHover: "
|
|
99
|
+
darkListTableRowHover: "rgb(35 47 65)",
|
|
100
100
|
darkListBreadcrumbsText: "#BBBBBB",
|
|
101
101
|
darkListBorder: "#444444",
|
|
102
102
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<span @click="(e)=>{e.stopPropagation()}" v-if="column.foreignResource">
|
|
4
|
-
<RouterLink v-if="record[column.name]" class="font-medium text-lightPrimary dark:text-darkPrimary hover:brightness-110"
|
|
4
|
+
<RouterLink v-if="record[column.name]" class="font-medium text-lightPrimary dark:text-darkPrimary hover:brightness-110 whitespace-nowrap"
|
|
5
5
|
:to="{ name: 'resource-show', params: { resourceId: column.foreignResource.resourceId, primaryKey: record[column.name].pk } }">
|
|
6
6
|
{{ record[column.name].label }}
|
|
7
7
|
</RouterLink>
|