This file contains hidden or 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
/** | |
* @lib Dig Безопасная работа с json | |
* @ver 0.2.2 | |
* @url github.yandex-team.ru/kovchiy/dig | |
*/ | |
'use strict'; | |
var Dig |
This file contains hidden or 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 DocConsole Консоль с документацией к блокам | |
* @dep Locale Control | |
* @tag tools | |
* @ext locale | |
*/ | |
Beast.decl({ | |
DocConsole: { | |
inherits: 'Locale', | |
mod: { |
This file contains hidden or 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 Snippet Сниппет поисковой выдачи | |
* @dep typo Link ReadMore HorizontalScroll Button thumb | |
* @tag snippet | |
* @ext adapter typo | |
*/ | |
Beast.decl({ | |
Snippet: { | |
inherits: ['Typo', 'Adapter'], | |
mod: { |
This file contains hidden or 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 Serp Поисковая выдача | |
* @dep grid head divider | |
* @tag serp | |
* @ext grid | |
*/ | |
Beast.decl({ | |
Serp: { | |
inherits:'Grid', | |
mod: { |
This file contains hidden or 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
/** | |
* @lib Ajax Асинхронные клиентские запросы | |
* @ver 0.1.0 | |
* @arg {object} options {url:string, data:object, success:function, error:function, jsonp:boolean|string} | |
*/ | |
function Ajax (options) { | |
var qs = '' | |
if (options.data) { | |
for (var key in options.data) { | |
qs += '&'+ key +'='+ encodeURIComponent(options.data[key]) |
This file contains hidden or 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
Beast.decl({ | |
Counter: { | |
abstract:true, | |
countOn: { | |
// event: token | |
}, | |
param: { | |
counterData: { | |
/* NDA */ | |
} |
This file contains hidden or 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
GridDefine(colNum, col, gap, marginX, marginY = marginX * 1.5) | |
.Grid | |
gridWidth = colNum * col + (colNum - 1) * gap | |
inCols(prop = '', num, extra = 0) | |
{prop} num * col + (num - 1) * gap + extra | |
for i in 1..colNum | |
&_col_{i} | |
inCols(width, i) |
This file contains hidden or 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
function ConvertLinks(linksArray) { | |
return { | |
elem: 'group', | |
content: linksArray.map(function(item) { | |
return { | |
block: 'menu-item', | |
mods: { type: 'link', userSettingsItem: true }, | |
content: { | |
block: 'link', | |
url: item.url, |