diff options
author | 2022-05-16 19:02:38 -0700 | |
---|---|---|
committer | 2022-05-16 19:02:38 -0700 | |
commit | aed5e39f4d90b670eaf8587c14a0c48d9671aae8 (patch) | |
tree | 492b0155b250b40a84d3916d0f4ea86e138d21c9 /examples | |
parent | bd1e64b9b1c5bbbd14893eca2e2508fc8deefd22 (diff) | |
download | bun-aed5e39f4d90b670eaf8587c14a0c48d9671aae8.tar.gz bun-aed5e39f4d90b670eaf8587c14a0c48d9671aae8.tar.zst bun-aed5e39f4d90b670eaf8587c14a0c48d9671aae8.zip |
remove bad examples
Diffstat (limited to 'examples')
-rw-r--r-- | examples/index.html | 7 | ||||
-rw-r--r-- | examples/isRoute.js | 3 | ||||
-rw-r--r-- | examples/src.js | 11 |
3 files changed, 0 insertions, 21 deletions
diff --git a/examples/index.html b/examples/index.html deleted file mode 100644 index 3bb25f55e..000000000 --- a/examples/index.html +++ /dev/null @@ -1,7 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <script type="module" src="REPLACE_ME"></script> - </head> - <body></body> -</html> diff --git a/examples/isRoute.js b/examples/isRoute.js deleted file mode 100644 index d1717a0e9..000000000 --- a/examples/isRoute.js +++ /dev/null @@ -1,3 +0,0 @@ -export function isRoute(expr, env) { - return env.url.pathname.includes(expr.arguments[0].toString()); -} diff --git a/examples/src.js b/examples/src.js deleted file mode 100644 index ad9fda6f4..000000000 --- a/examples/src.js +++ /dev/null @@ -1,11 +0,0 @@ -import { getProducts } from "macro:./getProducts.js"; -import { isRoute } from "macro:./isRoute.js"; - -if (isRoute("/rickroll")) { - document.body.innerHTML = `<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`; -} else if (isRoute("/products")) { - const products = getProducts({ ProductName: "name", Id: "id" }); - document.body.innerHTML = `<ul>${products - .map(({ name, id }) => `<li>${name}</li>`) - .join("")}</ul>`; -} |