Skip to content

Commit

Permalink
feat: add etherpad types (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Chau authored Jan 6, 2023
1 parent 08cadf0 commit 1732d0b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/constants/itemType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum ItemType {
S3_FILE = 's3File',
SHORTCUT = 'shortcut',
H5P = 'h5p',
ETHERPAD = 'etherpad',
}

export type FileItemType = ItemType.S3_FILE | ItemType.LOCAL_FILE;
1 change: 1 addition & 0 deletions src/services/etherpad/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './interfaces/etherpad';
3 changes: 3 additions & 0 deletions src/services/etherpad/interfaces/etherpad.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface Etherpad {
padUrl: string;
}
1 change: 1 addition & 0 deletions src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export * from './app';
export * from './database';
export * from './file';
export * from './h5p';
export * from './etherpad';
export * from './item-memberships';
export * from './items';
export * from './members';
Expand Down
4 changes: 1 addition & 3 deletions src/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,4 @@ export const buildItemLinkForBuilder: BuildItemLinkFunc = (
* @returns embedded link to display a pdf
*/
export const buildPdfViewerLink = (assetsUrl?: string) =>
assetsUrl
? `https://${assetsUrl}/pdf-viewer/web/viewer.html?file=`
: '';
assetsUrl ? `https://${assetsUrl}/pdf-viewer/web/viewer.html?file=` : '';

0 comments on commit 1732d0b

Please sign in to comment.