Code Monkey home page Code Monkey logo

redhat_access_angular_ui's Introduction

Build Status

Installation

Run 'npm install' and 'bower install' to pull in dependencies.

Developing

Run npm run server to start the webpack-dev-server Run accessproxy to start the proxy for Red Hat access. In your browser visit https://qa.foo.redhat.com:1337/#/case/list

StrataJS configuration

redhat_access_angular_ui uses stratajs for communication with the Red Hat Customer Portal API and has a few options integrators should set. These should be set prior to boostrapping the AngularJS application.

Set an identifier for auditing:

window.strata.setRedhatClientID('product_name_and_version');  

Use a non-production Red Hat Customer Portal API:

window.strata.setPortalHostname('hostname_with_no_protocol.com');  

Bootstrapping a module inside of another angular app

HTML

<body>
  <div id="main" class="content-area">
    <div ng-non-bindable data-$injector="">
      <div id='redhat-access-cases'>
        <div ui-view autoscroll="false"></div>
      </div>
    </div>
  </div>
</body>

JavaScript

angular.module('RedhatAccess.cases').config(function ($urlRouterProvider, $httpProvider) {
  $urlRouterProvider.otherwise('case/list');
});

angular.element(document).ready(function() {
  angular.bootstrap(document.getElementById("redhat-access-cases"), ['RedhatAccess.cases']);
});

Module configuration

The RedhatAccess.cases module has the following configuration options(They MUST ALL be specified if deviating from the default) :

angular.module('RedhatAccess.cases')
.value('NEW_CASE_CONFIG', {
  'showRecommendations': true,
  'showAttachments': true,
  'showServerSideAttachments': true
})
.value('EDIT_CASE_CONFIG', {
  'showDetails': true,
  'showDescription': true,
  'showBugzillas': true,
  'showAttachments': true,
  'showRecommendations': true,
  'showComments': true,
  'showServerSideAttachments': true,
  'showEmailNotifications': true
});

ITOS Setup

rhc app create -g int_hosted_medium -a pcm -n support https://raw.githubusercontent.com/icflorescu/openshift-cartridge-nodejs/master/metadata/manifest.yml

Local development

npm run server
accessproxy
https://qa.foo.redhat.com/

Translations

To generate translation templates from the code follow the steps below.

  1. Do the full build with

     npm run build
    
  2. Generate the tanslation templates with

     npm run generate-translates
    

This should generate all required files and then scrape all keys for translations. All intermediate files should be deleted afterwards automatically.

Release process

bump-version.sh needs versiony-cli. To install versiony-cli use this command: npm install -g versiony-cli

Run ./bump-version.sh

redhat_access_angular_ui's People

Contributors

gandhikeyur avatar renujhamtani avatar anujsi avatar aritrod avatar ckyrouac avatar jtrantin avatar pbathia avatar lphiri avatar mattnolting avatar engineersamuel avatar jeudy100 avatar connyay avatar kunyan avatar vrathee avatar aksgupta14 avatar danvarga avatar asonawan avatar avijra avatar acehlor avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.