user computed similar to custom-style (#78)

This commit is contained in:
Utsob Roy 2023-02-17 21:18:49 +06:00 committed by GitHub
parent 11b837c01a
commit acfea37940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 53 deletions

View File

@ -1,5 +1,4 @@
{ {
"filesToDelete": [ "filesToDelete": [
"src/site/styles/style.css" "src/site/styles/style.css"
], ],
@ -10,7 +9,8 @@
"src/site/img/default-note-icon.svg", "src/site/img/default-note-icon.svg",
"src/site/img/tree-1.svg", "src/site/img/tree-1.svg",
"src/site/img/tree-2.svg", "src/site/img/tree-2.svg",
"src/site/img/tree-3.svg" "src/site/img/tree-3.svg",
"src/helpers/userUtils.js"
], ],
"filesToModify": [ "filesToModify": [
".eleventy.js", ".eleventy.js",

7
src/helpers/userUtils.js Normal file
View File

@ -0,0 +1,7 @@
// Put your computations here.
function userComputed(data) {
return {};
}
exports.userComputed = userComputed;

View File

@ -1,5 +1,7 @@
const { getGraph } = require("../../helpers/linkUtils"); const { getGraph } = require("../../helpers/linkUtils");
const { userComputed } = require("../../helpers/userUtils");
module.exports = { module.exports = {
graph: (data) => getGraph(data), graph: (data) => getGraph(data),
} userComputed: (data) => userComputed(data),
};