New version Total.js v2.1.0 + new products

Thu Oct 13 2016 14:03:35 GMT+0200 (Central European Summer Time)

New version Total.js v2.1.0 + new products

Total.js

We are happy to announce, that new version v2.1.0 of Total.js framework is out. We added some new features and fixed a few bugs. Have a look at changes on GitHub: changes.txt. We also redesigned our website at www.totaljs.com.

Important: We are looking for investors


Rewritten javascript minification algorithm

The algorithm had to be rewritten due to some changes in licensing of the algorithm we used previously. New algorithm is a bit faster and more efective.

News in Schemas: Hooks

Currently we only use Hooks in a project that is not released yet, but it has a great potential in modular aplications. Using Hooks allows You to react when something happens, before/after saving data to db, when some page is to be rendered, etc.

NEWSCHEMA('Test').make(function(schema) {

    schema.define('count', Number);

    schema.addHook('sum', function(error, model, options, callback) {
        model.count += 5;
        callback();
    });

    schema.addHook('sum', function(error, model, options, callback) {
        model.count += 10;
        callback();
    });

    var empty = schema.create();

    empty.$hook('sum', function(err, response) {
        // Output: SchemaInstance { count: 15 }
        console.log(response);
    });
});

Improved sitemaps

Sitemaps now supports localisation in urls. We made some minor changes to improve overall functionality. More informations in docs: https://docs.totaljs.com/latest/en.html#pages~File%3A%20sitemap

Re-introduced and improved streaming of images

Previously removed streaming of images using multipart/x-mixed-replace is now back. Thanks to this it's possible to stream images for example from IP camera which supports MJPEG. Implementation is quite simple.

Examples:

New function F.group()

We added new method F.group(flags, scope), which extends flags in scope for following methods F.route(), F.websocket() and F.file(). The inspiration comes from PHP framework Laravel.

F.group(['#middleware', 'authorize', '*User'], function() {
    F.route('/api/users/',      json_query);
    F.route('/api/users/',      json_create, ['post']);
    F.route('/api/users/{id}/', json_read);    
    F.route('/api/users/{id}/', json_update, ['put']);
    F.route('/api/users/{id}/', json_delete, ['delete']);
});

// the above is same as
F.route('/api/users/',      json_query, ['#middleware', 'authorize', '*User']);
F.route('/api/users/',      json_create, ['post', '#middleware', 'authorize', '*User']);
F.route('/api/users/{id}/', json_read, ['#middleware', 'authorize', '*User']);    
F.route('/api/users/{id}/', json_update, ['put', '#middleware', 'authorize', '*User']);
F.route('/api/users/{id}/', json_delete, ['delete', '#middleware', 'authorize', '*User']);

WebSocket auto-destroy

New method has been added to websocket controller controller.autodestroy([callback]). This method will destroy the instance of controller and release memory if there's no user online.

New open-source products

Blog Engine

As the name suggests Blog Engine is a simple application for blogging. It uses Total.js's NoSQL embedded DB engine (flat file database) so all that's needed to run it is Node.js and Total.js framework. This website also uses Blog Engine.

Dashboard

Dashboard is an application for displaying various information in a nice interface with customisable widgets. Widgets can load data from different sources and display them in all kind of graphs.

CMS

Node.js Content Management System (CMS) has been moved to its own repository on Github. Some news in CMS can be found bellow.

Updates

Eshop

CMS has been removed from Eshop repository as mentioned above. Bellow changes applies to both CMS and Eshop.

  • overall improvements of UI for better user experience
  • simlified code base to improve performance
  • new WYSIWYG editor to make editing pages realy simple

  • Web page: www.totaljs.com/eshop

SuperAdmin

SuperAdmin now supports renewal of Let's encrypt Certificates. We've added more application templates and notifications. And since SuperAdmin uses components from componentator.com the bellow mentioned changes to Componentator applies to SuperAdmin too.

Componentator

Almost all components at componentator.com have been improved to achieve smaller and better code and we've added some animations to improve user experience.


Tags

Follow us

Latest blogs
Total.js Code Editor v1
Fri Dec 07 2018 22:55:13 GMT+0100 (Central European Standard Time)
New release: Total.js v3.1
Fri Dec 07 2018 11:41:40 GMT+0100 (Central European Standard Time)
New CDN for Flow + Dashboard + Flowboard
Sun Nov 04 2018 09:05:03 GMT+0100 (Central European Standard Time)
OpenPlatform v3
Mon Oct 15 2018 10:11:07 GMT+0200 (Central European Summer Time)
New Single Page Application template
Fri Oct 12 2018 21:25:34 GMT+0200 (Central European Summer Time)

Latest comments
Nice tip
Mauro Junior
Thu Sep 20 2018 21:41:02 GMT+0200 (Central European Summer Time)
Not only for Total.js. You can communicate with different websocket servers.
Peter Širka
Mon Apr 23 2018 20:08:20 GMT+0200 (Central European Summer Time)
Marko: you need to create a buffer with this codepage and write byte-to-byte string. I recommend ...
Peter Širka
Mon Apr 23 2018 20:06:21 GMT+0200 (Central European Summer Time)
Is WEBSOCKETCLIENT only for internal ws connections between totaljs apps?
Stelios Stephanua
Fri Mar 16 2018 06:04:22 GMT+0100 (Central European Standard Time)
Total.js is amazing! ;)
Leonardo Hessel
Tue Dec 19 2017 19:51:15 GMT+0100 (Central European Standard Time)

Pixabay


Read more

Total.js Code Editor v1

Products: Try our real-time collaboration tool for Total Developers. Code Editor offers great features for development.

Fri Dec 07 2018 22:55:13 GMT+0100 (Central European Standard Time)
New release: Total.js v3.1

News: I have released a new version of Total.js with bug fixes and with small improvements.

Fri Dec 07 2018 11:41:40 GMT+0100 (Central European Standard Time)
New CDN for Flow + Dashboard + Flowboard

News: I have changed CDN for Flow + Dashboard + Flowboard components to KeyCDN.

Sun Nov 04 2018 09:05:03 GMT+0100 (Central European Standard Time)
OpenPlatform v3

News: I have published a new version of OpenPlatform. New, better, faster, more secure and more simpler.

Mon Oct 15 2018 10:11:07 GMT+0200 (Central European Summer Time)
New Single Page Application template

News: I have published free, beautiful and simple Total.js + jComponent SPA template under MIT license.

Fri Oct 12 2018 21:25:34 GMT+0200 (Central European Summer Time)
Flow: How to find a specific component?

Tutorials: This tutorial shows you a quick way how to find a specific component in the Flow designer.

Mon Sep 03 2018 20:21:30 GMT+0200 (Central European Summer Time)1