mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-09 10:22:51 +03:00
JS: Converted a few extra services to TS
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Component} from './component';
|
||||
import {Clipboard} from '../services/clipboard';
|
||||
import {Clipboard} from '../services/clipboard.ts';
|
||||
import {
|
||||
elem, getLoading, onSelect, removeLoading,
|
||||
} from '../services/dom';
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import * as Dates from '../services/dates';
|
||||
import {onSelect} from '../services/dom';
|
||||
import {debounce} from '../services/util';
|
||||
import {Component} from './component';
|
||||
import {utcTimeStampToLocalTime} from '../services/dates.ts';
|
||||
|
||||
export class PageEditor extends Component {
|
||||
|
||||
@@ -129,7 +129,7 @@ export class PageEditor extends Component {
|
||||
this.deleteDraftWrap.toggleAttribute('hidden', false);
|
||||
}
|
||||
|
||||
this.draftNotifyChange(`${resp.data.message} ${Dates.utcTimeStampToLocalTime(resp.data.timestamp)}`);
|
||||
this.draftNotifyChange(`${resp.data.message} ${utcTimeStampToLocalTime(resp.data.timestamp)}`);
|
||||
this.autoSave.last = Date.now();
|
||||
if (resp.data.warning && !this.shownWarningsCache.has(resp.data.warning)) {
|
||||
window.$events.emit('warning', resp.data.warning);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import * as DOM from '../services/dom';
|
||||
import {Component} from './component';
|
||||
import {copyTextToClipboard} from '../services/clipboard';
|
||||
import {copyTextToClipboard} from '../services/clipboard.ts';
|
||||
|
||||
export class Pointer extends Component {
|
||||
|
||||
|
Reference in New Issue
Block a user