parent
932fb4d48a
commit
0ac81dc892
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,31 +244,54 @@ 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 + ': '}
|
||||||
|
{
|
||||||
|
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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -259,6 +307,8 @@ const DownloadFilesListInputGenerator = ({
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
<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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue