-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Wood
committed
Jul 20, 2022
1 parent
9b0bfaf
commit b3131cf
Showing
2 changed files
with
2 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,6 @@ var fs = require("fs").promises; | |
var path = require("path"); | ||
var readJSON = require("../../lib/readJSON"); | ||
|
||
var templateList = { | ||
"1G5p4UIsKwUK303k4gLXhAmFnret0lg3w7qLm5S62Tsg":"ai2html_graphic", | ||
"1nbpweBccoaBqxuyKSL6o0q_qkdponL0OWgJpbozQp58":"bar_chart", | ||
"1km6lszUzHwbgg9eFe1qcsUHfQBIF48r1XnFc1nQcnog":"county_map", | ||
"12PsbQ7uTHr_iFeJLgt7LSkU66BQUNX8_5wQrJuvjYFU":"stacked_grouped_column_chart", | ||
"12e3cNKWd1E2IHcDGN72URkbp7Yjb_3TbJrAxIgpYCTI":"state_grid_map", | ||
"1E0fEV2lnchh8l5fuTvOTR5GRuv4jVtOEI-unEOCPtd4":"portrait_pullquotes", | ||
"1kekyEB3w293-8Ex2R3VdsQZTQmrfJwZ6sfWxS7OBDyA":"graphic", | ||
"1pcLyLFhEpKMlNpp3UqWZ1XgW8ZaloVe_d04CGdNnEWc":"dot_chart", | ||
"1a8F0oYWVC0BdEpG8Mbz2HKRkGIn0XQiGWTcVZMXeVdQ":"table", | ||
"1kekyEB3w293-8Ex2R3VdsQZTQmrfJwZ6sfWxS7OBDyA":"d3_graphic", | ||
"1wq0oi5HfgfYBdDs32-Qs77xmnI9VMXPUgRHA8lKIRmM":"annotated_line_chart", | ||
"1QTLmFGjd2BCU3QQvvXb-8RN9YkztBFOaOeaZ40SEKjw":"block_histogram", | ||
"1-wN8QJAaAE5zzIMcbfPPchPWAGFj6BnpZrU72Fp6cm4":"column_chart", | ||
"1G5p4UIsKwUK303k4gLXhAmFnret0lg3w7qLm5S62Tsg":"ai2html_map", | ||
"1DLHWPcJcGoKHRGBtATdBbZVIT0EuiAXG_SiQiDucazg":"stacked_bar_chart", | ||
"1DLxMcQRpyp1rqGJTjC28jJH5Df1GYrJrJnBl2PW9-MU":"line_chart", | ||
"19d-SxZs0z5fl7pETB427wp4DYzNwB5znkNZg6kF69j4":"grouped_bar_chart", | ||
"1tCkiSX2QV2_LjXWW6sNe7s9MqREeDEYrIGQF8mb0OHw":"stacked_column_chart" | ||
} | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
var getFolders = async function(dir) { | ||
var listing = await fs.readdir(dir); | ||
var matching = []; | ||
|
@@ -47,13 +26,6 @@ var getMetadata = async function(data,dir) { | |
var manifest = await readJSON(manifestPath); | ||
if (manifest.templateType && manifest.templateType != "test") { | ||
var template = manifest.templateType; | ||
} | ||
else if (manifest.templateType == "test") { | ||
var template = templateList[manifest.templateSheet]; | ||
|
||
manifest.templateType = template; | ||
// update manifest with test | ||
await fs.writeFile(manifestPath, JSON.stringify(manifest, null, 2)); | ||
This comment has been minimized.
Sorry, something went wrong.
DanielJWood
Contributor
|
||
} else { | ||
template = ""; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@thomaswilburn see here where I roll this back.