style: remove whitespace

This commit is contained in:
Baptiste Grob
2020-09-14 16:13:46 +02:00
parent c472891d78
commit ae6ef50f88
4 changed files with 26 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ class HistoryMenuCtrl extends PureViewCtrl<{}, HistoryState> implements HistoryS
fetchingRemoteHistory: false
};
}
$onInit() {
super.$onInit();
this.reloadSessionHistory();
@@ -67,7 +67,7 @@ class HistoryMenuCtrl extends PureViewCtrl<{}, HistoryState> implements HistoryS
async openSessionRevision(revision: ItemHistoryEntry) {
this.application.presentRevisionPreviewModal(
revision.payload.uuid,
revision.payload.uuid,
revision.payload.content
);
}

View File

@@ -60,9 +60,9 @@ class RevisionPreviewModalCtrl implements RevisionPreviewScope {
const originalNote = this.application.findItem(this.uuid) as SNNote;
const editorForNote = this.componentManager.editorForNote(originalNote);
if (editorForNote) {
/**
* Create temporary copy, as a lot of componentManager is uuid based, so might
* interfere with active editor. Be sure to copy only the content, as the top level
/**
* Create temporary copy, as a lot of componentManager is uuid based, so might
* interfere with active editor. Be sure to copy only the content, as the top level
* editor object has non-copyable properties like .window, which cannot be transfered
*/
const editorCopy = await this.application.createTemplateItem(

View File

@@ -16,11 +16,11 @@
.sk-app-bar-item-column
div
a.sk-label.sk-base(
href='https://dashboard.standardnotes.org',
rel='noopener',
href='https://dashboard.standardnotes.org',
rel='noopener',
target='_blank'
)
| Your Extended subscription expired on
| Your Extended subscription expired on
| {{ctrl.component.dateToLocalizedString(ctrl.component.valid_until)}}.
.sk-p
| Extensions are in a read-only state.
@@ -32,8 +32,8 @@
.sk-app-bar-item-column
.sk-button.warning
a.sk-label(
href='https://standardnotes.org/help/41/expired',
rel='noopener',
href='https://standardnotes.org/help/41/expired',
rel='noopener',
target='_blank'
) Help
@@ -51,14 +51,14 @@
ul
li.sk-p
strong Enable the Hosted option
| for this extension by opening the 'Extensions' menu and
| toggling 'Use hosted when local is unavailable' under this
| for this extension by opening the 'Extensions' menu and
| toggling 'Use hosted when local is unavailable' under this
| extension's options. Then press Reload below.
li.sk-p
strong Use the Desktop application.
.sk-panel-row
.sk-button.info(
ng-click='ctrl.reloadStatus()',
ng-click='ctrl.reloadStatus()',
ng-if='!ctrl.reloading'
)
.sk-label Reload
@@ -70,16 +70,16 @@
.sk-panel-section-title This extension is not installed correctly.
p Please uninstall {{ctrl.component.name}}, then re-install it.
p
| This issue can occur if you access Standard Notes using an older
| This issue can occur if you access Standard Notes using an older
| version of the app.
| Ensure you are running at least version 2.1 on all platforms.
iframe(
data-component-id='{{ctrl.componentUuid}}',
frameborder='0',
data-component-id='{{ctrl.componentUuid}}',
frameborder='0',
ng-init='ctrl.onIframeInit()'
ng-attr-id='component-iframe-{{ctrl.componentUuid}}',
ng-attr-id='component-iframe-{{ctrl.componentUuid}}',
ng-if='ctrl.componentUuid && !ctrl.reloading && ctrl.componentValid',
ng-src='{{ctrl.getUrl() | trusted}}',
ng-src='{{ctrl.getUrl() | trusted}}',
sandbox='allow-scripts allow-top-navigation-by-user-activation allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-modals allow-forms allow-downloads'
)
| Loading

View File

@@ -8,29 +8,29 @@
) Options
div(ng-if='ctrl.showSessionOptions')
menu-row(
action='ctrl.clearItemSessionHistory()'
action='ctrl.clearItemSessionHistory()'
label="'Clear note local history'"
)
menu-row(
action='ctrl.clearAllSessionHistory()'
action='ctrl.clearAllSessionHistory()'
label="'Clear all local history'"
)
menu-row(
action='ctrl.toggleSessionHistoryAutoOptimize()'
action='ctrl.toggleSessionHistoryAutoOptimize()'
label="(ctrl.autoOptimize ? 'Disable' : 'Enable') + ' auto cleanup'")
.sk-sublabel
| Automatically cleans up small revisions to conserve space.
menu-row(
action='ctrl.toggleSessionHistoryDiskSaving()'
action='ctrl.toggleSessionHistoryDiskSaving()'
label="(ctrl.diskEnabled ? 'Disable' : 'Enable') + ' saving history to disk'"
)
.sk-sublabel
| Saving to disk is not recommended. Decreases performance and increases app
| Saving to disk is not recommended. Decreases performance and increases app
| loading time and memory footprint.
menu-row(
ng-repeat='revision in ctrl.sessionHistoryEntries track by $index'
action='ctrl.openSessionRevision(revision);'
label='revision.previewTitle()'
action='ctrl.openSessionRevision(revision);'
label='revision.previewTitle()'
)
.sk-sublabel.opaque(ng-class='ctrl.classForSessionRevision(revision)')
| {{revision.previewSubTitle()}}
@@ -42,7 +42,7 @@
) Options
div(ng-if='ctrl.showRemoteOptions')
menu-row(
action='ctrl.fetchRemoteHistory()'
action='ctrl.fetchRemoteHistory()'
label="'Refresh'"
disabled="ctrl.isfetchingRemoteHistory"
spinner-class="ctrl.isfetchingRemoteHistory ? 'info' : null")