Update dashboard app with base path setting
This commit is contained in:
parent
695ba14b0d
commit
fa4da6f841
|
|
@ -2,6 +2,7 @@
|
|||
@inject IConfiguration Configuration;
|
||||
@{
|
||||
var serverUrl = Configuration["Elsa:Server:BaseAddress"];
|
||||
var basePath = Configuration["Hosting:BasePath"];
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
|
@ -9,15 +10,15 @@
|
|||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Elsa Workflows</title>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/assets/images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/assets/images/favicon-16x16.png">
|
||||
<link rel="stylesheet" href="/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/assets/fonts/inter/inter.css">
|
||||
<link rel="stylesheet" href="/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/elsa-workflows-studio.css">
|
||||
<script src="/_content/Elsa.Designer.Components.Web/monaco-editor/min/vs/loader.js"></script>
|
||||
<script type="module" src="/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/elsa-workflows-studio.esm.js"></script>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/assets/images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/assets/images/favicon-16x16.png">
|
||||
<link rel="stylesheet" href="@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/assets/fonts/inter/inter.css">
|
||||
<link rel="stylesheet" href="@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/elsa-workflows-studio.css">
|
||||
<script src="@basePath/_content/Elsa.Designer.Components.Web/monaco-editor/min/vs/loader.js"></script>
|
||||
<script type="module" src="@basePath/_content/Elsa.Designer.Components.Web/elsa-workflows-studio/elsa-workflows-studio.esm.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<elsa-studio-root server-url="@serverUrl" monaco-lib-path="_content/Elsa.Designer.Components.Web/monaco-editor/min">
|
||||
<elsa-studio-root server-url="@serverUrl" base-path="@basePath" monaco-lib-path="@basePath.TrimStart('/')/_content/Elsa.Designer.Components.Web/monaco-editor/min">
|
||||
<elsa-studio-dashboard></elsa-studio-dashboard>
|
||||
</elsa-studio-root>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Hosting": {
|
||||
"BasePath": ""
|
||||
},
|
||||
"Elsa": {
|
||||
"Server": {
|
||||
"BaseAddress": "https://localhost:11000"
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@
|
|||
// Get a handle to the elsa-studio-root element.
|
||||
const elsaStudioRoot = document.querySelector('elsa-studio-root');
|
||||
|
||||
// Alternatively, configure Elsa during the 'initializing' event.
|
||||
// Configure Elsa during the 'initializing' event.
|
||||
elsaStudioRoot.addEventListener('initializing', e => {
|
||||
const elsa = e.detail;
|
||||
elsa.pluginManager.registerPlugins([
|
||||
|
|
|
|||
Loading…
Reference in a new issue