chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
||||
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
||||
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
||||
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
||||
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
||||
// ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
||||
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
||||
// ┃ This file is part of the Perspective library, distributed under the terms ┃
|
||||
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
||||
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
||||
|
||||
const LOCAL_EXAMPLES = [
|
||||
"editable",
|
||||
"file",
|
||||
"duckdb",
|
||||
"fractal",
|
||||
"market",
|
||||
"raycasting",
|
||||
"evictions",
|
||||
"nypd",
|
||||
"streaming",
|
||||
"covid",
|
||||
"webcam",
|
||||
"movies",
|
||||
"superstore",
|
||||
"olympics",
|
||||
"dataset",
|
||||
];
|
||||
|
||||
exports.LOCAL_EXAMPLES = LOCAL_EXAMPLES;
|
||||
|
||||
exports.get_examples = function get_examples(
|
||||
root = "https://perspective-dev.github.io/",
|
||||
) {
|
||||
const standalone = [
|
||||
// {
|
||||
// img: "https://perspective-dev.github.io/img/jupyterlab.png?",
|
||||
// url: "http://beta.mybinder.org/v2/gh/perspective-dev/perspective/master?urlpath=lab/tree/examples/jupyter-notebooks",
|
||||
// name: "jupyterlab",
|
||||
// },
|
||||
];
|
||||
|
||||
const hashes = LOCAL_EXAMPLES.map((x) => ({
|
||||
img: `${root}blocks/${x}/preview.png?`,
|
||||
url: `${root}block?example=${x}`,
|
||||
|
||||
name: x,
|
||||
}));
|
||||
|
||||
return hashes.concat(standalone);
|
||||
};
|
||||
Reference in New Issue
Block a user