All -> huge changes

develop v0.1.0
TBS093A 2021-09-24 11:48:59 +02:00
parent 932fb4d48a
commit 0ac81dc892
2 changed files with 71 additions and 21 deletions

View File

@ -10,7 +10,7 @@ COPY package.json ./
COPY package-lock.json ./ COPY package-lock.json ./
RUN npm install --silent RUN npm install --silent
RUN npm install gatsby-cli --silent RUN npm install gatsby-cli@3.10.0 --silent
ENV GATSBY_TELEMETRY_DISABLED=1 ENV GATSBY_TELEMETRY_DISABLED=1

View File

@ -183,6 +183,31 @@ const PasswordInputGenerator = ({
) )
} }
const ObjectIterator = ({
object, divPlacer
}) => {
return(
<>
{
typeof object == "object" ?
Object.keys( object ).map(
( key ) => {
return (
<div key={ key }>
{ divPlacer( object[key] ) }
</div>
)
}
)
:
object
}
</>
)
}
/** /**
* Text input generator, example: * Text input generator, example:
* @param { * @param {
@ -219,46 +244,71 @@ const DownloadFilesListInputGenerator = ({
) )
} }
: : input.values.map( (item, index) => {
input.values.map( (item, index) => {
return ( return (
<> <>
<div <div
key={ info.action + '_element_' + index } key={ info.action + '_element_' + index }
ls={ item }
> >
{ {
Object.keys(item).map( typeof item == 'string' ?
item
: Object.keys(item).map(
( key, index ) => { ( key, index ) => {
return( return(
<div style={{ paddingLeft: '10px' }}> <div style={{ paddingLeft: '10px' }}>
{ key + ': ' } { key + ': ' }
{ {
typeof item[key] === "object" typeof item[key] === "object" ?
?
Object.keys( item[key] ).map( Object.keys( item[key] ).map(
( key, index ) => { ( key_two, index ) => {
return ( return (
<div style={{ paddingLeft: '20px' }}> <div style={{ paddingLeft: '20px' }}>
{ key }: { item.data[key]} { key_two + ': '}
</div> {
) typeof item[key][key_two] == 'object' ?
}
) Object.keys( item[key][key_two] ).map(
(key_three, index) => {
return (
<div style={{ paddingLeft: '30px' }}>
{ key_three + ": " }
{ "x: " + item[key][key_two][key_three].x + ", " }
{ "y: " + item[key][key_two][key_three].y + ", " }
{ "z: " + item[key][key_two][key_three].z + ", " }
</div>
)
}
)
:
item[key][key_two]
}
</div>
)
}
)
: :
item[key] item[key]
} }
</div> </div>
) )
} }
) )
} }
<br />
<br />
<a <a
href={ input.link + index + '/' } href={ input.link + index + '/' }
> >
@ -321,10 +371,10 @@ const ChoiceListingGenerator = ({
input.values.map( (item) => { input.values.map( (item) => {
return ( return (
<option <option
key={ item } key={ item.model }
value={ item } value={ item.model }
> >
{ item.replace('.blend', '') } { item.model.replace('.blend', '') }
</option> </option>
) )
} }