0.26.0 • Published 1 year ago

@zef-dev/convoworks-editor v0.26.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Convoworks Editor

Convoworks Editor is an AngularJs web app for the Conwoworks PHP framework.

Installation

Using NPM

    npm i @zef-dev/convoworks-editor

or using Yarn

    yarn add @zef-dev/convoworks-editor

Peer dependencies

In order to run it, your host application has to include thise libraries (through CDN or build process)

"angular": "^1.8.0",
"angular-animate": "1.8.*",
"angular-cookies": "1.8.*",
"angular-sanitize": "1.8.*",
"bootstrap": "^3.4.1",
"jquery": "^1.12.1",
"jquery-ui-dist": "^1.12.1",
"react": "^16.13.1",
"react-dom": "^16.13.1"

Required implementations

You have to implement your own LoginService which givess access to signed user.

  • LoginService.getUser() - returns promise which will resolve to user where user is represented as
{
    "user_id":"123orABC",
    "name":"Display Name",
    "username":"someusername",
    "email":"user@email.com",
    "amazon_account_linked":false
}
  • LoginService.isSignedIn() - returns boolean

Required constants

You have to provide API base urls as angular constants

    var appModule   =   angular.module('my.app.module.name');
    appModule.constant( 'CONVO_PUBLIC_API_BASE_URL', 'http://localhost/myapp/rest_public/convo/v1');
    appModule.constant( 'CONVO_ADMIN_API_BASE_URL', 'http://localhost/myapp/rest_admin/convo/v1');

Bootstraping

Your app bootrap might look like

    import angular from 'angular';
    import '@uirouter/angularjs';
    
    import LoginService from './login-service';
    import convo from '@zef-dev/convoworks-editor';
    
    const appModule =    angular.module( 'my.convo.implementation', [
      'ui.router',
      convo
    ]).service('LoginService', LoginService);
    
    export default appModule;

For more information, please check out convoworks.com

0.22.23

2 years ago

0.22.22

2 years ago

0.22.21

2 years ago

0.22.20

2 years ago

0.22.19

2 years ago

0.22.16

2 years ago

0.22.15

2 years ago

0.22.18

2 years ago

0.22.17

2 years ago

0.22.14

2 years ago

0.23.4

2 years ago

0.23.3

2 years ago

0.25.0

1 year ago

0.23.2

2 years ago

0.23.1

2 years ago

0.23.0

2 years ago

0.24.3

2 years ago

0.26.0

1 year ago

0.24.2

2 years ago

0.24.1

2 years ago

0.24.0

2 years ago

0.22.12

2 years ago

0.22.11

2 years ago

0.22.13

2 years ago

0.22.7

2 years ago

0.22.6

2 years ago

0.22.10

2 years ago

0.22.9

2 years ago

0.22.8

2 years ago

0.22.5

3 years ago

0.22.4

3 years ago

0.22.3

3 years ago

0.22.2

3 years ago

0.22.1

3 years ago

0.22.0

3 years ago

0.21.2

3 years ago

0.21.1

3 years ago

0.21.0

3 years ago

0.21.0-beta1

3 years ago

0.20.0

3 years ago

0.19.1

3 years ago

0.19.0

3 years ago

0.18.9

3 years ago

0.18.8

3 years ago

0.18.7

3 years ago

0.18.6

3 years ago

0.18.1

3 years ago

0.18.2

3 years ago

0.18.3

3 years ago

0.18.4

3 years ago

0.18.5

3 years ago

0.18.0

3 years ago