mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-12 07:30:46 +02:00
9e6db89311
Convert file-view components and test files to typescript GitOrigin-RevId: 277aa8fd4f3d06a322dc9d0b372eebefb26fd285
63 lines
1.6 KiB
TypeScript
63 lines
1.6 KiB
TypeScript
import { BinaryFile } from '@/features/file-view/types/binary-file'
|
|
|
|
export const textFile: BinaryFile<'project_file'> = {
|
|
_id: 'text-file',
|
|
id: 'text-file',
|
|
name: 'example.tex',
|
|
linkedFileData: {
|
|
v1_source_doc_id: 'v1-source-id',
|
|
source_project_id: 'source-project-id',
|
|
source_entity_path: '/source-entity-path.ext',
|
|
provider: 'project_file',
|
|
},
|
|
hash: '012345678901234567890123',
|
|
created: new Date(2021, 1, 17, 3, 24).toISOString(),
|
|
type: 'file',
|
|
selected: true,
|
|
}
|
|
|
|
export const imageFile: BinaryFile<'project_file'> = {
|
|
_id: '60097ca20454610027c442a8',
|
|
id: '60097ca20454610027c442a8',
|
|
name: 'file.jpg',
|
|
linkedFileData: {
|
|
source_project_id: 'source-project-id',
|
|
source_entity_path: '/source-entity-path',
|
|
provider: 'project_file',
|
|
},
|
|
hash: '012345678901234567890123',
|
|
created: new Date(2021, 1, 17, 3, 24).toISOString(),
|
|
type: 'file',
|
|
selected: true,
|
|
}
|
|
|
|
export const urlFile: BinaryFile<'url'> = {
|
|
_id: 'url-file',
|
|
id: 'url-file',
|
|
name: 'example.tex',
|
|
linkedFileData: {
|
|
url: 'https://overleaf.com',
|
|
provider: 'url',
|
|
},
|
|
created: new Date(2021, 1, 17, 3, 24).toISOString(),
|
|
hash: 'some-hash',
|
|
type: 'file',
|
|
selected: true,
|
|
}
|
|
|
|
export const projectOutputFile: BinaryFile<'project_output_file'> = {
|
|
_id: 'project-output-file',
|
|
id: 'project-output-file',
|
|
name: 'example.pdf',
|
|
linkedFileData: {
|
|
v1_source_doc_id: 'v1-source-id',
|
|
source_output_file_path: '/source-entity-path.ext',
|
|
provider: 'project_output_file',
|
|
source_project_id: 'source-project-id',
|
|
},
|
|
created: new Date(2021, 1, 17, 3, 24).toISOString(),
|
|
hash: 'some-hash',
|
|
type: 'file',
|
|
selected: true,
|
|
}
|