Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@cloudos/core

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudos/core - npm Package Compare versions

Comparing version
1.0.23
to
1.0.24
+4
lib/App.d.ts
/// <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;
+0
-33
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"
}
}