Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

@nodegui/nodegui

Package Overview
Dependencies
Maintainers
3
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodegui/nodegui - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

dist/index.d.ts

3

config/moc.json

@@ -11,4 +11,5 @@ {

"src/cpp/QtWidgets/QPushButton/npushbutton.h",
"src/cpp/QtWidgets/QRadioButton/nradiobutton.h"
"src/cpp/QtWidgets/QRadioButton/nradiobutton.h",
"src/cpp/QtWidgets/QPlainTextEdit/nplaintextedit.h"
]
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./src/lib/index");
const index_1 = require("./index");
const path = require("path");
const win = new index_1.QMainWindow();

@@ -17,2 +18,5 @@ const label = new index_1.QLabel();

button.setObjectName("btn");
button.setFlat(true);
const icon = new index_1.QIcon(path.resolve(__dirname, "../extras/assets/start_icon.png"));
button.setIcon(icon);
const progressbar = new index_1.QProgressBar();

@@ -27,2 +31,10 @@ progressbar.setValue(6);

rootView.setLayout(new index_1.FlexLayout());
const lineEditLabel = new index_1.QLabel();
lineEditLabel.setInlineStyle("font-size: 12px;");
lineEditLabel.setText("PlainTextEdit's bound Value");
const textEdit = new index_1.QPlainTextEdit();
textEdit.setPlainText("Hello");
textEdit.addEventListener(index_1.QPlainTextEditEvents.textChanged, () => {
lineEditLabel.setText(textEdit.toPlainText());
});
if (rootView.layout) {

@@ -35,2 +47,4 @@ rootView.layout.addWidget(label);

rootView.layout.addWidget(progressbar);
rootView.layout.addWidget(textEdit);
rootView.layout.addWidget(lineEditLabel);
}

@@ -37,0 +51,0 @@ win.setCentralWidget(rootView);

{
"name": "@nodegui/nodegui",
"version": "0.1.3",
"version": "0.1.4",
"description": "A cross platform library to build native desktop apps.",
"main": "dist/src/lib/index.js",
"main": "dist/index.js",
"files": [

@@ -21,4 +21,3 @@ "dist",

"postinstall": "npm run build:addon",
"build": "npm run build:lib && npm run build:addon",
"build:lib": "tsc",
"build": "tsc && npm run build:addon",
"build:addon": "node-gyp -j 8 configure build",

@@ -30,4 +29,3 @@ "rebuild:addon": "node-gyp -j 8 rebuild",

"dependencies": {
"@nodegui/qode": "^1.0.2",
"bindings": "^1.5.0",
"@nodegui/qode": "^1.0.3",
"cuid": "^2.1.6",

@@ -34,0 +32,0 @@ "node-addon-api": "^1.6.3",

# NodeGUI
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors)

@@ -16,8 +17,8 @@ Build **performant**, **native** and **cross-platform** desktop applications with **JavaScript** + powerful **CSS like styling**.πŸš€

<div style="display:inline; margin: 0 auto;">
<img alt="demo_linux" src="https://github.com/nodegui/nodegui/raw/master/examples/calculator/calculator_linux.png" height="280" />
<img alt="demo_win" src="https://github.com/nodegui/nodegui/raw/master/examples/calculator/calculator_win.jpg" height="280" />
<img alt="demo_mac" src="https://github.com/nodegui/nodegui/raw/master/examples/calculator/calculator_mac.png" height="280" />
<img alt="demo_linux" src="https://github.com/nodegui/examples/raw/master/nodegui/calculator/calculator_linux.png" height="280" />
<img alt="demo_win" src="https://github.com/nodegui/examples/raw/master/nodegui/calculator/calculator_win.jpg" height="280" />
<img alt="demo_mac" src="https://github.com/nodegui/examples/raw/master/nodegui/calculator/calculator_mac.png" height="280" />
</div>
<div style="display:inline; margin: 0 auto;"><img alt="kitchen" src="https://github.com/nodegui/nodegui/raw/master/extras/assets/kitchen.png" height="280" /><img alt="demo_mac" src="https://github.com/nodegui/react-nodegui/raw/master/examples/weather-app-widget/weather_widget_mac.png" height="280" /><img alt="demo_win" src="https://github.com/nodegui/react-nodegui/raw/master/examples/image-view/image_view_win.jpg" height="280" />
<div style="display:inline; margin: 0 auto;"><img alt="kitchen" src="https://github.com/nodegui/nodegui/raw/master/extras/assets/kitchen.png" height="280" /><img alt="demo_mac" src="https://github.com/nodegui/examples/raw/master/react-nodegui/weather-app-widget/weather_widget_mac.png" height="280" /><img alt="demo_win" src="https://github.com/nodegui/examples/raw/master/react-nodegui/image-view/image_view_win.jpg" height="280" />
</div>

@@ -27,13 +28,15 @@

[See examples](https://github.com/nodegui/nodegui/tree/master/examples/)
### More Examples:
[See React based examples](https://github.com/nodegui/react-nodegui/tree/master/examples/)
https://github.com/nodegui/examples
---
## Features
- 🧬 Cross platform. Should work on major Linux flavours, Windows and MacOS
- 🧬 Cross platform. Should work on major Linux flavours, Windows and MacOS.
- πŸ“‰ Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20mb for a hello world program.
- πŸ’… Styling with CSS (includes actual cascading). Also has full support for Flexbox layout (thanks to Yoga).
- βœ… Complete Nodejs api support (Currently runs on Node v12.x - and is easily upgradable). Hence has access to all nodejs compatible npm modules.
- πŸŽͺ Native widget event listener support. supports all event available from Qt / NodeJs.
- πŸŽͺ Native widget event listener support. Supports all events available from Qt / NodeJs.
- πŸ’Έ Can be used for Commercial applications.

@@ -55,12 +58,8 @@ - πŸ•΅οΈβ€β™‚οΈ Good Devtools support.

- Check out [nodegui-starter](https://github.com/nodegui/nodegui-starter) to get up and running with your own React NodeGUI app!
- Read through the [docs](https://nodegui.github.io/nodegui)
- Read through the [docs](https://nodegui.github.io/nodegui).
## Docs for contributing
Looking to contribute? If you wish to implement a new widget/add more features and need help understanding the codebase. You can start here:
Looking to contribute? If you wish to implement a new widget/add more features and need help understanding the codebase, you can start here: [Contributing developer docs](https://github.com/nodegui/nodegui/tree/master/docs/development).
Contributing developer docs link:
https://github.com/nodegui/nodegui/tree/master/docs/development
## Building

@@ -78,2 +77,34 @@

> The links to QT source code and appropriate license notices are attached. We try our best to abide by the software licenses and any non compliance is not by will. If there is some discrepancy please let us know in the issues and we will try and fix it up.
> If you follow the recommended build steps and do not statically link QT libraries on your own you are safe to use this library for commerical puropses (provided you abide by MIT License).
> If you follow the recommended build steps and do not statically link QT libraries on your own you are safe to use this library for commerical purposes (provided you abide by MIT License).
## Maintainers ✨
People maintaining this project.
<!-- prettier-ignore -->
<table>
<tr>
<td align="center"><a href="https://blog.atulr.com"><img src="https://avatars2.githubusercontent.com/u/4029423?v=4" width="100px;" alt="Atul R"/><br /><sub><b>Atul R</b></sub></a></td>
</tr>
</table>
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
<table>
<tr>
<td align="center"><a href="https://lramage.gitlab.io"><img src="https://avatars1.githubusercontent.com/u/43783393?v=4" width="100px;" alt="Lucas Ramage"/><br /><sub><b>Lucas Ramage</b></sub></a><br /><a href="https://github.com/nodegui/nodegui/commits?author=oxr463" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://github.com/gamtiq"><img src="https://avatars3.githubusercontent.com/u/1177323?v=4" width="100px;" alt="Denis Sikuler"/><br /><sub><b>Denis Sikuler</b></sub></a><br /><a href="https://github.com/nodegui/nodegui/commits?author=gamtiq" title="Documentation">πŸ“–</a></td>
<td align="center"><a href="https://twitter.com/nahueljo"><img src="https://avatars1.githubusercontent.com/u/1612488?v=4" width="100px;" alt="Nahuel JosΓ©"/><br /><sub><b>Nahuel JosΓ©</b></sub></a><br /><a href="#question-Naahuel" title="Answering Questions">πŸ’¬</a></td>
<td align="center"><a href="https://github.com/kakulgupta"><img src="https://avatars3.githubusercontent.com/u/10727047?v=4" width="100px;" alt="Kakul Gupta"/><br /><sub><b>Kakul Gupta</b></sub></a><br /><a href="https://github.com/nodegui/nodegui/commits?author=kakulgupta" title="Code">πŸ’»</a></td>
<td align="center"><a href="http://rahulgaba.com"><img src="https://avatars3.githubusercontent.com/u/7898942?v=4" width="100px;" alt="Rahul Gaba"/><br /><sub><b>Rahul Gaba</b></sub></a><br /><a href="https://github.com/nodegui/nodegui/commits?author=rgabs" title="Code">πŸ’»</a></td>
</tr>
</table>
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

@@ -1,4 +0,3 @@

import bindings from "bindings";
const addon = bindings("qtnode");
const addon = require("../../../build/Release/qtnode.node");
export default addon;

@@ -33,2 +33,3 @@ import addon from "../../core/addon";

this.setPlaceholderText.bind(this);
this.setReadOnly.bind(this);
}

@@ -45,2 +46,8 @@ setText(text: string) {

}
setReadOnly(isReadOnly: boolean) {
this.native.setReadOnly(isReadOnly);
}
clear() {
this.native.clear();
}
}

@@ -5,2 +5,3 @@ import addon from "../../core/addon";

import { NativeElement } from "../../core/Component";
import { QIcon } from "../../QtGui/QIcon";

@@ -29,2 +30,3 @@ export const QPushButtonEvents = Object.freeze({

this.setText.bind(this);
this.setFlat.bind(this);
}

@@ -35,2 +37,10 @@

}
setFlat(isFlat: boolean) {
this.native.setFlat(isFlat);
}
setIcon(icon: QIcon) {
this.native.setIcon(icon.native);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc