-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add npm package.json and setup webpack to transpile ES6/JSX and compi…
…le JS files for frontend refactor. See readme.md in assets/ for npm setup instructions and visit the panoramix home page for a React sandbox.
- Loading branch information
1 parent
20bd4ca
commit f40c024
Showing
17 changed files
with
7,585 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets" : ["es2015", "react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% extends 'appbuilder/init.html' %} | ||
{% import 'appbuilder/baselib.html' as baselib %} | ||
|
||
{% block head_css %} | ||
{{super()}} | ||
<link rel="shortcut icon" href="/static/refactor/images/favicon.png" /> | ||
<link rel="stylesheet" type="text/css" href="/static/refactor/stylesheets/panoramix.css" /> | ||
|
||
<!-- Replace with custom theme css --> | ||
<!-- <link rel="stylesheet" type="text/css" href="/static/refactor/stylesheets/themes/bootswatch.paper.min.css" /> --> | ||
<link rel="stylesheet" type="text/css" href="/static/refactor/stylesheets/themes/panoramix-bootstrap-theme.css" /> | ||
{% endblock %} | ||
|
||
{% block body %} | ||
|
||
{% include 'appbuilder/general/confirm.html' %} | ||
{% include 'appbuilder/general/alert.html' %} | ||
|
||
{% block navbar %} | ||
<header class="top" role="header"> | ||
{% include 'appbuilder/navbar.html' %} | ||
</header> | ||
{% endblock %} | ||
|
||
{% block uncontained %}{% endblock %} | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
{% block messages %} | ||
{% include 'appbuilder/flash.html' %} | ||
{% endblock %} | ||
{% block content %}{% endblock %} | ||
</div> | ||
</div> | ||
<div class="container-fluid"> | ||
{% block content_fluid %}{% endblock %} | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
{% block tail_js %} | ||
<script src="/static/refactor/javascripts/dist/base.entry.js"></script> | ||
{{ super() }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends "refactor/base.html" %} | ||
|
||
{% block content_fluid %} | ||
<div id="app"> | ||
Oops! React.js is not working properly. | ||
</div> | ||
{% endblock %} | ||
|
||
{% block tail_js %} | ||
<script src="/static/refactor/javascripts/dist/index.entry.js"></script> | ||
{{ super() }} | ||
{% endblock %} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Currently requires global app dependencies in one place. Css could go here too. | ||
window.d3 = require('d3'); | ||
window.px = require('./modules/panoramix.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Jumbotron } from 'react-bootstrap'; | ||
|
||
class App extends React.Component { | ||
render () { | ||
return ( | ||
<Jumbotron> | ||
<h1>Panoramix</h1> | ||
<p>Extensible visualization tool for exploring data from any database.</p> | ||
</Jumbotron> | ||
); | ||
} | ||
} | ||
|
||
render(<App />, document.getElementById('app')); |
Oops, something went wrong.