Code Monkey home page Code Monkey logo

oj_frontend's Introduction

FrontEnd part for LHPOJ

How to use

Firstly, you'll need to install npm, yarn and npx.
Clone this repo, then open a terminal in this directory.
Run yarn install
Next, run npx hydrooj addon add '@hydrooj/ui-default'
Run yarn build:watch to enable the backend.
Run yarn build:ui:dev to enable the frontend.
Lastly, you need to run yarn debug --port=2333 to connect to the database with the details given in discord server.
After first run, re-run yarn build:watch, yarn build:ui:dev, yarn debug --port=2333 and the website is available at localhost:8000

Note: you must keep those three command running from 3 diffenrent terminals/command prompts.


If you want to modify a page

Get the component's name by viewing the source of the page you want to change
Take notice of the data-type="<component>" in the second line of the source
Go to packages/ui-default/addon/templates/ and find the .html has that <component> in it's name then edit it.

If you want to modify the translation

Go to packages/ui-default/addon/locales/ and open the .yaml file you want to change.

Make sure to follow the format

oj_frontend's People

Contributors

winprn avatar tuan9304 avatar rlukas2 avatar dvtdat avatar

Watchers

Vũ Ngọc Quốc Khánh avatar  avatar

Forkers

rlukas2 tuan9304

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.