-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix wrong feedback when no secret is given for apps * Temporary fix for onlyoffice on canary * Fix edit with feature
- Loading branch information
1 parent
8577d43
commit f39bad5
Showing
9 changed files
with
95 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
twake/frontend/src/app/features/applications/hooks/temp-fix.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { Application } from '../types/application'; | ||
|
||
export const replaceOnlyOfficeForCanary = (applications: Application[]) => { | ||
return applications.map(application => { | ||
if ( | ||
application?.identity?.code === 'only_office' && | ||
!application.display?.twake?.files?.editor?.preview_url?.includes('plugins.twake.app') | ||
) { | ||
return { | ||
...application, | ||
display: { | ||
twake: { | ||
version: 1, | ||
files: { | ||
editor: { | ||
preview_url: 'https://plugins.twake.app/plugins/onlyoffice/?preview=1', | ||
edition_url: 'https://plugins.twake.app/plugins/onlyoffice/', | ||
empty_files: [ | ||
{ | ||
url: 'https://plugins.twake.app/plugins/onlyoffice/assets/empty.docx', | ||
filename: 'Untitled.docx', | ||
name: 'ONLYOFFICE Word Document', | ||
}, | ||
{ | ||
url: 'https://plugins.twake.app/plugins/onlyoffice/assets/empty.xlsx', | ||
filename: 'Untitled.xlsx', | ||
name: 'ONLYOFFICE Excel Document', | ||
}, | ||
{ | ||
url: 'https://plugins.twake.app/plugins/onlyoffice/assets/empty.pptx', | ||
filename: 'Untitled.pptx', | ||
name: 'ONLYOFFICE PowerPoint Document', | ||
}, | ||
], | ||
extensions: [ | ||
'xlsx', | ||
'pptx', | ||
'docx', | ||
'xls', | ||
'ppt', | ||
'doc', | ||
'odt', | ||
'ods', | ||
'odp', | ||
'txt', | ||
'html', | ||
'csv', | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
} | ||
return application; | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters