GithubHelp home page GithubHelp logo

pureqml / qmlcore Goto Github PK

View Code? Open in Web Editor NEW
329.0 25.0 40.0 36.15 MB

QML to Javascript/HTML5 translator. Ready for Mobile, Desktop and SmartTV platforms.

License: MIT License

Python 50.38% QML 29.92% JavaScript 19.12% Shell 0.57% Makefile 0.02%
ui declarative-ui qml html5 embedded mobile-web declarative-language frontend frontend-app frontend-application

qmlcore's People

Contributors

comrat avatar dependabot[bot] avatar dimaz87 avatar flomar avatar guyincorner avatar ivanbelyakoff avatar lifeart avatar rominf avatar shalokshalom avatar thomasbrixlarsen avatar tomager avatar vkrv avatar whoozle avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

qmlcore's Issues

Docs: keep inherited stuff within the component

Add to documentation to particular component information about it's inheritance tree (e.g. WebItem->Rectangle->Item), so inherited properties and methods can be easily accessible.
Having kind of inheritance structure would be nice:
"interits": {
"name": "Rectangle",
"ref": "core/Ractangle",
"inherits": {
"name": "Item",
"ref": "core/Item",
"inherits": {
"name": "Object",
"ref": null,
"inherits": null
}
}
}

print filename with syntax error on compile time

parsing /home/lifeart/repositories/qml2js/app.qml ... qml2js.app
ERROR: not well-formed (invalid token): line 1, column 0
ERROR: command ./qmlcore/qml-compiler -o build.web ./qmlcore/core ./qmlcore/platform/web ./qmlcore/platform/html5 . -a app failed with code 1

Simultaneous declaration of several properties

Consider the idea of having a number of typical properties in a single declaration.
Something like this:
property int x, y, z, width, height;
or more complicated:
property string text1: parent.text, text2: y, text3: "Blah-blah-blah " + parent.width;

rowsChanged signal handler doesn't work

If you try to handle 'rowsChanged' signal in ListModel corresponded handler will be not called.
Example for reproducing:
ListModel {
onRowsChanged: { log("onRowsChanged") }
}

Suggestion:
I suppose it's all because of conflict with property changed signal, I mean that 'onRowsChanged' handler is treated as handler for property 'rows' changed signal instead of 'rowsChanged' signal

uglify moar

add the most aggressive options:
"-m", "--mangle-props=2", protect with "-r navigator", test with "-b"

doubled object discard

There are many warnings like this when model data drops
invalid removeListener(boxChanged, function () { [native code] }) invocation Error
at t.core.Text.t.core.EventEmitter.removeListener

Add 'templates'

Add 'templates' property into manifest for customizing files to be templated

Text shadow

Use 'Shadow' property instead of simple bool property.

Braces in comments and strings

Parser treat braces inside comment or string constant as scope brace.

Simple example for reproducing:
Item {
anchors.fill: context;

onCompleted: {
	var str = "olololo {"
}

}

Error message:
ERROR: Expected "}" (at char 77), (line:8, col:1)

Multi-line text

We must concatinate every line right now to write multi-line strings property values. It will be cool to write it like this:
text: "
foo
bar
";

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.