GithubHelp home page GithubHelp logo

webreflection / jsgtk Goto Github PK

View Code? Open in Web Editor NEW
85.0 7.0 9.0 17.81 MB

A simplified approach to GJS for Node.JS and JavaScript developers.

Home Page: https://webreflection.github.io/jsgtk/

License: Other

Shell 0.52% JavaScript 99.22% HTML 0.22% Makefile 0.04%

jsgtk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsgtk's Issues

Doesn't work on GNOME 3.24

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

require fails with mathjs and recursive modules

There is an issue with recursive modules and apparently a mathjs library that cannot work with current logic.

  • find out how to test case and validate this issue
  • improve the require logic to never fail with recursion and work with libraries such mathjs

RAM Usage

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?

Where is the API documentation?

I've been looking online for GTK+ documentation, but I can't find anything that matches the examples. What should I be looking for?

Error importing recursive modules

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!

"Code generator ... it exceeds the max of "100KB"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.