@galadrim/galadmin 0.1.14 → 0.1.18
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/.github/workflows/main.yml +3 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/front/build/asset-manifest.json +7 -7
- package/src/front/build/index.html +1 -1
- package/src/front/build/static/js/{2.778cdac1.chunk.js → 2.b3d419cf.chunk.js} +3 -3
- package/src/front/build/static/js/2.b3d419cf.chunk.js.map +1 -0
- package/src/front/build/static/js/main.06236740.chunk.js +2 -0
- package/src/front/build/static/js/main.06236740.chunk.js.map +1 -0
- package/src/front/node_modules/.cache/.eslintcache +1 -1
- package/src/front/node_modules/.cache/babel-loader/18489f84531299b3338ea69092838d3d.json +1 -0
- package/src/front/node_modules/.cache/babel-loader/3c35365361be8af665836d218febef34.json +1 -0
- package/src/front/node_modules/.cache/babel-loader/97f15c98cea463a696048a36a8de774d.json +1 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/18/db/255fe63aa0ec9232a8cfdb3fa679dfdbd0fd64f7b77318a20906043c49f44bfa659200f0268867bee6d3a7b21b7bfd62c3030e62ec095147f98b42eb9afd +1 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/f6/05/bf653eeee15b552c868443834d3c503be9a34e127ec76f805cf60768bf58d94750e1ddcc7f4ce0ed716d625e2040823d09d3473383e8464ba015db0ec1d9 +1 -0
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/{13/d8/d32579e27a416aac7b04b60faf320c4da778c3f180c52876b5966798f6b5 → 0d/89/d99652dba5f73c4101373f4b2c9aabadbe9f3857c9421c62e61ff66caad3} +1 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/{f3/67/591e18ebf4c0bef454dd26c51b3a6caca691338ed27811d59ddef26e7031 → 1a/b8/bc69b6c33a11502667cb59add9db2987fe400f0ce7def96861b03ef6755c} +1 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/87/08/421190bfe6e50816e059da6c33526c9943732ef856ebd2752d0cbfb4a852 +1 -1
- package/src/front/src/pages/Record.js +1 -1
- package/src/front/src/pages/Records.js +1 -1
- package/src/front/src/utils/getFormattedValue.js +10 -2
- package/src/front/build/static/js/2.778cdac1.chunk.js.map +0 -1
- package/src/front/build/static/js/main.f1cbeca5.chunk.js +0 -2
- package/src/front/build/static/js/main.f1cbeca5.chunk.js.map +0 -1
- package/src/front/node_modules/.cache/babel-loader/21924c261ae0190e05b25ff7be335a48.json +0 -1
- package/src/front/node_modules/.cache/babel-loader/9927257e5a1c34883ddacb1665837685.json +0 -1
- package/src/front/node_modules/.cache/babel-loader/c79f8df4d3d0abc42e0d2b1eb71c3d00.json +0 -1
- package/src/front/node_modules/.cache/babel-loader/d40c086cba0e12432c036d1aa14719eb.json +0 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/06/44/2353946ccf0d62e366a6b64754a6713aedc604873a39d4fc7108a05e7ef7c02cf9ec46056d39d970a0dcbe4a88bcdd49cfc09aa5e7c0636eee76ae382845 +0 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/55/2e/532185baf9d4193531944361bcc44af3adc322983b2b219704fccdc42b234ac5a08820b33d496cb7f7a9b0a4b656ba46d4222c816658dfe7cba112ba0f8e +0 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/a0/a5/02eb7c3686fc0b8b368d7571ac99d9057923ade02523769a0104df72645454c3abb5e1abd7959435a4592ccfc6f625105898092e038cb444bea039289fc9 +0 -1
- package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/77/76/87d901f3ac114d66548b68159bacc2a530b3251dbe62c2c09ff6fd29bd73 +0 -2
- /package/src/front/build/static/js/{2.778cdac1.chunk.js.LICENSE.txt → 2.b3d419cf.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
57dbf1fd4b9176e2a4374c6b8825efc655523944 {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002Fmain.06236740.chunk.js\",\"contentHash\":\"4d4fcb1c3d37403eb7e4\"}","integrity":"sha512-GNslX+Y6oOySMqjP2z+med/b0P1k97dzGKIJBgQ8SfRL+mWSAPAmiGe+5tOnsht7/WLDAw5i7AlRR/mLQuua/Q==","time":1678196111980,"size":374439}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
acc223450f70fdf33fbcdda25b519b8885088453 {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002F2.b3d419cf.chunk.js\",\"contentHash\":\"3fe10656615aefe7146c\"}","integrity":"sha512-9gW/ZT7u4VtVLIaEQ4NNPFA76aNOEn7Hb4Bc9gdov1jZR1Dh3cx/TODtcW1iXiBAgj0J00czg+hGS6AV2w7B2Q==","time":1678196114932,"size":1867077}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
3b44085565191f670dacf4eed32a1afe760e57e1 {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002Fruntime-main.2084140f.js\",\"contentHash\":\"21b0955fafaa36835c2c\"}","integrity":"sha512-EIHWkk+Hu8omZttNSZyf/dcQREufSs8WYrDS8rrnA4aKRWlIARB00JVPiR1DRsuEMh2l+YSkkh+tpa2nXovJ6g==","time":1678196112018,"size":17514}
|
|
@@ -58,7 +58,7 @@ export default () => {
|
|
|
58
58
|
filteredColumns.map((column, index) => (
|
|
59
59
|
<div class='showRecordField' key={index}>
|
|
60
60
|
<div class='formLabel'>{column.label}</div>
|
|
61
|
-
<div class='formValue'>{getFormattedValue(column, record, false) || "-"}</div>
|
|
61
|
+
<div class='formValue'>{getFormattedValue(column, record, config, false) || "-"}</div>
|
|
62
62
|
</div>
|
|
63
63
|
))
|
|
64
64
|
: null}
|
|
@@ -194,7 +194,7 @@ export default () => {
|
|
|
194
194
|
e.stopPropagation()
|
|
195
195
|
}}><div class={`checkbox ${selectedRecordIds.includes(recordId) ? "checked" : ""}`}></div></td>}
|
|
196
196
|
{filteredColumns.map((column, index) => (
|
|
197
|
-
<td key={index}>{getFormattedValue(column, record, true)}</td>
|
|
197
|
+
<td key={index}>{getFormattedValue(column, record, config, true)}</td>
|
|
198
198
|
))}
|
|
199
199
|
</tr>
|
|
200
200
|
)
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import evalExpression from "./evalExpression"
|
|
2
|
+
import {
|
|
3
|
+
Link
|
|
4
|
+
} from "react-router-dom";
|
|
2
5
|
|
|
3
|
-
export default (column, record, onTable) => {
|
|
4
|
-
|
|
6
|
+
export default (column, record, config, onTable) => {
|
|
7
|
+
const foreignViewIndex = column.dataType === 'foreign' ? config.views.findIndex(x => x.tableName === column.table) : -1
|
|
8
|
+
if (column.dataType === 'foreign' && column.formatValue && foreignViewIndex > -1) {
|
|
9
|
+
return <Link to={`/record/${foreignViewIndex}/${record[column.name]}`} dangerouslySetInnerHTML={{ __html: record[`__formatValue-${column.__id__}__`] }} />
|
|
10
|
+
} else if (column.dataType === 'foreign' && column.formattedValue && foreignViewIndex > -1) {
|
|
11
|
+
return <Link to={`/record/${foreignViewIndex}/${record[column.name]}`}>{evalExpression(column.formattedValue, record)}</Link>
|
|
12
|
+
} else if (column.showAsPicture) {
|
|
5
13
|
const imageUrl = column.baseUrl + record[column.pathField];
|
|
6
14
|
return record[column.pathField] ? (
|
|
7
15
|
<a href={imageUrl} target='_blank'>
|