Giter Site home page Giter Site logo

qingdaou / onlinejudgefe Goto Github PK

View Code? Open in Web Editor NEW
279.0 21.0 514.0 3.95 MB

A multiple pages app built for OnlineJudge

Home Page: http://qduoj.com/

License: Other

JavaScript 28.65% HTML 0.35% Vue 69.26% Shell 0.24% CSS 0.51% Dockerfile 0.04% Less 0.95%
onlinejudge vuejs iview element-ui

onlinejudgefe's Introduction

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 v8.12.0 first.

Linux

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
export 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

Windows

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

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

Screenshots

Check here.

Browser Support

Modern browsers and Internet Explorer 10+.

LICENSE

MIT

onlinejudgefe's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onlinejudgefe's Issues

Migrate to Vue 3

Vue 2 officially reached EOL last year. It is high time we considered migrating the codebase to Vue 3

node版本

请问,使用node的版本为v8.11.1 可以吗?(老是运行失败)

中英文切换

中英文切换的语言包已经基本写完了。picture如下:
用户端:
en:
en.png

zh:
zh.png

管理端:
en:
en_admin.png
zh:
zh_admin.png

NavBar在過窄的視窗無法完整顯示

在一個13.3吋 1366x768的螢幕 瀏覽器用半塊螢幕時發現 NavBar 只能顯示到 Rank
因為#headerposition: fixed;無法橫向捲動
我初步的建議是改成position: sticky;

用户设置页面刷新后数据丢失

在 Profile 界面,从别的页面切换到 Profile 的时候是可以正常显示数据,但是在这个页面按F5刷新一下数据就丢了

问题重现:

image

image

代码定位

https://github.com/QingdaoU/OnlineJudgeFE/blob/master/src/pages/oj/views/setting/children/ProfileSetting.vue#L139-L144

在该段代码中,如果从别的页面跳转而来,this.$store.state.user.profile 是可以取到正确的内容,但是在当前页面刷新后返回的是一个observer的对象,然后导致数据丢失

前台显示效果的问题

1.编辑器里面的设置的文字颜色,文字加粗保存后无效,普通编辑和markdown编辑都是如此。
2.前台对于英语单词的显示不会根据单词的完整性自动分行,单词会被截断。

lot of warning when npm run dev

 npm run dev

> [email protected] dev /home/smallst/work/CoCoOJ/CoCoOJFE
> node build/dev-server.js

current version is "20200805-a0cc3"
All entries:
oj
- ./src/pages/oj/index.js

admin
- ./src/pages/admin/index.js

[HPM] Proxy created: /api  ->  http://localhost/api
[HPM] Proxy created: /public  ->  http://localhost/api
> Starting dev server...
(node:11922) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11922) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'which' of module exports inside circular dependency



 DONE  Compiled successfully in 9638ms                                                                        1:32:35 PM
> Listening at http://localhost:8080

(node:11922) UnhandledPromiseRejectionWarning: Error: Exited with code 3
    at ChildProcess.<anonymous> (/home/smallst/work/CoCoOJ/CoCoOJFE/node_modules/opn/index.js:84:13)
    at Object.onceWrapper (events.js:421:26)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1051:16)
    at Socket.<anonymous> (internal/child_process.js:442:11)
    at Socket.emit (events.js:314:20)
    at Pipe.<anonymous> (net.js:673:12)
(node:11922) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11922) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

是什么原因呢?依赖库版本比较旧?

npm run dev 疯狂报错

node 10.16.0

npm run dev时候报错
image

是node版本问题吗,我对代码并未做任何的修改

问题详情页 渲染兼容

当请求 /api/problem?problem_id=xxx 时,
若后端版本较低,未下发io_mode dict,将导致问题详情页整个页面无法正常渲染

npm install时 出错 Host key verification failed.

环境

ubuntu 18.04
win 10
win 11
上均尝试了

已安装 node v8.12.0

问题

命令:

E:\wzx\Vueproject\OnlineJudgeFE>E:\wzx\nvm\v8.12.0\npm install

报错

npm ERR! Error while executing:
npm ERR! E:\program files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/itargaryen/simple-hotkeys.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\白板\AppData\Roaming\npm-cache\_logs\2022-11-20T15_20_27_606Z-debug.log

日志

2481 verbose stack     at Socket.emit (events.js:211:7)
2481 verbose stack     at Pipe._handle.close [as _onclose] (net.js:561:12)
2482 verbose cwd E:\wzx\Vueproject\OnlineJudgeFE
2483 verbose Windows_NT 10.0.22000
2484 verbose argv "E:\\wzx\\nvm\\v8.12.0\\node.exe" "E:\\wzx\\nvm\\v8.12.0\\node_modules\\npm\\bin\\npm-cli.js" "install"
2485 verbose node v8.12.0
2486 verbose npm  v6.4.1
2487 error Error while executing:
2487 error E:\program files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/itargaryen/simple-hotkeys.git
2487 error
2487 error Host key verification failed.
2487 error fatal: Could not read from remote repository.
2487 error
2487 error Please make sure you have the correct access rights
2487 error and the repository exists.
2487 error
2487 error exited with error code: 128
2488 verbose exit [ 1, true ]

比赛排名无数据

比赛排名没有显示任何数据,不管是否在后台开启实时排名,都没有。在qduoj.com上,查看同样的页面,会有排名数据。

修改前端问题

修改前端那块,nodejs v8.12.0 版本无法正常 install,如 npm install (多是警告及bug)、、、npm run build、、等等,在阿里云Ubuntu 22.04 服务器上

(node:25795) UnhandledPromiseRejectionWarning: Error: Exited with code 3

Error Code

(node:25795) UnhandledPromiseRejectionWarning: Error: Exited with code 3
at ChildProcess. (/home/redoc/OnlineJudgeFE/node_modules/opn/index.js:84:13)
at Object.onceWrapper (events.js:421:26)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:443:11)
at Socket.emit (events.js:314:20)
at Pipe. (net.js:676:12)
(node:25795) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25795) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

How can I solve this problem?

onlinejudgeFE组件无法渲染

配置本地开发环境时,出现了下拉无法响应的问题,包括login之后,账户的下拉也无法响应。

二次开发后,管理员无法修改用户密码

使用了这个OnlineJudgeFE的源代码,我试了试什么都不改直接build后上传到服务器后管理员想要修改别人密码的时候点击密码字段的时候输入不进去。改回原注释 # - ./data/dist:/app/dist后用原来的前端就可以改密码

重新编译之后,用docker替换了原来的dist文件夹,却发现后台管理页面进不去了,首页正常

这是后台页面的报错信息,进入后台管理,蓝色背景还有,其他的什么也没有了。js文件加载正常

Uncaught TypeError: s.connect is not a function
at admin.192effd1dc02877e377d.js:114
at admin.192effd1dc02877e377d.js:114
at Object. (admin.192effd1dc02877e377d.js:114)
at admin.192effd1dc02877e377d.js:114
at Object.faOw (admin.192effd1dc02877e377d.js:114)
at o (manifest.d8de01ea2b208f69314f.js:1)
at Object.Z2OV (admin.192effd1dc02877e377d.js:97)
at o (manifest.d8de01ea2b208f69314f.js:1)
at Object.1 (admin.192effd1dc02877e377d.js:1)
at o (manifest.d8de01ea2b208f69314f.js:1)

Why am I getting npm install errors?

Permission error occurs when sudo npm install on Ubuntu 18.04

It was solved by modifying the permissions of that path.
But I don't know why the error occurs despite sudo npm install.

OS environment

*AWS EC2 Ubuntu*
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic

npm error screenshot

image

npm error logs

15503 verbose stack Error: Command failed: git clone --mirror -q git://github.com/itargaryen/simple-hotkeys.git /home/ubuntu/.npm/_cacache/tmp/git-clone-20ea6e5d/.git
15503 verbose stack /home/ubuntu/.npm/_cacache/tmp/git-clone-20ea6e5d/.git: Permission denied
15503 verbose stack
15503 verbose stack     at ChildProcess.exithandler (child_process.js:281:12)
15503 verbose stack     at emitTwo (events.js:126:13)
15503 verbose stack     at ChildProcess.emit (events.js:214:7)
15503 verbose stack     at maybeClose (internal/child_process.js:915:16)
15503 verbose stack     at Socket.stream.socket.on (internal/child_process.js:336:11)
15503 verbose stack     at emitOne (events.js:116:13)
15503 verbose stack     at Socket.emit (events.js:211:7)
15503 verbose stack     at Pipe._handle.close [as _onclose] (net.js:561:12)
15504 verbose cwd /home/ubuntu/OnlineJudgeFE
15505 verbose Linux 5.4.0-1045-aws
15506 verbose argv "/usr/bin/node" "/usr/bin/npm" "i"
15507 verbose node v8.17.0
15508 verbose npm  v6.13.4
15509 error code 1
15510 error Command failed: git clone --mirror -q git://github.com/itargaryen/simple-hotkeys.git /home/ubuntu/.npm/_cacache/tmp/git-clone-20ea6e5d/.git
15510 error /home/ubuntu/.npm/_cacache/tmp/git-clone-20ea6e5d/.git: Permission denied
15511 verbose exit [ 1, true ]

How I can connect my local OnlineJudgeFE to oj-backend (in docker)?

As instruction,

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

I used these command

export TARGET=<my ip:portNum of oj-backend>

I'm trying to connect my local FE app.
My app is on 8080 port and my docker container (oj-backend) app is also on 8080:8000 port(port forwarding). these apps conflict because they use same 8080 port..

How can I fix it?

超级报错,前端咋也运行不了

我没有改前端,但是疯狂报错
PS G:\OnlineJudgeFE-master> npm run dev

[email protected] dev G:\OnlineJudgeFE-master
node build/dev-server.js

module.js:550
throw err;
^

Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (G:\OnlineJudgeFE-master\build\check-versions.js:2:15)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: node build/dev-server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! G:\node-v8.1.2-win-x64\node_cache_logs\2022-10-24T23_53_22_107Z-debug.log

help me~!

npm build失败

node --version v12.18.2
npm --version v6.14.5

npm run build报错信息:
image

日志信息:
image

按照文档里直接npm run build构建失败

提示 Cannot find module './vendor-manifest.json'

我先构建了dll,再运行 NODE_ENV=production & npm run build 最后成功了。

这块可能需要更新一下官网的文档。


另外我想问一下如果我单独开发前端,怎么配置比较方便,我想把除了前端的其他的部分部署起来,前端用dev模式,因为对Docker不是很熟悉,按照Deploy的部署方式,只能部署完整的生产环境。

网页手动刷新后会出现左上角logo无法正常显示的

会出现这个
屏幕截图 2024-04-15 213720
但是实际应该是这个
屏幕截图 2024-04-15 213749
我找到了问题,出现在
屏幕截图 2024-04-15 213914
应该是这样的:

<img data-v-0b9f3f56="" data-v-90f51026="" src="/public/website/kechuangoj.PNG" height="55">

但实际是这样的:

<img data-v-0b9f3f56="" data-v-90f51026="" src="public/website/kechuangoj.PNG" height="55">

有没有大佬出面解决一下?

$sudo cnpm install happend this problems

4 warnings and 1 error generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/Cellar/node/8.9.0/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/npminstall/node-gyp-bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/xxxxxxxx/xxxxxxxx/OnlineJudgeFE/node_modules/_contextify@0.1.15@contextify
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
✖ Install fail! Error: Run "sh -c node-gyp rebuild" error, exit code 1
Error: Run "sh -c node-gyp rebuild" error, exit code 1
at ChildProcess.proc.on.code (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:74:21)
at ChildProcess.emit (events.js:180:13)
at maybeClose (internal/child_process.js:936:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
npminstall version: 3.3.0
npminstall args: /usr/local/Cellar/node/8.9.0/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --china --userconfig=/Users/shihualiu/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org

please give some tips,thank you

I'm failing to install FE (about node_env setting)

I'm trying to install FE, but it doesn't work
I already use node installcommand and I'm using node v6.11.
few days ago, this command work but it isn't now.
is it related about updating source (new commit) ?

 eagle@eagle-1  ~/workspace/OnlineJudgeFE-master  NODE_ENV=development npm run build:dll

> [email protected] build:dll /Users/eagle/workspace/OnlineJudgeFE-master
> webpack --config=build/webpack.dll.conf.js

fatal: Not a git repository (or any of the parent directories): .git
child_process.js:515
    throw err;
    ^

Error: Command failed: git rev-parse HEAD
fatal: Not a git repository (or any of the parent directories): .git

    at checkExecSyncError (child_process.js:472:13)
    at Object.execSync (child_process.js:512:13)
    at Object.<anonymous> (/Users/eagle/workspace/OnlineJudgeFE-master/config/dev.env.js:2:39)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/eagle/workspace/OnlineJudgeFE-master/config/prod.env.js:2:16)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

npm ERR! Darwin 17.3.0
npm ERR! argv "/Users/eagle/.nvm/versions/node/v6.11.5/bin/node" "/Users/eagle/.nvm/versions/node/v6.11.5/bin/npm" "run" "build:dll"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:dll: `webpack --config=build/webpack.dll.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:dll script 'webpack --config=build/webpack.dll.conf.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the onlinejudge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack --config=build/webpack.dll.conf.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs onlinejudge
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls onlinejudge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/eagle/workspace/OnlineJudgeFE-master/npm-debug.lo

记录一些问题

个人信息设置页面

  • 第一次进入页面或者刷新页面不会出现小蓝条

如果在非 profile 页面点击头像 change avatar,页面有跳转,但是小蓝条也没动

image

用户端

  • problem.vue 不能硬编码语言
  • about/judge 页面不要硬编码编译参数
  • webpack dll dev build
  • 提交代码的编辑器可以像后台题目模板一样,随着代码行数增加无限增高
  • 编译错误信息和announcement太长会超出页面
  • share submission 误删table column
  • 对于 Only admin can check the test_case details in ACM problems. 显示更多的信息,比如 实际运行时间,signal 等
    image
  • 管理员可以查看rank user的real_name
  • contest announcement badges
  • safari 不显示导航下拉菜单

admin

  • windows 下面上传 csv 提示不是 csv?
  • 导入和生成用户 api 返回值修改导致的前端问题
  • 导入用户成功后自动 reset 列表
  • 生成用户成功后自动下载 xlsx
  • 把生成用户的表单改小一点吧,感觉一行就足够了,同时可以去掉 email
  • 题目 template 的代码编辑器行高太大
  • 题目 template 的语言顺序会变?可能和后端返回的是字典有关,也可以 won't fix
  • Announcement 某些情况显示content is required
  • 前后端确认权限的判断写法是正确的
  • 编辑历史
  • 前端提交后应该disable提交按钮
  • judge server 需要是否禁用字段
  • smtp测试
  • 获取和重置个人token
  • 题目编辑器记住语言和主题
  • 确认模板切换的时候提示和localstorage保存逻辑
  • 前后端修正提交验证码的问题

npm install error

../src/contextify.cc:150:16: erreur : ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’? otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
And yeah this function has been removed after deprecation. Now we need to use "SetAccessCheckCallback".

As I don't know node at all. I don't know how to fix it.

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.