forked from NYANDEV/forgejo
d9dcd09340
* add make targets for js,css, add javascript linter - add `make js`, deprecating `make javascripts` - add `make css`, deprecating `make generate-stylesheets` and `make stylesheets-check` - changed the unclean css check to only run on CI - add JS linting via eslint with basic configuration and fixed discovered issues - changed autoprefixer to use official `postcss-cli` avoiding the need to loop in the makefile - moved browserslist to package.json so other future tools can use it too. - update documentation for new make targets and added JS section * fix indentation * move functions used in html to 'exported' list * Run lessc binary without having to install anything to node_modules * use relative paths to node bin scripts, removing npx * Revert "use relative paths to node bin scripts, removing npx" This reverts commit 119b725525a8430b32ee7a6e6009b4ece544e39b. * fix lessc and postcss plugins * check for node_modules and use actual bin names
15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
/* globals gitGraph */
|
|
|
|
$(document).ready(function () {
|
|
var graphList = [];
|
|
|
|
if (!document.getElementById('graph-canvas')) {
|
|
return;
|
|
}
|
|
|
|
$("#graph-raw-list li span.node-relation").each(function () {
|
|
graphList.push($(this).text());
|
|
})
|
|
|
|
gitGraph(document.getElementById('graph-canvas'), graphList);
|
|
})
|