webreflection / jsgtk Goto Github PK
View Code? Open in Web Editor NEWA simplified approach to GJS for Node.JS and JavaScript developers.
Home Page: https://webreflection.github.io/jsgtk/
License: Other
A simplified approach to GJS for Node.JS and JavaScript developers.
Home Page: https://webreflection.github.io/jsgtk/
License: Other
I'm on Arch Linux, running GNOME 3.22. Locally and with the Flatpak GNOME 3.22 runtime, JSGtk+ runs correctly and my app works fine. However, using the GNOME 3.24 runtime, JSGtk+ throws a couple of errors and fails to run my app:
Gjs-Message: JS WARNING: [/app/lib/jsgtk/jsgtk_modules/jsgtk/babel.js 26]: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
(gjs:4): Gjs-WARNING **: JS ERROR: TypeError: "Promise" is read-only
L@/app/lib/jsgtk/jsgtk_modules/jsgtk/promise.js:9:4150
@/app/lib/jsgtk/jsgtk_modules/jsgtk/promise.js:9:6137
@/app/lib/jsgtk/jsgtk_modules/jsgtk/promise.js:9:2
@/app/bin/jsgtk:119:17
@/app/bin/jsgtk:7:1
JS_EvaluateScript() failed
Thanks
There is an issue with recursive modules and apparently a mathjs library that cannot work with current logic.
edited
I am in need of a lightweight GUI framework for my Node.js application, both NW.js and Electron are not options b'cos of RAM usage even on a bare minimum example as they are essentially browsers. Does anyone know the average RAM usage with any of the examples?
I've been looking online for GTK+ documentation, but I can't find anything that matches the examples. What should I be looking for?
First of all, thanks for this amazing library!
When trying it out, I ran into an error importing ramda
. I believe this is related to #13 where I get the following error:
JS ERROR: Error: Circular dependencies detected:
.../node_modules/ramda/src/internal/_curry2
The following is minimal code that causes the error:
#!/usr/bin/env jsgtk
const Gtk = require('Gtk');
const R = require('ramda');
Running it with --debug
does not seem to give much information regarding ramda
. I hope you have any ideas what might be going on, thanks in advance!
I am endeavoring to write a Gnome client for Digital Ocean to manage hosted resources. Apparently, Digital Ocean node module, "do-wrapper", which provides the client API generates the following error message when required. After reading Babel documentation I am unsure if I need to set "compact" to false or exclude node_modules. In either case, I also do not know how to pass these options to jsgtk. Please expose options or advise. I am very excited and wish to use jsgtk.
Source Code
#!/usr/bin/env jsgtk
const Gtk = require('Gtk');
const Promise = require('es6-promise').Promise;
const DigitalOcean = require('do-wrapper');
Error Output
michael@michael-laptop:~/Source/digitalocean.com$ ./app.js
[ERROR] [BABEL] Note: The code generator has deoptimised the styling of "unknown"
as it exceeds the max of "100KB".
(gjs:25031): Gjs-WARNING **: JS ERROR: ReferenceError: Buffer is not defined
anonymous@/usr/local/bin/jsgtk:249
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:175
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:151
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:151
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:159
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:294
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:165
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:165
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
require@/usr/local/bin/jsgtk:155
anonymous@/usr/local/bin/jsgtk:155
evaluateModule@/usr/local/bin/jsgtk:160
load@/usr/local/lib/jsgtk/jsgtk_modules/jsgtk/node_modules.js:130
requireWithPath@/usr/local/bin/jsgtk:173
@/usr/local/bin/jsgtk:199
@/usr/local/bin/jsgtk:243
JS_EvaluateScript() failed
Is there any way to disable zoom gestures into your webview example?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.