mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08: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 { | class AbstractShacaEntity { | ||||||
|     /** @return {Shaca} */ |     // FIXME: Use right data type once we convert Shaca as well.
 | ||||||
|     get shaca() { |     get shaca(): any { | ||||||
|         if (!shaca) { |         if (!shaca) { | ||||||
|             shaca = require('../shaca.js'); |             shaca = require('../shaca.js'); | ||||||
|         } |         } | ||||||
| @ -11,4 +11,4 @@ class AbstractShacaEntity { | |||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| module.exports = AbstractShacaEntity; | export = AbstractShacaEntity; | ||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| const sql = require('../../sql'); | const sql = require('../../sql'); | ||||||
| const utils = require('../../../services/utils'); | const utils = require('../../../services/utils'); | ||||||
| const AbstractShacaEntity = require('./abstract_shaca_entity.js'); | const AbstractShacaEntity = require('./abstract_shaca_entity'); | ||||||
| 
 | 
 | ||||||
| class SAttachment extends AbstractShacaEntity { | class SAttachment extends AbstractShacaEntity { | ||||||
|     constructor([attachmentId, ownerId, role, mime, title, blobId, utcDateModified]) { |     constructor([attachmentId, ownerId, role, mime, title, blobId, utcDateModified]) { | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| "use strict"; | "use strict"; | ||||||
| 
 | 
 | ||||||
| const AbstractShacaEntity = require('./abstract_shaca_entity.js'); | const AbstractShacaEntity = require('./abstract_shaca_entity'); | ||||||
| 
 | 
 | ||||||
| class SAttribute extends AbstractShacaEntity { | class SAttribute extends AbstractShacaEntity { | ||||||
|     constructor([attributeId, noteId, type, name, value, isInheritable, position]) { |     constructor([attributeId, noteId, type, name, value, isInheritable, position]) { | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| "use strict"; | "use strict"; | ||||||
| 
 | 
 | ||||||
| const AbstractShacaEntity = require('./abstract_shaca_entity.js'); | const AbstractShacaEntity = require('./abstract_shaca_entity'); | ||||||
| 
 | 
 | ||||||
| class SBranch extends AbstractShacaEntity { | class SBranch extends AbstractShacaEntity { | ||||||
|     constructor([branchId, noteId, parentNoteId, prefix, isExpanded]) { |     constructor([branchId, noteId, parentNoteId, prefix, isExpanded]) { | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| const sql = require('../../sql'); | const sql = require('../../sql'); | ||||||
| const utils = require('../../../services/utils'); | const utils = require('../../../services/utils'); | ||||||
| const AbstractShacaEntity = require('./abstract_shaca_entity.js'); | const AbstractShacaEntity = require('./abstract_shaca_entity'); | ||||||
| const escape = require('escape-html'); | const escape = require('escape-html'); | ||||||
| 
 | 
 | ||||||
| const LABEL = 'label'; | const LABEL = 'label'; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran