Compare commits

...

3 commits

Author SHA1 Message Date
Kaan Barmore-Genç 5b05df846f Update some minor deps
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-06-27 03:29:52 +00:00
Kaan Barmore-Genç d394a390d3 Import pagefind-ui instead of linking to it by URL to get it compiled 2024-06-27 03:25:24 +00:00
Kaan Barmore-Genç fce460990b Include git-lfs 2024-06-22 14:30:17 +00:00
5 changed files with 106 additions and 94 deletions

View file

@ -1,30 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{ {
"name": "Node.js & TypeScript", "name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/git-lfs:1": {}
},
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
// "features": {}, // "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [], // "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install", "postCreateCommand": "npm install",
// Configure tool-specific properties. // Configure tool-specific properties.
// "customizations": {}, // "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root", "remoteUser": "root",
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": ["svelte.svelte-vscode", "esbenp.prettier-vscode"]
"svelte.svelte-vscode", }
"esbenp.prettier-vscode" }
]
}
}
} }

135
package-lock.json generated
View file

@ -8,6 +8,7 @@
"name": "bgenc.net-new", "name": "bgenc.net-new",
"version": "0.0.1", "version": "0.0.1",
"dependencies": { "dependencies": {
"@pagefind/default-ui": "^1.1.0",
"@sveltejs/adapter-static": "^2.0.3", "@sveltejs/adapter-static": "^2.0.3",
"pagefind": "^1.1.0", "pagefind": "^1.1.0",
"reading-time-estimator": "^1.11.0" "reading-time-estimator": "^1.11.0"
@ -23,13 +24,13 @@
"eslint-config-prettier": "^9.0.0", "eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.35.0", "eslint-plugin-svelte": "^2.35.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mdsvex": "^0.11.0", "mdsvex": "^0.11.2",
"phosphor-svelte": "^2.0.1", "phosphor-svelte": "^2.0.1",
"prettier": "^3.1.0", "prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.1.0", "prettier-plugin-svelte": "^3.2.5",
"sass": "^1.77.0", "sass": "^1.77.6",
"svelte": "^4.2.5", "svelte": "^4.2.18",
"svelte-check": "^3.6.0", "svelte-check": "^3.8.4",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^4.4.2", "vite": "^4.4.2",
@ -265,6 +266,11 @@
"darwin" "darwin"
] ]
}, },
"node_modules/@pagefind/default-ui": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@pagefind/default-ui/-/default-ui-1.1.0.tgz",
"integrity": "sha512-+XiAJAK++C64nQcD7s3Prdmd5S92lT05fwjOxm0L1jj80jbL+tmvcqkkFnPpoqhnicIPgcAX/Y5W0HRZnBt35w=="
},
"node_modules/@pagefind/linux-arm64": { "node_modules/@pagefind/linux-arm64": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/@pagefind/linux-arm64/-/linux-arm64-1.1.0.tgz", "resolved": "https://registry.npmjs.org/@pagefind/linux-arm64/-/linux-arm64-1.1.0.tgz",
@ -434,9 +440,10 @@
} }
}, },
"node_modules/@types/pug": { "node_modules/@types/pug": {
"version": "2.0.9", "version": "2.0.10",
"dev": true, "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.10.tgz",
"license": "MIT" "integrity": "sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA==",
"dev": true
}, },
"node_modules/@types/semver": { "node_modules/@types/semver": {
"version": "7.5.5", "version": "7.5.5",
@ -722,8 +729,9 @@
} }
}, },
"node_modules/axobject-query": { "node_modules/axobject-query": {
"version": "3.2.1", "version": "4.0.0",
"license": "Apache-2.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
"integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
"dependencies": { "dependencies": {
"dequal": "^2.0.3" "dequal": "^2.0.3"
} }
@ -819,11 +827,12 @@
} }
}, },
"node_modules/buffer-crc32": { "node_modules/buffer-crc32": {
"version": "0.2.13", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz",
"integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==",
"dev": true, "dev": true,
"license": "MIT",
"engines": { "engines": {
"node": "*" "node": ">=8.0.0"
} }
}, },
"node_modules/callsites": { "node_modules/callsites": {
@ -1060,8 +1069,9 @@
}, },
"node_modules/detect-indent": { "node_modules/detect-indent": {
"version": "6.1.0", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz",
"integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==",
"dev": true, "dev": true,
"license": "MIT",
"engines": { "engines": {
"node": ">=8" "node": ">=8"
} }
@ -1110,8 +1120,9 @@
}, },
"node_modules/es6-promise": { "node_modules/es6-promise": {
"version": "3.3.1", "version": "3.3.1",
"dev": true, "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz",
"license": "MIT" "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==",
"dev": true
}, },
"node_modules/esbuild": { "node_modules/esbuild": {
"version": "0.18.20", "version": "0.18.20",
@ -1578,8 +1589,9 @@
}, },
"node_modules/graceful-fs": { "node_modules/graceful-fs": {
"version": "4.2.11", "version": "4.2.11",
"dev": true, "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
"license": "ISC" "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
"dev": true
}, },
"node_modules/graphemer": { "node_modules/graphemer": {
"version": "1.4.0", "version": "1.4.0",
@ -1864,9 +1876,10 @@
"license": "CC0-1.0" "license": "CC0-1.0"
}, },
"node_modules/mdsvex": { "node_modules/mdsvex": {
"version": "0.11.0", "version": "0.11.2",
"resolved": "https://registry.npmjs.org/mdsvex/-/mdsvex-0.11.2.tgz",
"integrity": "sha512-Y4ab+vLvTJS88196Scb/RFNaHMHVSWw6CwfsgWIQP8f42D57iDII0/qABSu530V4pkv8s6T2nx3ds0MC1VwFLA==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@types/unist": "^2.0.3", "@types/unist": "^2.0.3",
"prism-svelte": "^0.4.7", "prism-svelte": "^0.4.7",
@ -1874,7 +1887,7 @@
"vfile-message": "^2.0.4" "vfile-message": "^2.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"svelte": ">=3 <5" "svelte": "^3.56.0 || ^4.0.0 || ^5.0.0-next.120"
} }
}, },
"node_modules/merge2": { "node_modules/merge2": {
@ -1910,8 +1923,9 @@
}, },
"node_modules/min-indent": { "node_modules/min-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
"integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",
"dev": true, "dev": true,
"license": "MIT",
"engines": { "engines": {
"node": ">=4" "node": ">=4"
} }
@ -1937,8 +1951,9 @@
}, },
"node_modules/mkdirp": { "node_modules/mkdirp": {
"version": "0.5.6", "version": "0.5.6",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"minimist": "^1.2.6" "minimist": "^1.2.6"
}, },
@ -2328,9 +2343,10 @@
} }
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "3.1.0", "version": "3.3.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz",
"integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==",
"dev": true, "dev": true,
"license": "MIT",
"bin": { "bin": {
"prettier": "bin/prettier.cjs" "prettier": "bin/prettier.cjs"
}, },
@ -2342,9 +2358,10 @@
} }
}, },
"node_modules/prettier-plugin-svelte": { "node_modules/prettier-plugin-svelte": {
"version": "3.1.0", "version": "3.2.5",
"resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-3.2.5.tgz",
"integrity": "sha512-vP/M/Goc8z4iVIvrwXwbrYVjJgA0Hf8PO1G4LBh/ocSt6vUP6sLvyu9F3ABEGr+dbKyxZjEKLkeFsWy/yYl0HQ==",
"dev": true, "dev": true,
"license": "MIT",
"peerDependencies": { "peerDependencies": {
"prettier": "^3.0.0", "prettier": "^3.0.0",
"svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0"
@ -2559,8 +2576,9 @@
}, },
"node_modules/sander": { "node_modules/sander": {
"version": "0.5.1", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz",
"integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"es6-promise": "^3.1.2", "es6-promise": "^3.1.2",
"graceful-fs": "^4.1.3", "graceful-fs": "^4.1.3",
@ -2570,8 +2588,10 @@
}, },
"node_modules/sander/node_modules/rimraf": { "node_modules/sander/node_modules/rimraf": {
"version": "2.7.1", "version": "2.7.1",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
"integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
"deprecated": "Rimraf versions prior to v4 are no longer supported",
"dev": true, "dev": true,
"license": "ISC",
"dependencies": { "dependencies": {
"glob": "^7.1.3" "glob": "^7.1.3"
}, },
@ -2580,9 +2600,9 @@
} }
}, },
"node_modules/sass": { "node_modules/sass": {
"version": "1.77.0", "version": "1.77.6",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.77.0.tgz", "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.6.tgz",
"integrity": "sha512-eGj4HNfXqBWtSnvItNkn7B6icqH14i3CiCGbzMKs3BAPTq62pp9NBYsBgyN4cA+qssqo9r26lW4JSvlaUUWbgw==", "integrity": "sha512-ByXE1oLD79GVq9Ht1PeHWCPMPB8XHpBuz1r85oByKHjZY6qV6rWnQovQzXJXuQ/XyE1Oj3iPk3lo28uzaRA2/Q==",
"devOptional": true, "devOptional": true,
"dependencies": { "dependencies": {
"chokidar": ">=3.0.0 <4.0.0", "chokidar": ">=3.0.0 <4.0.0",
@ -2727,12 +2747,13 @@
} }
}, },
"node_modules/sorcery": { "node_modules/sorcery": {
"version": "0.11.0", "version": "0.11.1",
"resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.1.tgz",
"integrity": "sha512-o7npfeJE6wi6J9l0/5LKshFzZ2rMatRiCDwYeDQaOzqdzRJwALhX7mk/A/ecg6wjMu7wdZbmXfD2S/vpOg0bdQ==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.14", "@jridgewell/sourcemap-codec": "^1.4.14",
"buffer-crc32": "^0.2.5", "buffer-crc32": "^1.0.0",
"minimist": "^1.2.0", "minimist": "^1.2.0",
"sander": "^0.5.0" "sander": "^0.5.0"
}, },
@ -2777,8 +2798,9 @@
}, },
"node_modules/strip-indent": { "node_modules/strip-indent": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",
"integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"min-indent": "^1.0.0" "min-indent": "^1.0.0"
}, },
@ -2809,15 +2831,17 @@
} }
}, },
"node_modules/svelte": { "node_modules/svelte": {
"version": "4.2.5", "version": "4.2.18",
"license": "MIT", "resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.18.tgz",
"integrity": "sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==",
"dependencies": { "dependencies": {
"@ampproject/remapping": "^2.2.1", "@ampproject/remapping": "^2.2.1",
"@jridgewell/sourcemap-codec": "^1.4.15", "@jridgewell/sourcemap-codec": "^1.4.15",
"@jridgewell/trace-mapping": "^0.3.18", "@jridgewell/trace-mapping": "^0.3.18",
"@types/estree": "^1.0.1",
"acorn": "^8.9.0", "acorn": "^8.9.0",
"aria-query": "^5.3.0", "aria-query": "^5.3.0",
"axobject-query": "^3.2.1", "axobject-query": "^4.0.0",
"code-red": "^1.0.3", "code-red": "^1.0.3",
"css-tree": "^2.3.1", "css-tree": "^2.3.1",
"estree-walker": "^3.0.3", "estree-walker": "^3.0.3",
@ -2831,17 +2855,16 @@
} }
}, },
"node_modules/svelte-check": { "node_modules/svelte-check": {
"version": "3.6.0", "version": "3.8.4",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.8.4.tgz",
"integrity": "sha512-61aHMkdinWyH8BkkTX9jPLYxYzaAAz/FK/VQqdr2FiCQQ/q04WCwDlpGbHff1GdrMYTmW8chlTFvRWL9k0A8vg==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@jridgewell/trace-mapping": "^0.3.17", "@jridgewell/trace-mapping": "^0.3.17",
"chokidar": "^3.4.1", "chokidar": "^3.4.1",
"fast-glob": "^3.2.7",
"import-fresh": "^3.2.1",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"sade": "^1.7.4", "sade": "^1.7.4",
"svelte-preprocess": "^5.1.0", "svelte-preprocess": "^5.1.3",
"typescript": "^5.0.3" "typescript": "^5.0.3"
}, },
"bin": { "bin": {
@ -2888,26 +2911,27 @@
} }
}, },
"node_modules/svelte-preprocess": { "node_modules/svelte-preprocess": {
"version": "5.1.0", "version": "5.1.4",
"resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.1.4.tgz",
"integrity": "sha512-IvnbQ6D6Ao3Gg6ftiM5tdbR6aAETwjhHV+UKGf5bHGYR69RQvF1ho0JKPcbUON4vy4R7zom13jPjgdOWCQ5hDA==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@types/pug": "^2.0.6", "@types/pug": "^2.0.6",
"detect-indent": "^6.1.0", "detect-indent": "^6.1.0",
"magic-string": "^0.27.0", "magic-string": "^0.30.5",
"sorcery": "^0.11.0", "sorcery": "^0.11.0",
"strip-indent": "^3.0.0" "strip-indent": "^3.0.0"
}, },
"engines": { "engines": {
"node": ">= 14.10.0" "node": ">= 16.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"@babel/core": "^7.10.2", "@babel/core": "^7.10.2",
"coffeescript": "^2.5.1", "coffeescript": "^2.5.1",
"less": "^3.11.3 || ^4.0.0", "less": "^3.11.3 || ^4.0.0",
"postcss": "^7 || ^8", "postcss": "^7 || ^8",
"postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0", "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
"pug": "^3.0.0", "pug": "^3.0.0",
"sass": "^1.26.8", "sass": "^1.26.8",
"stylus": "^0.55.0", "stylus": "^0.55.0",
@ -2948,17 +2972,6 @@
} }
} }
}, },
"node_modules/svelte-preprocess/node_modules/magic-string": {
"version": "0.27.0",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.13"
},
"engines": {
"node": ">=12"
}
},
"node_modules/tar-fs": { "node_modules/tar-fs": {
"version": "3.0.4", "version": "3.0.4",
"dev": true, "dev": true,

View file

@ -26,13 +26,13 @@
"eslint-config-prettier": "^9.0.0", "eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.35.0", "eslint-plugin-svelte": "^2.35.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mdsvex": "^0.11.0", "mdsvex": "^0.11.2",
"phosphor-svelte": "^2.0.1", "phosphor-svelte": "^2.0.1",
"prettier": "^3.1.0", "prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.1.0", "prettier-plugin-svelte": "^3.2.5",
"sass": "^1.77.0", "sass": "^1.77.6",
"svelte": "^4.2.5", "svelte": "^4.2.18",
"svelte-check": "^3.6.0", "svelte-check": "^3.8.4",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^4.4.2", "vite": "^4.4.2",
@ -40,6 +40,7 @@
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@pagefind/default-ui": "^1.1.0",
"@sveltejs/adapter-static": "^2.0.3", "@sveltejs/adapter-static": "^2.0.3",
"pagefind": "^1.1.0", "pagefind": "^1.1.0",
"reading-time-estimator": "^1.11.0" "reading-time-estimator": "^1.11.0"

View file

@ -13,7 +13,7 @@ const filename = `${format(new Date(), 'yyyy.MM.dd')}.${slug}.md`;
const contents = `--- const contents = `---
title: '${title}' title: '${title}'
date: ${formatISO(new Date())} date: ${formatISO(new Date())}
description: 'Blog post description here' description: ''
--- ---
`; `;

View file

@ -8,6 +8,9 @@
import WebP from './logo.avif?w=192&format=webp'; import WebP from './logo.avif?w=192&format=webp';
import List from 'phosphor-svelte/lib/List'; import List from 'phosphor-svelte/lib/List';
import { afterNavigate } from '$app/navigation'; import { afterNavigate } from '$app/navigation';
// @ts-ignore
import { PagefindUI } from '@pagefind/default-ui';
import '@pagefind/default-ui/css/ui.css';
function loadPagefind() { function loadPagefind() {
// @ts-ignore // @ts-ignore
@ -33,11 +36,6 @@
}); });
</script> </script>
<svelte:head>
<link href="/pagefind/pagefind-ui.css" rel="stylesheet" />
<script async src="/pagefind/pagefind-ui.js"></script>
</svelte:head>
<header> <header>
<a class="logo" href="/"> <a class="logo" href="/">
<picture> <picture>