2017-11-25 15:04:06 +00:00
|
|
|
|
# OnlineJudge Front End
|
2017-12-27 12:55:45 +00:00
|
|
|
|
[![vue](https://img.shields.io/badge/vue-2.5.13-blue.svg?style=flat-square)](https://github.com/vuejs/vue)
|
2017-11-25 15:04:06 +00:00
|
|
|
|
[![vuex](https://img.shields.io/badge/vuex-3.0.1-blue.svg?style=flat-square)](https://vuex.vuejs.org/)
|
|
|
|
|
[![echarts](https://img.shields.io/badge/echarts-3.8.3-blue.svg?style=flat-square)](https://github.com/ecomfe/echarts)
|
2017-12-27 12:55:45 +00:00
|
|
|
|
[![iview](https://img.shields.io/badge/iview-2.8.0-blue.svg?style=flat-square)](https://github.com/iview/iview)
|
|
|
|
|
[![element-ui](https://img.shields.io/badge/element-2.0.9-blue.svg?style=flat-square)](https://github.com/ElemeFE/element)
|
2017-11-25 15:04:06 +00:00
|
|
|
|
[![Build Status](https://travis-ci.org/QingdaoU/OnlineJudgeFE.svg?branch=master)](https://travis-ci.org/QingdaoU/OnlineJudgeFE)
|
|
|
|
|
|
2017-12-27 12:55:45 +00:00
|
|
|
|
>### A multiple pages app built for OnlineJudge. [Demo](https://qduoj.com)
|
2017-11-25 15:04:06 +00:00
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
+ Webpack3 multiple pages with bundle size optimization
|
2017-11-26 07:28:09 +00:00
|
|
|
|
+ Easy use simditor & Nice codemirror editor
|
2017-11-25 15:04:06 +00:00
|
|
|
|
+ Amazing charting and visualization(echarts)
|
|
|
|
|
+ User-friendly operation
|
|
|
|
|
+ Quite beautiful:)
|
|
|
|
|
|
|
|
|
|
## Get Started
|
|
|
|
|
|
2018-12-12 06:50:39 +00:00
|
|
|
|
Install nodejs **v8.12.0** first.
|
2017-11-25 15:04:06 +00:00
|
|
|
|
|
2020-07-22 07:44:19 +00:00
|
|
|
|
### Linux
|
|
|
|
|
|
2017-11-25 15:04:06 +00:00
|
|
|
|
```bash
|
2018-03-16 14:09:38 +00:00
|
|
|
|
npm install
|
2017-11-26 07:28:09 +00:00
|
|
|
|
# we use webpack DllReference to decrease the build time,
|
2017-11-26 03:00:04 +00:00
|
|
|
|
# this command only needs execute once unless you upgrade the package in build/webpack.dll.conf.js
|
2020-07-22 07:44:19 +00:00
|
|
|
|
export NODE_ENV=development
|
|
|
|
|
npm run build:dll
|
2017-11-25 15:04:06 +00:00
|
|
|
|
|
|
|
|
|
# the dev-server will set proxy table to your backend
|
|
|
|
|
export TARGET=http://Your-backend
|
|
|
|
|
|
2020-07-22 07:44:19 +00:00
|
|
|
|
# serve with hot reload at localhost:8080
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
|
|
|
|
### Windows
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm install
|
|
|
|
|
# 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
|
|
|
|
|
set NODE_ENV=development
|
|
|
|
|
npm run build:dll
|
|
|
|
|
|
|
|
|
|
# the dev-server will set proxy table to your backend
|
|
|
|
|
set TARGET=http://Your-backend
|
|
|
|
|
|
2017-11-25 15:04:06 +00:00
|
|
|
|
# serve with hot reload at localhost:8080
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
2017-11-30 01:41:45 +00:00
|
|
|
|
|
2018-03-16 14:09:38 +00:00
|
|
|
|
## Screenshots
|
|
|
|
|
|
2018-05-30 13:46:08 +00:00
|
|
|
|
[Check here.](https://github.com/QingdaoU/OnlineJudge)
|
2018-03-16 14:09:38 +00:00
|
|
|
|
|
|
|
|
|
## Browser Support
|
|
|
|
|
|
|
|
|
|
Modern browsers and Internet Explorer 10+.
|
|
|
|
|
|
2017-11-30 01:41:45 +00:00
|
|
|
|
## LICENSE
|
|
|
|
|
|
2017-12-27 12:55:45 +00:00
|
|
|
|
[MIT](http://opensource.org/licenses/MIT)
|