qingdaou / onlinejudgefe Goto Github PK
View Code? Open in Web Editor NEWA multiple pages app built for OnlineJudge
Home Page: http://qduoj.com/
License: Other
A multiple pages app built for OnlineJudge
Home Page: http://qduoj.com/
License: Other
如题,目前手机浏览体验比较糟糕,需要手动放大页面,请问有没有这方面的打算
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
请问,使用node的版本为v8.11.1 可以吗?(老是运行失败)
使用的一样的node版本,运行npm install 报错,之后的都运行不了!!!
当请求 /api/problem?problem_id=xxx
时,
若后端版本较低,未下发io_mode
dict,将导致问题详情页整个页面无法正常渲染。
我没有改前端,但是疯狂报错
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~!
1.编辑器里面的设置的文字颜色,文字加粗保存后无效,普通编辑和markdown编辑都是如此。
2.前台对于英语单词的显示不会根据单词的完整性自动分行,单词会被截断。
修改前端那块,nodejs v8.12.0 版本无法正常 install,如 npm install (多是警告及bug)、、、npm run build、、等等,在阿里云Ubuntu 22.04 服务器上
如题,同时我提交了PR,由于本地没有搭后台环境,无法测试,请自行验证~~~~逃
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.
是什么原因呢?依赖库版本比较旧?
如果在非 profile 页面点击头像 change avatar,页面有跳转,但是小蓝条也没动
Golang syntax doesn't work because it isn't imported into CodeMirror.vue component.
Add import 'codemirror/mode/go/go.js'
Vue 2 officially reached EOL last year. It is high time we considered migrating the codebase to Vue 3
这是后台页面的报错信息,进入后台管理,蓝色背景还有,其他的什么也没有了。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)
(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.
在一個13.3吋 1366x768的螢幕 瀏覽器用半塊螢幕時發現 NavBar 只能顯示到 Rank
因為#header
的position: fixed;
無法橫向捲動
我初步的建議是改成position: sticky;
在该段代码中,如果从别的页面跳转而来,this.$store.state.user.profile
是可以取到正确的内容,但是在当前页面刷新后返回的是一个observer的对象,然后导致数据丢失
使用了这个OnlineJudgeFE的源代码,我试了试什么都不改直接build后上传到服务器后管理员想要修改别人密码的时候点击密码字段的时候输入不进去。改回原注释 # - ./data/dist:/app/dist后用原来的前端就可以改密码
配置本地开发环境时,出现了下拉无法响应的问题,包括login之后,账户的下拉也无法响应。
在比赛开始时间到之前,可以进入比赛的题目详情中,可以在比赛开始前进行思考,只是不能提交,是不是不太合理……
在前端怎么修改设置用户登录才能看问题
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?
比赛排名没有显示任何数据,不管是否在后台开启实时排名,都没有。在qduoj.com上,查看同样的页面,会有排名数据。
I'm trying to install FE, but it doesn't work
I already use node install
command 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
OnlineJudgeFE/src/pages/oj/App.vue
Line 50 in aa9159d
目前不论在哪个页面,页面的标题一直是 Online Judge
,不会随页面更新。
后期是否会实现更新页面标题的功能?比如在 https://qduoj.com/problem/1 的时候能够显示 Online Judge | A + B Problem
提示 Cannot find module './vendor-manifest.json'
我先构建了dll,再运行 NODE_ENV=production & npm run build
最后成功了。
这块可能需要更新一下官网的文档。
另外我想问一下如果我单独开发前端,怎么配置比较方便,我想把除了前端的其他的部分部署起来,前端用dev模式,因为对Docker不是很熟悉,按照Deploy的部署方式,只能部署完整的生产环境。
../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.
you might want to place that at the root of project, and by the way, is that really okay to have no ADD statement (resulting just create a few empty folders to the root of docker img so that container instanced won't start) in dockerfile???
sudo npm install
on Ubuntu 18.04It was solved by modifying the permissions of that path.
But I don't know why the error occurs despite sudo npm install
.
*AWS EC2 Ubuntu*
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
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 ]
I wanna use this source to provide a small OJ service.
Can i delete "Powered by" on footer and insert this in separated licences&open-source information page?
似乎超过200K就上传失败了,请问有地方配置这个参数么?
ubuntu 18.04
win 10
win 11
上均尝试了
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 ]
I don't really know where is the "http://Your-backend" to export...
是有哪些业务用另一个框架不好做,还是因为视觉需要(我也觉得Element2做前台有点锉……)
如题
哪里有一个check it,点击后 状态会变绿 他的功能是??
在切换界面语言的时候,iview没有同步切换。附件是更改后的源代码。
src.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.