A multiple pages app built for OnlineJudge
Go to file
2017-12-27 21:48:00 +08:00
build update webpack build configuration 2017-12-27 20:43:24 +08:00
config 按需使用Sentry 2017-12-20 16:33:17 +08:00
deploy update travis ci 2017-12-20 20:02:46 +08:00
src add judge server disabled column 2017-12-27 21:48:00 +08:00
static/css 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.babelrc 优化polyfill引入,修复https下dev-server的CSRF问题 2017-12-17 16:50:58 +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 将vendor_dll的hash放在文件名内 2017-12-23 22:18:53 +08:00
.postcssrc.js 完成admin多页迁移 2017-11-13 10:12:11 +08:00
.travis.yml fix ci 2017-12-20 23:56:01 +08:00
LICENSE add LICENSE 2017-11-30 09:41:45 +08:00
package-lock.json upgrade main packages to latest version; lock the packages version 2017-12-27 20:42:59 +08:00
package.json upgrade main packages to latest version; lock the packages version 2017-12-27 20:42:59 +08:00
README.md update readme 2017-12-27 20:55:45 +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

  1. Install nodejs v6.11 first.

  2. Build dist files

    npm install
    npm run build:dll
    npm run build
    

    The built files are stored in ./dist.

  3. Launch a server

    for example, use nginx:

    server {
        listen 80 default_server;
        server_name _;
    
        location /public {
            root /data;
        }
        location /api {
            proxy_pass http://your-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

MIT