Page token property
This commit is contained in:
1 parent
dd0ec5f203
commit
ef321453ef
2 files changed
+3
No files matched your search
@@ -7,5 +7,6 @@ export function encodePage(page) {
|
||||
url: page.url,
|
||||
data: page.data,
|
||||
preview: encodeImage(page.preview),
|
||||
tokens: page.tokens,
|
||||
}
|
||||
}
|
||||
@@ -42,6 +42,7 @@ export default class Page {
|
||||
public images: any
|
||||
public documents: any
|
||||
public preview: any
|
||||
public tokens: any[]
|
||||
|
||||
constructor(data) {
|
||||
this.id = data.id
|
||||
@@ -54,6 +55,7 @@ export default class Page {
|
||||
this.images = data.images
|
||||
this.documents = data.documents
|
||||
this.preview = data.preview
|
||||
this.tokens = data.tokens
|
||||
}
|
||||
|
||||
plain() {
|
||||
|
||||
Reference in new issue
Block a user