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

View File

@@ -60,9 +60,9 @@ class RevisionPreviewModalCtrl implements RevisionPreviewScope {
const originalNote = this.application.findItem(this.uuid) as SNNote; const originalNote = this.application.findItem(this.uuid) as SNNote;
const editorForNote = this.componentManager.editorForNote(originalNote); const editorForNote = this.componentManager.editorForNote(originalNote);
if (editorForNote) { if (editorForNote) {
/** /**
* Create temporary copy, as a lot of componentManager is uuid based, so might * 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 * 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 * editor object has non-copyable properties like .window, which cannot be transfered
*/ */
const editorCopy = await this.application.createTemplateItem( const editorCopy = await this.application.createTemplateItem(

View File

@@ -16,11 +16,11 @@
.sk-app-bar-item-column .sk-app-bar-item-column
div div
a.sk-label.sk-base( a.sk-label.sk-base(
href='https://dashboard.standardnotes.org', href='https://dashboard.standardnotes.org',
rel='noopener', rel='noopener',
target='_blank' target='_blank'
) )
| Your Extended subscription expired on | Your Extended subscription expired on
| {{ctrl.component.dateToLocalizedString(ctrl.component.valid_until)}}. | {{ctrl.component.dateToLocalizedString(ctrl.component.valid_until)}}.
.sk-p .sk-p
| Extensions are in a read-only state. | Extensions are in a read-only state.
@@ -32,8 +32,8 @@
.sk-app-bar-item-column .sk-app-bar-item-column
.sk-button.warning .sk-button.warning
a.sk-label( a.sk-label(
href='https://standardnotes.org/help/41/expired', href='https://standardnotes.org/help/41/expired',
rel='noopener', rel='noopener',
target='_blank' target='_blank'
) Help ) Help
@@ -51,14 +51,14 @@
ul ul
li.sk-p li.sk-p
strong Enable the Hosted option strong Enable the Hosted option
| for this extension by opening the 'Extensions' menu and | for this extension by opening the 'Extensions' menu and
| toggling 'Use hosted when local is unavailable' under this | toggling 'Use hosted when local is unavailable' under this
| extension's options. Then press Reload below. | extension's options. Then press Reload below.
li.sk-p li.sk-p
strong Use the Desktop application. strong Use the Desktop application.
.sk-panel-row .sk-panel-row
.sk-button.info( .sk-button.info(
ng-click='ctrl.reloadStatus()', ng-click='ctrl.reloadStatus()',
ng-if='!ctrl.reloading' ng-if='!ctrl.reloading'
) )
.sk-label Reload .sk-label Reload
@@ -70,16 +70,16 @@
.sk-panel-section-title This extension is not installed correctly. .sk-panel-section-title This extension is not installed correctly.
p Please uninstall {{ctrl.component.name}}, then re-install it. p Please uninstall {{ctrl.component.name}}, then re-install it.
p 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. | version of the app.
| Ensure you are running at least version 2.1 on all platforms. | Ensure you are running at least version 2.1 on all platforms.
iframe( iframe(
data-component-id='{{ctrl.componentUuid}}', data-component-id='{{ctrl.componentUuid}}',
frameborder='0', frameborder='0',
ng-init='ctrl.onIframeInit()' 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-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' 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 | Loading

View File

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