瀏覽代碼

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

master
Brent GitHub 4 年之前
父節點
當前提交
699532efe3
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 5 個文件被更改,包括 7 次插入2 次删除
  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 查看文件

@@ -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 查看文件

@@ -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
文件差異過大導致無法顯示
查看文件


+ 1
- 0
sentinel-dashboard/src/main/webapp/resources/index.htm 查看文件

@@ -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 查看文件

@@ -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>


Loading…
取消
儲存