Rearrange JSON files
@ -2,13 +2,18 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const jsonsDir = path.join(process.cwd(), 'public/jsons');
|
||||
const jsonFiles = fs.readdirSync(jsonsDir);
|
||||
const childJsonDirs = fs.readdirSync(jsonsDir);
|
||||
|
||||
jsonFiles.forEach((jsonFileName) => {
|
||||
console.log(`Compressing ${jsonFileName}...`);
|
||||
childJsonDirs.forEach((childJsonDir) => {
|
||||
const fullChildJsonDirPath = path.join(jsonsDir, childJsonDir);
|
||||
const jsonFiles = fs.readdirSync(fullChildJsonDirPath);
|
||||
|
||||
const jsonFilePath = path.join(jsonsDir, jsonFileName);
|
||||
const json = require(jsonFilePath);
|
||||
jsonFiles.forEach((jsonFileName) => {
|
||||
console.log(`Compressing ${jsonFileName}...`);
|
||||
|
||||
fs.writeFileSync(jsonFilePath, JSON.stringify(json));
|
||||
const jsonFilePath = path.join(fullChildJsonDirPath, jsonFileName);
|
||||
const json = require(jsonFilePath);
|
||||
|
||||
fs.writeFileSync(jsonFilePath, JSON.stringify(json));
|
||||
});
|
||||
});
|
||||
|
@ -82,7 +82,7 @@ function prepareDirTree(control, dirTree, dirSortOrders) {
|
||||
return { dirTree, dirSortOrders };
|
||||
}
|
||||
|
||||
const roadmap = require(path.join(__dirname, `../public/jsons/${roadmapId}`));
|
||||
const roadmap = require(path.join(__dirname, `../public/jsons/roadmaps/${roadmapId}`));
|
||||
const controls = roadmap.mockup.controls.control;
|
||||
|
||||
// Prepare the dir tree that we will be creating and also calculate the sort orders
|
||||
|
1
public/jsons/checklists/frontend-performance.json
Normal file
@ -1,5 +1,5 @@
|
||||
---
|
||||
# jsonUrl: "/jsons/android.json"
|
||||
# jsonUrl: "/jsons/roadmaps/android.json"
|
||||
pdfUrl: "/pdfs/android.pdf"
|
||||
order: 4
|
||||
featuredTitle: "Android"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/angular.json"
|
||||
jsonUrl: "/jsons/roadmaps/angular.json"
|
||||
pdfUrl: "/pdfs/angular.pdf"
|
||||
order: 3
|
||||
featuredTitle: "Angular"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/aspnet-core.json"
|
||||
jsonUrl: "/jsons/roadmaps/aspnet-core.json"
|
||||
pdfUrl: "/pdfs/aspnet-core.pdf"
|
||||
order: 9
|
||||
featuredTitle: "ASP.NET Core"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/backend.json"
|
||||
jsonUrl: "/jsons/roadmaps/backend.json"
|
||||
pdfUrl: "/pdfs/backend.pdf"
|
||||
order: 2
|
||||
featuredTitle: "Backend"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/blockchain.json"
|
||||
jsonUrl: "/jsons/roadmaps/blockchain.json"
|
||||
pdfUrl: "/pdfs/blockchain.pdf"
|
||||
order: 6
|
||||
featuredTitle: "Blockchain"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/computer-science.json"
|
||||
jsonUrl: "/jsons/roadmaps/computer-science.json"
|
||||
pdfUrl: "/pdfs/computer-science.pdf"
|
||||
order: 1
|
||||
featuredTitle: "Computer Science"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/design-system.json"
|
||||
jsonUrl: "/jsons/roadmaps/design-system.json"
|
||||
pdfUrl: "/pdfs/design-system.pdf"
|
||||
order: 13
|
||||
featuredTitle: "Design System"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/devops.json"
|
||||
jsonUrl: "/jsons/roadmaps/devops.json"
|
||||
pdfUrl: "/pdfs/devops.pdf"
|
||||
order: 3
|
||||
featuredTitle: "DevOps"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/flutter.json"
|
||||
jsonUrl: "/jsons/roadmaps/flutter.json"
|
||||
pdfUrl: "/pdfs/flutter.pdf"
|
||||
order: 10
|
||||
featuredTitle: "Flutter"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/frontend.json"
|
||||
jsonUrl: "/jsons/roadmaps/frontend.json"
|
||||
pdfUrl: "/pdfs/frontend.pdf"
|
||||
order: 1
|
||||
featuredTitle: "Frontend"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/golang.json"
|
||||
jsonUrl: "/jsons/roadmaps/golang.json"
|
||||
pdfUrl: "/pdfs/golang.pdf"
|
||||
order: 8
|
||||
featuredTitle: "Go"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/graphql.json"
|
||||
jsonUrl: "/jsons/roadmaps/graphql.json"
|
||||
pdfUrl: "/pdfs/graphql.pdf"
|
||||
order: 12
|
||||
featuredTitle: "GraphQL"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/java.json"
|
||||
jsonUrl: "/jsons/roadmaps/java.json"
|
||||
pdfUrl: "/pdfs/java.pdf"
|
||||
order: 9
|
||||
featuredTitle: "Java"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/javascript.json"
|
||||
jsonUrl: "/jsons/roadmaps/javascript.json"
|
||||
pdfUrl: "/pdfs/javascript.pdf"
|
||||
order: 5
|
||||
featuredTitle: "JavaScript"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/nodejs.json"
|
||||
jsonUrl: "/jsons/roadmaps/nodejs.json"
|
||||
pdfUrl: "/pdfs/nodejs.pdf"
|
||||
order: 6
|
||||
featuredTitle: "Node.js"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/python.json"
|
||||
jsonUrl: "/jsons/roadmaps/python.json"
|
||||
pdfUrl: "/pdfs/python.pdf"
|
||||
order: 7
|
||||
featuredTitle: "Python"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/qa.json"
|
||||
jsonUrl: "/jsons/roadmaps/qa.json"
|
||||
pdfUrl: "/pdfs/qa.pdf"
|
||||
order: 7
|
||||
featuredTitle: "QA"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/react.json"
|
||||
jsonUrl: "/jsons/roadmaps/react.json"
|
||||
pdfUrl: "/pdfs/react.pdf"
|
||||
order: 2
|
||||
featuredTitle: "React"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/software-architect.json"
|
||||
jsonUrl: "/jsons/roadmaps/software-architect.json"
|
||||
pdfUrl: "/pdfs/software-architect.pdf"
|
||||
order: 8
|
||||
featuredTitle: "Software Architect"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/software-design-architecture.json"
|
||||
jsonUrl: "/jsons/roadmaps/software-design-architecture.json"
|
||||
pdfUrl: "/pdfs/software-design-architecture.pdf"
|
||||
order: 12
|
||||
featuredTitle: "Design and Architecture"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/spring-boot.json"
|
||||
jsonUrl: "/jsons/roadmaps/spring-boot.json"
|
||||
pdfUrl: "/pdfs/spring-boot.pdf"
|
||||
order: 10
|
||||
featuredTitle: "Spring Boot"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/system-design.json"
|
||||
jsonUrl: "/jsons/roadmaps/system-design.json"
|
||||
pdfUrl: "/pdfs/system-design.pdf"
|
||||
order: 11
|
||||
featuredTitle: "System Design"
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
jsonUrl: "/jsons/vue.json"
|
||||
jsonUrl: "/jsons/roadmaps/vue.json"
|
||||
pdfUrl: "/pdfs/vue.pdf"
|
||||
order: 4
|
||||
featuredTitle: "Vue"
|
||||
|
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 269 KiB |
Before Width: | Height: | Size: 346 KiB After Width: | Height: | Size: 352 KiB |
Before Width: | Height: | Size: 359 KiB |
Before Width: | Height: | Size: 563 KiB |
Before Width: | Height: | Size: 555 KiB After Width: | Height: | Size: 555 KiB |
Before Width: | Height: | Size: 800 KiB After Width: | Height: | Size: 801 KiB |
Before Width: | Height: | Size: 344 KiB After Width: | Height: | Size: 344 KiB |
Before Width: | Height: | Size: 538 KiB After Width: | Height: | Size: 538 KiB |
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 369 KiB |
After Width: | Height: | Size: 640 KiB |
Before Width: | Height: | Size: 1006 KiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 331 KiB After Width: | Height: | Size: 331 KiB |