mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Clean up GUI directory
This commit is contained in:
parent
5c7d977ae0
commit
89885b9fb9
File diff suppressed because one or more lines are too long
12
build.go
12
build.go
@ -243,20 +243,20 @@ func xdr() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func translate() {
|
func translate() {
|
||||||
os.Chdir("gui")
|
os.Chdir("gui/lang")
|
||||||
runPipe("lang-en-new.json", "go", "run", "../cmd/translate/main.go", "lang-en.json", "index.html")
|
runPipe("lang-en-new.json", "go", "run", "../../cmd/translate/main.go", "lang-en.json", "../index.html")
|
||||||
os.Remove("lang-en.json")
|
os.Remove("lang-en.json")
|
||||||
err := os.Rename("lang-en-new.json", "lang-en.json")
|
err := os.Rename("lang-en-new.json", "lang-en.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
os.Chdir("..")
|
os.Chdir("../..")
|
||||||
}
|
}
|
||||||
|
|
||||||
func transifex() {
|
func transifex() {
|
||||||
os.Chdir("gui")
|
os.Chdir("gui/lang")
|
||||||
runPrint("go", "run", "../cmd/transifexdl/main.go")
|
runPrint("go", "run", "../../cmd/transifexdl/main.go")
|
||||||
os.Chdir("..")
|
os.Chdir("../..")
|
||||||
assets()
|
assets()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ syncthing.config(function ($httpProvider, $translateProvider) {
|
|||||||
$httpProvider.defaults.xsrfCookieName = 'CSRF-Token';
|
$httpProvider.defaults.xsrfCookieName = 'CSRF-Token';
|
||||||
|
|
||||||
$translateProvider.useStaticFilesLoader({
|
$translateProvider.useStaticFilesLoader({
|
||||||
prefix: 'lang-',
|
prefix: 'lang/lang-',
|
||||||
suffix: '.json'
|
suffix: '.json'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
101
gui/index.html
101
gui/index.html
@ -11,93 +11,12 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
<link rel="shortcut icon" href="favicon.png">
|
<link rel="shortcut icon" href="img/favicon.png">
|
||||||
|
|
||||||
<title>Syncthing | {{thisNodeName()}}</title>
|
<title>Syncthing | {{thisNodeName()}}</title>
|
||||||
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="raleway.css" rel="stylesheet">
|
<link href="font/raleway.css" rel="stylesheet">
|
||||||
<style type="text/css">
|
<link href="overrides.css" rel="stylesheet">
|
||||||
body {
|
|
||||||
padding-bottom: 70px;
|
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5 {
|
|
||||||
font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul+h5 {
|
|
||||||
margin-top: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-monospace {
|
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-condensed>thead>tr>th, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>tbody>tr>td, .table-condensed>tfoot>tr>td {
|
|
||||||
border-top: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
top: -5px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list-no-bullet {
|
|
||||||
list-style-type: none
|
|
||||||
}
|
|
||||||
|
|
||||||
.li-column {
|
|
||||||
display: inline-block;
|
|
||||||
min-width: 7em;
|
|
||||||
margin-right: 1em;
|
|
||||||
background-color: rgb(236, 240, 241);
|
|
||||||
border-radius: 3px;
|
|
||||||
padding: 1px 4px;
|
|
||||||
margin: 2px 2px;
|
|
||||||
}
|
|
||||||
.li-column span.data {
|
|
||||||
margin-left: 0.5em;
|
|
||||||
min-width: 10em;
|
|
||||||
text-align: right;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ng-cloak {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table th {
|
|
||||||
white-space: nowrap;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table td {
|
|
||||||
padding-left: 20px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table td.small-data {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.table-condensed {
|
|
||||||
table-layout: fixed;
|
|
||||||
}
|
|
||||||
table.table-condensed td {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
@media (max-width:767px) {
|
|
||||||
table.table-condensed td {
|
|
||||||
/* for mobile phones to allow linebreaks in long repro folder/shared with
|
|
||||||
* columns. */
|
|
||||||
white-space: normal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -107,7 +26,7 @@
|
|||||||
|
|
||||||
<nav class="navbar navbar-top navbar-default" role="navigation">
|
<nav class="navbar navbar-top navbar-default" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<span class="navbar-brand"><img class="logo" src="logo-text-64.png" height="32" width="117"/></span>
|
<span class="navbar-brand"><img class="logo" src="img/logo-text-64.png" height="32" width="117"/></span>
|
||||||
<p class="navbar-text hidden-xs">{{thisNodeName()}}</p>
|
<p class="navbar-text hidden-xs">{{thisNodeName()}}</p>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li ng-if="upgradeInfo.newer">
|
<li ng-if="upgradeInfo.newer">
|
||||||
@ -757,7 +676,7 @@
|
|||||||
<!-- About modal -->
|
<!-- About modal -->
|
||||||
|
|
||||||
<modal id="about" large="yes" close="yes" status="info" title="About">
|
<modal id="about" large="yes" close="yes" status="info" title="About">
|
||||||
<h1 class="text-center"><img alt="Syncthing" title="Syncthing" src="logo-text-256.png" style="vertical-align: -16px" height="100" width="366"/><br/><small>{{version}}</small></h1>
|
<h1 class="text-center"><img alt="Syncthing" title="Syncthing" src="img/logo-text-256.png" style="vertical-align: -16px" height="100" width="366"/><br/><small>{{version}}</small></h1>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<p translate>Copyright © 2014 Jakob Borg and the following Contributors:</p>
|
<p translate>Copyright © 2014 Jakob Borg and the following Contributors:</p>
|
||||||
@ -803,12 +722,12 @@
|
|||||||
</modal>
|
</modal>
|
||||||
|
|
||||||
|
|
||||||
<script src="angular.min.js"></script>
|
<script src="angular/angular.min.js"></script>
|
||||||
<script src="angular-translate.min.js"></script>
|
<script src="angular/angular-translate.min.js"></script>
|
||||||
<script src="angular-translate-loader.min.js"></script>
|
<script src="angular/angular-translate-loader.min.js"></script>
|
||||||
<script src="jquery-2.0.3.min.js"></script>
|
<script src="jquery/jquery-2.0.3.min.js"></script>
|
||||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||||
<script src="valid-langs.js"></script>
|
<script src="lang/valid-langs.js"></script>
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
80
gui/overrides.css
Normal file
80
gui/overrides.css
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
body {
|
||||||
|
padding-bottom: 70px;
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5 {
|
||||||
|
font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul+h5 {
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-monospace {
|
||||||
|
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-condensed>thead>tr>th, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>tbody>tr>td, .table-condensed>tfoot>tr>td {
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
top: -5px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-no-bullet {
|
||||||
|
list-style-type: none
|
||||||
|
}
|
||||||
|
|
||||||
|
.li-column {
|
||||||
|
display: inline-block;
|
||||||
|
min-width: 7em;
|
||||||
|
margin-right: 1em;
|
||||||
|
background-color: rgb(236, 240, 241);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 1px 4px;
|
||||||
|
margin: 2px 2px;
|
||||||
|
}
|
||||||
|
.li-column span.data {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
min-width: 10em;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ng-cloak {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th {
|
||||||
|
white-space: nowrap;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table td {
|
||||||
|
padding-left: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table td.small-data {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.table-condensed {
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
table.table-condensed td {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
@media (max-width:767px) {
|
||||||
|
table.table-condensed td {
|
||||||
|
/* for mobile phones to allow linebreaks in long repro folder/shared with
|
||||||
|
* columns. */
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user