Browse Source

embed static resources via statik

pull/747/head
Chris Lu 6 years ago
parent
commit
dbe33236fb
  1. 5
      weed/server/filer_ui/templates.go
  2. 3
      weed/server/master_ui/templates.go
  3. 7
      weed/server/volume_server_ui/templates.go
  4. 5
      weed/static/bootstrap/3.3.1/css/bootstrap.min.css
  5. BIN
      weed/static/images/folder.gif
  6. 4
      weed/static/javascript/jquery-2.1.3.min.js
  7. 5
      weed/static/javascript/jquery-sparklines/2.1.2/jquery.sparkline.min.js
  8. 2
      weed/statik/statik.go

5
weed/server/filer_ui/templates.go

@ -13,8 +13,7 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC
<html>
<head>
<title>SeaweedFS Filer</title>
<link rel="icon" href="http://7viirv.com1.z0.glb.clouddn.com/seaweed_favicon.png" sizes="32x32" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
<style>
#drop-area {
border: 1px transparent;
@ -69,7 +68,7 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC
<tr>
<td>
{{if $entry.IsDirectory}}
<img src="https://www.w3.org/TR/WWWicn/folder.gif" width="20" height="23">
<img src="/seaweedfsstatic/images/folder.gif" width="20" height="23">
<a href={{ print $path "/" $entry.Name "/"}} >
{{ $entry.Name }}
</a>

3
weed/server/master_ui/templates.go

@ -8,8 +8,7 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html>
<html>
<head>
<title>SeaweedFS {{ .Version }}</title>
<link rel="icon" href="http://7viirv.com1.z0.glb.clouddn.com/seaweed_favicon.png" sizes="32x32" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
</head>
<body>
<div class="container">

7
weed/server/volume_server_ui/templates.go

@ -22,10 +22,9 @@ var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(`<!DOC
<html>
<head>
<title>SeaweedFS {{ .Version }}</title>
<link rel="icon" href="http://7viirv.com1.z0.glb.clouddn.com/seaweed_favicon.png" sizes="32x32" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-sparklines/2.1.2/jquery.sparkline.min.js"></script>
<link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
<script type="text/javascript" src="/seaweedfsstatic/javascript/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="/seaweedfsstatic/javascript/jquery-sparklines/2.1.2/jquery.sparkline.min.js"></script>
<script type="text/javascript">
$(function() {
var periods = ['second', 'minute', 'hour', 'day'];

5
weed/static/bootstrap/3.3.1/css/bootstrap.min.css
File diff suppressed because it is too large
View File

BIN
weed/static/images/folder.gif

After

Width: 20  |  Height: 23  |  Size: 80 B

4
weed/static/javascript/jquery-2.1.3.min.js
File diff suppressed because it is too large
View File

5
weed/static/javascript/jquery-sparklines/2.1.2/jquery.sparkline.min.js
File diff suppressed because it is too large
View File

2
weed/statik/statik.go
File diff suppressed because it is too large
View File

Loading…
Cancel
Save