1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 21:29:42 +02:00
This commit is contained in:
Harvey Kandola 2016-10-08 20:04:19 -07:00
parent 15a2c101a7
commit 6d9abb77c1
10 changed files with 5 additions and 29 deletions

View file

@ -10,8 +10,8 @@ end_of_line = lf
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
indent_style = space indent_style = tab
indent_size = 2 indent_size = 4
[*.hbs] [*.hbs]
insert_final_newline = false insert_final_newline = false

View file

@ -10,7 +10,6 @@
// https://documize.com // https://documize.com
import Ember from 'ember'; import Ember from 'ember';
import stringUtil from '../utils/string';
export default Ember.Component.extend({ export default Ember.Component.extend({
}); });

View file

@ -10,7 +10,6 @@
// https://documize.com // https://documize.com
import Ember from 'ember'; import Ember from 'ember';
import stringUtil from '../utils/string';
export default Ember.Component.extend({ export default Ember.Component.extend({
}); });

View file

@ -78,7 +78,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
this.set('showViews', false); this.set('showViews', false);
this.set('showContributions', false); this.set('showContributions', false);
this.set('showSections', false); this.set('showSections', false);
this.set('showingSections', false); this.set('showingSections', false);
}, },
@ -87,7 +86,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
this.set('showViews', true); this.set('showViews', true);
this.set('showContributions', false); this.set('showContributions', false);
this.set('showSections', false); this.set('showSections', false);
this.set('showingSections', false); this.set('showingSections', false);
}, },
@ -96,7 +94,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
this.set('showViews', false); this.set('showViews', false);
this.set('showContributions', true); this.set('showContributions', true);
this.set('showSections', false); this.set('showSections', false);
this.set('showingSections', false); this.set('showingSections', false);
}, },
@ -105,7 +102,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
this.set('showViews', false); this.set('showViews', false);
this.set('showContributions', false); this.set('showContributions', false);
this.set('showSections', true); this.set('showSections', true);
this.set('showingSections', true); this.set('showingSections', true);
}, },

View file

@ -232,19 +232,6 @@ export default Ember.Controller.extend(NotifierMixin, {
newPage.id); newPage.id);
}); });
}, },
//
// onAddPage(page) {
// let self = this;
//
// this.get('documentService').addPage(this.get('model.id'), page).then(function (newPage) {
// self.transitionToRoute('document.edit',
// self.get('folder.id'),
// self.get('folder.slug'),
// self.get('model.id'),
// self.get('model.slug'),
// newPage.id);
// });
// },
onDocumentDelete() { onDocumentDelete() {
let self = this; let self = this;

View file

@ -113,7 +113,6 @@ export default Ember.Route.extend(NotifierMixin, {
}, },
onRemove(moveId) { onRemove(moveId) {
this.get('folderService').remove(this.folder.get('id'), moveId).then(() => { /* jshint ignore:line */ this.get('folderService').remove(this.folder.get('id'), moveId).then(() => { /* jshint ignore:line */
this.showNotification("Deleted"); this.showNotification("Deleted");
this.get('localStorage').clearSessionItem('folder'); this.get('localStorage').clearSessionItem('folder');
@ -126,7 +125,6 @@ export default Ember.Route.extend(NotifierMixin, {
}, },
onShare: function(invitation) { onShare: function(invitation) {
this.get('folderService').share(this.folder.get('id'), invitation).then(() => { this.get('folderService').share(this.folder.get('id'), invitation).then(() => {
this.showNotification("Shared"); this.showNotification("Shared");
}); });

View file

@ -34,7 +34,7 @@ export default Ember.Service.extend({
return [this.get('endpoint'), endpoint].join('/'); return [this.get('endpoint'), endpoint].join('/');
}, },
boot(/*requestedUrl*/) { boot(requestedUrl) { // jshint ignore:line
let dbhash; let dbhash;
if (is.not.null(document.head.querySelector("[property=dbhash]"))) { if (is.not.null(document.head.querySelector("[property=dbhash]"))) {
dbhash = document.head.querySelector("[property=dbhash]").content; dbhash = document.head.querySelector("[property=dbhash]").content;

View file

@ -1,3 +0,0 @@
# http://www.robotstxt.org
User-agent: *
Disallow: