mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
server-ts: Port share/shaca/abstract_shaca_entity
This commit is contained in:
parent
39e152b0b9
commit
45e3632c6e
@ -1,8 +1,8 @@
|
||||
let shaca;
|
||||
let shaca: any;
|
||||
|
||||
class AbstractShacaEntity {
|
||||
/** @return {Shaca} */
|
||||
get shaca() {
|
||||
// FIXME: Use right data type once we convert Shaca as well.
|
||||
get shaca(): any {
|
||||
if (!shaca) {
|
||||
shaca = require('../shaca.js');
|
||||
}
|
||||
@ -11,4 +11,4 @@ class AbstractShacaEntity {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AbstractShacaEntity;
|
||||
export = AbstractShacaEntity;
|
@ -2,7 +2,7 @@
|
||||
|
||||
const sql = require('../../sql');
|
||||
const utils = require('../../../services/utils');
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity.js');
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
|
||||
class SAttachment extends AbstractShacaEntity {
|
||||
constructor([attachmentId, ownerId, role, mime, title, blobId, utcDateModified]) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity.js');
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
|
||||
class SAttribute extends AbstractShacaEntity {
|
||||
constructor([attributeId, noteId, type, name, value, isInheritable, position]) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity.js');
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
|
||||
class SBranch extends AbstractShacaEntity {
|
||||
constructor([branchId, noteId, parentNoteId, prefix, isExpanded]) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const sql = require('../../sql');
|
||||
const utils = require('../../../services/utils');
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity.js');
|
||||
const AbstractShacaEntity = require('./abstract_shaca_entity');
|
||||
const escape = require('escape-html');
|
||||
|
||||
const LABEL = 'label';
|
||||
|
Loading…
x
Reference in New Issue
Block a user