Quellcode durchsuchen

Merge pull request #1673 from LewisCM14/develop

add favicon to OpenCost UI
Matt Ray vor 3 Jahren
Ursprung
Commit
0d6800d022
3 geänderte Dateien mit 11 neuen und 10 gelöschten Zeilen
  1. 1 1
      pkg/kubecost/allocation_json.go
  2. BIN
      ui/src/images/favicon.ico
  3. 10 9
      ui/src/index.html

+ 1 - 1
pkg/kubecost/allocation_json.go

@@ -64,7 +64,7 @@ func (aj *AllocationJSON) BuildFromAllocation(a *Allocation) {
 	aj.Window = a.Window
 	aj.Start = a.Start.UTC().Format(time.RFC3339)
 	aj.End = a.End.UTC().Format(time.RFC3339)
-	aj.Minutes = formatFloat64ForResponse(a.Minutes())
+  aj.Minutes = formatFloat64ForResponse(a.Minutes())
 	aj.CPUCores = formatFloat64ForResponse(a.CPUCores())
 	aj.CPUCoreRequestAverage = formatFloat64ForResponse(a.CPUCoreRequestAverage)
 	aj.CPUCoreUsageAverage = formatFloat64ForResponse(a.CPUCoreUsageAverage)

BIN
ui/src/images/favicon.ico


+ 10 - 9
ui/src/index.html

@@ -1,12 +1,13 @@
 <!DOCTYPE html>
 <html>
-    <head>
-        <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
-        <meta content="utf-8" http-equiv="encoding">
-        <link rel="stylesheet" href="./css/index.css">
-    </head>
-    <body>
-        <div id="app" class="page-container"></div>
-        <script src="./app.js" type="module"></script>
-    </body>
+	<head>
+		<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
+		<meta content="utf-8" http-equiv="encoding" />
+		<link rel="icon" href="./images/favicon.ico" />
+		<link rel="stylesheet" href="./css/index.css" />
+	</head>
+	<body>
+		<div id="app" class="page-container"></div>
+		<script src="./app.js" type="module"></script>
+	</body>
 </html>