mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2025-01-18 10:03:33 +03:00
Minor fixes
This commit is contained in:
parent
7ae9487509
commit
3d28cc5dff
@ -96,6 +96,7 @@ export class ServiceComponent implements OnInit {
|
||||
if (transport === null || this.service.show_transports === false) {
|
||||
transport = this.service.transports[0];
|
||||
}
|
||||
this.api.executeCustomJSForServiceLaunch();
|
||||
this.api.launchURL(transport.link);
|
||||
}
|
||||
}
|
||||
|
@ -21,8 +21,6 @@ export class Plugin {
|
||||
* Launches an UDS related url
|
||||
* @param url uds url to be lauhcned
|
||||
*
|
||||
* If the plugin cannon detect the correct launch of the UDS plugin, will redirect to plugin page
|
||||
* unless bypassPluginDetection is FALSE
|
||||
*/
|
||||
private doLaunch(url: string) {
|
||||
this.api.gui.alert(
|
||||
|
@ -5,6 +5,63 @@
|
||||
<meta charset="utf-8">
|
||||
<title>Uds</title>
|
||||
<base href="/">
|
||||
<!-- inline spinner styles to be able to display spinner right away -->
|
||||
<style type="text/css">
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.app-loading {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.app-loading .spinner {
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
animation: rotate 2s linear infinite;
|
||||
transform-origin: center center;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.app-loading .spinner .path {
|
||||
stroke-dasharray: 1, 200;
|
||||
stroke-dashoffset: 0;
|
||||
animation: dash 1.5s ease-in-out infinite;
|
||||
stroke-linecap: round;
|
||||
stroke: #ddd;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes dash {
|
||||
0% {
|
||||
stroke-dasharray: 1, 200;
|
||||
stroke-dashoffset: 0;
|
||||
} 50% {
|
||||
stroke-dasharray: 89, 200;
|
||||
stroke-dashoffset: -35px;
|
||||
} 100% {
|
||||
stroke-dasharray: 89, 200;
|
||||
stroke-dashoffset: -124px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/png" href="/uds/res/modern/img/favicon.png">
|
||||
@ -19,6 +76,7 @@
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<!-- DYNAMIC_DATA -->
|
||||
<script type="text/javascript" src="/uds/utility/i18n/es.js"></script>
|
||||
@ -28,7 +86,15 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<uds-root></uds-root>
|
||||
<uds-root>
|
||||
<!-- loading layout replaced by app after startupp -->
|
||||
<div class="app-loading">
|
||||
<div class="logo"></div>
|
||||
<svg class="spinner" viewBox="25 25 50 50">
|
||||
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/>
|
||||
</svg>
|
||||
</div>
|
||||
</uds-root>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user