From 73eb04bcf07f43dd5ccd62094f56b3cfb77d949d Mon Sep 17 00:00:00 2001 From: nemunaire Date: Fri, 13 Apr 2018 20:02:47 +0200 Subject: [PATCH] Extract public interface into a separate project: dashboard --- dashboard/static/css/bootstrap.min.css | 1 + dashboard/static/css/fic.css | 1 + dashboard/static/css/glyphicon.css | 1 + dashboard/static/favicon.ico | 1 + dashboard/static/fonts | 1 + dashboard/static/img/epita.png | 1 + dashboard/static/img/fic.png | 1 + .../static/img/logo-epita-bw.png | Bin dashboard/static/img/rcc.png | 1 + dashboard/static/img/srs.png | 1 + .../public.html => dashboard/static/index.html | 2 +- .../static/js/angular-animate.min.js | 0 dashboard/static/js/angular-resource.min.js | 15 +++++++++++++++ dashboard/static/js/angular-route.min.js | 1 + dashboard/static/js/angular-sanitize.min.js | 1 + dashboard/static/js/angular.min.js | 1 + dashboard/static/js/bootstrap.min.js | 1 + dashboard/static/js/common.js | 1 + dashboard/static/js/d3.v3.min.js | 1 + .../static/js/dashboard.js | 5 ++++- dashboard/static/js/i18n | 1 + dashboard/static/js/jquery.min.js | 1 + dashboard/static/js/popper.min.js | 1 + 23 files changed, 38 insertions(+), 2 deletions(-) create mode 120000 dashboard/static/css/bootstrap.min.css create mode 120000 dashboard/static/css/fic.css create mode 120000 dashboard/static/css/glyphicon.css create mode 120000 dashboard/static/favicon.ico create mode 120000 dashboard/static/fonts create mode 120000 dashboard/static/img/epita.png create mode 120000 dashboard/static/img/fic.png rename {frontend => dashboard}/static/img/logo-epita-bw.png (100%) create mode 120000 dashboard/static/img/rcc.png create mode 120000 dashboard/static/img/srs.png rename frontend/static/public.html => dashboard/static/index.html (99%) rename {frontend => dashboard}/static/js/angular-animate.min.js (100%) create mode 100644 dashboard/static/js/angular-resource.min.js create mode 120000 dashboard/static/js/angular-route.min.js create mode 120000 dashboard/static/js/angular-sanitize.min.js create mode 120000 dashboard/static/js/angular.min.js create mode 120000 dashboard/static/js/bootstrap.min.js create mode 120000 dashboard/static/js/common.js create mode 120000 dashboard/static/js/d3.v3.min.js rename frontend/static/js/public.js => dashboard/static/js/dashboard.js (97%) create mode 120000 dashboard/static/js/i18n create mode 120000 dashboard/static/js/jquery.min.js create mode 120000 dashboard/static/js/popper.min.js diff --git a/dashboard/static/css/bootstrap.min.css b/dashboard/static/css/bootstrap.min.css new file mode 120000 index 00000000..0b20a9b5 --- /dev/null +++ b/dashboard/static/css/bootstrap.min.css @@ -0,0 +1 @@ +../../../frontend/static/css/bootstrap.min.css \ No newline at end of file diff --git a/dashboard/static/css/fic.css b/dashboard/static/css/fic.css new file mode 120000 index 00000000..5f8e4077 --- /dev/null +++ b/dashboard/static/css/fic.css @@ -0,0 +1 @@ +../../../frontend/static/css/fic.css \ No newline at end of file diff --git a/dashboard/static/css/glyphicon.css b/dashboard/static/css/glyphicon.css new file mode 120000 index 00000000..6d65cb92 --- /dev/null +++ b/dashboard/static/css/glyphicon.css @@ -0,0 +1 @@ +../../../frontend/static/css/glyphicon.css \ No newline at end of file diff --git a/dashboard/static/favicon.ico b/dashboard/static/favicon.ico new file mode 120000 index 00000000..060d10ef --- /dev/null +++ b/dashboard/static/favicon.ico @@ -0,0 +1 @@ +../../frontend/static/favicon.ico \ No newline at end of file diff --git a/dashboard/static/fonts b/dashboard/static/fonts new file mode 120000 index 00000000..5431051e --- /dev/null +++ b/dashboard/static/fonts @@ -0,0 +1 @@ +../../frontend/static/fonts/ \ No newline at end of file diff --git a/dashboard/static/img/epita.png b/dashboard/static/img/epita.png new file mode 120000 index 00000000..110ea62c --- /dev/null +++ b/dashboard/static/img/epita.png @@ -0,0 +1 @@ +../../../frontend/static/img/epita.png \ No newline at end of file diff --git a/dashboard/static/img/fic.png b/dashboard/static/img/fic.png new file mode 120000 index 00000000..00ba2748 --- /dev/null +++ b/dashboard/static/img/fic.png @@ -0,0 +1 @@ +../../../frontend/static/img/fic.png \ No newline at end of file diff --git a/frontend/static/img/logo-epita-bw.png b/dashboard/static/img/logo-epita-bw.png similarity index 100% rename from frontend/static/img/logo-epita-bw.png rename to dashboard/static/img/logo-epita-bw.png diff --git a/dashboard/static/img/rcc.png b/dashboard/static/img/rcc.png new file mode 120000 index 00000000..6a2a5bc0 --- /dev/null +++ b/dashboard/static/img/rcc.png @@ -0,0 +1 @@ +../../../frontend/static/img/rcc.png \ No newline at end of file diff --git a/dashboard/static/img/srs.png b/dashboard/static/img/srs.png new file mode 120000 index 00000000..a599744d --- /dev/null +++ b/dashboard/static/img/srs.png @@ -0,0 +1 @@ +../../../frontend/static/img/srs.png \ No newline at end of file diff --git a/frontend/static/public.html b/dashboard/static/index.html similarity index 99% rename from frontend/static/public.html rename to dashboard/static/index.html index dc64ac8b..44e15ffa 100644 --- a/frontend/static/public.html +++ b/dashboard/static/index.html @@ -399,7 +399,7 @@ - + diff --git a/frontend/static/js/angular-animate.min.js b/dashboard/static/js/angular-animate.min.js similarity index 100% rename from frontend/static/js/angular-animate.min.js rename to dashboard/static/js/angular-animate.min.js diff --git a/dashboard/static/js/angular-resource.min.js b/dashboard/static/js/angular-resource.min.js new file mode 100644 index 00000000..01b09d7d --- /dev/null +++ b/dashboard/static/js/angular-resource.min.js @@ -0,0 +1,15 @@ +/* + AngularJS v1.6.8 + (c) 2010-2017 Google, Inc. http://angularjs.org + License: MIT +*/ +(function(U,a){'use strict';function L(m,f){f=f||{};a.forEach(f,function(a,d){delete f[d]});for(var d in m)!m.hasOwnProperty(d)||"$"===d.charAt(0)&&"$"===d.charAt(1)||(f[d]=m[d]);return f}var B=a.$$minErr("$resource"),Q=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;a.module("ngResource",["ng"]).info({angularVersion:"1.6.8"}).provider("$resource",function(){var m=/^https?:\/\/\[[^\]]*][^/]*/,f=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET", +isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}};this.$get=["$http","$log","$q","$timeout",function(d,P,F,M){function C(a,d){this.template=a;this.defaults=n({},f.defaults,d);this.urlParams={}}var D=a.noop,r=a.forEach,n=a.extend,R=a.copy,N=a.isArray,w=a.isDefined,x=a.isFunction,S=a.isNumber,y=a.$$encodeUriQuery,T=a.$$encodeUriSegment;C.prototype={setUrlParams:function(a,d,f){var g=this,c=f||g.template,s,h,n="",b=g.urlParams=Object.create(null);r(c.split(/\W/),function(a){if("hasOwnProperty"=== +a)throw B("badname");!/^\d+$/.test(a)&&a&&(new RegExp("(^|[^\\\\]):"+a+"(\\W|$)")).test(c)&&(b[a]={isQueryParamValue:(new RegExp("\\?.*=:"+a+"(?:\\W|$)")).test(c)})});c=c.replace(/\\:/g,":");c=c.replace(m,function(b){n=b;return""});d=d||{};r(g.urlParams,function(b,a){s=d.hasOwnProperty(a)?d[a]:g.defaults[a];w(s)&&null!==s?(h=b.isQueryParamValue?y(s,!0):T(s),c=c.replace(new RegExp(":"+a+"(\\W|$)","g"),function(b,a){return h+a})):c=c.replace(new RegExp("(/?):"+a+"(\\W|$)","g"),function(a,b,e){return"/"=== +e.charAt(0)?e:b+e})});g.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/");c=c.replace(/\/\.(?=\w+($|\?))/,".");a.url=n+c.replace(/\/(\\|%5C)\./,"/.");r(d,function(b,c){g.urlParams[c]||(a.params=a.params||{},a.params[c]=b)})}};return function(m,y,z,g){function c(b,c){var d={};c=n({},y,c);r(c,function(c,f){x(c)&&(c=c(b));var e;if(c&&c.charAt&&"@"===c.charAt(0)){e=b;var k=c.substr(1);if(null==k||""===k||"hasOwnProperty"===k||!Q.test("."+k))throw B("badmember",k);for(var k=k.split("."),h=0, +n=k.length;h