This commit is contained in:
nemunaire 2016-12-08 12:02:06 +01:00
parent 6ff3080053
commit eac69d4b59
5 changed files with 39 additions and 0 deletions

1
admin/static/js/d3.v3.min.js vendored Symbolic link
View File

@ -0,0 +1 @@
../../../frontend/static/js/d3.v3.min.js

1
admin/static/js/i18n Symbolic link
View File

@ -0,0 +1 @@
../../../frontend/static/js/i18n/

View File

@ -0,0 +1,34 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name fic.srs.epita.fr;
access_log /var/log/nginx/fic2016.access_log main;
error_log /var/log/nginx/fic2016.error_log info;
root /srv/www/fic2016-static/;
error_page 403 404 /e404.html;
error_page 413 404 /e413.html;
error_page 500 502 504 /e500.html;
location /.htaccess {
return 404;
}
location /chbase.sh {
return 404;
}
location ~ ^/[0-9] {
rewrite ^/.*$ /index.html;
}
location /edit {
rewrite ^/.*$ /index.html;
}
location /rank {
rewrite ^/.*$ /index.html;
}
}

View File

@ -244,6 +244,7 @@ angular.module("FICApp")
$http.get("/my.json").success(function(my) {
if ($scope.my.exercices[$rootScope.current_exercice].solved_time != my.exercices[$rootScope.current_exercice].solved_time) {
$rootScope.refresh();
waitMy();
} else {
$timeout.cancel($scope.cbd);
$scope.cbd = $timeout(checkDiff, 750);

View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /