1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00

Replaced Material Icons & Boostrap with custom UI framework

This commit is contained in:
Harvey Kandola 2018-12-21 11:15:59 +00:00
parent d0f0a12f2d
commit 61c648a7ac
75 changed files with 116 additions and 1445 deletions

View file

@ -76,7 +76,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.URL}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">View document</a>
<a href="{{.URL}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">View document</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -87,7 +87,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.Url}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
<a href="{{.Url}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -72,7 +72,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.URL}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
<a href="{{.URL}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -82,7 +82,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.URL}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
<a href="{{.URL}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to access Documize</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -79,7 +79,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.URL}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to reset your password</a>
<a href="{{.URL}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Click here to reset your password</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -75,7 +75,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.URL}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Login to Documize</a>
<a href="{{.URL}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Login to Documize</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -81,7 +81,7 @@ background-color: #f6f6f6;
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">
<td class="content-block" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
<a href="{{.URL}}" class="btn-primary" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Go to Documize</a>
<a href="{{.URL}}" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; background: #4ccb6a; margin: 0; padding: 0; border-color: #4ccb6a; border-style: solid; border-width: 10px 20px;">Go to Documize</a>
</td>
</tr>
<tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0; padding: 0;">

View file

@ -1,37 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import stringUtil from '../../utils/string';
import AuthMixin from '../../mixins/auth';
import Notifier from '../../mixins/notifier';
import Component from '@ember/component';
export default Component.extend(AuthMixin, Notifier, {
spaceSvc: service('folder'),
isSpaceAdmin: computed('permissions', function() {
return this.get('permissions.spaceOwner') || this.get('permissions.spaceManage');
}),
actions: {
onOpenTemplate(id) {
if (is.empty(id)) {
return;
}
let template = this.get('templates').findBy('id', id)
let slug = stringUtil.makeSlug(template.get('title'));
this.get('router').transitionTo('document', this.get('space.id'), this.get('space.slug'), id, slug);
}
}
});

View file

@ -1,62 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import $ from 'jquery';
import { inject as service } from '@ember/service';
import Component from '@ember/component';
export default Component.extend({
classNames: ['layout-footer', 'non-printable'],
tagName: 'footer',
appMeta: service(),
showWait: false,
showDone: false,
showMessage: false,
message: '',
init() {
this._super(...arguments);
this.eventBus.subscribe('notifyUser', this, 'processNotification');
},
processNotification(msg) {
if (this.get('isDestroyed') || this.get('isDestroying')) return;
if (msg === 'wait') {
this.set('showWait', true);
this.set('showMessage', false);
this.set('showDone', false);
}
if (msg === 'done') {
$('.progress-done').removeClass('zoomOut').addClass('zoomIn');
this.set('showWait', false);
this.set('showMessage', false);
this.set('showDone', true);
setTimeout(function() {
$('.progress-done').removeClass('zoomIn').addClass('zoomOut');
}, 3000);
}
if (msg !== 'done' && msg !== 'wait') {
$('.progress-notification').removeClass('zoomOut').addClass('zoomIn');
this.set('showWait', false);
this.set('showDone', false);
this.set('showMessage', true);
this.set('message', msg);
setTimeout(function() {
$('.progress-notification').removeClass('zoomIn').addClass('zoomOut');
}, 3000);
}
}
});

View file

@ -1,18 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
// import $ from 'jquery';
import Component from '@ember/component';
export default Component.extend({
classNames: ['layout-content'],
tagName: 'article'
});

View file

@ -1,32 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import Component from '@ember/component';
export default Component.extend({
tagName: 'nav',
classNames: ['layout-sidebar', 'non-printable'],
classNameBindings: ['scrollable:sidebar-scroll'],
scrollable: false,
didInsertElement() {
this._super(...arguments);
// let sb = this.$().overlayScrollbars({ scrollbars: { autoHide: 'leave' }});
// this.set('scrollbars', sb);
},
willDestroyElement() {
this._super(...arguments);
// let sb = this.get('scrollbars');
// sb.destroy();
}
});

View file

@ -1,18 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
// import $ from 'jquery';
import Component from '@ember/component';
export default Component.extend({
classNames: ['layout-body'],
tagName: 'main'
});

View file

@ -1,126 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import $ from 'jquery';
import { notEmpty } from '@ember/object/computed';
import { inject as service } from '@ember/service'
import ModalMixin from '../../mixins/modal';
import Component from '@ember/component';
export default Component.extend(ModalMixin, {
classNames: ['layout-header', 'non-printable'],
tagName: 'header',
folderService: service('folder'),
appMeta: service(),
session: service(),
store: service(),
pinned: service(),
enableLogout: true,
hasPins: notEmpty('pins'),
hasSpacePins: notEmpty('spacePins'),
hasDocumentPins: notEmpty('documentPins'),
hasWhatsNew: false,
newsContent: '',
init() {
this._super(...arguments);
let constants = this.get('constants');
this.pins = [];
if (this.get('appMeta.authProvider') !== constants.AuthProvider.Documize) {
let config = this.get('appMeta.authConfig');
config = JSON.parse(config);
this.set('enableLogout', !config.disableLogout);
}
this.get('session').hasWhatsNew().then((v) => {
this.set('hasWhatsNew', v);
});
let version = this.get('appMeta.version');
let edition = this.get('appMeta.edition').toLowerCase();
let self = this;
let cacheBuster = + new Date();
$.ajax({
url: `https://storage.googleapis.com/documize/news/${edition}/${version}.html?cb=${cacheBuster}`,
type: 'GET',
dataType: 'html',
success: function (response) {
if (self.get('isDestroyed') || self.get('isDestroying')) return;
self.set('newsContent', response);
}
});
},
didInsertElement() {
this._super(...arguments);
if (this.get("session.authenticated")) {
this.eventBus.subscribe('pinChange', this, 'setupPins');
this.setupPins();
}
},
setupPins() {
if (this.get('isDestroyed') || this.get('isDestroying')) return;
this.get('pinned').getUserPins().then((pins) => {
if (this.get('isDestroyed') || this.get('isDestroying')) {
return;
}
this.set('pins', pins);
this.set('spacePins', pins.filterBy('isSpace', true));
this.set('documentPins', pins.filterBy('isDocument', true));
});
},
willDestroyElement() {
this._super(...arguments);
this.eventBus.unsubscribe('pinChange');
},
actions: {
jumpToPin(pin) {
let folderId = pin.get('spaceId');
let documentId = pin.get('documentId');
if (_.isEmpty(documentId)) {
// jump to space
let folder = this.get('store').peekRecord('folder', folderId);
this.get('router').transitionTo('folder', folderId, folder.get('slug'));
} else {
// jump to doc
let folder = this.get('store').peekRecord('folder', folderId);
this.get('router').transitionTo('document', folderId, folder.get('slug'), documentId, 'document');
}
},
onShowWhatsNewModal() {
this.modalOpen("#whats-new-modal", { "show": true });
if (this.get('newsContent.length') > 0) {
this.get('session').seenNewVersion();
this.set('hasWhatsNew', false);
}
},
onBilling() {
if (!this.get('session.isAdmin')) {
return;
}
this.get('router').transitionTo('customize.billing');
}
}
});

View file

@ -37,6 +37,7 @@ export default Component.extend({
// Prepare button class name
let bc = 'dmz-button';
if (this.themed) {
bc += '-theme';
} else {

View file

@ -1,29 +0,0 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import Component from '@ember/component';
export default Component.extend({
tagName: 'span',
value: '',
onClick: null,
actions: {
onCheck() {
if (this.get('onClick') !== null) {
let cb = this.get('onClick');
cb(this.get('value'));
} else {
this.set('selected', !this.get('selected'));
}
}
}
});

View file

@ -273,6 +273,7 @@ let constants = EmberObject.extend({
Authenticate: 'Authenticate',
Cancel: 'Cancel',
Close: 'Close',
Copy: 'Copy',
Delete: 'Delete',
Export: 'Export',
File: 'File',
@ -281,6 +282,7 @@ let constants = EmberObject.extend({
Join: 'Join',
Leave: 'Leave',
Next: 'Next',
Publish: 'Publish',
Remove: 'Remove',
Reset: 'Reset',
Restore: 'Restore',

View file

@ -30,21 +30,16 @@
.background-color-theme-100 { background-color: $theme-100; }
@import "reset.scss";
@import "font.scss";
@import "icon.scss";
@import "mixins.scss";
@import "layout/all.scss";
@import "util.scss";
@import "text.scss";
@import "bootstrap.scss";
@import "view/common.scss";
@import "widget/widget.scss";
@import "ui/all.scss";
@import "view/toolbar.scss";
@import "view/all.scss";
@import "vendor/all.scss";
@import "print.scss";
@import "news.scss";

View file

@ -53,8 +53,6 @@ $input-focus-border-color: map-get($gray-shades, 600);
$input-focus-color: $color-black-light-1;
$input-placeholder-color: map-get($gray-shades, 600);
$input-focus-border-color: map-get($gray-shades, 200);
$input-btn-focus-width: .2rem;
$input-btn-focus-color: rgba($theme-500, .25);
// form labels
.form-group {
@ -96,8 +94,8 @@ $link-hover-decoration: none;
// Optional
@import "node_modules/bootstrap/scss/reboot";
@import "node_modules/bootstrap/scss/grid";
@import "node_modules/bootstrap/scss/buttons";
@import "node_modules/bootstrap/scss/button-group";
// @import "node_modules/bootstrap/scss/buttons";
// @import "node_modules/bootstrap/scss/button-group";
@import "node_modules/bootstrap/scss/forms";
@import "node_modules/bootstrap/scss/custom-forms";
@import "node_modules/bootstrap/scss/input-group";

View file

@ -1,15 +0,0 @@
// .font-fixed-width {
// font-family: 'courier new', courier;
// }
// $font-regular: Helvetica;
// $font-semibold: Helvetica;
// $font-light: Helvetica;
@font-face {
font-family: "Material Icons";
font-style: normal;
font-weight: 400;
src: url("font/icons/MaterialIcons-Regular.eot");
src: local('Material Icons'), local('MaterialIcons-Regular'), url("font/icons/MaterialIcons-Regular.woff2") format('woff2'), url("font/icons/MaterialIcons-Regular.woff") format('woff'), url("font/icons/MaterialIcons-Regular.ttf") format('truetype');
}

View file

@ -3,10 +3,3 @@
@import "headings.scss";
@import "master-internal.scss";
@import "sidebar.scss";
@import "layout-master.scss";
@import "layout-topbar.scss";
@import "layout-sidebar.scss";
@import "layout-footer.scss";
@import "layout-content.scss";

View file

@ -1,32 +0,0 @@
.content-zone {
> .explainer-header {
color: map-get($gray-shades, 600);
font-size: 1.5rem;
font-weight: 500;
}
> .explainer-text {
margin: 3px 0;
padding: 0;
color: map-get($gray-shades, 600);
font-size: 1.1rem;
}
> .explainer-list {
margin: 5px 20px;
padding: 0;
color: map-get($gray-shades, 600);
> li {
margin: 0;
padding: 0;
font-size: 1.1rem;
list-style: square;
}
}
> .explainer-gap {
margin-bottom: 3rem;
}
}

View file

@ -1,51 +0,0 @@
footer {
background-color: $theme-100;
color: map-get($gray-shades, 600);
font-weight: 500;
font-size: 1rem;
padding: 5px 2rem;
}
.footer {
display: flex;
overflow: hidden;
a, a:visited {
@include ease-in();
color: map-get($gray-shades, 600);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
> .progress {
display: inline-block;
text-align: right;
> img {
padding: 0;
margin: 0;
height: 20px;
width: 20px;
}
}
> .progress-done {
background-color: map-get($green-shades, 600);
color: $color-white;
text-align: center;
font-size: 1rem;
height: 20px;
width: 20px;
@include border-radius(20px);
}
> .progress-notification {
display: inline-block;
font-size: 1rem;
color: map-get($green-shades, 600);
font-weight: 500;
}
}

View file

@ -1,153 +0,0 @@
$break-1: 900px;
$break-2: 1200px;
$break-3: 1400px;
$break-4: 1600px;
$break-5: 1800px;
.layout-header, .layout-footer {
flex: 0 0 auto;
width: 100%;
}
.layout-body {
display: flex;
flex: 1 0 auto;
flex-direction: column;
padding: 2rem;
}
.layout-content {
margin-top: 2rem;
}
.layout-sidebar {
order: -1;
background-color: map-get($gray-shades, 200);
padding: 1rem;
}
footer {
margin: auto auto 0 auto;
bottom: 0;
z-index: 888;
@include sticky();
}
@media (min-width: $break-1) {
.layout-body {
flex-direction: row;
}
.layout-sidebar {
flex: 0 0 200px;
width: 200px;
height: calc(100vh - 140px);
@include sticky();
top: 2rem;
}
.layout-content {
flex: 0 1 700px;
padding: 0 2rem;
margin: 0;
max-width: 700px;
}
}
@media (min-width: $break-2) {
.layout-body {
flex-direction: row;
}
.layout-sidebar {
flex: 0 0 300px;
width: 300px;
}
.layout-content {
flex: 0 1 1000px;
margin: 0;
padding: 0 2rem 0 3rem;
max-width: 1000px;
}
}
@media (min-width: $break-3) {
.layout-body {
flex-direction: row;
}
.layout-sidebar {
flex: 0 0 400px;
width: 400px;
}
.layout-content {
flex: 0 1 1000px;
margin: 0;
padding: 0 0 0 3rem;
max-width: 1000px;
}
}
@media (min-width: $break-4) {
.layout-body {
flex-direction: row;
}
.layout-sidebar {
flex: 0 0 450px;
width: 450px;
}
.layout-content {
flex: 0 1 1200px;
margin: 0;
padding: 0 2rem 0 3rem;
max-width: 1200px;
}
}
@media (min-width: $break-5) {
.layout-body {
flex-direction: row;
}
.layout-sidebar {
flex: 0 0 500px;
width: 500px;
}
.layout-content {
flex: 0 1 1300px;
margin: 0;
padding: 0 2rem 0 4rem;
max-width: 1300px;
}
}
@media (max-width: 576px) {
footer {
position: relative;
bottom: auto;
}
}
/**
* Conditional CSS for Edge 12+.
* @link: https://jeffclayton.wordpress.com/2015/04/07/css-hacks-for-windows-10-and-spartan-browser-preview/
*/
@supports (-ms-ime-align:auto) {
// For IE/Edge footer must be at bottom as sticky/flex is not quite supported.
.layout-footer, footer {
position: relative !important;
}
}
/**
* Conditional CSS for IE 8+ (and old Firefox 1.x).
* @link: https://jeffclayton.wordpress.com/2015/04/07/css-hacks-for-windows-10-and-spartan-browser-preview/
*/
@media screen\0 {
/* Conditional IE styles */
}

View file

@ -1,59 +0,0 @@
.sidebar {
padding: 1rem;
}
.sidebar-center {
text-align: center;
}
.sidebar-scroll {
padding: 1rem;
overflow-x: hidden;
overflow-y: auto;
}
.sidebar-white {
background-color: $color-white;
margin: 10px 10px;
@media (min-width: $break-1) {
margin: 10px 10px;
height: calc(100vh - 204px);
overflow-x: hidden;
overflow-y: auto;
}
@media (min-width: $break-2) {
margin: 10px 10px;
}
@media (min-width: $break-3) {
margin: 20px 20px;
}
@media (min-width: $break-4) {
margin: 20px 20px;
}
@media (min-width: $break-5) {
margin: 20px 20px;
}
}
.sidebar-view-switcher {
color: $theme-500;
background-color: map-get($gray-shades, 600);
padding: 5px 20px;
text-align: center;
height: 50px;
> i {
font-size: 2rem;
cursor: pointer;
@include ease-in();
&:hover {
color: $color-link;
}
}
> .divider {
margin: 0 10px;
}
}

View file

@ -1,86 +0,0 @@
#top-bar {
padding: 0 !important;
}
.top-bar {
background-color: $theme-500;
color: $color-white;
padding: 0 2rem;
font-size: 1rem;
height: 50px;
> .items {
margin: 0;
padding: 0;
height: 50px;
> .item {
list-style: none;
display: inline-block;
margin: 0 30px 0 0;
padding: 0;
font-size: 1.2rem;
letter-spacing: 0.1rem;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
> .logo {
height: 35px;
width: 35px;
}
> .link, .link:visited {
@include ease-in();
color: $color-white;
&:hover {
color: darken($color-white, 15%);
}
}
> .selected {
background-color: $theme-500 !important;
color: $theme-500 !important;
padding: 5px 10px !important;
&:hover {
color: darken($theme-500, 15%) !important;
}
}
}
}
> .buttons {
height: 50px;
float: right;
> .button-icon-gap {
margin-left: 20px;
}
}
> .hamburger {
@include ease-in();
@include border-radius(3px);
background-color: $theme-500;
border: 1px solid $theme-100;
> i {
font-size: 1.8rem;
line-height: 2.1rem;
padding: 0px 3px 0px 3px;
color: $theme-100;
cursor: pointer;
vertical-align: sub;
}
&:hover {
background-color: $theme-100;
> i {
color: $theme-500;
}
}
}
}

View file

@ -7,6 +7,15 @@
position: sticky;
}
@mixin card() {
background-color: $color-card;
box-shadow: 1px 1px 3px 0px rgba(211,211,211,1);
&:hover {
background-color: map-get($gray-shades, 100);
}
}
@mixin border-radius($radius)
{
-webkit-border-radius: $radius;
@ -37,32 +46,3 @@
border-bottom-left-radius: $radius;
border-bottom-right-radius: $radius;
}
@mixin ease-in()
{
// -webkit-transition: all 0.30s ease-in-out;
// -moz-transition: all 0.30s ease-in-out;
// -ms-transition: all 0.30s ease-in-out;
// -o-transition: all 0.30s ease-in-out;
// transition: all 0.30s ease-in-out;
}
@mixin content-container($pad-tb: 25px, $pad-lr: 50px) {
@include border-radius(2px);
padding: $pad-tb $pad-lr;
box-shadow: 0 0 0 0.75pt map-get($gray-shades, 200),0 0 3pt 0.75pt map-get($gray-shades, 200);
background-color: $color-white;
}
@mixin card() {
background-color: $color-card;
box-shadow: 1px 1px 3px 0px rgba(211,211,211,1);
&:hover {
background-color: map-get($gray-shades, 100);
}
}
@mixin shadow() {
box-shadow: 1px 1px 3px 0px rgba(211,211,211,1);
}

View file

@ -24,11 +24,11 @@
color: #4c4c4c;
font-size: 14px;
display: inline-block;
vertical-align: text-top;
vertical-align: middle;
}
.section-trello-list-checkbox {
vertical-align: text-top;
vertical-align: middle;
margin-right: 10px;
}

View file

@ -20,7 +20,7 @@
display: block;
}
> .material-icons {
> .dicon {
font-size: 5rem;
color: map-get($gray-shades, 200);
}
@ -33,7 +33,6 @@
margin: 5rem 0;
}
.theme-picker {
display : block;
margin-bottom: 10px;
@ -52,7 +51,6 @@
cursor: default;
border: 7px solid map-get($gray-shades, 300);
@include border-radius(3px);
@include ease-in();
&:hover {
border: 7px solid map-get($gray-shades, 600);

View file

@ -207,7 +207,6 @@
> .item {
margin: 15px 0;
padding: 15px 0;
@include ease-in();
font-size: 1.2rem;
color: $theme-500;
}
@ -255,7 +254,6 @@
}
> .upload-backup-file {
@include ease-in();
margin: 50px 0 10px 0;
> .dz-preview, .dz-processing {

View file

@ -19,7 +19,6 @@
padding: 0;
> .item {
@include ease-in();
@include border-radius(3px);
list-style: none;
cursor: pointer;
@ -65,7 +64,6 @@
padding: 0;
> .item {
@include ease-in();
@include border-radius(3px);
list-style: none;
cursor: pointer;
@ -83,7 +81,6 @@
}
> .actions {
@include ease-in();
position: absolute;
top: 10px;
right: 8px;

View file

@ -5,17 +5,19 @@
width: 100%;
> .document {
@include ease-in();
margin: 0 0 5px 0;
margin: 0 0 15px 0;
padding: 10px 15px;
color: map-get($gray-shades, 600);
color: map-get($gray-shades, 700);
background-color: map-get($gray-shades, 100);
border: 1px solid map-get($gray-shades, 200);
cursor: pointer;
position: relative;
list-style-type: none;
&:hover {
color: $color-black;
> .title, > .space, > .snippet {
color: map-get($gray-shades, 800);
}
}
> .title {
@ -24,7 +26,6 @@
}
> .space {
color : map-get($gray-shades, 600);
font-size: 0.8rem;
font-style: italic;
font-weight: bold;
@ -32,24 +33,26 @@
}
> .snippet {
color : map-get($gray-shades, 600);
font-size: 0.9rem;
}
> .material-icons {
> .dicon {
position: absolute;
top: 10px;
right: 10px;
color: $color-white;
color: map-get($yellow-shades, 800);
font-weight: 700;
font-size: 1.3rem;
}
}
> .selected {
background-color: $color-link !important;
> .title, .space, .snippet {
color: $color-white !important;
}
color: map-get($yellow-shades, 800) !important;
}
background-color: map-get($yellow-shades, 100) !important;
border: 1px solid map-get($yellow-shades, 300) !important;
}
}
}

View file

@ -10,7 +10,7 @@
height: 500px;
overflow-y: auto;
.icon {
.dicon {
margin-right: 5px;
height: 15px;
width: 15px;
@ -20,4 +20,3 @@
.block-editor {
margin-top: 3rem;
}

View file

@ -14,7 +14,6 @@
width: 100%;
> .item {
@include ease-in();
list-style: none;
padding: 10px 0;
margin: 5px 0;
@ -36,7 +35,6 @@
}
> .details {
@include ease-in();
vertical-align: top;
display: inline-block;

View file

@ -1,5 +1,6 @@
.import-zone {
margin: 3rem 1rem;
text-align: center;
.dz-preview, .dz-processing {
display: none !important;

View file

@ -30,7 +30,6 @@
> .document {
@include card();
@include ease-in();
list-style-type: none;
overflow: hidden;
position: relative;
@ -44,7 +43,6 @@
}
> a {
@include ease-in();
display: block;
position: relative;
padding: 15px 20px;

View file

@ -172,6 +172,10 @@
margin: 0;
padding: 10px 15px;
text-align: center;
> .dicon {
color: map-get($gray-shades, 700);
}
}
> td:first-child {

View file

@ -1,30 +0,0 @@
.toolbar {
margin: 30px 0 0 0;
> .links {
display: inlne-block;
> .link, div > .link {
color: map-get($gray-shades, 600);
font-size: 1.1rem;
font-weight: bold;
display: inline-block;
margin-right: 30px;
cursor: pointer;
text-transform: uppercase;
@include ease-in();
&:hover {
color: $color-link;
}
}
> .selected, div > .link {
color: $color-link;
}
}
> .buttons {
float: right;
}
}

View file

@ -2,7 +2,6 @@
color: $color-white;
background-color: map-get($gray-shades, 600);
@include border-radius(20px);
@include ease-in();
padding: 10px 0 0 0;
letter-spacing: 1px;
text-align: center;
@ -14,7 +13,6 @@
color: $color-white;
background-color: map-get($gray-shades, 600);
@include border-radius(100px);
@include ease-in();
height: 100px;
width: 100px;
font-size: 30px;

View file

@ -1,198 +0,0 @@
// Copyright (c) 2015 Documize Inc.
.button-gap {
width: 5px;
margin: 0;
padding: 0;
display: inline-block;
@extend .no-select;
}
.button-icon-white {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: $color-white;
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: darken($color-white, 15%);
}
}
}
.button-icon-gray {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: map-get($gray-shades, 300);
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: darken(map-get($gray-shades, 300), 15%);
}
}
}
.button-icon-gold {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: map-get($yellow-shades, 700);
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: darken(map-get($yellow-shades, 700), 5%);
}
}
}
.button-icon-danger {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: map-get($gray-shades, 300);
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: map-get($red-shades, 700);
}
}
}
.button-icon-blue {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: map-get($gray-shades, 800);
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: map-get($gray-shades, 600);
}
}
}
.button-icon-red {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: map-get($red-shades, 700);
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: map-get($red-shades, 400);
}
}
}
.button-icon-green {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: map-get($green-shades, 600);
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: map-get($green-shades, 700);
}
}
}
.button-icon-black {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: $color-black-light-1;
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: darken($color-black-light-1, 5%);
}
}
}
.button-icon-theme {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: $theme-500;
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: darken($theme-500, 5%);
}
}
}
.button-icon-theme-light {
display: inline-block;
cursor: default;
@include ease-in();
> i {
color: $theme-100;
font-size: 2rem;
@include ease-in();
}
&:hover {
> i {
color: darken($theme-100, 5%);
}
}
}
.button-icon-small {
> i {
font-size: 1.3rem;
}
}
.button-icon-gap {
display: inline-block;
margin-left: 5px;
}

View file

@ -6,7 +6,7 @@
white-space: nowrap;
margin: 0 0 5px 0;
> .material-icons {
> .dicon{
font-size: 1.5rem;
color: map-get($gray-shades, 600);
vertical-align: top;

View file

@ -25,7 +25,6 @@
}
> .text-header {
@include ease-in();
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 5px;
@ -36,7 +35,6 @@
}
> .text {
@include ease-in();
font-size: 1rem;
font-weight: 400;
overflow: hidden;
@ -45,7 +43,7 @@
width: 80%;
}
> .material-icons {
> .dicon {
position: absolute;
top: 10px;
right: 10px;

View file

@ -1,35 +0,0 @@
.ui-radio {
vertical-align: bottom;
cursor: pointer;
font-size: 1.1rem;
overflow: hidden;
white-space: nowrap;
margin: 0 0 5px 0;
> .material-icons {
font-size: 1.5rem;
color: map-get($gray-shades, 600);
vertical-align: top;
margin-right: 5px;
}
> .selected {
color: map-get($gray-shades, 800);
}
&:hover {
color: map-get($gray-shades, 800);
}
> .text {
display: inline-block;
font-size: 1.1rem;
vertical-align: sub;
color: $color-black-light-1;
}
}
.ui-radio-selected {
color: map-get($gray-shades, 800);
}

View file

@ -9,7 +9,7 @@
text-align: center;
background-color: map-get($gray-shades, 300);
> .material-icons {
> .dicons {
font-size: 22px;
margin-top: 20px;
color: map-get($gray-shades, 600);

View file

@ -4,7 +4,6 @@
font-size: 0;
> .tab {
@include ease-in();
@extend .text-truncate;
display: inline-block;
margin: 0;

View file

@ -1,20 +1,4 @@
// Copyright (c) 2015 Documize Inc.
// Material Design icons from https://design.google.com/icons/
.material-icons {
font-family: "Material Icons";
font-weight: normal;
font-style: normal;
font-size: 1.2rem;
display: inline-block;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: "liga";
}
.transition-shadow {
transition: box-shadow 0.25s;
@ -83,11 +67,9 @@
}
@import "widget-avatar";
@import "widget-button";
@import "widget-checkbox";
@import "widget-list-picker";
@import "widget-notification";
@import "widget-radio";
@import "widget-symbol";
@import "widget-table";
@import "widget-tabnav";

View file

@ -6,21 +6,21 @@
<div class="text-header">Documize</div>
<div class="text">Built-in email/password</div>
{{#if isDocumizeProvider}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
<li class="option {{if isKeycloakProvider "selected"}}" {{action "onKeycloak"}}>
<div class="text-header">Keycloak</div>
<div class="text">Via authentication server</div>
{{#if isKeycloakProvider}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
<li class="option {{if isLDAPProvider "selected"}}" {{action "onLDAP"}}>
<div class="text-header">LDAP</div>
<div class="text">Connect to LDAP/ Active Directory</div>
{{#if isLDAPProvider}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
</ul>

View file

@ -224,6 +224,7 @@
</div>
<div class="modal-footer">
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Close dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Delete onClick=(action "onBulkDelete")}}
</div>
</div>

View file

@ -58,7 +58,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
</div>
</div>
</div>

View file

@ -37,7 +37,7 @@
{{item.title}}
</div>
{{#if item.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -66,7 +66,7 @@
{{item.title}}<br>{{item.context}}
</div>
{{#if item.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -76,7 +76,7 @@
{{item.title}}<br>{{item.context}}
</div>
{{#if item.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -87,7 +87,7 @@
{{item.title}}
</div>
{{#if item.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -112,8 +112,9 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" {{action "onCancel"}}>Cancel</button>
<button type="button" class="btn btn-success" {{action "onInsertLink"}}>Insert</button>
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Close dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Insert onClick=(action "onInsertLink")}}
</div>
</div>
</div>

View file

@ -67,9 +67,10 @@
<div class="modal-body">
<div class="form-group">
<label>Destination Document</label>
{{focus-input type="text" value=docSearchFilter class="form-control mb-4" placeholder="a OR b, x AND y, 'phrase mat*'"}}
{{focus-input type="text" value=docSearchFilter class="form-control" placeholder="a OR b, x AND y, 'phrase mat*'"}}
</div>
<div class="my-5 document-copy-move">
{{ui/ui-spacer size=100}}
<div class="document-copy-move">
{{#if emptySearch}}
<p>No matching documents found.</p>
{{/if}}
@ -80,7 +81,7 @@
<div class="space">{{result.space}}</div>
<div class="snippet">{{result.excerpt}}</div>
{{#if result.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -88,8 +89,9 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" onclick={{action "onCopyPage"}}>Copy</button>
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Copy onClick=(action "onCopyPage")}}
</div>
</div>
</div>
@ -104,9 +106,9 @@
<div class="modal-body">
<div class="form-group">
<label>Destination Document</label>
{{focus-input type="text" value=docSearchFilter class="form-control mb-4" placeholder="a OR b, x AND y, 'phrase mat*'"}}
{{focus-input type="text" value=docSearchFilter class="form-control" placeholder="a OR b, x AND y, 'phrase mat*'"}}
</div>
<div class="my-5 document-copy-move">
<div class="document-copy-move">
{{#if emptySearch}}
<p>No matching documents found.</p>
{{/if}}
@ -117,7 +119,7 @@
<div class="space">{{result.space}}</div>
<div class="snippet">{{result.excerpt}}</div>
{{#if result.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -125,8 +127,9 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" onclick={{action "onMovePage"}}>Move</button>
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Copy onClick=(action "onMovePage")}}
</div>
</div>
</div>
@ -150,8 +153,9 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" onclick= {{action "onDeletePage"}}>Delete</button>
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Delete light=true label=constants.Label.Delete onClick=(action "onDeletePage")}}
</div>
</div>
</div>
@ -176,8 +180,9 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" onclick={{action "onSavePageAsBlock"}}>Publish</button>
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Publish onClick=(action "onSavePageAsBlock")}}
</div>
</div>
</div>

View file

@ -56,9 +56,9 @@
{{/ui/ui-dialog}}
{{#if showAdd}}
{{ui/empty-state icon="direct" message="Add documents via + DOCUMENT"}}
{{ui/empty-state icon=constants.Icon.ArrowUp message="Add documents via + DOCUMENT"}}
{{/if}}
{{#if showLockout}}
{{ui/empty-state icon="visibility" message="Space permissions are preventing you from viewing and creating documents"}}
{{ui/empty-state icon=constants.Icon.Preview message="Space permissions are preventing you from viewing and creating documents"}}
{{/if}}

View file

@ -87,29 +87,12 @@
<ul class="options">
{{#each categoryPermissions as |permission|}}
<li class="option {{if permission.selected "selected"}}" {{action "onToggle" permission}}>
<div class="text text-truncate">
{{#if (eq permission.who "role")}}
<span class="button-icon-gray button-icon-small align-middle">
<i class="material-icons">people</i>
</span>
{{else}}
{{#if (eq permission.whoId constants.EveryoneUserId)}}
<span class="button-icon-gray button-icon-small align-middle">
<i class="material-icons">language</i>
</span>
{{else}}
<span class="button-icon-gray button-icon-small align-middle">
<i class="material-icons">person</i>
</span>
{{/if}}
{{/if}}
&nbsp;{{permission.name}}
{{permission.name}}
{{#if (eq permission.whoId session.user.id)}}
<small class="form-text text-muted d-inline-block">(you)</small>
{{/if}}
</div>
{{#if permission.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}"/>
{{/if}}
</li>
{{/each}}

View file

@ -97,7 +97,7 @@
{{#each spacePermissions as |permission|}}
<tr>
<td class="no-wrap no-width">
<i class="material-icons align-top text-secondary cursor-pointer">more_vert</i>
<i class="dicon {{constants.Icon.TriangleSmallDown}} cursor-pointer"/>
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
<div class="menu">
<a class="item" href="#" {{action "onBulkPermission" permission true}}>Grant all</a>
@ -105,25 +105,17 @@
</div>
{{/attach-popover}}
{{#if (eq permission.who "role")}}
<span class="button-icon-blue button-icon-small align-middle">
<i class="material-icons">people</i>
</span>
<span class="color-gray-700">&nbsp;{{permission.name}}
<small class="form-text text-muted d-inline-block">({{permission.members}})</small>
</span>
<i class="dicon {{constants.Icon.People}}"/>
<span class="color-gray-700">&nbsp;{{permission.name}} ({{permission.members}})</span>
{{else}}
{{#if (eq permission.whoId constants.EveryoneUserId)}}
<span class="button-icon-green button-icon-small align-middle">
<i class="material-icons">language</i>
</span>
<i class="dicon {{constants.Icon.World}}"/>
<span class="color-green-700">&nbsp;{{permission.name}}</span>
{{else}}
<span class="button-icon-gray button-icon-small align-middle">
<i class="material-icons">person</i>
</span>
<span class="">&nbsp;{{permission.name}}
<i class="dicon {{constants.Icon.Person}}"/>
<span>&nbsp;{{permission.name}}
{{#if (eq permission.whoId session.user.id)}}
<small class="form-text text-muted d-inline-block">(you)</small>
&nbsp;(you)
{{/if}}
</span>
{{/if}}

View file

@ -1,10 +0,0 @@
<div class="content-zone">
<div class="explainer-header explainer-gap">Templates provide predefined content for new documents</div>
{{#each templates as |item|}}
<div class="mb-5">
<h1>{{item.title}}</h1>
<p>{{item.description}}</p>
<button type="button" class="btn btn-outline-success" onclick={{action "onOpenTemplate" item.id}}>Open</button>
</div>
{{/each}}
</div>

View file

@ -66,10 +66,10 @@
{{#each templates as |item|}}
<li class="option {{if item.selected "selected"}}" {{action "onSelectTemplate" item}}>
<div class="text text-truncate">
{{item.title}}<br>{{item.description}}
{{item.name}}<br>{{item.excerpt}}
</div>
{{#if item.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}
@ -79,6 +79,7 @@
</div>
<div class="modal-footer">
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Add onClick=(action "onAddTemplateDoc")}}
</div>
</div>
@ -90,7 +91,7 @@
<div class="modal-header">Import Files</div>
<div class="modal-body">
<div class="import-zone">
<button id="import-document-button" type="button" class="btn btn-outline-secondary btn-lg btn-block">
<button id="import-document-button" type="button" class="dmz-button-yellow-light text-center">
<br>
Click to select files or drag-drop files
<br><br>
@ -128,6 +129,7 @@
</div>
<div class="modal-footer">
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button-gap}}
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Export onClick=(action "onExport")}}
</div>
</div>

View file

@ -1,23 +0,0 @@
<div class="row no-gutters d-flex align-items-center">
<div class="col d-flex justify-content-start">
<div class="footer">
<a href="https://documize.com?ref=af">Documize {{appMeta.version}}</a>
</div>
{{yield}}
</div>
<div class="col d-flex justify-content-end">
<div class="footer">
{{#if showWait}}
<div class="progress progress-wait animated fadeIn">
<img src="/assets/img/busy-gray.gif">
</div>
{{/if}}
{{#if showDone}}
<div class="progress progress-done animated zoomIn">&check;</div>
{{/if}}
{{#if showMessage}}
<div class="progress-notification animated zoomIn">{{message}}</div>
{{/if}}
</div>
</div>
</div>

View file

@ -1 +0,0 @@
{{yield}}

View file

@ -1,213 +0,0 @@
<div id="top-bar" class="clearfix container-fluid">
<div class="row no-gutters">
<div class="col col-6 col-md-9">
<div class="top-bar d-none d-md-block">
<ul class="items d-flex align-items-center">
<li class="item cursor-auto">
<img class="logo" src="/assets/img/icon-white-64x64.png">
</li>
{{#if (eq appMeta.edition constants.Product.CommunityEdition)}}
<li class="item">
{{#link-to "folders" class=(if (eq selectItem "spaces") "link selected" "link")}}SPACES{{/link-to}}
</li>
{{/if}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#if session.viewDashboard}}
<li class="item">
{{#link-to "dashboard" class=(if (eq selectItem "dashboard") "link selected" "link")}}ACTIONS{{/link-to}}
</li>
{{/if}}
{{#if session.viewAnalytics}}
<li class="item">
{{#link-to "analytics" class=(if (eq selectItem "analytics") "link selected" "link")}}ANALYTICS{{/link-to}}
</li>
{{/if}}
<li class="item">
{{#link-to "folders" class=(if (eq selectItem "spaces") "link selected" "link")}}SPACES{{/link-to}}
</li>
{{/if}}
{{yield}}
</ul>
</div>
<div class="top-bar d-md-none dropdown d-flex align-items-center">
<div class="hamburger" id="top-nav-hamburger" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">menu</i>
</div>
<div class="dropdown-menu" aria-labelledby="top-nav-hamburger">
{{#if (eq appMeta.edition constants.Product.CommunityEdition)}}
{{#link-to "folders" class="dropdown-item"}}Spaces{{/link-to}}
{{/if}}
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#link-to "folders" class="dropdown-item"}}Spaces{{/link-to}}
{{#if session.viewDashboard}}
{{#link-to "dashboard" class="dropdown-item"}}Actions{{/link-to}}
{{/if}}
{{#if session.viewAnalytics}}
{{#link-to "analytics" class="dropdown-item"}}Analytics{{/link-to}}
{{/if}}
{{/if}}
</div>
</div>
</div>
<div class="col col-6 col-md-3">
<div class="top-bar">
<div class="buttons d-flex flex-wrap align-items-center">
{{#unless appMeta.valid}}
<div class="btn-group">
<div class="button-icon-gold animated infinite wobble slow delay-2s" {{action "onBilling"}}>
<i class="material-icons">report</i>
</div>
</div>
<div class="button-icon-gap" />
{{/unless}}
<div class="btn-group">
{{#link-to "search" class="button-icon-white" }}
<i class="material-icons">search</i>
{{/link-to}}
</div>
{{#if session.authenticated}}
{{#if hasPins}}
<div class="button-icon-gap" />
<div class="btn-group">
<div class="button-icon-white" id="user-pins-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">star</i>
</div>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="user-pins-button">
{{#if hasSpacePins}}
<h6 class="dropdown-header">Spaces</h6>
{{#each spacePins as |pin|}}
<a class="dropdown-item" href="#" {{action "jumpToPin" pin}} data-id= {{pin.id}} id="pin-{{pin.id}}">{{pin.pin}}</a>
{{/each}}
{{/if}}
{{#if hasDocumentPins}}
<h6 class="dropdown-header">Documents</h6>
{{#each documentPins as |pin|}}
<a class="dropdown-item" href="#" {{action "jumpToPin" pin}} data-id= {{pin.id}} id="pin-{{pin.id}}">{{pin.pin}}</a>
{{/each}}
{{/if}}
</div>
</div>
{{/if}}
<div class="button-icon-gap" />
<div class="btn-group">
<div class="button-gravatar-white align-text-bottom" id="profile-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{session.user.initials}}
{{#if hasWhatsNew}}
<div class="whats-new-dot" />
{{/if}}
{{#if session.isGlobalAdmin}}
{{#if appMeta.updateAvailable}}
<div class="update-available-dot" />
{{/if}}
{{/if}}
</div>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="profile-button">
{{#if session.isAdmin}}
{{#link-to "customize.general" class="dropdown-item"}}Settings{{/link-to}}
{{#unless appMeta.valid}}
{{#link-to "customize.billing" class="dropdown-item bold-700 color-red-600"}}Update Billing{{/link-to}}
{{/unless}}
<div class="dropdown-divider"></div>
{{/if}}
{{#link-to "profile" class="dropdown-item" }}Profile{{/link-to}}
<div class="dropdown-divider"></div>
{{#if session.isGlobalAdmin}}
{{#if appMeta.updateAvailable}}
{{#link-to "customize.product" class="dropdown-item bold-700 color-yellow-600"}}Update available{{/link-to}}
{{/if}}
{{/if}}
<a href="#" class="dropdown-item {{if hasWhatsNew "color-red-600 bold-700"}}" {{action "onShowWhatsNewModal"}}>What's New</a>
<a href="https://docs.documize.com" target="_blank" class="dropdown-item">Help</a>
<a href="#" class="dropdown-item" data-toggle="modal" data-target="#about-documize-modal" data-backdrop="static">About</a>
{{#if enableLogout}}
<div class="dropdown-divider"></div>
{{#link-to "auth.logout" class="dropdown-item"}}Logout{{/link-to}}
{{/if}}
</div>
</div>
{{else}}
<div class="button-icon-gap" />
<div class="btn-group">
{{#link-to "auth.login" class="button-icon-white"}}
<i class="material-icons">lock_open</i>
{{/link-to}}
</div>
{{/if}}
</div>
</div>
</div>
</div>
</div>
{{#if session.authenticated}}
<div id="whats-new-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-header modal-header-white">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" data-dismiss="modal" aria-label="Close">&times;</span>
</button>
</div>
<div class="modal-content">
<div class="modal-body">
<div class="product-news">
<h2>What's New</h2>
{{{newsContent}}}
<div class="action">
Have an idea? Suggestion or feedback? <a href="mailto:support@documize.com">Get in touch!</a>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="about-documize-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="product-about">
<div class="edition">
Documize {{appMeta.edition}} Edition
</div>
<div class="version">
{{appMeta.version}}
</div>
<div class="version">
Build {{appMeta.revision}}
</div>
<div class="dotcom">
<a href="https://documize.com">https://documize.com</a>
</div>
{{#if (eq appMeta.edition constants.Product.CommunityEdition)}}
<div class="copyright">
&copy; Documize Inc. All rights reserved.
</div>
<div class="license">
<br>
<br>This software (Documize Community Edition) is licensed under
<a href="http://www.gnu.org/licenses/agpl-3.0.en.html">GNU AGPL v3</a>
You can operate outside the AGPL restrictions by purchasing Documize Enterprise Edition and obtaining a commercial license by
contacting
<a href="mailto:sales@documize.com">sales@documize.com</a>
</div>
{{/if}}
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
{{/if}}

View file

@ -13,9 +13,6 @@
<div class="space">{{result.space}}</div>
<div class="snippet">{{result.excerpt}}</div>
{{folder/document-tags documentTags=result.tags}}
{{#if result.template}}
<button type="button" class="mt-3 btn btn-warning text-uppercase bold-700">TEMPLATE</button>
{{/if}}
{{/link-to}}
</li>
{{/each}}

View file

@ -34,25 +34,12 @@
<div class="form-group">
<label>Select Repository</label>
{{ui/ui-list-picker items=config.lists nameField="repo" singleSelect=true}}
{{!-- <div class="github-board">
{{#each config.lists as |list|}}
<div class="github-list" {{action "onListCheckbox" list.id}}>
{{#if list.included}}
<i class="material-icons widget-checkbox checkbox-gray github-list-checkbox">check_box</i>
{{else}}
<i class="material-icons widget-checkbox checkbox-gray github-list-checkbox">check_box_outline_blank</i>
{{/if}}
<span class="github-list-title">{{list.repo}} {{#if list.private}}(private){{/if}}</span>
</div>
{{/each}}
</div> --}}
</div>
</div>
</div>
{{else}}
<div class="col-6">
<div class="btn btn-primary" {{action "auth"}}>Authenticate</div>
<div class="" {{action "auth"}}>Authenticate</div>
</div>
{{/if}}
</div>

View file

@ -14,13 +14,7 @@
{{focus-input id="papertrail-apitoken" type="password" value=config.APIToken class="form-control"}}
<small class="form-text text-muted">API Token (from your profile)</small>
</div>
<div class="btn btn-primary" {{action "auth"}} >
{{#if authenticated}}
Re-Authenticate
{{else}}
Authenticate
{{/if}}
</div>
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Authenticate onClick=(action "auth")}}
</form>
</div>
<div class="grid-cell-2">

View file

@ -22,9 +22,9 @@
{{#each config.lists as |list|}}
<div class="section-trello-list" {{action "onListCheckbox" list.id}}>
{{#if list.included}}
<i class="material-icons widget-checkbox checkbox-gray section-trello-list-checkbox">check_box</i>
<i class="section-trello-list-checkbox dicon {{constants.Icon.CheckboxChecked}}" />
{{else}}
<i class="material-icons widget-checkbox checkbox-gray section-trello-list-checkbox">check_box_outline_blank</i>
<i class="section-trello-list-checkbox dicon {{constants.Icon.Checkbox}}" />
{{/if}}
<span class="trello-list-title">{{list.name}}</span>
</div>
@ -39,8 +39,10 @@
{{/if}}
{{else}}
{{#if session.isGlobalAdmin}}
{{#link-to "customize.integrations" class="btn btn-outline-secondary bold-700"}}
Configure Trello Connector
{{#link-to "customize.integrations"}}
{{ui/ui-button color=constants.Color.Yellow light=true
label="Configure Trello Connector"}}
{{/link-to}}
{{else}}
<p>Your Documize administrator needs to configure Trello before usage.</p>

View file

@ -1,7 +1,8 @@
<div class="col-9">
<h1>Let's setup Documize</h1>
<h3>Database: {{model.dbname}}</h3>
<form class="my-5" {{action "save" on="submit"}}>
{{ui/ui-spacer size=300}}
<form {{action "save" on="submit"}}>
<div class="form-group">
<label>Team</label>
{{focus-input id="siteTitle" type="text" value=model.title class=(if hasEmptyTitleError "form-control is-invalid" "form-control")}}
@ -27,6 +28,7 @@
{{input id="adminPassword" type="password" value=model.password class=(if hasEmptyPasswordError "form-control is-invalid" "form-control")}}
<small class="form-text text-muted">Pick something strong and unique that you don't use anywhere else</small>
</div>
<button type="submit" class="btn btn-success mt-5" {{action "save"}}>{{buttonLabel}}</button>
{{ui/ui-button submit=true color=constants.Color.Green light=true label=buttonLabel onClick=(action "save")}}
</form>
{{ui/ui-spacer size=300}}
</div>

View file

@ -1,4 +1,4 @@
<div class="empty-state">
<i class="material-icons">{{glypth}}</i>
<i class="dicon {{glypth}}"/>
<p>{{message}}</p>
</div>

View file

@ -1,8 +1,8 @@
<div class="ui-checkbox {{if selected "ui-checkbox-selected"}}" {{action "onCheck"}}>
{{#if selected}}
<i class="material-icons selected">check_box</i>
<i class="dicon {{constants.Icon.CheckboxChecked}} selected" />
{{else}}
<i class="material-icons">check_box_outline_blank</i>
<i class="dicon {{constants.Icon.Checkbox}}" />
{{/if}}
<div class="text">{{yield}}</div>
</div>

View file

@ -9,6 +9,7 @@
</div>
<div class="modal-footer">
{{ui/ui-button color=constants.Color.Gray light=true label=cancelCaption dismiss=true onClick=(action "onCancel")}}
{{ui/ui-button-gap}}
{{ui/ui-button color=buttonColor light=true label=confirmCaption onClick=(action "onAction")}}
</div>
</div>

View file

@ -4,7 +4,7 @@
<li class="option {{if item.selected "selected"}}" {{action "onToggle" item}}>
<div class="text text-truncate">{{get item nameField}}</div>
{{#if item.selected}}
<i class="material-icons">check</i>
<i class="dicon {{constants.Icon.Tick}}" />
{{/if}}
</li>
{{/each}}

View file

@ -1,8 +0,0 @@
<div class="ui-radio {{if selected "ui-radio-selected"}}" {{action "onCheck"}}>
{{#if selected}}
<i class="material-icons selected">radio_button_checked</i>
{{else}}
<i class="material-icons">radio_button_unchecked</i>
{{/if}}
<div class="text">{{yield}}</div>
</div>

View file

@ -21,5 +21,5 @@
{{input id="confirmPassword" type="password" value=password.confirmation class=(if hasConfirmPasswordError "form-control is-invalid" "form-control")}}
</div>
{{/if}}
<div class="btn btn-success my-5" {{action "save"}}>Save</div>
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Save onClick=(action "save")}}
</div>