From c4dfa42087cf6c4101b68fa2181f88850778d76b Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Sat, 5 Nov 2016 14:53:44 -0700 Subject: [PATCH] workspace bar ready! --- README.md | 28 ++-- app/app/components/layout/sidebar-intro.js | 15 ++ app/app/components/layout/zone-navigation.js | 5 +- app/app/pods/customize/template.hbs | 1 + app/app/pods/folders/settings/template.hbs | 6 +- app/app/pods/profile/template.hbs | 1 + app/app/pods/search/template.hbs | 4 +- app/app/router.js | 154 +++++++++--------- app/app/styles/print.scss | 13 +- app/app/styles/view/common.scss | 17 ++ app/app/styles/view/document/sidebar.scss | 44 ++--- app/app/styles/view/layout.scss | 46 ++---- app/app/styles/view/page-documents.scss | 47 +++--- .../styles/widget/widget-sidebar-menu.scss | 4 +- app/app/templates/components/back-to-home.hbs | 2 +- .../components/folder/folders-list.hbs | 6 +- .../components/folder/start-document.hbs | 2 - .../templates/components/general-settings.hbs | 4 - .../components/layout/sidebar-intro.hbs | 7 + .../components/layout/zone-navigation.hbs | 16 +- app/package.json | 98 ++++++----- core/product.go | 4 +- 22 files changed, 270 insertions(+), 254 deletions(-) create mode 100644 app/app/components/layout/sidebar-intro.js create mode 100644 app/app/templates/components/layout/sidebar-intro.hbs diff --git a/README.md b/README.md index f13c0397..9f380067 100644 --- a/README.md +++ b/README.md @@ -8,38 +8,38 @@ The mission is to bring software dev inspired features (refactoring, testing, li ## Latest version -v0.28.2 +v0.29.0 ## OS Support -* Windows -* Linux -* OSX +- Windows +- Linux +- OSX ## Tech stack -* EmberJS (v2.9.1) -* Go (v1.7.3) -* MySQL (v5.7.10+) +- EmberJS (v2.9.1) +- Go (v1.7.3) +- MySQL (v5.7.10+) ## Documentation -* [Install from binary guide](https://developers.documize.com/s/VzO9ZqMOCgABGyfW/installation/d/V16L08ucxwABhZF6/install-documize-from-binary-guide) -* [Install for development guide](https://developers.documize.com/s/VzO9ZqMOCgABGyfW/installation/d/V16LOMucxwABhZF1/install-documize-for-development-guide) -* [Configuration guide](https://developers.documize.com/s/VzO9ZqMOCgABGyfW/installation/d/VzSL8cVZ4QAB2B4Y/configure-documize-guide) +- [Install from binary guide](https://developers.documize.com/s/VzO9ZqMOCgABGyfW/installation/d/V16L08ucxwABhZF6/install-documize-from-binary-guide) +- [Install for development guide](https://developers.documize.com/s/VzO9ZqMOCgABGyfW/installation/d/V16LOMucxwABhZF1/install-documize-for-development-guide) +- [Configuration guide](https://developers.documize.com/s/VzO9ZqMOCgABGyfW/installation/d/VzSL8cVZ4QAB2B4Y/configure-documize-guide) ## Auth0 Integration Documize is compatible with Auth0 identity as a service. -JWT Auth for open source projects +[![JWT Auth for open source projects](https://cdn.auth0.com/oss/badges/a0-badge-dark.png)](https://auth0.com/?utm_source=oss&utm_medium=gp&utm_campaign=oss) ## Word Conversion to HTML -* [Code for ```wordconvert``` utility](https://github.com/documize/community/tree/master/cmd/wordconvert) +- [Code for `wordconvert` utility](https://github.com/documize/community/tree/master/cmd/wordconvert) ## Legal -https://documize.com + -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 . Documize® is a registered trade mark of Documize Inc. +This software (Documize Community Edition) is licensed under GNU AGPL v3 . You can operate outside the AGPL restrictions by purchasing Documize Enterprise Edition and obtaining a commercial license by contacting . Documize® is a registered trade mark of Documize Inc. diff --git a/app/app/components/layout/sidebar-intro.js b/app/app/components/layout/sidebar-intro.js new file mode 100644 index 00000000..cb25c125 --- /dev/null +++ b/app/app/components/layout/sidebar-intro.js @@ -0,0 +1,15 @@ +// Copyright 2016 Documize Inc. . 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 . +// +// https://documize.com + +import Ember from 'ember'; + +export default Ember.Component.extend({ +}); diff --git a/app/app/components/layout/zone-navigation.js b/app/app/components/layout/zone-navigation.js index d9b1e8b3..a4d086a3 100644 --- a/app/app/components/layout/zone-navigation.js +++ b/app/app/components/layout/zone-navigation.js @@ -22,6 +22,7 @@ export default Ember.Component.extend({ appMeta: service(), session: service(), view: { + folder: false, search: false, settings: false, profile: false @@ -44,8 +45,8 @@ export default Ember.Component.extend({ } let route = this.get('router.currentRouteName'); - console.log(route); - this.set('view.settings', (route === 'customize.general') ? true : false); + this.set('view.folder', (is.startWith(route, 'folder')) ? true : false); + this.set('view.settings', (is.startWith(route, 'customize')) ? true : false); this.set('view.profile', (route === 'profile') ? true : false); this.set('view.search', (route === 'search') ? true : false); }, diff --git a/app/app/pods/customize/template.hbs b/app/app/pods/customize/template.hbs index 23ef3e49..4ea7c384 100644 --- a/app/app/pods/customize/template.hbs +++ b/app/app/pods/customize/template.hbs @@ -1,6 +1,7 @@ {{layout/zone-navigation}} {{#layout/zone-sidebar}} + {{layout/sidebar-intro title='Settings' message='Documize application settings'}}