superdesk/superdesk-client-core

View on GitHub
scripts/extensions/helloWorld/src/extension.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {IExtension} from 'superdesk-api';
import {superdesk} from './superdesk';

const {gettext} = superdesk.localization;

const str = gettext('Hello world');

const extension: IExtension = {
    activate: () => {
        superdesk.ui.alert(str);

        return Promise.resolve({});
    },
};

export default extension;