mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
tidy up
This commit is contained in:
parent
15a2c101a7
commit
6d9abb77c1
10 changed files with 5 additions and 29 deletions
|
@ -10,8 +10,8 @@ end_of_line = lf
|
|||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
[*.hbs]
|
||||
insert_final_newline = false
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
// https://documize.com
|
||||
|
||||
import Ember from 'ember';
|
||||
import stringUtil from '../utils/string';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
});
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
// https://documize.com
|
||||
|
||||
import Ember from 'ember';
|
||||
import stringUtil from '../utils/string';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
});
|
||||
|
|
|
@ -78,7 +78,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
|||
this.set('showViews', false);
|
||||
this.set('showContributions', false);
|
||||
this.set('showSections', false);
|
||||
|
||||
this.set('showingSections', false);
|
||||
},
|
||||
|
||||
|
@ -87,7 +86,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
|||
this.set('showViews', true);
|
||||
this.set('showContributions', false);
|
||||
this.set('showSections', false);
|
||||
|
||||
this.set('showingSections', false);
|
||||
},
|
||||
|
||||
|
@ -96,7 +94,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
|||
this.set('showViews', false);
|
||||
this.set('showContributions', true);
|
||||
this.set('showSections', false);
|
||||
|
||||
this.set('showingSections', false);
|
||||
},
|
||||
|
||||
|
@ -105,7 +102,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
|||
this.set('showViews', false);
|
||||
this.set('showContributions', false);
|
||||
this.set('showSections', true);
|
||||
|
||||
this.set('showingSections', true);
|
||||
},
|
||||
|
||||
|
|
|
@ -232,19 +232,6 @@ export default Ember.Controller.extend(NotifierMixin, {
|
|||
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() {
|
||||
let self = this;
|
||||
|
|
|
@ -113,7 +113,6 @@ export default Ember.Route.extend(NotifierMixin, {
|
|||
},
|
||||
|
||||
onRemove(moveId) {
|
||||
|
||||
this.get('folderService').remove(this.folder.get('id'), moveId).then(() => { /* jshint ignore:line */
|
||||
this.showNotification("Deleted");
|
||||
this.get('localStorage').clearSessionItem('folder');
|
||||
|
@ -125,8 +124,7 @@ export default Ember.Route.extend(NotifierMixin, {
|
|||
});
|
||||
},
|
||||
|
||||
onShare: function (invitation) {
|
||||
|
||||
onShare: function(invitation) {
|
||||
this.get('folderService').share(this.folder.get('id'), invitation).then(() => {
|
||||
this.showNotification("Shared");
|
||||
});
|
||||
|
|
|
@ -34,7 +34,7 @@ export default Ember.Service.extend({
|
|||
return [this.get('endpoint'), endpoint].join('/');
|
||||
},
|
||||
|
||||
boot(/*requestedUrl*/) {
|
||||
boot(requestedUrl) { // jshint ignore:line
|
||||
let dbhash;
|
||||
if (is.not.null(document.head.querySelector("[property=dbhash]"))) {
|
||||
dbhash = document.head.querySelector("[property=dbhash]").content;
|
||||
|
|
|
@ -54,7 +54,7 @@ module.exports = function(defaults) {
|
|||
app.import('vendor/tooltip.js');
|
||||
app.import('vendor/markdown-it.min.js');
|
||||
app.import('vendor/dragula.js');
|
||||
app.import('vendor/datetimepicker.min.js');
|
||||
app.import('vendor/datetimepicker.min.js');
|
||||
app.import('vendor/hoverIntent.js');
|
||||
app.import('vendor/waypoints.js');
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# http://www.robotstxt.org
|
||||
User-agent: *
|
||||
Disallow:
|
Loading…
Add table
Add a link
Reference in a new issue