Coder Social home page Coder Social logo

venhance / mosp-web Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 23.63 MB

General MOSP website

License: MIT License

Python 46.23% CSS 11.33% Jinja 2.71% HTML 16.39% Makefile 0.05% TypeScript 9.86% JavaScript 11.02% Sass 0.61% TeX 1.51% Shell 0.30%

mosp-web's Introduction

๐Ÿ‘‹ Hi there!

I am Evan Chen, an MIT grad student and math olympiad coach. You can find me in the following places:

I'm also an amateur programmer, I guess.

๐Ÿ–ผ๏ธ Pictures of Evan coding

git rebase && git push --force Github stats card
Evan hard at work Top languages card

mosp-web's People

Contributors

anser0 avatar dependabot[bot] avatar sanjanad1024 avatar venhance avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mosp-web's Issues

Modal for completed hunts

On a page like https://mosp.evanchen.cc/volume/I if the hunt has completed (and hence spoilers are enabled) it would be nice if there was some more obvious notification after the list of chapters that the bottom right has the option to enable spoilers. You can probably write a

after the list of chapters and apply some Tailwind classes to it. https://nerdcave.com/tailwind-cheat-sheet is useful as a reference for Tailwind.

Right now, the Enable Spoilers and similar are pretty faint, easy to miss. You may like to tweak the color too.

Hint model

Write a model named Hint in core/models.py for the hint system, and integrate it into the admin interface in core/admin.py. You can mostly follow the existing code for examples of how to structure this.

Each Hint object needs to point to particular puzzle, have a question, content, and cost in patience (integer).

Show hints

https://mosp.evanchen.cc/I/puzzle/kindergarten

Modify the view and template so that, if the hunt has finished, a clickable ๐ŸŽ shows up. Clicking the gift box should yield a modal with all hints associated to that puzzle in a dropdown, and picking one should reveal the hint content.

Logic for spending patience or delay is not needed now; these will be implemented for "active" hunts later on. Consequently it's not necessary to display the patience costs for now.

This should probably be done via SweetAlert. Check checkname.ts for an example of how SweetAlert is used.

Pick a text editor

Both of you should pick a code editor. Some names I hear:

Windows

  • Notepad++ is simple and pretty clean
  • Visual Studio Code is more bulky, but I hear lots of good things about it
  • Atom is also simple and clean.

Mac

  • Sublime and Atom are simple / clean.
  • You can try the built-in Vim if you really want, but be warned that it takes a while to learn ;)

Anything from https://www.guru99.com/best-free-code-editors-windows-mac.html is generally good.

Other Notes

You should try opening README.mkd and any of the Python files in the editor to make sure they are working properly. Note that this project uses tabs instead of spaces. Spaces are more standard elsewhere, so you might have to change a setting somewhere to use tabs instead for Python editing.

Unlockable chart links

The links labeled https://mosp.evanchen.cc/staff/hunts are not implemented yet. It would be nice to implement them so that they give a list of all the unlockables that are associated with that hunt.

You can look at how StaffPuzzleList in core/views.py and core/staff_puzzle_list are defined in order to think about how to write this view.

Discord logging

Send out a message to Discord when someone solves a puzzle (or submits a wrong answer, etc.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.