From 19d472c8470fc21a10af053824b3724e50ac9a9d Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 6 Jun 2021 18:34:16 -0700 Subject: hm Former-commit-id: 024b2ea94ea2f32e058948c3d874ad73a03b7423 --- demos/simple-react/public/src/components/button.js | 23 ------ demos/simple-react/public/src/index.js | 93 ---------------------- 2 files changed, 116 deletions(-) delete mode 100644 demos/simple-react/public/src/components/button.js delete mode 100644 demos/simple-react/public/src/index.js (limited to 'demos/simple-react/public/src') diff --git a/demos/simple-react/public/src/components/button.js b/demos/simple-react/public/src/components/button.js deleted file mode 100644 index 28bfffda7..000000000 --- a/demos/simple-react/public/src/components/button.js +++ /dev/null @@ -1,23 +0,0 @@ -import * as _react_dot_jsx from "http://localhost:8080/node_modules/react/index.js"; -var jsxDEV = __require(_react_dot_jsx).jsxDEV, __jsxFilename = "src/components/button.tsx"; - -import { -__require -} from "http://localhost:8080/__runtime.js"; -export const Button = ({ label, onClick }) => jsxDEV("div", { - className: "Button", - onClick, - children: jsxDEV("div", { - className: "Button-label", - children: label - }, null, false, { - filename: __jsxFilename, - lineNumber: 97, - columnNumber: 97 - }, this) -}, null, false, { - filename: __jsxFilename, - lineNumber: 50, - columnNumber: 50 -}, this); - diff --git a/demos/simple-react/public/src/index.js b/demos/simple-react/public/src/index.js deleted file mode 100644 index 09055b4c4..000000000 --- a/demos/simple-react/public/src/index.js +++ /dev/null @@ -1,93 +0,0 @@ -import * as _react_dot_jsx from "http://localhost:8080/node_modules/react/index.js"; -var jsxDEV = __require(_react_dot_jsx).jsxDEV, - __jsxFilename = "src/index.tsx"; - -import { __require } from "http://localhost:8080/__runtime.js"; -import ReactDOM from "http://localhost:8080/node_modules/react-dom/index.js"; -import { Button } from "http://localhost:8080/src/components/button.js"; - -const Base = ({}) => { - return jsxDEV( - "main", - { - children: [ - jsxDEV( - "h1", - { - children: "I am the page", - }, - null, - false, - { - filename: __jsxFilename, - lineNumber: 132, - columnNumber: 132, - }, - this - ), - jsxDEV( - "h3", - { - children: "Here is some text", - }, - null, - false, - { - filename: __jsxFilename, - lineNumber: 161, - columnNumber: 161, - }, - this - ), - jsxDEV( - Button, - { - label: "Do not click.", - onClick: () => alert("I told u not to click!"), - children: [], - }, - null, - false, - { - filename: __jsxFilename, - lineNumber: 194, - columnNumber: 194, - }, - this - ), - ], - }, - null, - false, - { - filename: __jsxFilename, - lineNumber: 119, - columnNumber: 119, - }, - this - ); -}; - -function startReact() { - ReactDOM.render( - () => - jsxDEV( - Base, - { - children: [], - }, - null, - false, - { - filename: __jsxFilename, - lineNumber: 374, - columnNumber: 374, - }, - this - ), - document.querySelector("#reactroot") - ); -} -globalThis.addEventListener("DOMContentLoaded", () => { - startReact(); -}); -- cgit v1.2.3 tion value='detect-libc'>detect-libc Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/defines.zig (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-18Fix `make headers`Gravatar Jarred Sumner 7-58/+31
2023-08-18prettierGravatar Jarred Sumner 1-14/+14
2023-08-18feat: add self-closing & can-have-content (#4206)Gravatar Brúnó Salomon 7-26/+147
2023-08-18Implement BigIntStats (#4208)Gravatar dave caruso 14-221/+1874
* Implement BigIntStats * changes * rename test * comment * test changes?
2023-08-18Remove most C API usages, add debugger pretty printers for `Headers`, ↵Gravatar Jarred Sumner 72-8964/+7324
`URLSearchParams`, `FormData`, `Worker`, `EventTarget` (#4187) * Add pretty printers for `Headers`, `URLSearchParams`, and `FormData` * [untested] Add way to code generate getInternalProperties * bump * Bump Webkit * Ref the event loop while loaded * wip * checkpoint * another checkpoint * The code has been written * Fixup exports * Fix all the errors * Fix bug * [console.log] Fix bug when printing non-reified types missing values * Fix loading hash table * fix plugin * Fix ref & unref * auto-unref * various fixes * Update bun.zig * Set toStringTag * Delete code for macro JSX * Delete code for `bun dev` HTTP JS * Move Bun.serve to C++ API * Delete JSC C API code * :scissors: :skull: code * Use JSC C++ for `confirm`, `Crypto`, `prompt`, `alert` * more dead code * Update exports.zig * Use JSC C++ API for FFI * Remove remaining usages * Remove remaining usages * Update ffi.ts * Update InternalModuleRegistryConstants.h * draw the rest of the owl * Update webcore.zig * bind it * Fix performance regression in crypto.randomUIUD() * Update js_parser.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-18fix `--bail` testGravatar Dylan Conway 1-1/+1
2023-08-17Add `util.inspect.custom` support to `util.inspect/Bun.inspect/console.log` ↵Gravatar dave caruso 15-78/+648
(#4194) * start work on util.inspect.custom * asdf * finish util inspect custom inspect * inspect * fix tests * revert * tidy * revert * oops * test * fix issues
2023-08-17Support Nitro (#4098)Gravatar dave caruso 10-18/+180
* Add formatWithOptions * tests and tweaks * adjust * changes * hi * add mark/measure stubs * stuff * allow unix absolute paths here * typo * rebase * fix stats
2023-08-17Update Astro guideGravatar Colin McDonnell 1-1/+5
2023-08-17Allow IncomingRequest.req to be overwritten. (#4154)Gravatar dave caruso 3-8/+21
* Allow IncomingRequest.req to be overwritten. * add test * fix test * yoo
2023-08-17Fix(node:fs): add buffer parameter in fs.read callback. (#4191)Gravatar Ai Hoshino 3-5/+151
Close: #4178
2023-08-17refactor: move HTMLRewriter to c++ bindings (#4193)Gravatar Brúnó Salomon 16-1127/+4961
2023-08-17Fix description for executables pageGravatar Colin McDonnell 1-1/+1