This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('.jstree').jstree({ | |
core: { | |
data: { | |
url: function(node) { | |
return node.id === '#' ? | |
'categories.json' : | |
`categories-${node.id}.json`; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('table').DataTable({ | |
orderCellsTop: true, | |
ajax: { | |
url: 'http://jsonplaceholder.typicode.com/users', | |
dataSrc: '', | |
}, | |
columns: [ | |
{ data: 'id' }, | |
{ data: 'name' }, | |
{ data: 'username' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import packages from "./packages.json" assert { type: "json" }; | |
const NPM_REGISTRY_API_URL = "https://registry.npmjs.com"; | |
const GITHUB_API_URL = "https://api.github.com"; | |
const fallbackRepoURL = { | |
yarn: 'https://github.com/yarnpkg/yarn' | |
}; | |
const directories = new Map(); |