1
0

feat: rename js files to ts

This commit is contained in:
Dominik Pschenitschni
2022-01-07 15:24:30 +01:00
committed by kolaente
parent 4cff3ebee1
commit 15b67136fe
114 changed files with 0 additions and 0 deletions

32
src/models/linkShare.ts Normal file
View File

@ -0,0 +1,32 @@
import AbstractModel from './abstractModel'
import UserModel from './user'
export default class ListModel extends AbstractModel {
constructor(data) {
// The constructor of AbstractModel handles all the default parsing.
super(data)
this.sharedBy = new UserModel(this.sharedBy)
this.created = new Date(this.created)
this.updated = new Date(this.updated)
}
// Default attributes that define the "empty" state.
defaults() {
return {
id: 0,
hash: '',
right: 0,
sharedBy: UserModel,
sharingType: 0,
listId: 0,
name: '',
password: '',
created: null,
updated: null,
}
}
}