1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 05:25:27 +02:00

Revamp document view using new layout

New master page system and UI framework implemented on document view.

Sidebar contains ToC and Attachments.
This commit is contained in:
Harvey Kandola 2018-12-18 19:03:34 +00:00
parent b4b3dbcb4c
commit 7cdf97aa86
27 changed files with 348 additions and 263 deletions

View file

@ -16,7 +16,6 @@ export default Component.extend({
tagName: 'div',
classNames: [],
classNameBindings: ['calcClass'],
where: 'right',
calcClass: computed(function() {
return `dmz-button-gap-${this.where}`;

View file

@ -62,8 +62,8 @@ export default Component.extend({
}),
click(e) {
e.preventDefault();
if (is.not.undefined(this.onClick)) {
e.preventDefault();
this.onClick(e);
}
}

View file

@ -18,17 +18,19 @@ export default Component.extend({
tagName: 'i',
classNames: ['dicon'],
classNameBindings: ['calcClass'],
color: '',
icon: '',
tooltip: '',
selected: false,
calcClass: computed(function() {
calcClass: computed('selected', function() {
let c = '';
let icon = this.icon;
if (this.color !== '') c += this.color + ' ';
if (this.selected === true) c += 'icon-selected' + ' ';
if (icon !== '') c += icon + ' ';
return c.trim();

View file

@ -18,7 +18,6 @@ export default Component.extend({
tagName: 'div',
classNames: ['label'],
classNameBindings: ['calcClass'],
color: '',
label: '',
tooltip: '',