import { ISuperdesk , IExtension , IExtensionActivationResult } from 'superdesk-api' ; import { SamsWorkspaceApp } from './apps/samsWorkspace' ; import { superdeskApi } from './apis' ; const extension = { activate : ( superdesk ) => { const { gettext } = superdesk . localization ; Object . assign ( superdeskApi , superdesk ) ; const result = { contributions : { pages : [ { title : gettext ( 'SAMS' ) , url : '/workspace/sams' , component : SamsWorkspaceApp , showTopMenu : true , showSideMenu : true , addToMainMenu : false , } ] , workspaceMenuItems : [ { label : gettext ( 'SAMS' ) , href : '/workspace/sams' , icon : 'picture' , shortcut : 'ctrl+alt+s' , order : 1000 , privileges : [ 'sams' ] , } ] , } , } ; return Promise . resolve ( result ) ; } , } ; export default extension ;