- QCalendarWidget
- QCheckBox
- QDateEdit
- QDateTimeEdit
- QLabel
- QDial
- QFileDialog
- QLineEdit
This file contains hidden or 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
diff --git a/binding.gyp b/binding.gyp | |
index 2d188af..031bf18 100644 | |
--- a/binding.gyp | |
+++ b/binding.gyp | |
@@ -5,7 +5,9 @@ | |
"cflags_cc!": [ "-fno-exceptions" ], | |
"sources": [ | |
"cppsrc/main.cpp", | |
- "cppsrc/Samples/functionexample.cpp" | |
+ "cppsrc/Samples/functionexample.cpp", |
This file contains hidden or 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
diff --git a/cppsrc/Samples/classexample.cpp b/cppsrc/Samples/classexample.cpp | |
index 8dfa3cc..834f7ea 100644 | |
--- a/cppsrc/Samples/classexample.cpp | |
+++ b/cppsrc/Samples/classexample.cpp | |
@@ -22,8 +22,17 @@ ClassExample::ClassExample(const Napi::CallbackInfo& info) : Napi::ObjectWrap<Cl | |
Napi::HandleScope scope(env); | |
int length = info.Length(); | |
- if (length != 1 || !info[0].IsNumber()) { | |
- Napi::TypeError::New(env, "Number expected").ThrowAsJavaScriptException(); |
This file contains hidden or 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
const style = require('ansi-styles'); | |
const express = require('express'); | |
const hello = () =>` | |
${style.green.open}Hello Green!${style.green.close} | |
${style.red.open}Hello Red!${style.red.close} | |
`; | |
const app = express(); | |
app.get('/hello', (req, res) => { |
This file contains hidden or 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
const express = require('express'); | |
const { Readable } = require('stream'); | |
// This is the special ANSI code to tell terminals to clear the screen | |
const PAGE_BREAK = '\033[2J\033[H'; | |
// This function gets the current date in string format along | |
// with a page break on top. | |
// Note that you would need to add a new line for the terminal to | |
// interpret it. That is `hello` will not work while `hello\n` will. |
This file contains hidden or 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
const express = require('express'); | |
const hello = require('./src/ansi/animations/hello'); | |
const PORT = process.env.PORT || 3000; | |
const app = express(); | |
// simple hello route | |
app.get('/hello', async (req, res, next) => { | |
const userAgent = req.headers['user-agent']; // checking the useragent |
This file contains hidden or 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
import React from "react"; | |
import { registerAsWebComponent } from "react-webcomponentify"; | |
export class Input extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { buttonText: "" }; | |
this.onInputEnter = this.onInputEnter.bind(this); | |
} | |
onInputEnter(evt) { |
This file contains hidden or 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
import React from "react"; | |
import { registerAsWebComponent } from "react-webcomponentify"; | |
const MyComplexComponent = props => ( | |
<div> | |
Kinda complex component 😂 | |
<p>{props.text}</p> | |
<div>{props.children}</div> | |
</div> | |
); |
This file contains hidden or 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
// How to use it ? | |
// =============== | |
// Step 1: Create a custom codepush bundle | |
// ---------------------------------------- | |
// react-native bundle --assets-dest out --bundle-output out/main.jsbundle --dev false --platform ios --entry-file index.ts | |
// Then just compress the contents of out dir into a single zip file. for example: out.zip | |
// Step 2: Create a remotePackage json object | |
// ------------------------------------------ |