Beispiel #1
0
var l10n = require('basis.l10n');
var template = require('basis.template');

basis.require('app.basisrequire');
require('app.require');

basis.require('./root/require.js');
basis.require('./root/require-wo-extension');
basis.resource('./root/resource.js');
basis.asset('./root/asset.js');

require('./require.js');
require('./require-wo-extension');
resource('./resource.js');
asset('./asset.js');
l10n.dictionary('./root/explicit.l10n');
l10n.dictionary('./root/implicit.js');
l10n.dictionary(__dirname + '/explicit.l10n');
l10n.dictionary(__dirname + '/implicit.js');
var dict = l10n.dictionary(__filename);
dict.token('test');

// resolve by ns
require('ns');
basis.require('ns.basisrequire');
require('ns.require');

basis.require('ns:ns-basisrequire.js');
require('ns:ns-require.js');

basis.resource('ns:basisresource.js');
Beispiel #2
0
// include all basis.js modules
require('basis.all');

var domUtils = require('basis.dom');
var domEventUtils = require('basis.dom.event');
var Node = require('basis.ui').Node;
var PageControl = require('basis.ui.tabs').PageControl;
var Cloud = require('basis.data.dataset').Cloud;
var appStat = require('app.stat');
var searchIndex = require('app.core').searchIndex;
var router = require('basis.router');
var animation = require('basis.animation');
var l10n = require('basis.l10n');
var VerticalPanelStack = require('basis.ui.panel').VerticalPanelStack;

l10n.setCultureList('en-US/ru-RU ru-RU'); // en-US temporary fallback on ru-RU
//basis.l10n.setCulture('ru-RU');

require('basis.app').create({
  title: 'Basis.js API',
  init: function(){
    var initTime = new Date;

    basis.object.extend(app, this);

    //
    // main part
    //
    var prototypeMapPopup = resource('./app/layout/prototypeMapPopup.js');

    var targetHeader = require('./app/layout/targetHeader.js');
Beispiel #3
0
 getter: function(node){
   return node.data.id
     ? l10n.dictionary('./slide/' + node.data.id + '/description.l10n').token('text')
     : null;
 }