feat: add TickTick migrator support

This commit is contained in:
kolaente 2022-10-09 22:42:24 +02:00
parent 35155034e0
commit 1af4f7811a
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,6 @@ export default class AbstractMigrationFileService extends AbstractService {
}
migrate(file: IFile) {
console.log(file)
return this.uploadFile(
this.paths.create,
file,

View File

@ -0,0 +1 @@
<svg viewBox="0 0 88 88" xmlns="http://www.w3.org/2000/svg" class="logo_1OKcB"><g fill="none" fill-rule="evenodd"><rect></rect><path d="M30.755 33.292l-7.34 8.935L40.798 56.48a5.782 5.782 0 008.182-.854l31.179-38.93-9.026-7.228L43.614 43.83l-12.86-10.538z" fill="#FFB000"></path><path d="M44 78.1C25.197 78.1 9.9 62.803 9.9 44S25.197 9.9 44 9.9V0C19.738 0 0 19.738 0 44s19.738 44 44 44 44-19.738 44-44h-9.9c0 18.803-15.297 34.1-34.1 34.1" fill="#4772FA"></path></g></svg>

After

Width:  |  Height:  |  Size: 471 B

View File

@ -3,6 +3,7 @@ import todoistIcon from './icons/todoist.svg?url'
import trelloIcon from './icons/trello.svg?url'
import microsoftTodoIcon from './icons/microsoft-todo.svg?url'
import vikunjaFileIcon from './icons/vikunja-file.png?url'
import tickTickIcon from './icons/ticktick.svg?url'
export interface Migrator {
id: string
@ -42,4 +43,10 @@ export const MIGRATORS: IMigratorRecord = {
icon: vikunjaFileIcon,
isFileMigrator: true,
},
ticktick: {
id: 'ticktick',
name: 'TickTick',
icon: tickTickIcon as string,
isFileMigrator: true,
}
}