-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from flask-dashboard/development
Development
- Loading branch information
Showing
56 changed files
with
1,561 additions
and
1,358 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"author": "Patrick Vogel, Thijs Klooster & Bogdan Petre", | ||
"email": "[email protected]" | ||
} |
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,17 +1,13 @@ | ||
from flask_wtf import FlaskForm | ||
from wtforms import validators, SubmitField, PasswordField, StringField | ||
|
||
from .daterange import get_daterange_form | ||
from .slider import get_slider_form | ||
from .double_slider import get_double_slider_form | ||
from .slider import get_slider_form | ||
|
||
|
||
class Login(FlaskForm): | ||
""" Used for serving a login form. """ | ||
name = StringField('Username', [validators.data_required()]) | ||
password = PasswordField('Password', [validators.data_required()]) | ||
submit = SubmitField('Login') | ||
|
||
|
||
class RunTests(FlaskForm): | ||
""" Used for serving a login form on /{{ link }}/testmonitor. """ | ||
submit = SubmitField('Run selected tests') |
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
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,9 +1,10 @@ | ||
def get_rules(): | ||
def get_rules(end=None): | ||
""" | ||
:param end: if specified, only return the available rules to that endpoint | ||
:return: A list of the current rules in the attached Flask app | ||
""" | ||
from flask_monitoringdashboard import config, user_app | ||
|
||
rules = user_app.url_map.iter_rules() | ||
rules = user_app.url_map.iter_rules(endpoint=end) | ||
return [r for r in rules if not r.rule.startswith('/' + config.link) | ||
and not r.rule.startswith('/static-' + config.link)] |
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
Oops, something went wrong.