@cloudos/core
Advanced tools
| /// <reference types="react" /> | ||
| import './App.css'; | ||
| declare function App(): JSX.Element; | ||
| export default App; |
| import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
| import { useState } from 'react'; | ||
| import logo from './logo.svg'; | ||
| import './App.css'; | ||
| function App() { | ||
| const [count, setCount] = useState(0); | ||
| return (_jsx("div", { className: "App", children: _jsxs("header", { className: "App-header", children: [_jsx("img", { src: logo, className: "App-logo", alt: "logo" }, void 0), _jsx("p", { children: "Hello Vite + React!" }, void 0), _jsx("p", { children: _jsxs("button", { type: "button", onClick: () => setCount((count) => count + 1), children: ["count is: ", count] }, void 0) }, void 0), _jsxs("p", { children: ["Edit ", _jsx("code", { children: "App.tsx" }, void 0), " and save to test HMR updates."] }, void 0), _jsxs("p", { children: [_jsx("a", { className: "App-link", href: "https://reactjs.org", target: "_blank", rel: "noopener noreferrer", children: "Learn React" }, void 0), ' | ', _jsx("a", { className: "App-link", href: "https://vitejs.dev/guide/features.html", target: "_blank", rel: "noopener noreferrer", children: "Vite Docs" }, void 0)] }, void 0)] }, void 0) }, void 0)); | ||
| } | ||
| export default App; |
| import { ipc } from "@cloudos/ipc"; | ||
| // export default defineTemplate((x: WindowControlProps = {}) => { | ||
| // const { | ||
| // onMinimize = () => { ipc.dispatch("window-minimize") }, | ||
| // onMaximize = () => { ipc.dispatch("window-maximize") }, | ||
| // onRestore = () => { ipc.dispatch("window-restore") }, | ||
| // onClose = () => { ipc.dispatch("window-close") }, | ||
| // } = x; | ||
| // return { | ||
| // "name": "window-control", | ||
| // "span": "200px", | ||
| // "flow": "row", | ||
| // "alignItems": "center", | ||
| // "justifyContent": "space-evenly", | ||
| // "children": [ | ||
| // { | ||
| // "type": "WindowMinimize", | ||
| // onClick: onMinimize, | ||
| // }, | ||
| // { | ||
| // "type": "WindowRestore", | ||
| // onClick: onRestore, | ||
| // }, | ||
| // { | ||
| // "type": "WindowMaximize", | ||
| // onClick: onMaximize, | ||
| // }, | ||
| // { | ||
| // "type": "WindowClose", | ||
| // onClick: onClose, | ||
| // } | ||
| // ] | ||
| // } | ||
| // }) | ||
| export default (x = {}) => { | ||
@@ -36,0 +3,0 @@ const { onMinimize = () => { ipc.dispatch("window-minimize"); }, onMaximize = () => { ipc.dispatch("window-maximize"); }, onRestore = () => { ipc.dispatch("window-restore"); }, onClose = () => { ipc.dispatch("window-close"); }, } = x; |
+2
-5
| { | ||
| "name": "@cloudos/core", | ||
| "version": "1.0.23", | ||
| "version": "1.0.24", | ||
| "description": "cloudos-core", | ||
@@ -29,6 +29,3 @@ "main": "lib/index.js", | ||
| "devDependencies": { | ||
| "@babel/core": "^7.16.12", | ||
| "@types/babel__core": "^7.1.18", | ||
| "@types/mousetrap": "^1.6.9", | ||
| "@types/node": "^17.0.10", | ||
| "@types/react": "^17.0.33", | ||
@@ -40,4 +37,4 @@ "@types/react-dom": "^17.0.10", | ||
| "typescript": "^4.4.4", | ||
| "vite": "^2.7.13" | ||
| "vite": "^2.7.2" | ||
| } | ||
| } |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
42961
0.11%8
-27.27%81
2.53%1300
-1.37%2
100%