DFixes -> fixes and upgrades all functionality

feature/2_forms
TBS093A 2021-08-22 17:17:10 +02:00
parent c36180ffd0
commit 932fb4d48a
5 changed files with 72 additions and 15 deletions

View File

@ -208,20 +208,68 @@ const DownloadFilesListInputGenerator = ({
id={input.name + info.action + info.endpoint + 'DropBox'} id={input.name + info.action + info.endpoint + 'DropBox'}
> >
{input.name + ':'} {input.name + ':'}
{ {
input.values.length == 0 ?
() => {
return (
<div>
empty
</div>
)
}
:
input.values.map( (item, index) => { input.values.map( (item, index) => {
return ( return (
<div <>
key={ item } <div
> key={ info.action + '_element_' + index }
<a
href={ input.link + index + '/' }
> >
{ item } {
</a> Object.keys(item).map(
</div> ( key, index ) => {
return(
<div style={{ paddingLeft: '10px' }}>
{ key + ': ' }
{
typeof item[key] === "object"
?
Object.keys( item[key] ).map(
( key, index ) => {
return (
<div style={{ paddingLeft: '20px' }}>
{ key }: { item.data[key]}
</div>
)
}
)
:
item[key]
}
</div>
)
}
)
}
<a
href={ input.link + index + '/' }
>
download
</a>
</div>
<div style={{ width: '100%', height: '1px', backgroundColor: '#008000' }}>
</div>
</>
) )
} }
) )
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 958 KiB

BIN
src/images/logo.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,4 +1,4 @@
import { configureStore } from '@reduxjs/toolkit'; import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit';
import { loadState, saveState } from './stateLoader' import { loadState, saveState } from './stateLoader'
import lodash from 'lodash' import lodash from 'lodash'
@ -20,7 +20,12 @@ export const store = configureStore({
userAuthReducer, userAuthReducer,
userCrudReducer userCrudReducer
}, },
preloadedState: persistedState preloadedState: persistedState,
middleware: getDefaultMiddleware (
{
serializableCheck: false,
}
),
}) })
store.subscribe(() => { store.subscribe(() => {

View File

@ -2,11 +2,15 @@
body { body {
margin: 0 auto; margin: 0 auto;
overflow: hidden; overflow: hidden;
// background-color: rgba(0,128,0,1);
background: background:
url("../images/background.jpg") linear-gradient(
rgba(0,128,0,1) 100%; 10deg,
background-size: 100% auto; black 0%,
#0a670a 40%,
#097309 50%,
#0a670a 60%,
black 100%
);
width: 100%; width: 100%;
height: 100%; height: 100%;