tweak: Small reorganizing

This commit is contained in:
NunoSempere 2021-11-25 11:09:17 +00:00
parent 639e7e793b
commit c1ae86b100
6 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,8 @@ The core structure is json array of objects. Only the "name" attribute is requir
The `isReferenceValue` property determines the display at the end, but it is optional. The `isReferenceValue` property determines the display at the end, but it is optional.
So internally this would look like:
``` ```
[ [
{ {

3
data/test.js Normal file
View File

@ -0,0 +1,3 @@
import listOfElements from 'listOfMoralGoods.js'
console.log(listOfElements)

View File

@ -1,5 +1,5 @@
/* Definitions */ /* Definitions */
const elementsDocument = 'listOfMoralGoods.json' const elementsDocument = '../data/listOfMoralGoods.json'
const domain = 250 const domain = 250
/* Imports */ /* Imports */

View File

@ -5,9 +5,10 @@
*/ */
/* Definitions */ /* Definitions */
const elementsDocument = 'listOfResearchOutputs.json' const elementsDocument = '../data/listOfResearchOutputs.json'
const domain = 10**7 const domain = 10**7
/* Imports */ /* Imports */
import Head from 'next/head' import Head from 'next/head'
import React, { useState } from "react"; import React, { useState } from "react";
@ -409,4 +410,4 @@ export default function Home({ listOfElementsDefault }) {
</div> </div>
) )
} }