aboutsummaryrefslogtreecommitdiffstats
path: root/pysite (follow)
Commit message (Collapse)AuthorAgeLines
...
* [All Pages] Fix the other half of that dumbGravatar Gareth Coles2018-05-02-0/+3
|
* [All Pages] Account for pages without a title when sortingGravatar Gareth Coles2018-05-02-3/+1
|
* Add special pages and an "all pages" special pageGravatar Gareth Coles2018-05-02-0/+37
|
* Fixed those pesky rapper names. (#66)Gravatar biskette2018-05-01-2/+2
|
* [Bug Fix] Fix the Edit & Source links on Wiki revision viewerGravatar Joseph2018-05-01-1/+3
|
* [Wiki] Icons should all be the same widthGravatar Gareth Coles2018-04-30-1/+1
|
* [Wiki] Header icons need a space afterwardsGravatar Gareth Coles2018-04-30-2/+13
|
* Fix for wiki.history.show with slashes in URLGravatar Joseph2018-04-29-1/+1
|
* Declaring the encoding to be utf-8 is not necessary in Python3 projects, as ↵Gravatar Leon Sandøy2018-04-27-52/+0
| | | | this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. (#56)
* [#1eeu1] Hiphopify (#54)Gravatar Leon Sandøy2018-04-20-173/+431
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes. * Almost done with the initial build for this. Implemented GET and DELETE, in order to finish POST I need to expand the database.py interface class. * Alphabetized database convenience wrappers. * Fixed a few typehints and added the sample convenience wrapper to the database class. * Finishing up the POST method and adding a duration parser to the utils folder so we can handle strings like 2w3d and turn them into a timestamp. * Fixed API blueprint loading, which was broken by the setup method in the DBMixIn. I'd forgotten to remove the check for table_name attribute. Also adde some logging and got the DELETE route working. * Added timezone-sensitivity to the duration parser so it will work with rethink. renamed the json and fixed some bugs in the hiphopify API. * Added a utility to test if rdb timestamps are expired, and only returning data from the GET calls if it isn't expired. * changed some log wording * Setting up Lil Joseph as default image. Adding some rappers to the list. * Adding a bunch of logging * These tests no longer apply. New tests must be written in the long run, removing them for now. * Addressing review comments left by Volcyy * Fixed misleading comment.
* Added image URLs for each of these famous rappers. (#55)Gravatar biskette2018-04-19-1297/+5188
|
* Delete wiki_revisions.jsonGravatar Joseph2018-04-18-1/+0
|
* Merge branch 'master' of github.com:discord-python/siteGravatar Leon Sandøy2018-04-18-8/+246
|\
| * Pass can_edit into revisions listGravatar Joseph2018-04-18-1/+1
| |
| * Pass `can_edit` into history templatesGravatar Joseph2018-04-18-1/+34
| |
| * Fix sidebar routesGravatar Joseph2018-04-18-1/+2
| |
| * Add wiki audit logs (#52)Gravatar Joseph2018-04-17-8/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add wiki audit logs * Flake8 issues * Forgot to remove debug prints * Removed print but forgot to remove `.text` * Futile attempt to increase coverage * Reading up on API docs asks us to send User-Agent with our info in it * Add tests for wiki * Well played, Travis * Nothing in my local env is working on travis lol * Why does it appear it can't decide between 200 & 302 :thinking: * Flake8 * Post route * Same issue with local env working differently from Travis env * Add page to show page is being edited * Lock page when it is being edited * Add JS to keep refreshing lock on article * Add compare route to render diff * Add revision table to database * Add revision storage * Add revision list route * JS for Revision list radio buttons * Add revision comparison template * Add revision list template * flak8 my ass * [Unit Tests] New unit tests for history routes :sparkles: * Does this fix things? * Address gdude's reviews * Noticed a bug in the diff generation route which meant that empty posts could potentially error * Flake 8 * Audit logs were logging after change, meaning it was comparing after & after, which didn't work * Change table name * Remove whitespace from line to fix flake8 issue * Address reviews * Git hook made me do something wrong, apologies * Switch from werkzeug redirect to flask one * Address Apertures reviews
* | Adding Pinkie Pie to the hiphoppers listGravatar Leon Sandøy2018-04-18-0/+1
|/
* JSON file had the wrong name. I should be incarcerated.Gravatar Leon Sandøy2018-04-16-1/+1
|
* I guess we were testing for log level handling. Removed these tests. We ↵Gravatar Leon Sandøy2018-04-16-7/+1
| | | | always want TRACE level logging, we can filter in datadog.
* We don't really need this env var anymore. We always want TRACE logging.Gravatar Leon Sandøy2018-04-16-3/+1
|
* Adding the TRACE log level monkey patch from botGravatar Leon Sandøy2018-04-16-1/+20
|
* Adding some trace logging to the table init to figure out what's going wrong.Gravatar Leon Sandøy2018-04-16-0/+9
|
* Initial data for tables and refactoring the dev-mode database handling to be ↵Gravatar Leon Sandøy2018-04-15-20/+1362
| | | | | | | | | | similar to prod-mode. (#53) * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes.
* Added an About category with Partners view (#1pv7h) (#50)Gravatar Jeremiah Boby2018-04-14-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Partners view, and Navbar item * Moved info/rules to about/rules and fixed references * Added Partner images, and populated the partners page * Fixed responsiveness on smaller displays Added like 2 characters to the column tag, to enable stacking of columns if the display width is lower than 960 pixels. * Fixed indentation * Updated Code Monkeys Banner Added the shiny new CM Banner, and rearranged the partner cards. * Fixed newlines at end of HTML files * Partners page updated to generate from JSON file • The templates/main/about/partners.html file now uses the static/partners.json file to generate the Partner cards. • Flexboxes are nice. * Rearranged containers on Partners page I have no idea how flexboxes work :DDD * Updated Partners page to fix styling issues * Moved tag styling to the appropriate CSS file * Changed code style of stylesheet :D * Addresses Lemon's code style issues • Partner cards now have id="partner-card", which is selected with a CSS selector for styling, rather than styling all card objects. • Removed nonbreaking spaces that PyCharm didn't tell me about • Indented conditional HTML content to match Jinja conditionals • Fixed unclosed image tag * Removed div bloating, and increased specifity of CSS selection
* [Wiki] Fix wiki page interpreted text roleGravatar Gareth Coles2018-04-13-17/+11
| | | | Page slugs may contain slashes after all
* [Wiki] Fix pages being wiped when saved without editsGravatar Gareth Coles2018-04-12-0/+5
|
* [Wiki] Lower initial header level to 3Gravatar Gareth Coles2018-04-12-1/+3
|
* [Wiki] Some excellent shitcode for document TOCsGravatar Gareth Coles2018-04-12-5/+76
|
* [Wiki] Fix dodgy staff edit redirect query paramGravatar Gareth Coles2018-04-12-1/+1
|
* Add page source view to wikiGravatar Gareth Coles2018-04-12-0/+45
|
* Update resources page with new icons and formatting.Gravatar Gareth Coles2018-04-11-0/+39
| | | | NOTE: This does change the JSON!
* Snowflakes should be handled as stringsGravatar Gareth Coles2018-04-10-10/+12
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-04-10-3/+15
|\
| * Merge branch 'master' of github.com:discord-python/siteGravatar Leon Sandøy2018-04-10-1/+38
| |\
| * | Moved all redirects into a folder and added one for github.Gravatar Leon Sandøy2018-04-10-3/+15
| | |
* | | Allow contribs to edit wiki pagesGravatar Gareth Coles2018-04-10-1/+2
| |/ |/|
* | Whoops, Flake8Gravatar Gareth Coles2018-04-10-1/+1
| |
* | Wiki page text roleGravatar Gareth Coles2018-04-10-1/+38
|/
* [Wiki] Improve editor previewGravatar Gareth Coles2018-04-10-1/+1
| | | | Also, Flake8.
* [Wiki] Add url_for text roleGravatar Gareth Coles2018-04-10-1/+39
|
* [Wiki] Add code highlightingGravatar Gareth Coles2018-04-10-1/+1
|
* Abstract rst away and add icon directiveGravatar Gareth Coles2018-04-09-12/+68
|
* Revert unnecessary changeGravatar Gareth Coles2018-04-09-2/+2
|
* Add font-awesome pro, and default to port 80Gravatar Gareth Coles2018-04-09-2/+2
|
* Easier debugging and optimised importsGravatar Gareth Coles2018-04-08-37/+45
| | | | Simply set FLASK_DEBUG=1 in your env to skip OAuth checks
* Allow helpers to edit pages alsoGravatar Gareth Coles2018-04-07-7/+8
|
* Display improvementsGravatar Gareth Coles2018-04-07-3/+5
|
* Considerable progress on the wikiGravatar Gareth Coles2018-04-07-9/+19
|
* Fix stupid errorGravatar Gareth Coles2018-04-07-1/+1
|