Giter Site home page Giter Site logo

titannanode / applicationframe Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 2.17 MB

simple and lightweight library for building ECMAScript applications

Home Page: https://titannano.de

License: Apache License 2.0

JavaScript 100.00%
javascript ecmascript ecmascript2015 application-frame javascript-framework

applicationframe's People

Contributors

codacy-badger avatar cyrik avatar dependabot[bot] avatar greenkeeper[bot] avatar greenkeeperio-bot avatar titannano avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

applicationframe's Issues

refactoring the scope system

I don't like the decisions I made while designing the scope system.
This big prepare function will be depraved and replaced by a smaller and better one.
In addition there will be three types of scope functions public, private and system only.

[DataBinding] RenderEngine

Introduce render engine to be able to directly access the browsers render process.

The render engine allows to insert tasks into the rendering process. They can be added either to the next frame, or after the next frame has been rendered. It's also possible to add hooks which are executed every time a frame is rendered.

ServiceWorker event dispatch is broken

ServiceWorker events are not correctly dispatched through to the clients and the service worker also doesn't correctly receive event messages posted to it.

Implement 0.2

Implement all new features, classes, etc. for 0.2

wiki documentation

the main functions must be documented in the wiki before the first release.

[DataBinding] fix repeat + auto-binding + replace

The new auto binding doesn't work with repeat and replace since the repeat binding immediately invokes the sub cycle for the auto binding, but does not insert the new element before it is done.
So the auto binding needs to be async to be executed after the current update cycle is done. Also replace doesn't play so well with the repeat binding and it will mess up the injection logic if some template elements are replaced with their content. A insert attribute should be added here.

  • make auto-binding async
  • add insert attribute
  • print out a warning that repeat + auto-bind + replace doesn't work

[CE] Provide CustomElement prototype

The CustomElement prototype should make it easier to work with custom elements. It's supposed to generate attribute-to-property bindings, auto cast attribute values and provide easy to use callback functions for common custom elements tasks such as, general attribute change, specific attribute change and element creation.

[Memory] refactor allocation

We can refactor the implementation to always take one argument, so we can avoid the redundant string for object allocations.

[IndexedDB] upgrade DB at runtime

There might be situations in which someone might what to upgrade the database at runtime. This is currently not possible without destroying the existing DB object and creating a new one. An in place reopen / upgrade method would be useful here.

implement delay function

The idea of this function is to receive a callback and an amount of milliseconds. The Function then returns a new function. Once the new function gets called a time out is set and the callback will be executed after the delay. The wrapper function returns a promise which will resolve to the callbacks return value.

Proposed trait:

delay(fn: Function, time: Number) => (...args) => Promise

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Cleanup before 1.0

The existing code base requires some clean up before it can be released.

An in-range update of eslint is breaking the build 🚨

The devDependency eslint was updated from 5.12.0 to 5.12.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • coverage/coveralls: First build on greenkeeper/eslint-5.12.1 at 62.058% (Details).
  • Travis CI - Branch: The build errored.

Release Notes for v5.12.1
  • eb5c401 Chore: use meta.messages in some rules (2/4) (refs #9870) (#10773) (薛定谔的猫)
  • aa56247 Fix: avoid loading core rules dynamically from FS in Linter (#11278) (Peter Metz)
  • 04450bb Docs: clarify process for adding committers (#11272) (Kai Cataldo)
  • 3ffcf26 Docs: add @g-plane as committer (#11277) (Kai Cataldo)
  • c403445 Fix: warn constant on RHS of || in no-constant-condition (fixes #11181) (#11253) (Merlin Mason)
  • 9194f45 Fix: Manage severity of 1 with TAP reporter (fixes #11110) (#11221) (Gabriel Cousin)
  • 000f495 Docs: fix example for sort-imports ignoreDeclarationSort (#11242) (Remco Haszing)
  • 7c0bf2c Docs: Add npx usage to Getting Started guide (#11249) (eyal0803)
  • da9174e Docs: fixes typo peerDepencies (#11252) (Christian Kühl)
  • 9c31625 Docs: Improve custom formatter docs (#11258) (Nicholas C. Zakas)
Commits

The new version differs by 12 commits.

  • faf3c4e 5.12.1
  • 1010c98 Build: changelog update for 5.12.1
  • eb5c401 Chore: use meta.messages in some rules (2/4) (refs #9870) (#10773)
  • aa56247 Fix: avoid loading core rules dynamically from FS in Linter (#11278)
  • 04450bb Docs: clarify process for adding committers (#11272)
  • 3ffcf26 Docs: add @g-plane as committer (#11277)
  • c403445 Fix: warn constant on RHS of || in no-constant-condition (fixes #11181) (#11253)
  • 9194f45 Fix: Manage severity of 1 with TAP reporter (fixes #11110) (#11221)
  • 000f495 Docs: fix example for sort-imports ignoreDeclarationSort (#11242)
  • 7c0bf2c Docs: Add npx usage to Getting Started guide (#11249)
  • da9174e Docs: fixes typo peerDepencies (#11252)
  • 9c31625 Docs: Improve custom formatter docs (#11258)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

[DataBinding] StyleBinding

A style binging ,binds layout and style properties to a model scope. This gives easy access to information like, with, height, position and other styling properties.

remove obsolete files

We need to remove obsolete files, these include af.js, modules/packageManager.js, modules/net.js, modules/l10n.js, modules/ServiceLoader.js, modules/dom.js, modules/physical-touch.js, modules/core-extensions.js, modules/prototypes, viewController.js

ServiceWorker cache is constantly being refreshed

The cache is currently being refreshed each time the SW is initialized. This happens regardless of when the cache was checked the last time and whether the buildId changed, because neither cacheUpdate or staticFileBuildId are ever updated.

[NetworkRequest] support node.js runtime

NetworkRequestshould support the node.js runtime. Therefore, we need to implement a compatibility layer which supports both node HTTP requests as well as XHR. The current interface of NetworkRequest shouldn't be changed.

Fix audit issues

We should make sure to utilize the npm audit and fix all issues.

Implement Serviceworker Framework

Service Worker support is elementary for Application Frame. A proper framework has to be implemented.

The Framework should consist of two parts. A) the service worker has to be embedded into Application Frame, therefore core/ServiceWorker prototype should control the worker registration. The Prototype ServiceWorker then allows to setup the worker it self in a separate module.

[Branding] Project Logo

We currently do not have any kind of logo for the project. Coming up with a logo to represent the library would be a great step forward.

[DataBinding] DOM less testing

Create fake copies of the main methods so applications and systems can be tested without actually interfacing with the DOM.

  • analyze the data binding interface and add all the required methods
  • write fake implementations
  • new interface method to enable test mode
  • write test

[Rendering] support generators as render tasks

By using generators as render tasks, it would be really simple to interrupt these tasks.
The task could simply yield after consuming rendering time and could be continued when ever there is new render time.

replacing self with g_

I really don't like this but in the Mozilla Add-on content-script environment self and window is not the same. Because it is impossible to overwrite self in this context, I have decided to rename the global object from self to g_.

[Rendering] implement time to live and segmentation

Create an interface that is injected into every task. This interface should allow tasks to check how much time they have left. If tasks run out of time and need to interrupt their work, they should be able to notify the render engine by returning false. The engine then will call them again in the next frame. It's in the responsibility of the task to continue where it left off.

[Threads] implement a toolset to work with threads

We need to create a tool set that makes it easy to work with threads / web workers.
This should Include:

  • IOThread prototype
  • main Thread capabilities in the Application prototype
  • thread bootstrapping in the IOThread
  • spawning and managing of additional threads as required
  • providing an API to separate work into different threads.

Redoc

Update and complete code documentation.

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.