aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' of github.com:discord-python/siteGravatar Leon Sandøy2018-03-13-2/+22
|\
| * Logging fixesGravatar Gareth Coles2018-03-10-3/+3
| |
| * Logging with PapertrailGravatar Gareth Coles2018-03-10-2/+22
| |
* | Minor bugfix to allow tag.delete to return success as False if the tag ↵Gravatar Leon Sandøy2018-03-13-5/+8
|/ | | | doesn't exist
* removes gunicorn config as it is no longer being used (#39)Gravatar Christopher Baklid2018-03-07-46/+0
|
* API for tags (#34)Gravatar Leon Sandøy2018-03-06-79/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Help page and misc improvements Committing so I can go home >:| * [WIP] - API improvements for the tag features. Not completed. * renaming tag.py to tags.py and refactoring the nomenclature of docs to tags * fixed error message in tags, cleaning up app_test.py * tests for the tags feature * ignoring jsonify returns cause coverall can't handle them * Catch-all error view for the API blueprint * cleaning up APIErrorView a little * bringing coverage for tags.py to 100% * how did this get in here? * how did this get in here? ROUND 2 * Removing the 503 database error handling. It's not in use and we should probably rethink that whole custom error handling system anyway. * Converting the tags file to use the @api_params decorator instead of validating manually. Tested with bot staging.
* Fix user API testGravatar Gareth Coles2018-03-04-6/+6
|
* Fixes for the API validation decoratorGravatar Gareth Coles2018-03-04-6/+10
|
* Info pages #13xan #13xak (#36)Gravatar Gareth Coles2018-03-04-57/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Info pages and templates * Info pages and templates * Info pages and templates * Update navigation and fix up HTML * Navigation HTML spacing for readability * Fix error views not using `self.render()` * `render()` method should accept Any for context values * Change header linking CSS to a dedicated class * Rules page * Basic resources page setup * Fix headers for new CSS class * Resource categories and initial resource data * Add link to JSON file on GH - won't work until the branch is merged * Remove info overview page and redirect info root url to resources * Flake8 * Add some tests * Line lengths
* Fix navbar dropdownGravatar Gareth Coles2018-03-03-8/+8
|
* Mobile optimisation (#33)Gravatar Joseph2018-03-03-90/+121
| | | | | | | | | | | | | | | | | | * Fix squished logo & button * Hide terminal on mobile * A misc set of fixes * Newline in window.css * Add extra_head block to base template * Move script/CSS loading to extra_head block in error view * Move terminal JS into window.onload * Replace `var` with `let` and enable strict mode in 500.js * Stop typewriter when the terminal is closed * Move terminal onclick assignment to 500.js * Move error page <style> contents into window.css * Tidy up error page HTML and remove unmatched tags
* Switch type from NotFound to HTTPException & add post support to 5XX and 4XXGravatar JoeBanks132018-03-01-2/+26
|
* Gdude got nit picky and made me change the Mac OS terminal to say it's on MacGravatar JoeBanks132018-03-01-1/+1
|
* Change 418 error descriptionGravatar JoeBanks132018-03-01-1/+1
|
* Add safe so it is not escapedGravatar JoeBanks132018-03-01-1/+1
|
* noscript should use templated errorGravatar JoeBanks132018-03-01-1/+1
|
* OpenGraph metadata (#32)Gravatar Joseph2018-03-01-18/+25
| | | Better embedding for the url to the site.
* Fix spacing issuesGravatar JoeBanks132018-03-01-2/+2
|
* Instead of making flask error when rendering unsupported status codes just ↵Gravatar JoeBanks132018-03-01-1/+4
| | | | send 500
* Change link to enclose more textGravatar JoeBanks132018-03-01-7/+6
|
* Change color of windowGravatar JoeBanks132018-03-01-1/+1
|
* Finish up #31 by adding linksGravatar JoeBanks132018-03-01-9/+8
|
* Darken background of muted error headerGravatar JoeBanks132018-03-01-1/+5
|
* Close window by hitting red buttonGravatar JoeBanks132018-03-01-296/+301
|
* Quick patch to prevent title from always being 'Internal server error'Gravatar JoeBanks132018-02-28-1/+1
|
* Add error messages (#30)Gravatar Joseph2018-02-28-34/+1089
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add error messages Signed-off-by: JoeBanks13 <[email protected]> * Remove un-used keyword arg from 404 * Assert for status code instead of full content * PEP8 * test lint * please coverage * oh * Exclude websockets.py from coverage * Move code output into terminal * Switch typewriter href protocol * Add tests for websockets.py * Abort previous commit, coveralls did not let coverage go down * Add more pauses and request => response * move css and js out, add typewriter JS to our own repo & add method for appending text in bulk. * Enable REPL on 4XX and change error descriptions * commas * /error path
* reduce memory allocation from 2GB to 512MB (#28)Gravatar Christopher Baklid2018-02-27-1/+1
|
* [Travis] Build only masterGravatar Gareth Coles2018-02-27-0/+4
|
* Fix unit testGravatar Gareth Coles2018-02-27-3/+3
|
* Move `/help` to `/info/help`Gravatar Gareth Coles2018-02-27-6/+7
|
* fixes the coverage badge to point to the master branch (#29)Gravatar Christopher Baklid2018-02-26-1/+1
|
* remove snekchek and replace with flake8 (#27)Gravatar Christopher Baklid2018-02-26-8/+2
|
* Help page #z62n (#25)Gravatar Gareth Coles2018-02-26-15/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | * Help page and misc improvements Committing so I can go home >:| * Changes for @lmn * Rephrase first paragraph * Rephrase questions so they aren't all about discord.py * Remove _every single header_ on the help page from the nav * Unit test the help route * Small styling fixes * Add page-specific classes to body element * Clean up section padding * IndexView -> HelpView * Remove unnecessary path in test
* brings coverage to 90% (#24)Gravatar Christopher Baklid2018-02-26-45/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * brings coverage to 75% * satisfy flake8 * missing docstring added * one more test * artificially inflate coverage because python acts strange * testing decorators * fixed instantiation of test route * straggling newlines from debugging code * remove debug comments * restructure tests into logical class separations. more exlusions. more tests * testing websocket echo tests * added missing comment * convert single quotes to double quotes to satisfy docstrings
* New banner!Gravatar Gareth Coles2018-02-21-1/+1
|
* Actually make the button link to the inviteGravatar Gareth Coles2018-02-21-1/+1
|
* Remove extra buttonsGravatar Gareth Coles2018-02-21-13/+0
|
* More landing page work. Also: Blurple!Gravatar Gareth Coles2018-02-21-21/+9651
|
* Index page proseGravatar Gareth Coles2018-02-21-9/+12
|
* Smaller navbar, move dropdown to the bottom of the navbarGravatar Gareth Coles2018-02-21-6/+9
|
* Dropdown instead of dropbarGravatar Gareth Coles2018-02-21-1/+1
|
* Disable dropbar pushGravatar Gareth Coles2018-02-21-1/+1
|
* Sample pushing dropbar navGravatar Gareth Coles2018-02-21-11/+42
|
* Better pre-release warning on indexGravatar Gareth Coles2018-02-21-9/+6
|
* Basic main page heroGravatar Gareth Coles2018-02-21-2/+26
|
* Add warning about pre-release-ness to base templateGravatar Gareth Coles2018-02-21-7/+10
|
* Jinja is weirdGravatar Gareth Coles2018-02-21-8/+10
|
* Rearrange views and templatesGravatar Gareth Coles2018-02-21-4/+4
|
* adds initial unit testing (#22)Gravatar Christopher Baklid2018-02-20-1/+111
| | | | | * Adds Unit Testing * Adds coveralls coverage badge
* Add VagrantfileGravatar Christopher Baklid2018-02-19-0/+102
| | | | | | | | | | | | | | | | | | * attempt to fix stacktrace when initialising logger * adds vagrantfile for local development * restart rethinkdb after setting config * fix source .profile * adds alias python=python3.6 * include more reminder of what to add in hosts file * also install snekchek in vm * update vagrant bootstrap script to properly include environment variables in bashrc