misc changes and documentation

This commit is contained in:
Paoda
2019-02-20 13:31:54 -06:00
parent 4882cef4f6
commit 5fbc1a0ea1
5 changed files with 16 additions and 6 deletions

View File

@@ -215,7 +215,6 @@ export async function generate(path, template) {
* @return {Object} Table Object with Body Completely parsed.
* @async
*/
async function generateBody(tableArg, arr, start, end) {
let table = tableArg;
const t1 = performance.now();
@@ -245,6 +244,12 @@ export async function generate(path, template) {
});
}
/**
* Creates a unique ID that is not UUID compliant.
* - used to distinguish table objects from one another.
* @param {Number} length
* @return {String}
*/
function createID(length) {
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
let id;
@@ -263,7 +268,11 @@ export async function generate(path, template) {
}
}
/**
* Writes JSON to disk usnig ElectronSettings.
* - TODO: Switch to a Database for scalibility.
* @param {JSON} tableJSON
*/
export function saveTable(tableJSON) {
const stamp = Date.now();

View File

@@ -19,6 +19,7 @@ export default class Modal extends React.Component {
});
}
render() {
// Probably should remove once done with debugging
if (this.state.style.display === "flex") console.log("Modal Show")