A multiple pages app built for OnlineJudge
Go to file
2017-12-03 18:55:08 +08:00
build Submission_details view show more info for admin 2017-11-28 17:13:34 +08:00
config fix static path 2017-11-25 21:04:50 +08:00
deploy about/judge display data from server, 2017-11-26 11:00:04 +08:00
src 支持选取已有题目作为比赛题目 2017-12-03 18:55:08 +08:00
static/css 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.babelrc 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.editorconfig 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.eslintignore 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.eslintrc.js 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.gitignore 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.postcssrc.js 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.travis.yml add ci deploy 2017-11-25 21:04:50 +08:00
LICENSE add LICENSE 2017-11-30 09:41:45 +08:00
package.json 迁移到element-ui 2.0 2017-11-25 10:45:43 +08:00
README.md Update README.md 2017-12-02 11:21:20 +08:00

OnlineJudge Front End

vue vuex echarts iview element-ui Build Status

A multiple pages app built for OnlineJudge, Demo

Features

  • Webpack3 multiple pages with bundle size optimization
  • Easy use simditor & Nice codemirror editor
  • Amazing charting and visualization(echarts)
  • User-friendly operation
  • Quite beautiful)

Get Started

Install nodejs v6.11 first.

npm install
npm run build:dll
npm run build

The built files are stored in ./dist, you may need to launch a server with nginx:

server {
    listen 80 default_server;
    server_name _;

    location /public {
        root /app/data;
    }
    location /api {
        proxy_pass http://backend;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $http_host;
        client_max_body_size 200M;
    }
    location /admin {
        root /app/dist/admin;
        try_files $uri $uri/ /index.html =404;
    }
    location / {
        root /app/dist;
        try_files $uri $uri/ /index.html =404;
    }
}

Screenshots

Check here.

Browser Support

Modern browsers and Internet Explorer 10+.

Development

# we use webpack DllReference to decrease the build time,
# this command only needs execute once unless you upgrade the package in build/webpack.dll.conf.js
NODE_ENV=development npm run build:dll

# the dev-server will set proxy table to your backend
export TARGET=http://Your-backend

# serve with hot reload at localhost:8080
npm run dev

LICENSE

The MIT License