Coder Social home page Coder Social logo

convoworks-editor's Introduction

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":"[email protected]",
    "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

convoworks-editor's People

Contributors

mmarcec007 avatar tefached95 avatar tolecar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.