This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
block(attach).mod(theme islands) | |
{ | |
font-family: Arial, Helvetica, sans-serif; | |
display: inline-block; | |
white-space: nowrap; | |
elem(control) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.attach_theme_islands | |
{ | |
font-family: Arial, Helvetica, sans-serif; | |
display: inline-block; | |
white-space: nowrap; | |
.attach__control | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules.define('auth', ['store', 'server-store'], | |
(provide, store, server) => { | |
const SET_TOKEN = 'AUTH/SET_TOKEN'; | |
const SET_USER_DATA = 'AUTH/SET_USER_DATA'; | |
const DESTROY = 'AUTH/DESTROY'; | |
/** | |
* Редьюсер для аутентификации пользователя | |
* @param {object} state - prevent state | |
* @param {object} action - action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var techs = { | |
// essential | |
fileProvider: require('enb/techs/file-provider'), | |
fileMerge: require('enb/techs/file-merge'), | |
// optimization | |
borschik: require('enb-borschik/techs/borschik'), | |
// css | |
css: require('enb-css/techs/css'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var techs = { | |
// essential | |
fileProvider: require('enb/techs/file-provider'), | |
fileMerge: require('enb/techs/file-merge'), | |
// optimization | |
borschik: require('enb-borschik/techs/borschik'), | |
// css | |
css: require('enb-css/techs/css'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
itemType: 'area', | |
name: 'Площадка 1' | |
items: [ | |
{ | |
itemType: 'object', | |
name: 'Объект 1', | |
currentState: { | |
param1: 24, | |
param2: 499, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules.define('app', | |
['i-bem-dom', 'render', 'store', 'store-router', 'redux-watch'], | |
function(provide, bemDom, render, store, router, watch) { | |
provide(bemDom.declBlock(this.name, { | |
onSetMod: { | |
js: { | |
'inited': function() { | |
setTimeout(() => this.setMod('showed'), 100); | |
const w = watch(store.getState, 'router.app.handler'); | |
this._unstore = store.subscribe(w(handler => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules.define('router', | |
['store', 'store__router', 'router__routes', 'router-base', 'inherit', 'events', 'redux-watch'], | |
(provide, store, storeRouter, routes, RouterBase, inherit, events, watch) => { | |
const base = new RouterBase({routes: routes}); | |
const _ = storeRouter.consts; | |
const Router = inherit(events.Emitter, /** @lends Router.prototype */{ | |
__constructor: function() { | |
const w = watch(store.getState, 'router'); |
OlderNewer