aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
...
| | | | * | | | | | | | | | | | | | Improve Tag CroppingGravatar Hassan Abouelela2022-08-13-6/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the tag cropping logic to the frontend, which makes it easier to crop without crossing boundaries such as link or code block boundaries. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Enable Code Highlighting On All Content PagesGravatar Hassan Abouelela2022-08-13-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Clean Up Tag Link SubstitutionGravatar Hassan Abouelela2022-08-13-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: ChrisJL <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Set Link Color For Sub-elementsGravatar Hassan Abouelela2022-08-13-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Add Tag View TestsGravatar Hassan Abouelela2022-08-13-4/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Export Tag Model As Top Level Model ObjectGravatar Hassan Abouelela2022-08-13-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Add Content App To NavbarGravatar Hassan Abouelela2022-08-13-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Add Tag Page TemplateGravatar Hassan Abouelela2022-08-13-5/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a template for the tag page itself, and add a route to use it. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Add Tags To Content ListingsGravatar Hassan Abouelela2022-08-13-12/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds bot tags to the content page, as well as a model to go along with it. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | Add Setting For Static BuildsGravatar Hassan Abouelela2022-08-13-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an explicit setting for static builds instead of relying on the environment variable. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | | | | Include users with no messages in response, and simplify response formatGravatar wookie1842022-11-17-13/+10
| | | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | | Change the endpoint to be a POST not a GETGravatar wookie1842022-11-02-29/+13
| | | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | | Add tests for metricity activity endpointGravatar wookie1842022-10-27-0/+100
| | | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | | Add API endpoint for activity dataGravatar wookie1842022-10-27-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I really had to work against DRF to get this working. Using the validator manually here isn't ideal but I couldn't see an obvious better way without adding a bunch of boilerplate code. It seems to work.
| | | * | | | | | | | | | | | | | | Add metricity query for messages in past n daysGravatar wookie1842022-10-27-0/+28
| | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Takes multiple users for efficiency as we may want to calculate this for many users at once.
| | | * | | | | | | | | | | | | | Update off-topic etiquette to reflect server size (#785)Gravatar Gustav Odinger2022-10-25-1/+1
| | | | |_|_|_|/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | With more than 350k members, saying that we have “tens of thousands of members” seems like an understatement.
| | | * | | | | | | | | | | | | Add info about working with snekbox 3.11 on botGravatar Chris Lovering2022-10-07-2/+8
| | | | |_|_|_|_|_|_|_|_|_|/ / | | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | | Increase Request Timeout For GitHub APIGravatar Hassan Abouelela2022-09-30-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | Fix B026 Linting ErrorsGravatar Hassan Abouelela2022-09-30-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | Bump To Django 4.1.1 & Update DependenciesGravatar Hassan Abouelela2022-09-30-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update outdated and broken dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | Upgrade To 3.10Gravatar Hassan Abouelela2022-09-30-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All dependencies and code are already ready for 3.10, all that's necessary is to update the number. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | Fix Static BuildGravatar Hassan Abouelela2022-09-30-27/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all unnecessary middleware and return a proper response for redirects to fix static builds. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | Merge branch 'main' into fix-warningsGravatar Hassan Abouelela2022-09-30-13/+30
| | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / | | | | |/| | | | | | | | | |
| | | | * | | | | | | | | | | replace parenthesis with square brackets since tuples are serialized are listsGravatar Amrou Bellalouna2022-09-18-3/+3
| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | restrict the RulesView docstrings to just what it doesGravatar Amrou Bellalouna2022-09-18-3/+2
| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | replace sweet with "sweets" to refer more to candyGravatar Amrou Bellalouna2022-09-18-1/+1
| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | update the RulesView class' docstringsGravatar Amrou Bellalouna2022-09-18-4/+7
| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | Merge branch 'main' into map-rules-to-keywordsGravatar Amrou Bellalouna2022-09-18-6/+11
| | | | |\ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | make docstring more explicit about the returned contentGravatar Amrou Bellalouna2022-09-18-1/+6
| | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | add suggested keywordsGravatar Amrou Bellalouna2022-09-18-9/+9
| | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | add docstrings explaining the values that the Rules view returnsGravatar Amrou Bellalouna2022-09-18-0/+1
| | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | add collection of keywords per ruleGravatar Amrou Bellalouna2022-08-18-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In reference to issue #2108, this commit aims to add an initial set of keywords per rule. These keywords will be later in the "rule" bot command in order to make rule identification easier
| | | * | | | | | | | | | | | | Fix Unittest Deprecation WarningsGravatar Hassan Abouelela2022-09-04-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | | Fix Django Deprecation WarningsGravatar Hassan Abouelela2022-09-04-2/+0
| | | | |/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes a few features which were deprecated in django 4.0. Running with warnings enabled shows no other errors. USE_L10N was deprecated, and is now enabled by default. In future versions of django, it'll be impossible to turn localization off. Explicitly defining the custom_app_config for the API app is no longer necessary as django can pick it up on its own. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | | Fix grammar in contributing guide (#771)Gravatar Rohan Shah2022-08-30-1/+1
| | | | |_|/ / / / / / / / / | | | |/| | | | | | | | | |
| | | * | | | | | | | | | | Merge branch 'main' into fix-infraction-testsGravatar Hassan Abouelela2022-08-18-2/+2
| | | |\| | | | | | | | | |
| | | | * | | | | | | | | | striked passed dateGravatar Ibrahim2022-08-16-2/+2
| | | | |/ / / / / / / / /
| | | * / / / / / / / / / Explicitly Specify Infraction Time In TestsGravatar Hassan Abouelela2022-08-14-5/+10
| | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The infraction tests checked that the route returned infractions in the correct order, which is based on insertion time. This can be fragile however, since the insertion time can be very close (or identical) during the tests. That became especially more likely with PR #741 (commit 149e67b4) which improved database access speed. This is fixed by explicitly specifying the insertion time, and spacing them out properly. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | | | | | | | | | Appeased the formatterGravatar Xithrius2022-11-12-6/+6
| | | | | | | | | | | |
| | * | | | | | | | | | bluenix's changesGravatar Shom7702022-04-23-3/+10
| | | | | | | | | | | |
| | * | | | | | | | | | Update ↵Gravatar Shom7702022-04-23-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pydis_site/apps/content/resources/guides/python-guides/keeping-tokens-safe.md Co-authored-by: Bluenix <[email protected]>
| | * | | | | | | | | | used wrong imageGravatar Shom7702022-04-20-1/+1
| | | | | | | | | | | |
| | * | | | | | | | | | Merge branch 'keeping-tokens-safe' of github.com:python-discord/site into ↵Gravatar Shom7702022-04-20-1/+1
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | keeping-tokens-safe
| | | * | | | | | | | | | Update ↵Gravatar Shom7702022-04-02-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pydis_site/apps/content/resources/guides/python-guides/keeping-tokens-safe.md Co-authored-by: Xithrius <[email protected]>
| | * | | | | | | | | | | Merge branch 'main' of github.com:python-discord/site into keeping-tokens-safeGravatar Shom7702022-04-20-2/+54
| | |\ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | change image to accurately reflect current systemGravatar Shom7702022-04-20-1/+1
| | | |/ / / / / / / / / / | | |/| | | | | | | | | |
| | * | | | | | | | | | | fixing image not appearingGravatar Shom7702022-03-21-1/+2
| | | | | | | | | | | | |
| | * | | | | | | | | | | add token safety pinGravatar Shom7702022-03-21-0/+21
| | | | | | | | | | | | |
| * | | | | | | | | | | | Use 4 spaces as tabGravatar Robin2022-10-19-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses 4 spaces for a tab rather than two, as is convention
| * | | | | | | | | | | | Update proper-error-handling.mdGravatar Robin2022-08-15-3/+3
| | | | | | | | | | | | |