Giter Club home page Giter Club logo

giji-frontend's Introduction

Troposphere

Installation

Troposphere's backend

Install the required python packages

pip install -r requirements.txt

A separate environment is provided for developers

pip install -r dev_requirements.txt

The *requirements.txt files are generated using pip-tools. See REQUIREMENTS.md for instructions on using pip-tools and upgrading packages in Troposphere.

Development

Quick feedback

The webpack-dev-server will serve new bundles to a browser when files change.

It has the following features:

  • Changes result in a browser refresh (you know they are propagated)
  • The bundle is served from memory not disk
  • Small changes result in small compiles

Currently troposphere uses nginx to serve its assets. This makes it trivial to serve these assets from the dev server.

Update your nginx definition (at /etc/nginx/locations/tropo.conf)

location /assets {
    # This just needs to point to the dev server which runs on 8080
    proxy_pass https://server.example.com:8080;
}

Finally start the dev server:

npm run serve -- --host server.example.com --port 8080 --https  --cert /path/to/cert --key /path/to/key

If you would like to enable CSS hot reloading, prefix the npm command like so:

CSS_IN_JS=true npm run serve ...

By default we extract CSS from the larger bundle into a separate asset that is parsed/loaded before any js, this ensures that the content of our html will be styled the first time it is shown. However, CSS hot reloading only works if the CSS is shipped in the JS. The caveat is that html content is shipped without initial styling.

Note: CSS_IN_JS is completely ignored in a production environment.

Linting

See LINT.md

Coding Style

  • Use an EditorConfig plugin to leverage the project's .editorconfig

Git Hooks

The hooks below give helpful hints about common tasks like migrating, or installing dependencies.

Link the following hook to get these hints after pulling in code. From the root of the project:

ln -fs ../../extras/hooks/post-merge.hook .git/hooks/post-merge

giji-frontend's People

Contributors

jchansen avatar lenards avatar steve-gregory avatar prosif avatar cdosborn avatar tharon-c avatar cjlarose avatar xuhang57 avatar jmatt avatar amercer1 avatar julianpistorius avatar mlent avatar amit4111989 avatar robax avatar

Watchers

George Silvis, III avatar Orran Krieger avatar James Cloos avatar  avatar Peter Desnoyers avatar Kristi Nikolla avatar  avatar  avatar

giji-frontend's Issues

Rework: Page Unavailable

Before SSO, we need to rework the Page Unavailable a bit to get rid of the login link on that page.

Project Resources Sync-up

Our users may have resources launched in the Horizon previously before they use GIJI. Need to figure out a good way to force sync-up between Horizon and GIJI

Show users a list of available projects right after they sign in

Most of the times users don't remember their project name, or they might not know the exact spelling. One workaround for this could be is to split the login process into 2 parts.

  1. Users first login with their username and password.
  2. Then Giji fetches the list of projects they have access to, and then allows users to select one to continue to log in. (Perhaps, this could be set to something default after first time login).

This is just a design perspective; don't know how difficult the implementation would be.

No projects

After logging in to giji.massopen.cloud and going to Marketplace > MOC OpenStack > View Projects and Instances I get a screen saying that I have 0 Projects. See screen 1 .

When going to launch an instance. Attempting to launch an instance doesn't either succeed or fail, just hangs after clicking the launch instance button. See screen 2 below.

screen shot 2017-11-27 at 12 07 21 pm

screen shot 2017-11-27 at 12 10 56 pm

View all projects shows 2 projects

After logging in with the k2k project name and going to Marketplace > MOC OpenStack > View all Projects, I get two projects to show. First screenshot.

Since only one project is supported, of course, trying to launch instances in the _knikolla projects doesn't work. Second screenshot.

screen shot 2017-11-27 at 1 13 33 pm

screen shot 2017-11-27 at 1 15 19 pm

Request more resources

#21

Currently, we disable that.
We may wanna point the user to the user request form directly (Thanks Jeremy for suggesting that)

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.