improved
This commit is contained in:
2
dist/qmi-cloud/index.html
vendored
2
dist/qmi-cloud/index.html
vendored
@@ -29,5 +29,5 @@
|
||||
<link rel="stylesheet" href="styles.888d76f1576f5fd6c859.css"></head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.549de7439b1b1676f020.js" defer></script></body>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.38646cf2e9db255a50ef.js" defer></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -29,5 +29,5 @@
|
||||
<link rel="stylesheet" href="styles.888d76f1576f5fd6c859.css"></head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.9a5196d040387792c116.js" defer></script></body>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.38646cf2e9db255a50ef.js" defer></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -83,6 +83,47 @@ router.get('/', passport.ensureAuthenticatedAndAdmin, async (req, res, next) =>
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /provisions/azure-app-reg:
|
||||
* post:
|
||||
* description: Update existing APP Reg Outputs for active provisions
|
||||
* summary: Update existing APP Reg Outputs for active provisions
|
||||
* tags:
|
||||
* - admin
|
||||
* produces:
|
||||
* - application/json
|
||||
* parameters:
|
||||
* - name: client_id
|
||||
* in: query
|
||||
* required: true
|
||||
* type: string
|
||||
* - name: client_secret
|
||||
* in: query
|
||||
* required: true
|
||||
* type: string
|
||||
* responses:
|
||||
* 200:
|
||||
* description: JSON Array
|
||||
*/
|
||||
router.post('/azure-app-reg', passport.ensureAuthenticated, async (req, res, next) => {
|
||||
try {
|
||||
|
||||
var provs = await db.provision.get({"isDestroy": false, "status": "provisioned", "isDeleted": false});
|
||||
provs.forEach( (p) =>{
|
||||
|
||||
if (p.outputs && p.outputs['Azure_Application_Registration_Client_ID'] && p.outputs['Azure_Application_Registration_Client_ID'] === req.query.client_id ) {
|
||||
p.outputs['Azure_Application_Registration_Secret'] = req.query.client_secret;
|
||||
p.save();
|
||||
}
|
||||
|
||||
});
|
||||
return res.json(provs);
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /provisions/optionssLogs:
|
||||
|
||||
@@ -69,7 +69,7 @@ export class UserModalComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onImgError(event, user){
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&background=random&size=40'
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&size=40&background=00807b&color=fff'
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ export class ModalInfoComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onImgError(event, user){
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&background=random&size=40'
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&size=40&background=00807b&color=fff'
|
||||
}
|
||||
|
||||
openModalChangeSuccess(provision) {
|
||||
|
||||
@@ -181,7 +181,7 @@ s
|
||||
|
||||
|
||||
onImgError(event, user){
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&background=random&size=40'
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&size=40&background=00807b&color=fff'
|
||||
}
|
||||
|
||||
openModalChangeSuccess(provision) {
|
||||
|
||||
@@ -42,6 +42,7 @@ hr {
|
||||
position: relative;
|
||||
background-color: rgb(255, 255, 255);
|
||||
box-shadow: rgba(0, 0, 0, 0.3) 0px 0.2rem 0.6rem 0px;
|
||||
flex: 1;
|
||||
|
||||
.title {
|
||||
&.desc {
|
||||
|
||||
@@ -122,7 +122,7 @@ export class TableUsersComponent implements OnInit, AfterViewInit {
|
||||
}
|
||||
|
||||
onImgError(event, user){
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&background=random&size=40'
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&size=40&background=00807b&color=fff'
|
||||
}
|
||||
|
||||
onCheckValue() : void {
|
||||
|
||||
@@ -36,7 +36,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onImgError(event, user){
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&background=random&size=40'
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&size=40&background=00807b&color=fff'
|
||||
}
|
||||
|
||||
private _isAdmin(user) : boolean {
|
||||
|
||||
@@ -42,6 +42,7 @@ hr {
|
||||
background-color: rgb(255, 255, 255);
|
||||
box-shadow: rgba(0, 0, 0, 0.3) 0px 0.2rem 0.6rem 0px;
|
||||
border-radius: 8px;
|
||||
flex: 1;
|
||||
|
||||
.title {
|
||||
&.desc {
|
||||
|
||||
@@ -171,7 +171,7 @@ export class UserDashboardComponent implements OnInit, OnDestroy{
|
||||
|
||||
|
||||
onImgError(event, user){
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&background=random&size=40'
|
||||
event.target.src = 'https://ui-avatars.com/api/?name='+user.displayName+'&size=40&background=00807b&color=fff'
|
||||
}
|
||||
|
||||
getFlag(provision) : string {
|
||||
|
||||
Reference in New Issue
Block a user