forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f4f5b1
commit be6b2fe
Showing
143 changed files
with
17,521 additions
and
101 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
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 |
---|---|---|
|
@@ -30,8 +30,8 @@ Look through the GitHub issues for features. Anything tagged with | |
|
||
### Documentation | ||
|
||
Panoramix could always use better documentation, | ||
whether as part of the official Panoramix docs, | ||
Dashed could always use better documentation, | ||
whether as part of the official Dashed docs, | ||
in docstrings, `docs/*.rst` or even on the web as blog posts or | ||
articles. | ||
|
||
|
@@ -49,14 +49,14 @@ If you are proposing a feature: | |
|
||
## Latest Documentation | ||
|
||
[API Documentation](http://pythonhosted.com/panoramix) | ||
[API Documentation](http://pythonhosted.com/dashed) | ||
|
||
## Setting up a Python development environment | ||
|
||
# fork the repo on github and then clone it | ||
# alternatively you may want to clone the main repo but that won't work | ||
# so well if you are planning on sending PRs | ||
# git clone [email protected]:mistercrunch/panoramix.git | ||
# git clone [email protected]:mistercrunch/dashed.git | ||
|
||
# [optional] setup a virtual env and activate it | ||
virtualenv env | ||
|
@@ -66,24 +66,24 @@ If you are proposing a feature: | |
python setup.py develop | ||
|
||
# Create an admin user | ||
fabmanager create-admin --app panoramix | ||
fabmanager create-admin --app dashed | ||
|
||
# Initialize the database | ||
panoramix db upgrade | ||
dashed db upgrade | ||
|
||
# Create default roles and permissions | ||
panoramix init | ||
dashed init | ||
|
||
# Load some data to play with | ||
panoramix load_examples | ||
dashed load_examples | ||
|
||
# start a dev web server | ||
panoramix runserver -d | ||
dashed runserver -d | ||
|
||
|
||
## Setting up the node / npm javascript environment | ||
|
||
`panoramix/assets` contains all npm-managed, front end assets. | ||
`dashed/assets` contains all npm-managed, front end assets. | ||
Flask-Appbuilder itself comes bundled with jQuery and bootstrap. | ||
While these may be phased out over time, these packages are currently not | ||
managed with npm. | ||
|
@@ -116,7 +116,7 @@ new `node_modules/` folder within `assets/`. | |
npm install | ||
``` | ||
|
||
To parse and generate bundled files for panoramix, run either of the | ||
To parse and generate bundled files for dashed, run either of the | ||
following commands. The `dev` flag will keep the npm script running and | ||
re-run it upon any changes within the assets directory. | ||
|
||
|
@@ -132,7 +132,7 @@ For every development session you will have to start a flask dev server | |
as well as an npm watcher | ||
|
||
``` | ||
panoramix runserver -d -p 8081 | ||
dashed runserver -d -p 8081 | ||
npm run dev | ||
``` | ||
|
||
|
@@ -157,12 +157,12 @@ Generate the documentation with: | |
cd docs && ./build.sh | ||
|
||
## CSS Themes | ||
As part of the npm build process, CSS for Panoramix is compiled from ```Less```, a dynamic stylesheet language. | ||
As part of the npm build process, CSS for Dashed is compiled from ```Less```, a dynamic stylesheet language. | ||
|
||
It's possible to customize or add your own theme to Panoramix, either by overriding CSS rules or preferably | ||
It's possible to customize or add your own theme to Dashed, either by overriding CSS rules or preferably | ||
by modifying the Less variables or files in ```assets/stylesheets/less/```. | ||
|
||
The ```variables.less``` and ```bootswatch.less``` files that ship with Panoramix are derived from | ||
The ```variables.less``` and ```bootswatch.less``` files that ship with Dashed are derived from | ||
[Bootswatch](https://bootswatch.com) and thus extend Bootstrap. Modify variables in these files directly, or | ||
swap them out entirely with the equivalent files from other Bootswatch (themes)[https://github.com/thomaspark/bootswatch.git] | ||
|
||
|
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
recursive-include panoramix/templates * | ||
recursive-include panoramix/static * | ||
recursive-exclude panoramix/static/assets/node_modules * | ||
recursive-include panoramix/static/assets/node_modules/font-awesome * | ||
recursive-exclude panoramix/static/docs * | ||
recursive-include dashed/templates * | ||
recursive-include dashed/static * | ||
recursive-exclude dashed/static/assets/node_modules * | ||
recursive-include dashed/static/assets/node_modules/font-awesome * | ||
recursive-exclude dashed/static/docs * | ||
recursive-exclude tests * | ||
recursive-include panoramix/data * | ||
recursive-include panoramix/migrations * | ||
recursive-include dashed/data * | ||
recursive-include dashed/migrations * |
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
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,38 @@ | ||
"""Package's main module!""" | ||
|
||
import logging | ||
import os | ||
from flask import Flask, redirect | ||
from flask.ext.appbuilder import SQLA, AppBuilder, IndexView | ||
from flask.ext.appbuilder.baseviews import expose | ||
from flask.ext.migrate import Migrate | ||
|
||
|
||
APP_DIR = os.path.dirname(__file__) | ||
CONFIG_MODULE = os.environ.get('DASHED_CONFIG', 'dashed.config') | ||
|
||
# Logging configuration | ||
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(name)s:%(message)s') | ||
logging.getLogger().setLevel(logging.DEBUG) | ||
|
||
app = Flask(__name__) | ||
app.config.from_object(CONFIG_MODULE) | ||
db = SQLA(app) | ||
migrate = Migrate(app, db, directory=APP_DIR + "/migrations") | ||
|
||
|
||
class MyIndexView(IndexView): | ||
@expose('/') | ||
def index(self): | ||
return redirect('/dashed/featured') | ||
|
||
appbuilder = AppBuilder( | ||
app, db.session, | ||
base_template='dashed/base.html', | ||
indexview=MyIndexView, | ||
security_manager_class=app.config.get("CUSTOM_SECURITY_MANAGER")) | ||
|
||
sm = appbuilder.sm | ||
|
||
get_session = appbuilder.get_session | ||
from dashed import config, views # noqa |
Oops, something went wrong.