Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dad
FFDS-register-front
Commits
1e017820
Commit
1e017820
authored
Aug 20, 2020
by
cazenave
Browse files
add dist
parent
1fda6687
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
dist/register-front/main-es2015.js
View file @
1e017820
This diff is collapsed.
Click to expand it.
dist/register-front/main-es2015.js.map
View file @
1e017820
This diff is collapsed.
Click to expand it.
dist/register-front/main-es5.js
View file @
1e017820
This diff is collapsed.
Click to expand it.
dist/register-front/main-es5.js.map
View file @
1e017820
This diff is collapsed.
Click to expand it.
nginx.conf
View file @
1e017820
events
{}
http
{
include
/etc/nginx/mime.types
;
server
{
listen
80
;
...
...
@@ -9,5 +11,7 @@ http {
location
/
{
try_files
$uri
$uri
/
/index.html
;
}
}
}
}
src/app/AppConfiguration.ts
View file @
1e017820
import
{
Injectable
}
from
"
@angular/core
"
;
import
{
HttpClient
}
from
'
@angular/common/http
'
;
import
{
environment
}
from
'
src/environments/environment.prod
'
;
@
Injectable
()
export
class
AppConfiguration
{
...
...
@@ -13,7 +14,7 @@ export class AppConfiguration {
public
ensureInit
():
Promise
<
any
>
{
return
new
Promise
((
r
,
e
)
=>
{
this
.
httpClient
.
get
(
"
http://
localhost:8080
/api/setting/load
"
).
subscribe
((
content
:
AppConfiguration
)
=>
{
Object
.
assign
(
this
,
content
);
r
(
this
);},
reason
=>
e
(
reason
));
this
.
httpClient
.
get
(
"
http://
"
+
environment
.
apiurl
+
"
/api/setting/load
"
).
subscribe
((
content
:
AppConfiguration
)
=>
{
Object
.
assign
(
this
,
content
);
r
(
this
);},
reason
=>
e
(
reason
));
});
};
...
...
src/app/elasticsearch/elasticsearch.component.ts
View file @
1e017820
...
...
@@ -5,6 +5,7 @@ import { FileSaverService } from 'ngx-filesaver';
import
{
FormControl
}
from
'
@angular/forms
'
;
import
{
FormGroup
}
from
'
@angular/forms
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
environment
}
from
'
src/environments/environment.prod
'
;
@
Component
({
selector
:
'
app-elasticsearch
'
,
...
...
@@ -42,7 +43,7 @@ export class ElasticsearchComponent implements OnInit {
"smartapiurl": "
'
+
this
.
appConfig
.
smartapiurl
+
'
"
\n\
}
'
console
.
log
(
data
);
return
this
.
http
.
post
(
"
http://
localhost:8080
/api/setting
"
,
data
,{
responseType
:
'
text
'
}).
subscribe
(
(
r
)
=>
{
console
.
log
(
r
)})
;
return
this
.
http
.
post
(
"
http://
"
+
environment
.
apiurl
+
"
/api/setting
"
,
data
,{
responseType
:
'
text
'
}).
subscribe
(
(
r
)
=>
{
console
.
log
(
r
)})
;
};
...
...
src/app/settingfdp/settingfdp.component.ts
View file @
1e017820
...
...
@@ -5,6 +5,7 @@ import { FileSaverService } from 'ngx-filesaver';
import
{
FormControl
}
from
'
@angular/forms
'
;
import
{
FormGroup
}
from
'
@angular/forms
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
environment
}
from
'
src/environments/environment.prod
'
;
@
Component
({
selector
:
'
app-settingfdp
'
,
...
...
@@ -46,7 +47,7 @@ export class SettingfdpComponent implements OnInit {
"smartapiurl": "
'
+
this
.
appConfig
.
smartapiurl
+
'
"
\n\
}
'
console
.
log
(
data
);
return
this
.
http
.
post
(
"
http://
localhost:8080
/api/setting
"
,
data
,{
responseType
:
'
text
'
}).
subscribe
(
(
r
)
=>
{
console
.
log
(
r
)})
;
return
this
.
http
.
post
(
"
http://
"
+
environment
.
apiurl
+
"
/api/setting
"
,
data
,{
responseType
:
'
text
'
}).
subscribe
(
(
r
)
=>
{
console
.
log
(
r
)})
;
};
...
...
src/app/settingsmartapi/settingsmartapi.component.ts
View file @
1e017820
...
...
@@ -5,6 +5,7 @@ import { FileSaverService } from 'ngx-filesaver';
import
{
FormControl
}
from
'
@angular/forms
'
;
import
{
FormGroup
}
from
'
@angular/forms
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
environment
}
from
'
src/environments/environment.prod
'
;
@
Component
({
selector
:
'
app-settingsmartapi
'
,
...
...
@@ -42,7 +43,7 @@ export class SettingsmartapiComponent implements OnInit {
"smartapiurl": "
'
+
this
.
Form
.
value
.
smartapiurl
+
'
"
\n\
}
'
console
.
log
(
data
);
return
this
.
http
.
post
(
"
http://
localhost:8080
/api/setting
"
,
data
,{
responseType
:
'
text
'
}).
subscribe
(
(
r
)
=>
{
console
.
log
(
r
)})
;
return
this
.
http
.
post
(
"
http://
"
+
environment
.
apiurl
+
"
/api/setting
"
,
data
,{
responseType
:
'
text
'
}).
subscribe
(
(
r
)
=>
{
console
.
log
(
r
)})
;
};
}
src/assets/conf/fdpsetting.json
deleted
100644 → 0
View file @
1fda6687
{
"fdpurl"
:
"http://6ddrvi64oo.lb.c1.gra7.k8s.ovh.net"
,
"fdpemail"
:
"admin@cines-lab.fr"
,
"fdppassword"
:
"adminadmin"
,
"Authorization"
:
"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIwOGY4YjNiNC01Nzc1LTQyYmQtYjlmMy0zMTFhZDVkNGFiODgiLCJpYXQiOjE1OTQyNzY2MjEsImV4cCI6MTU5NTQ4NjIyMX0.pxCJO_yCK01uLAtlScVMHStTwFE34Ic2CxOijP8Ubcw"
}
\ No newline at end of file
src/environments/environment.prod.ts
View file @
1e017820
import
{
ApiService
}
from
'
src/app/api.service
'
;
export
const
environment
=
{
production
:
true
production
:
true
,
apiurl
:
'
172.17.03
'
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment