Skip to content

Commit

Permalink
Adjust structure
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyuan11111 committed Jul 30, 2021
1 parent 5037262 commit f93922f
Show file tree
Hide file tree
Showing 113 changed files with 4,133 additions and 0 deletions.
76 changes: 76 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
version: "3"
services:
oj-redis:
image: redis:5.0.4
container_name: oj-redis
restart: always
tty: true
command: redis-server --requirepass acm1234@
volumes:
- ./sql/redis/data:/data
- ./sql/redis/config/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"

oj-mysql:
container_name: oj-mysql # 指定容器的名称
restart: always
image: mysql:8.0 # 指定镜像和版本
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
environment:
MYSQL_ROOT_PASSWORD: ctguacm1234@
ports:
- "3306:3306"
volumes:
- ./sql/mysql/data:/var/lib/mysql # 挂载数据目录
- ./sql/mysql/init:/docker-entrypoint-initdb.d/

oj-front-and-back:
image: registry.cn-qingdao.aliyuncs.com/ctguacmoj/ctguacmoj:1.1
container_name: oj-front-and-back
restart: always
tty: true
depends_on:
- oj-redis
- oj-mysql
- judge-server
volumes:
- ./testcase/in:/test_case/in
- ./testcase/user_out:/test_case/user_out
- ./testcase/out:/test_case/out
- ./testcase/sample:/test_case/sample
- ./web/backend:/usr/local/apache-tomcat-8.5.69/webapps # 挂载代码目录
- ./so/comparator:/usr/lib/comparator # 挂载代码目录
- ./html:/var/www/html
ports:
- "8080:8080"
- "80:80"

judge-server:
image: registry.cn-qingdao.aliyuncs.com/ctguacmoj/ctguacmoj_judgeserver:1.1
container_name: judge-server
tty: true
restart: always
cap_drop:
- SETPCAP
- MKNOD
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
- FSETID
depends_on:
- oj-mysql
ports:
- "4399:8080"
volumes:
- ./testcase/in:/test_case/in
- ./testcase/user_out:/test_case/user_out
- ./judge/log:/log
- ./judge/run:/judger
- ./web/judgeserver:/usr/local/apache-tomcat-8.5.69/webapps # 挂载代码目录
- ./so/judger:/usr/lib/judger # 挂载代码目录
environment:
- TOKEN=CHANGE_THIS
Binary file added html/admin/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions html/admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link href=static/css/chunk-common.0b13d305.css rel=preload as=style><link href=static/css/chunk-vendors.b98f57eb.css rel=preload as=style><link href=static/css/index.cd8c8258.css rel=preload as=style><link href=static/js/chunk-common.97f5a986.js rel=preload as=script><link href=static/js/chunk-vendors.a0150dce.js rel=preload as=script><link href=static/js/index.99e8fccc.js rel=preload as=script><link href=static/css/chunk-vendors.b98f57eb.css rel=stylesheet><link href=static/css/chunk-common.0b13d305.css rel=stylesheet><link href=static/css/index.cd8c8258.css rel=stylesheet></head><body><div id=index></div><script src=static/js/chunk-vendors.a0150dce.js></script><script src=static/js/chunk-common.97f5a986.js></script><script src=static/js/index.99e8fccc.js></script></body></html>
123 changes: 123 additions & 0 deletions html/admin/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><style>body,p,div,ol,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,form,input,iframe,nav {
margin: 0;
padding: 0;
}
html,body {
width: 100%;
height: 100%;
}
body {
font: 14px Microsoft YaHei;
-webkit-text-size-adjust:100%;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
position: relative;
background: #000;
}

#canvas {
width: 100%;
height: 100%;
display: block;
opacity: .8;
}</style><link href=static/css/chunk-common.0b13d305.css rel=preload as=style><link href=static/css/chunk-vendors.b98f57eb.css rel=preload as=style><link href=static/css/login.43d61e76.css rel=preload as=style><link href=static/js/chunk-common.97f5a986.js rel=preload as=script><link href=static/js/chunk-vendors.a0150dce.js rel=preload as=script><link href=static/js/login.9e9457da.js rel=preload as=script><link href=static/css/chunk-vendors.b98f57eb.css rel=stylesheet><link href=static/css/chunk-common.0b13d305.css rel=stylesheet><link href=static/css/login.43d61e76.css rel=stylesheet></head><body><canvas style=";position:absolute;z-index: -100;" id=canvas></canvas><div id=login></div><script>var canvas = document.getElementById('canvas'),
ctx = canvas.getContext('2d'),
w = canvas.width = window.innerWidth,
h = canvas.height = window.innerHeight,

hue = 217,
stars = [],
count = 0,
maxStars = 1100; //星星数量,默认1300
var canvas2 = document.createElement('canvas'),
ctx2 = canvas2.getContext('2d');
canvas2.width = 100;
canvas2.height = 100;
var half = canvas2.width / 2,
gradient2 = ctx2.createRadialGradient(half, half, 0, half, half, half);
gradient2.addColorStop(0.025, '#CCC');
gradient2.addColorStop(0.1, 'hsl(' + hue + ', 61%, 33%)');
gradient2.addColorStop(0.25, 'hsl(' + hue + ', 64%, 6%)');
gradient2.addColorStop(1, 'transparent');

ctx2.fillStyle = gradient2;
ctx2.beginPath();
ctx2.arc(half, half, half, 0, Math.PI * 2);
ctx2.fill();

// End cache
function random(min, max) {
if (arguments.length < 2) {
max = min;
min = 0;
}

if (min > max) {
var hold = max;
max = min;
min = hold;
}

return Math.floor(Math.random() * (max - min + 1)) + min;
}

function maxOrbit(x, y) {
var max = Math.max(x, y),
diameter = Math.round(Math.sqrt(max * max + max * max));
return diameter / 2;
//星星移动范围,值越大范围越小,
}

var Star = function() {

this.orbitRadius = random(maxOrbit(w, h));
this.radius = random(60, this.orbitRadius) / 10; //星星大小,值越大星星越小,默认8

this.orbitX = w / 2;
this.orbitY = h / 2;
this.timePassed = random(0, maxStars);
this.speed = random(this.orbitRadius) / 80000; //星星移动速度,值越大越慢,默认5W

this.alpha = random(2, 10) / 10;

count++;
stars[count] = this;
}

Star.prototype.draw = function() {
var x = Math.sin(this.timePassed) * this.orbitRadius + this.orbitX,
y = Math.cos(this.timePassed) * this.orbitRadius + this.orbitY,
twinkle = random(10);

if (twinkle === 1 && this.alpha > 0) {
this.alpha -= 0.05;
} else if (twinkle === 2 && this.alpha < 1) {
this.alpha += 0.05;
}

ctx.globalAlpha = this.alpha;
ctx.drawImage(canvas2, x - this.radius / 2, y - this.radius / 2, this.radius, this.radius);
this.timePassed += this.speed;
}

for (var i = 0; i < maxStars; i++) {
new Star();
}

function animation() {
ctx.globalCompositeOperation = 'source-over';
ctx.globalAlpha = 0.5; //尾巴
ctx.fillStyle = 'hsla(' + hue + ', 64%, 6%, 2)';
ctx.fillRect(0, 0, w, h)

ctx.globalCompositeOperation = 'lighter';
for (var i = 1,
l = stars.length; i < l; i++) {
stars[i].draw();
}

window.requestAnimationFrame(animation);
}

animation();</script><script src=static/js/chunk-vendors.a0150dce.js></script><script src=static/js/chunk-common.97f5a986.js></script><script src=static/js/login.9e9457da.js></script></body></html>
19 changes: 19 additions & 0 deletions html/admin/static/css/chunk-common.0b13d305.css

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions html/admin/static/css/chunk-vendors.b98f57eb.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html/admin/static/css/index.cd8c8258.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions html/admin/static/css/login.43d61e76.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file added html/admin/static/fonts/Roboto-Bold.36b5bab5.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added html/admin/static/fonts/Roboto-Thin.14147ca3.ttf
Binary file not shown.
Binary file not shown.
Binary file added html/admin/static/fonts/devicon.6ee81ef8.woff
Binary file not shown.
Binary file added html/admin/static/fonts/devicon.74a642c1.ttf
Binary file not shown.
Binary file added html/admin/static/fonts/devicon.975ca56a.eot
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added html/admin/static/fonts/raleway.ee2d5b04.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions html/admin/static/img/devicon.fd6da1cc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions html/admin/static/img/fontawesome-webfont.7f870827.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions html/admin/static/js/chunk-common.97f5a986.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html/admin/static/js/chunk-common.97f5a986.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit f93922f

Please sign in to comment.