-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2: Context menu on option+right click [publish]
- Loading branch information
1 parent
b1d0a96
commit f59260b
Showing
14 changed files
with
840 additions
and
600 deletions.
There are no files selected for viewing
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
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
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
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
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,28 @@ | ||
import { useState } from "react"; | ||
import reactLogo from "./react.svg"; | ||
import { Button } from "./Button"; | ||
import "./App.css"; | ||
|
||
export const App = () => { | ||
const [count, setCount] = useState(0); | ||
|
||
return ( | ||
<div className="App"> | ||
<div style={{ position: "fixed", right: 40, top: 40 }}>Top right</div> | ||
<div className="full-height">Full height</div> | ||
<div> | ||
<a href="https://vitejs.dev" target="_blank" rel="noreferrer"> | ||
<img src="/vite.svg" className="logo" alt="Vite logo" /> | ||
</a> | ||
<a href="https://reactjs.org" target="_blank" rel="noreferrer"> | ||
<img src={reactLogo} className="logo react" alt="React logo" /> | ||
</a> | ||
</div> | ||
<h1>Vite + React</h1> | ||
<div className="card"> | ||
<button onClick={() => setCount(count + 1)}>count is {count}</button> | ||
<p> | ||
Edit <code>src/App.tsx</code> and save to test HMR | ||
</p> | ||
</div> | ||
<p className="read-the-docs"> | ||
Click on the Vite and React logos to learn more | ||
export const App = () => ( | ||
<div className="App"> | ||
<div style={{ position: "fixed", right: 40, top: 40 }}>Top right</div> | ||
<div className="full-height">Full height</div> | ||
<div> | ||
<a href="https://vitejs.dev" target="_blank" rel="noreferrer"> | ||
<img src="/vite.svg" className="logo" alt="Vite logo" /> | ||
</a> | ||
<a href="https://reactjs.org" target="_blank" rel="noreferrer"> | ||
<img src={reactLogo} className="logo react" alt="React logo" /> | ||
</a> | ||
</div> | ||
<h1>Vite + React</h1> | ||
<div className="card"> | ||
<Button /> | ||
<p> | ||
Edit <code>src/App.tsx</code> and save to test HMR | ||
</p> | ||
</div> | ||
); | ||
}; | ||
<p className="read-the-docs"> | ||
Click on the Vite and React logos to learn more | ||
</p> | ||
</div> | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { useState } from "react"; | ||
|
||
export const Button = () => { | ||
const [count, setCount] = useState(0); | ||
|
||
return <button onClick={() => setCount(count + 1)}>count is {count}</button>; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,92 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
# bun ./bun.lockb --hash: 7E502891CC3CE8CC-f8f63b46ff797c67-3D098B48DC753020-0c86a38c3d477462 | ||
# bun ./bun.lockb --hash: C6A399B4BFDAB035-b0d685f590d9fa8d-44ABB523C705F2F6-56bcddc0f6883165 | ||
|
||
|
||
"@swc/core@^1.3.21": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core/-/core-1.3.22.tgz" | ||
integrity sha512-oQ9EPEb7NgWcGIDoVfLCuffvtC4MzVtrwjqwKzFHP8FUh1fn8+2wraOjkkDXW74BB4Hgve5ykkaHix9bebB9Ww== | ||
"@swc/core@^1.3.35": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core/-/core-1.3.36.tgz" | ||
integrity sha512-Ogrd9uRNIj7nHjXxG66UlKBIcXESUenJ7OD6K2a8p82qlg6ne7Ne5Goiipm/heHYhSfVmjcnRWL9ZJ4gv+YCPA== | ||
dependencies: | ||
"@swc/core-win32-x64-msvc" "1.3.22" | ||
"@swc/core-darwin-x64" "1.3.22" | ||
"@swc/core-linux-x64-gnu" "1.3.22" | ||
"@swc/core-linux-x64-musl" "1.3.22" | ||
"@swc/core-win32-ia32-msvc" "1.3.22" | ||
"@swc/core-linux-arm64-gnu" "1.3.22" | ||
"@swc/core-linux-arm-gnueabihf" "1.3.22" | ||
"@swc/core-darwin-arm64" "1.3.22" | ||
"@swc/core-linux-arm64-musl" "1.3.22" | ||
"@swc/core-win32-arm64-msvc" "1.3.22" | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.22.tgz" | ||
integrity sha512-MMhtPsuXp8gpUgr9bs+RZQ2IyFGiUNDG93usCDAFgAF+6VVp+YaAVjET/3/Bx5Lk2WAt0RxT62C9KTEw1YMo3w== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.22.tgz" | ||
integrity sha512-SG6QbNat4GZ5VJU3Zo6a54oQOtbhJVE6BCQw4JjOCZJmAeBzNebGy9wsT4+fCJNHC3C5qtaRw7ToXJvLniXwfg== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.22.tgz" | ||
integrity sha512-4E+TdQT1oHnHjDaPs/DyrRy9lOuFd6ncEd67yYA4j9lFqt6nuz/jnXss45k8KU7wR5kOTtdW73xPwkU4NbOWdw== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.22.tgz" | ||
integrity sha512-6VcynOMbOBcbLutIPENI3Ejvg5LGz/Pwvzm25hM0FoiEtPxHA+tawQUwLx8Alk1Yr+Rnqid06UEZ0veJOGn2pQ== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.22.tgz" | ||
integrity sha512-86RxGy0L3qa4De3xWHx8vL2caTxvSLSWTlgUW/Yd4l1pvrCFibMjhkImGu5ViKiReX9DlBtJ7CBs4dln2kHidw== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.22.tgz" | ||
integrity sha512-FLkbiqsdXsVIFZi6iedx4rSBGX8x0vo/5aDlklSxJAAYOcQpO0QADKP5Yr65iMT1d6ABCt2d+/StpGLF7GWOcA== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.22.tgz" | ||
integrity sha512-giBuw+Z0Bq6fpZ0Y5TcfpcQwf9p/cE1fOQyO/K1XSTn/haQOqFi7421Jq/dFThSARZiXw1u9Om9VFbwxr8VI+A== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.22.tgz" | ||
integrity sha512-loKGO+ZM2By6VdrmVJk1G79jVgDPaee93qLFuis5KyeoLLb4m1MlNMc/6SIDZUSuYg6NqaGP1spFeiFetMQ4Zg== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.22.tgz" | ||
integrity sha512-lvNWAZ3QjXMsrsch6oLLQVikT/hC/4ZcLrTBXa14HwQylaYigkGElgp3ekJr78HjWDPwB46GXwBbNMG0VNAfvA== | ||
|
||
"@swc/[email protected].22": | ||
version "1.3.22" | ||
resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.22.tgz" | ||
integrity sha512-ESyn4lZXAKEE3mcTaDfXatsolCiEfVGstsXdgBmZYa6o1IE1bDW8FE7Ob/Y+82WTpm9+A9ZYXYjZ62t67POHZg== | ||
"@swc/core-win32-x64-msvc" "1.3.36" | ||
"@swc/core-darwin-x64" "1.3.36" | ||
"@swc/core-linux-x64-gnu" "1.3.36" | ||
"@swc/core-linux-x64-musl" "1.3.36" | ||
"@swc/core-win32-ia32-msvc" "1.3.36" | ||
"@swc/core-linux-arm64-gnu" "1.3.36" | ||
"@swc/core-linux-arm-gnueabihf" "1.3.36" | ||
"@swc/core-darwin-arm64" "1.3.36" | ||
"@swc/core-linux-arm64-musl" "1.3.36" | ||
"@swc/core-win32-arm64-msvc" "1.3.36" | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.36.tgz" | ||
integrity sha512-lsP+C8p9cC/Vd9uAbtxpEnM8GoJI/MMnVuXak7OlxOtDH9/oTwmAcAQTfNGNaH19d2FAIRwf+5RbXCPnxa2Zjw== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.36.tgz" | ||
integrity sha512-jaLXsozWN5xachl9fPxDMi5nbWq1rRxPAt6ISeiYB6RJk0MQKH1634pOweBBem2pUDDzwDFXFw6f22LTm/cFvA== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.36.tgz" | ||
integrity sha512-vcBdTHjoEpvJDbFlgto+S6VwAHzLA9GyCiuNcTU2v4KNQlFzhbO4A4PMfMCb/Z0RLJEr16tirfHdWIxjU3h8nw== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.36.tgz" | ||
integrity sha512-o7f5OsvwWppJo+qIZmrGO5+XC6DPt6noecSbRHjF6o1YAcR13ETPC14k1eC9H1YbQwpyCFNVAFXyNcUbCeQyrQ== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.36.tgz" | ||
integrity sha512-FSHPngMi3c0fuGt9yY2Ubn5UcELi3EiPLJxBSC3X8TF9atI/WHZzK9PE9Gtn0C/LyRh4CoyOugDtSOPzGYmLQg== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.36.tgz" | ||
integrity sha512-PHSsH2rek5pr3e0K09VgWAbrWK2vJhaI7MW9TPoTjyACYjcs3WwjcjQ30MghXUs2Dc/bXjWAOi9KFTjq/uCyFg== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.36.tgz" | ||
integrity sha512-4LfMYQHzozHCKkIcmQy83b+4SpI+mOp6sYNbXqSRz5dYvTVjegKZXe596P1U/87cK2cgR4uYvkgkgBXquaWvwQ== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.36.tgz" | ||
integrity sha512-7y3dDcun79TAjCyk3Iv0eOMw1X/KNQbkVyKOGqnEgq9g22F8F1FoUGKHNTzUqVdzpHeJSsHgW5PlkEkl3c/d9w== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.36.tgz" | ||
integrity sha512-zK0VR3B4LX5hzQ+7eD+K+FkxJlJg5Lo36BeahMzQ+/i0IURpnuyFlW88sdkFkMsc2swdU6bpvxLZeIRQ3W4OUg== | ||
|
||
"@swc/[email protected].36": | ||
version "1.3.36" | ||
resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.36.tgz" | ||
integrity sha512-2bIjr9DhAckGiXZEvj6z2z7ECPcTimG+wD0VuQTvr+wkx46uAJKl5Kq+Zk+dd15ErL7JGUtCet1T7bf1k4FwvQ== | ||
|
||
"@types/prop-types@*": | ||
version "15.7.5" | ||
resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz" | ||
integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== | ||
|
||
"@types/react@*": | ||
version "18.0.25" | ||
resolved "https://registry.npmjs.org/@types/react/-/react-18.0.25.tgz" | ||
integrity sha512-xD6c0KDT4m7n9uD4ZHi02lzskaiqcBxf4zi+tXZY98a04wvc0hi/TcCPC2FOESZi51Nd7tlUeOJY8RofL799/g== | ||
version "18.0.28" | ||
resolved "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz" | ||
integrity sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew== | ||
dependencies: | ||
"@types/prop-types" "*" | ||
"@types/scheduler" "*" | ||
csstype "^3.0.2" | ||
|
||
"@types/react-dom@^18.0.9": | ||
version "18.0.9" | ||
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.9.tgz" | ||
integrity sha512-qnVvHxASt/H7i+XG1U1xMiY5t+IHcPGUK7TDMDzom08xa7e86eCeKOiLZezwCKVxJn6NEiiy2ekgX8aQssjIKg== | ||
"@types/react-dom@^18.0.11": | ||
version "18.0.11" | ||
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.11.tgz" | ||
integrity sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw== | ||
dependencies: | ||
"@types/react" "*" | ||
|
||
|
@@ -95,12 +95,12 @@ | |
resolved "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz" | ||
integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== | ||
|
||
"@vitejs/plugin-react-swc@^3.0.0": | ||
version "3.0.0" | ||
resolved "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.0.0.tgz" | ||
integrity sha512-vYlodz/mjYRbxMGbHzDgR8aPR+z8n7K/enWkyBGH096xrL2DIPCuTvQVRYPTXGyy6wO7OFiMxZ3r4nKQD1sH0A== | ||
"@vitejs/plugin-react-swc@^3.2.0": | ||
version "3.2.0" | ||
resolved "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.2.0.tgz" | ||
integrity sha512-IcBoXL/mcH7JdQr/nfDlDwTdIaH8Rg7LpfQDF4nAht+juHWIuv6WhpKPCSfY4+zztAaB07qdBoFz1XCZsgo3pQ== | ||
dependencies: | ||
"@swc/core" "^1.3.21" | ||
"@swc/core" "^1.3.35" | ||
|
||
csstype@^3.0.2: | ||
version "3.1.1" | ||
|
@@ -109,7 +109,7 @@ csstype@^3.0.2: | |
|
||
"js-tokens@^3.0.0 || ^4.0.0": | ||
version "4.0.0" | ||
resolved "" | ||
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" | ||
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== | ||
|
||
loose-envify@^1.1.0: | ||
|
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
Oops, something went wrong.