Compress roadmaps JSONs

This commit is contained in:
Kamran Ahmed committed 2023-01-05 19:27:35 +04:00
1 parent af27626a1c
commit fbdf3a6942
23 files changed
+37 -201115

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
const fs = require('node:fs');
const path = require('node:path');
const jsonsDir = path.join(process.cwd(), 'public/jsons');
const jsonFiles = fs.readdirSync(jsonsDir);
jsonFiles.forEach((jsonFileName) => {
console.log(`Compressing ${jsonFileName}...`);
const jsonFilePath = path.join(jsonsDir, jsonFileName);
const json = require(jsonFilePath);
fs.writeFileSync(jsonFilePath, JSON.stringify(json));
});
+2 -2
View File
@@ -5,13 +5,13 @@
"private": true,
"scripts": {
"dev": "astro dev",
"dev:verbose": "astro dev --verbose",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"deploy": "NODE_DEBUG=gh-pages gh-pages -d dist -t",
"sync-content": "sh ./bin/sync-content.sh"
"sync-content": "sh ./bin/sync-content.sh",
"compress:jsons": "node bin/compress-jsons.cjs"
},
"dependencies": {
"@astrojs/sitemap": "^1.0.0",
+1 -1
View File
@@ -1 +1 @@
{"mockup":{"controls":{"control":[{"ID":"0","h":"88","measuredH":"87","measuredW":"139","properties":{"color":"10027263","curvature":"1","direction":"top","leftArrow":"false","p0":{"x":139,"y":87},"p1":{"x":0.4839132782964279,"y":0.06388395957102075},"p2":{"x":0,"y":0},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"140","x":"764","y":"409","zOrder":"42"},{"ID":"1","h":"54","measuredH":"53","measuredW":"167","properties":{"color":"10027263","curvature":"1","direction":"top","leftArrow":"false","p0":{"x":167,"y":53},"p1":{"x":0.46628444849827344,"y":0.04019805850544009},"p2":{"x":0,"y":0},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"168","x":"745","y":"398","zOrder":"43"},{"ID":"2","h":"46","measuredH":"45","measuredW":"142","properties":{"color":"10027263","curvature":"1","direction":"bottom","leftArrow":"false","p0":{"x":142,"y":0},"p1":{"x":0.5393433342768186,"y":-0.060147183696575034},"p2":{"x":0,"y":45},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"143","x":"760","y":"353","zOrder":"44"},{"ID":"5","h":"177","measuredH":"176","measuredW":"28","properties":{"color":"10027263","curvature":"-1","direction":"bottom","leftArrow":"false","p0":{"x":20,"y":0},"p1":{"x":0.553261492147643,"y":0.10567048073208744},"p2":{"x":0,"y":176},"rightArrow":"false","shape":"bezier","size":"10"},"typeID":"Arrow","w":"29","x":"672","y":"404","zOrder":"45"},{"ID":"6","h":"99","measuredH":"98","measuredW":"28","properties":{"color":"10027263","curvature":"-1","direction":"top","leftArrow":"false","p0":{"x":12,"y":0},"p1":{"x":0.5196669310071372,"y":-0.19421094369547975},"p2":{"x":28,"y":98},"rightArrow":"false","shape":"bezier"},"typeID":"Arrow","w":"29","x":"646","y":"251","zOrder":"46"},{"ID":"7","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"280","zOrder":"47"},{"ID":"8","measuredH":"23","measuredW":"154","properties":{"bold":"true","size":"15","text":"Install Android Studio"},"typeID":"Label","x":"956","y":"290","zOrder":"48"},{"ID":"9","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"328","zOrder":"49"},{"ID":"10","measuredH":"23","measuredW":"187","properties":{"bold":"true","size":"15","text":"Learn the Basics of Kotlin"},"typeID":"Label","x":"940","y":"338","zOrder":"50"},{"ID":"11","h":"46","measuredH":"70","measuredW":"100","properties":{"color":"16770457"},"typeID":"Canvas","w":"203","x":"568","y":"376","zOrder":"51"},{"ID":"12","measuredH":"23","measuredW":"133","properties":{"bold":"true","size":"15","text":"The Fundamentals"},"typeID":"Label","x":"603","y":"388","zOrder":"52"},{"ID":"17","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"377","zOrder":"53"},{"ID":"18","measuredH":"23","measuredW":"106","properties":{"bold":"true","size":"15","text":"Basics of OOP"},"typeID":"Label","x":"980","y":"387","zOrder":"54"},{"ID":"21","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"425","zOrder":"55"},{"ID":"22","measuredH":"23","measuredW":"222","properties":{"bold":"true","size":"15","text":"DataStructures and Algorithms"},"typeID":"Label","x":"922","y":"435","zOrder":"56"},{"ID":"25","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"474","zOrder":"57"},{"ID":"26","measuredH":"23","measuredW":"226","properties":{"bold":"true","size":"15","text":"What is and how to use Gradle?"},"typeID":"Label","x":"920","y":"484","zOrder":"58"},{"ID":"29","h":"26","measuredH":"25","measuredW":"130","properties":{"color":"10027263","curvature":"-1","direction":"bottom","leftArrow":"false","p0":{"x":130,"y":0},"p1":{"x":0.45592011412268185,"y":0.050784593437945794},"p2":{"x":0,"y":25},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"131","x":"456","y":"349","zOrder":"59"},{"ID":"30","h":"17","measuredH":"16","measuredW":"128","properties":{"color":"10027263","curvature":"-1","direction":"top","leftArrow":"false","p0":{"x":128,"y":16},"p1":{"x":0.5393433342768185,"y":-0.0601471836965751},"p2":{"x":0,"y":4},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"129","x":"458","y":"327","zOrder":"60"},{"ID":"33","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"178","x":"302","y":"304","zOrder":"61"},{"ID":"34","measuredH":"23","measuredW":"41","properties":{"bold":"true","size":"15","text":"Kotlin"},"typeID":"Label","x":"371","y":"314","zOrder":"62"},{"ID":"35","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"13421772"},"typeID":"Canvas","w":"178","x":"302","y":"352","zOrder":"63"},{"ID":"36","measuredH":"23","measuredW":"32","properties":{"bold":"true","size":"15","texLine truncated
{"mockup":{"controls":{"control":[{"ID":"0","h":"88","measuredH":"87","measuredW":"139","properties":{"color":"10027263","curvature":"1","direction":"top","leftArrow":"false","p0":{"x":139,"y":87},"p1":{"x":0.4839132782964279,"y":0.06388395957102075},"p2":{"x":0,"y":0},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"140","x":"764","y":"409","zOrder":"42"},{"ID":"1","h":"54","measuredH":"53","measuredW":"167","properties":{"color":"10027263","curvature":"1","direction":"top","leftArrow":"false","p0":{"x":167,"y":53},"p1":{"x":0.46628444849827344,"y":0.04019805850544009},"p2":{"x":0,"y":0},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"168","x":"745","y":"398","zOrder":"43"},{"ID":"2","h":"46","measuredH":"45","measuredW":"142","properties":{"color":"10027263","curvature":"1","direction":"bottom","leftArrow":"false","p0":{"x":142,"y":0},"p1":{"x":0.5393433342768186,"y":-0.060147183696575034},"p2":{"x":0,"y":45},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"143","x":"760","y":"353","zOrder":"44"},{"ID":"5","h":"177","measuredH":"176","measuredW":"28","properties":{"color":"10027263","curvature":"-1","direction":"bottom","leftArrow":"false","p0":{"x":20,"y":0},"p1":{"x":0.553261492147643,"y":0.10567048073208744},"p2":{"x":0,"y":176},"rightArrow":"false","shape":"bezier","size":"10"},"typeID":"Arrow","w":"29","x":"672","y":"404","zOrder":"45"},{"ID":"6","h":"99","measuredH":"98","measuredW":"28","properties":{"color":"10027263","curvature":"-1","direction":"top","leftArrow":"false","p0":{"x":12,"y":0},"p1":{"x":0.5196669310071372,"y":-0.19421094369547975},"p2":{"x":28,"y":98},"rightArrow":"false","shape":"bezier"},"typeID":"Arrow","w":"29","x":"646","y":"251","zOrder":"46"},{"ID":"7","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"280","zOrder":"47"},{"ID":"8","measuredH":"23","measuredW":"154","properties":{"bold":"true","size":"15","text":"Install Android Studio"},"typeID":"Label","x":"956","y":"290","zOrder":"48"},{"ID":"9","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"328","zOrder":"49"},{"ID":"10","measuredH":"23","measuredW":"187","properties":{"bold":"true","size":"15","text":"Learn the Basics of Kotlin"},"typeID":"Label","x":"940","y":"338","zOrder":"50"},{"ID":"11","h":"46","measuredH":"70","measuredW":"100","properties":{"color":"16770457"},"typeID":"Canvas","w":"203","x":"568","y":"376","zOrder":"51"},{"ID":"12","measuredH":"23","measuredW":"133","properties":{"bold":"true","size":"15","text":"The Fundamentals"},"typeID":"Label","x":"603","y":"388","zOrder":"52"},{"ID":"17","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"377","zOrder":"53"},{"ID":"18","measuredH":"23","measuredW":"106","properties":{"bold":"true","size":"15","text":"Basics of OOP"},"typeID":"Label","x":"980","y":"387","zOrder":"54"},{"ID":"21","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"425","zOrder":"55"},{"ID":"22","measuredH":"23","measuredW":"222","properties":{"bold":"true","size":"15","text":"DataStructures and Algorithms"},"typeID":"Label","x":"922","y":"435","zOrder":"56"},{"ID":"25","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"292","x":"887","y":"474","zOrder":"57"},{"ID":"26","measuredH":"23","measuredW":"226","properties":{"bold":"true","size":"15","text":"What is and how to use Gradle?"},"typeID":"Label","x":"920","y":"484","zOrder":"58"},{"ID":"29","h":"26","measuredH":"25","measuredW":"130","properties":{"color":"10027263","curvature":"-1","direction":"bottom","leftArrow":"false","p0":{"x":130,"y":0},"p1":{"x":0.45592011412268185,"y":0.050784593437945794},"p2":{"x":0,"y":25},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"131","x":"456","y":"349","zOrder":"59"},{"ID":"30","h":"17","measuredH":"16","measuredW":"128","properties":{"color":"10027263","curvature":"-1","direction":"top","leftArrow":"false","p0":{"x":128,"y":16},"p1":{"x":0.5393433342768185,"y":-0.0601471836965751},"p2":{"x":0,"y":4},"rightArrow":"false","shape":"bezier","stroke":"dotted"},"typeID":"Arrow","w":"129","x":"458","y":"327","zOrder":"60"},{"ID":"33","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"16776960"},"typeID":"Canvas","w":"178","x":"302","y":"304","zOrder":"61"},{"ID":"34","measuredH":"23","measuredW":"41","properties":{"bold":"true","size":"15","text":"Kotlin"},"typeID":"Label","x":"371","y":"314","zOrder":"62"},{"ID":"35","h":"42","measuredH":"70","measuredW":"100","properties":{"color":"13421772"},"typeID":"Canvas","w":"178","x":"302","y":"352","zOrder":"63"},{"ID":"36","measuredH":"23","measuredW":"32","properties":{"bold":"true","size":"15","texLine truncated
+1 -5633
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1 -14494
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1 -17348
View File
File diff suppressed because it is too large. Load diff
+1 -12455
View File
File diff suppressed because it is too large. Load diff
+1 -14195
View File
File diff suppressed because it is too large. Load diff
+1 -5195
View File
File diff suppressed because it is too large. Load diff
+1 -4786
View File
File diff suppressed because it is too large. Load diff
+1 -4270
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1 -12219
View File
File diff suppressed because it is too large. Load diff
+1 -4128
View File
File diff suppressed because it is too large. Load diff
+1 -9934
View File
File diff suppressed because it is too large. Load diff
+1 -7375
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1 -5391
View File
File diff suppressed because it is too large. Load diff