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
Flow v6 is here!
Thu Mar 07 2019 11:53:54 GMT+0100 (Central European Standard Time)
A critical security fix
Wed Feb 13 2019 22:15:39 GMT+0100 (Central European Standard Time)
New release: Total.js v3.2
Wed Feb 13 2019 22:14:39 GMT+0100 (Central European Standard Time)
Total.js Wiki v2
Fri Jan 04 2019 22:15:01 GMT+0100 (Central European Standard Time)
Total Year 2018
Thu Jan 03 2019 21:14:00 GMT+0100 (Central European Standard 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

Flow v6 is here!

News: We have released a new version of Flow. This version brings great new features and UI improvements.

Thu Mar 07 2019 11:53:54 GMT+0100 (Central European Standard Time)
A critical security fix

News: We were notified about the critical security bug in Total.js framework. Read a prevention.

Wed Feb 13 2019 22:15:39 GMT+0100 (Central European Standard Time)
New release: Total.js v3.2

News: This new release brings a critical security fix and small new improvements. Update Total.js now.

Wed Feb 13 2019 22:14:39 GMT+0100 (Central European Standard Time)
Total.js Wiki v2

Products: I have released a new version of Total.js Wiki. New version brings new improvements.

Fri Jan 04 2019 22:15:01 GMT+0100 (Central European Standard Time)
Total Year 2018

Business: Last year was perfect for Total.js platform. Total.js platform grows up and it has great results.

Thu Jan 03 2019 21:14:00 GMT+0100 (Central European Standard Time)
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)