How to use superdesk-core - 10 common examples

To help you get started, we’ve selected a few superdesk-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github superdesk / superdesk-planning / client / spec / event / event_contacts_spec.js View on Github external
it('can create a contact from the event form', () => {
        addContacts();
        nav('/planning');

        // Create the Event with base values
        event = {
            name: 'Test',
            dates: {
                start: {date: '12/12/2045', time: '00:00'},
                end: {time: '00:59'},
            },
        };
        subNavBar.createEvent();
        editor.inputValues(event);

        const contactInput = new ContactInput(editor.editor);

        // Search for Foo Bar
        contactInput.searchContacts('foo');
github superdesk / superdesk-planning / client / components / fields / ContactInfoContainer.jsx View on Github external
render() {
        const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;

        // Provides required services for Contact components
        const services = {
            gettextCatalog: ng.get('gettextCatalog'),
            $filter: ng.get('$filter'),
            datetime: ng.get('datetime'),
        };

        let contents = [
            'div',
            {
                className: 'media-box contacts',
            },
        ];

        contents.push(
            ,
            ,
            
        );
github superdesk / superdesk-planning / client / components / Contacts / ContactEditor / index.jsx View on Github external
render() {
        const {ContactFormContainer, ActionBar} = ContactFormComponents;
        const {currentContact} = this.props;

        // Provides required services for Contact components
        const services = {
            contacts: ng.get('contacts'),
            gettext: ng.get('gettext'),
            notify: ng.get('notify'),
            privileges: ng.get('privileges'),
            metadata: ng.get('metadata'),
        };

        return (
            
                
                    <a>
                        <i>
                    </i></a><i>
                    <h3>{gettext('Add Contact')}</h3>
                </i><i>
                </i>
github superdesk / superdesk-planning / client / components / Contacts / ContactEditor / index.jsx View on Github external
render() {
        const {ContactFormContainer, ActionBar} = ContactFormComponents;
        const {currentContact} = this.props;

        // Provides required services for Contact components
        const services = {
            contacts: ng.get('contacts'),
            gettext: ng.get('gettext'),
            notify: ng.get('notify'),
            privileges: ng.get('privileges'),
            metadata: ng.get('metadata'),
        };

        return (
            
                
                    <a>
                        <i>
                    </i></a><i>
                    <h3>{gettext('Add Contact')}</h3>
                </i><i>
                
                    </i>
github superdesk / superdesk-planning / client / components / fields / ContactInfoContainer.jsx View on Github external
render() {
        const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;

        // Provides required services for Contact components
        const services = {
            gettextCatalog: ng.get('gettextCatalog'),
            $filter: ng.get('$filter'),
            datetime: ng.get('datetime'),
        };

        let contents = [
            'div',
            {
                className: 'media-box contacts',
            },
        ];

        contents.push(
            ,
            ,
            
        );
github superdesk / superdesk-planning / client / components / Contacts / ContactInfoContainer / index.jsx View on Github external
render() {
        const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;

        // Provides required services for Contact components
        const services = {
            gettextCatalog: ng.get('gettextCatalog'),
            $filter: ng.get('$filter'),
            datetime: ng.get('datetime'),
        };

        let contents = [
            'div',
            {
                className: 'media-box contacts',
            },
        ];

        contents.push(
            ,
            ,
            
        );
github superdesk / superdesk-planning / client / components / Contacts / ContactEditor / index.jsx View on Github external
render() {
        const {ContactFormContainer, ActionBar} = ContactFormComponents;
        const {currentContact} = this.props;

        // Provides required services for Contact components
        const services = {
            contacts: ng.get('contacts'),
            gettext: ng.get('gettext'),
            notify: ng.get('notify'),
            privileges: ng.get('privileges'),
            metadata: ng.get('metadata'),
        };

        return (
            
                
                    <a>
                        <i>
                    </i></a><i>
                    <h3>{gettext('Add Contact')}</h3>
                </i><i>
                
                    </i>
github superdesk / superdesk-planning / client / components / Contacts / ContactInfoContainer / index.jsx View on Github external
render() {
        const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;

        // Provides required services for Contact components
        const services = {
            gettextCatalog: ng.get('gettextCatalog'),
            $filter: ng.get('$filter'),
            datetime: ng.get('datetime'),
        };

        let contents = [
            'div',
            {
                className: 'media-box contacts',
            },
        ];

        contents.push(
            ,
            ,
            
        );
github superdesk / superdesk-planning / client / components / Contacts / ContactInfoContainer / index.jsx View on Github external
render() {
        const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;

        // Provides required services for Contact components
        const services = {
            gettextCatalog: ng.get('gettextCatalog'),
            $filter: ng.get('$filter'),
            datetime: ng.get('datetime'),
        };

        let contents = [
            'div',
            {
                className: 'media-box contacts',
            },
        ];

        contents.push(
            ,
            ,
            
        );

        return (
github superdesk / superdesk-planning / client / components / Contacts / ContactEditor / index.jsx View on Github external
render() {
        const {ContactFormContainer, ActionBar} = ContactFormComponents;
        const {currentContact} = this.props;

        // Provides required services for Contact components
        const services = {
            contacts: ng.get('contacts'),
            gettext: ng.get('gettext'),
            notify: ng.get('notify'),
            privileges: ng.get('privileges'),
            metadata: ng.get('metadata'),
        };

        return (
            
                
                    <a>
                        <i>
                    </i></a><i>
                    <h3>{gettext('Add Contact')}</h3>
                </i><i>
                
                    </i>

superdesk-core

![CI](https://github.com/superdesk/superdesk-client-core/workflows/CI/badge.svg) [![Code Climate](https://codeclimate.com/github/superdesk/superdesk-client-core/badges/gpa.svg)](https://codeclimate.com/github/superdesk/superdesk-client-core)

AGPL-3.0
Latest version published 2 years ago

Package Health Score

55 / 100
Full package analysis

Similar packages