diff --git a/src/Sources/Sources.es6 b/src/Sources/Sources.es6 new file mode 100644 index 0000000..c250a4d --- /dev/null +++ b/src/Sources/Sources.es6 @@ -0,0 +1,40 @@ +import Tool from '../DevTools/Tool.es6' + +require('./Sources.scss'); + +export default class Sources extends Tool +{ + constructor() + { + super(); + this.name = 'sources'; + + this._data = { + type: '' + }; + + this._loadTpl(); + } + init($el) + { + super.init($el); + + this._render(); + } + set(data) + { + this._data = data; + } + _loadTpl() + { + this._emptyTpl = require('./empty.hbs'); + } + _render() + { + var data = this._data; + + var tpl = this._emptyTpl; + + this._$el.html(tpl(data)); + } +} \ No newline at end of file diff --git a/src/Sources/Sources.scss b/src/Sources/Sources.scss new file mode 100644 index 0000000..c9fe349 --- /dev/null +++ b/src/Sources/Sources.scss @@ -0,0 +1,18 @@ +@import "../variable"; + +.dev-tools { .tools { + .sources { + .empty { + width: 100%; + height: 100%; + .content { + position: absolute; + top: 50%; + left: 0; + width: 100%; + text-align: center; + transform: translate3d(0, -50%, 0); + } + } + } +} } \ No newline at end of file diff --git a/src/Sources/Sourees.hbs b/src/Sources/Sourees.hbs new file mode 100644 index 0000000..e69de29 diff --git a/src/Sources/empty.hbs b/src/Sources/empty.hbs new file mode 100644 index 0000000..0d61322 --- /dev/null +++ b/src/Sources/empty.hbs @@ -0,0 +1,5 @@ +