- дерево слоев
- скролится на любое количество
- редактор кода прототипа
- загрузка кода
- подсветка
- автокомплит
- хоткей
- превью
- загрузка обвязкой кода в айфрейм
- обновление кода внутри айфрейма
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
{ | |
"plugins": [ | |
["bem-import", { | |
"levels": [ | |
"./common.blocks", | |
"./desktop.blocks" | |
], | |
"techs": ["js", "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
import {decl} from 'bem-react-core'; | |
import ddsl from 'ddsl-react'; | |
const bemhtml = ddsl(function() { | |
block('omg')( | |
tag()('span'), | |
attrs()({ href : '//yandex.ru' }) | |
); | |
}); |
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
'use strict'; | |
// ------------------------------------------ | |
// RUNTIME | |
const DDSL = require('./lib/ddsl'); | |
const React = require('react'); | |
const ReactDOM = require('react-dom/server'); | |
const runtime = new DDSL({ |
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
--- | |
stability: locked | |
# базовые поля блока | |
bemjson: | |
text: "Кнопка" | |
id: "the-id" | |
name: "the-name" | |
# состояния компонента |
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
'use strict'; | |
const path = require('path'); | |
module.exports = { | |
entry: './index.js', | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, |
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
'use strict'; | |
const ifetch = require('isomorphic-fetch'); | |
ifetch.Promise = require('bluebird'); | |
module.exports = function fetch(req) { | |
const url = `http://${window.location.hostname}:${window.location.port}${req.path}`; | |
return ifetch(url, { | |
method: req.method || 'POST', | |
body: JSON.stringify(req.body) |
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
const goods = [ | |
{ title: 'Мопед', color: '#05668D' }, | |
{ title: 'Велик', color: '#028090' }, | |
{ title: 'Тачила', color: '#00A896' }, | |
{ title: 'Водокачка', color: '#02C39A' }, | |
{ title: 'Платье', color: '#F0F3BD' }, | |
{ title: 'Штора', color: '#AEF6C7' }, | |
{ title: 'Люстра', color: '#5B8266' }, | |
{ title: 'Пес', color: '#294936' } | |
]; |
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
const fs = require('fs'); | |
const parse = require('csv-parse'); | |
const all = fs.readFileSync('./all.csv'); | |
const confirm = fs.readFileSync('./confirm.csv'); | |
parse(all, {}, (err, allMembers) => { | |
parse(confirm, {}, (err, confirmedMembers) => { | |
const confirmedMembersEmails = {}; | |
confirmedMembers.forEach(member => { |