aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/js (follow)
Commit message (Collapse)AuthorAgeLines
* Add Tag Group SupportGravatar Hassan Abouelela2022-08-14-0/+5
| | | | | | | Adds support for tag groups in content. This involves some modification to the routing, and templating. Signed-off-by: Hassan Abouelela <[email protected]>
* Improve Tag CroppingGravatar Hassan Abouelela2022-08-13-0/+36
| | | | | | | 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]>
* Edge cases: Show duckies when no visible resourcesGravatar Leon Sandøy2022-02-13-8/+14
|
* Best practice: Switch name to data-resource-name.Gravatar Leon Sandøy2022-02-13-3/+3
|
* Add fuzzysort as a local dependency.Gravatar Leon Sandøy2022-02-13-0/+657
|
* Make the remove all tags affect search, too.Gravatar Leon Sandøy2022-02-13-1/+4
|
* Fix duck pond not showing for search results of 0.Gravatar Leon Sandøy2022-02-13-3/+2
|
* Search the resource description too.Gravatar Leon Sandøy2022-02-13-6/+15
|
* Add a filter tag when searching.Gravatar Leon Sandøy2022-02-13-2/+15
|
* Implement fuzzy search.Gravatar Leon Sandøy2022-02-13-4/+35
| | | | | | | This implements the core logics for filtering by search. It uses fuzzysort to match the search query to the name of the resource. This name is set in the yaml for each resource.
* Trigger a UI update when typing into search.Gravatar Leon Sandøy2022-02-13-0/+5
|
* Dynamically update URL with search query.Gravatar Leon Sandøy2022-02-13-3/+19
|
* Duck pond removed when removing all filters.Gravatar Leon Sandøy2022-02-02-1/+2
|
* Complete refactor of collapsibles.Gravatar Leon Sandøy2022-02-01-18/+57
| | | | | | | | | | | | | This is now a completely self-contained feature, which can be used in the same way on every page. I've moved all the collapsible-related logics out of the resources.js file and into collapsibles.js, and added documentation and other quality-of-life features that will apply to other pages, as well. Changes: - The icon will now always change when the collapsible opens or closes. - By adding the "collapsed" class, you can tell the collapsible to be collapsed by default.
* Fix delay when collapsing collapsibles.Gravatar Leon Sandøy2022-02-01-0/+6
|
* Fix bug where transition wouldn't work on first collapse.Gravatar Leon Sandøy2022-02-01-8/+5
|
* Make resource tags correctly deactivate.Gravatar Leon Sandøy2022-02-01-0/+9
|
* Add a button for removing all active filters.Gravatar Leon Sandøy2022-01-31-25/+42
|
* Fix category header double click bug on mobile.Gravatar Leon Sandøy2022-01-31-1/+1
|
* Improve performance of addFilter() up to 300%Gravatar Leon Sandøy2022-01-31-9/+15
|
* Hide no filters selected in all cases.Gravatar Leon Sandøy2022-01-31-0/+7
|
* Get rid of invalid filters in the URL.Gravatar Leon Sandøy2022-01-31-7/+17
|
* Collapse category headers on load for mobile only.Gravatar Leon Sandøy2022-01-30-1/+12
|
* Refactor: collapsibles as a stand-alone componentGravatar Leon Sandøy2022-01-30-0/+0
|
* Show a "No filters selected" indicator.Gravatar Leon Sandøy2022-01-30-2/+8
|
* Support dashful redirects.Gravatar Leon Sandøy2022-01-30-6/+5
| | | | | | | Previously, trying to go to `resources/project%20ideas` would crash the filtering JS. This has now been sorted out, so that these types of redirects have their spaces replaced by dashes, which makes them valid again.
* Don't redirect if the resource_type is None!Gravatar Leon Sandøy2022-01-30-2/+1
|
* Redirects from old endpoints now filter correctly.Gravatar Leon Sandøy2022-01-30-0/+8
| | | | | For example, navigating to pydis.com/resources/communities will now correctly redirect to pydis.com/resources/?type=community.
* Complexity -> Difficulty.Gravatar Leon Sandøy2022-01-29-3/+3
|
* Let the user know when there are no matches.Gravatar Leon Sandøy2022-01-29-0/+11
|
* Make all tags interactive.Gravatar Leon Sandøy2022-01-28-33/+90
| | | | | | | | Adds a bunch of tag-related quality of life improvements: - You can now see which filters you've added at the top left. - You can click on tags to start filtering to that tag. - You can click on tags in the filter box to remove the filter. - Tags will now show an outline when they are active.
* Reflect and retain filter state in URL params.Gravatar Leon Sandøy2022-01-27-65/+65
| | | | | | | | | | | | | This commits makes two important changes: - Whenever we click on filter checkboxes, the URL is immediately updated to include parameters that represent the chosen options. For example, if you select Beginner complexity, the url is updated with ?complexity=beginner. - Whenever the page is loaded, we deserialize any parameters that exist in the URL and change the filter state to match it. In other words, refreshing the page at any time retains the current state, and you can now link people to exactly the filter results that you want to share.
* Resource filtering on the client, pt 1.Gravatar Leon Sandøy2022-01-27-35/+143
| | | | | | | Here's the initial version of this system. We've got filtering, but only by clicking checkboxes. The overall look and style are pretty close to where we want them, but it's missing tons of polish to be complete. The following commits will contain that polish.
* Merge branch 'main' into swfarnsworth/smarter-resources/merge-with-mainGravatar Leon Sandøy2022-01-23-0/+13
|\
| * Restructure bot contributing guide (#591)Gravatar Boris Muratov2021-10-17-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | * Restructure bot contributing guide Restructures the bot guide to focus on getting users "through the door" first, and slowly adding additional information and options. The guide is built in terms of showing ways to run the bot and how to achieve it, rather than listing all of the information for each configuration and environment variable right away. That said, the attempt was to still present the reader with the full information they need, and to still be able to use as a quick reference for contributors who are already familiar with the project. As a style choice, this guide incorporates collapsible elements, which required some CSS and JS additions. This could be resolved with the bulma-collapsible extension, but it doesn't seem to function well inside django templates. The guide includes an optional config.yml to use with the test server template. This is a temporary measure until we get the bootstrapping application going. This guide additionally splits the bot account creation and obtaining Discord ID's guides and they didn't seem related. The original file is kept for now as it is used by other guides at the moment.
* | Move evil <script> tag into a .js file.Gravatar Leon Sandøy2022-01-23-0/+48
|/
* Merge branch main into dewikificationGravatar kosayoda2021-05-14-0/+104
|
* Remove files related to django-allauth.Gravatar Leon Sandøy2020-10-04-100/+0
|
* Remove wiki templates and static.Gravatar Leon Sandøy2020-10-04-314/+0
|
* Add user settings modal, with connections management and account deletionGravatar Gareth Coles2019-10-23-0/+100
|
* Re-add erroneously removed static filesGravatar Gareth Coles2019-10-03-0/+314
|
* Remove accidental static files commit; fix AllauthGravatar Gareth Coles2019-10-03-314/+0
|
* Address reviewsGravatar Gareth Coles2019-04-20-2/+0
|
* Continued cleanupGravatar Gareth Coles2019-04-19-7/+0
|
* Move JS into filesGravatar Gareth Coles2019-04-19-0/+161
|
* Links plugin is.. functional..Gravatar Gareth Coles2019-04-18-0/+11
|
* Image sidebar is finally completeGravatar Gareth Coles2019-04-17-6/+34
|
* Editor fixes and sidebar accordionGravatar Gareth Coles2019-04-15-0/+3
|
* Remove TOC, link headers, fix breadcrumb paddingGravatar Gareth Coles2019-04-15-21/+0
| | | | Also removes some templates we don't care about
* Editor: TOC insert correctly places on previous line rather than next lineGravatar Gareth Coles2019-04-15-4/+4
|