Bläddra i källkod

[feat #1839]: Make dashboard support deploying under subpath (#1851)

master
Brent GitHub 4 år sedan
förälder
incheckning
699532efe3
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
5 ändrade filer med 7 tillägg och 2 borttagningar
  1. +3
    -0
      sentinel-dashboard/src/main/webapp/resources/app/scripts/app.js
  2. +1
    -1
      sentinel-dashboard/src/main/webapp/resources/app/views/login.html
  3. +1
    -1
      sentinel-dashboard/src/main/webapp/resources/dist/js/app.js
  4. +1
    -0
      sentinel-dashboard/src/main/webapp/resources/index.htm
  5. +1
    -0
      sentinel-dashboard/src/main/webapp/resources/index_dev.htm

+ 3
- 0
sentinel-dashboard/src/main/webapp/resources/app/scripts/app.js Visa fil

@@ -38,6 +38,9 @@ angular
return response;
},
'request' : function(config) {
// Resolved resource loading failure after configuring ContextPath
var baseUrl = $window.document.getElementsByTagName('base')[0].href;
config.url = baseUrl + config.url;
return config;
},
'requestError' : function(config){


+ 1
- 1
sentinel-dashboard/src/main/webapp/resources/app/views/login.html Visa fil

@@ -1,6 +1,6 @@
<div class="container">
<div class="row" style="margin: 200px auto 15px auto; text-align: center;">
<img src="../../assets/img/sentinel-logo.png" alt="Sentinel Logo"
<img src="./assets/img/sentinel-logo.png" alt="Sentinel Logo"
style="max-height: 25%; max-width: 25%;">
<!-- <h1 id='login_title'>Sentinel 控制台</h1> -->
</div>


+ 1
- 1
sentinel-dashboard/src/main/webapp/resources/dist/js/app.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
sentinel-dashboard/src/main/webapp/resources/index.htm Visa fil

@@ -10,6 +10,7 @@
<link rel="stylesheet" href="./lib/css/bootstrap.min.css" />
<link rel="stylesheet" href="./lib/css/font-awesome.min.css">
<link rel="stylesheet" href="./dist/css/app.css">
<base href="./">
</head>

<body>


+ 1
- 0
sentinel-dashboard/src/main/webapp/resources/index_dev.htm Visa fil

@@ -10,6 +10,7 @@
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.0.3/css/bootstrap.min.css" />
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://localhost:1234/css/app.css">
<base href="./">
</head>

<body>


Laddar…
Avbryt
Spara