-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (98 loc) · 5.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon(s) in the root directory -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/renderjson.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!--[if lt IE 9]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to use this app.</p>
<![endif]-->
<header class="navbar navbar-fixed-top">
<div class="doc-buttons">
<!-- <div class="btn-group">
<span class="btn btn-default btn-file">
Master <input class="uploadfile" name="master" type="file" accept="application/json">
</span>
<span class="btn btn-default btn-file">
Locale <input class="uploadfile" name="locale" type="file" accept="application/json">
</span>
</div> -->
<button id="reset" type="button" class="btn reset">Reset to last save</button>
<button id="save" type="button" class="btn btn-primary">Save</button>
</div>
<h3>Translation utility</h3>
<div id="alerts" class="alerts" role="alert"></div>
</header>
<div class="alert"></div>
<article>
<section id="login" class="row">
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3">
<h3>Log in</h3>
<p>You must log in to edit the translations</p>
<form role="form">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" name="password" class="form-control" id="exampleInputPassword1">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</section>
<section id="import" class="import-wrap row">
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3">
<h3>No master translation file found</h3>
<p>A master translation serves as the blueprint for all the files that are created during the localisation process. This file shuold be a structured json file. Upload this now.</p>
<input type="file" id="files" name="files[]" />
</div>
</section>
<section id="locale-warning" class="locale-warning row">
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3">
<h3>No locale specified</h3>
<p>Add a <a href="https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx" target="_blank">language culture code</a> to the url as a paramater <a href="?nl-be">(?nl-be)</a>.</p>
</div>
</section>
<section id="md-notice" class="md-notice">
<h5>You may use Markdown</h5>
<p><small>Markdown is a plain text formatting syntax designed so that it optionally can be converted to HTML. For more info see the <a href="http://support.mashery.com/docs/read/customizing_your_portal/Markdown_Cheat_Sheet" target="_blank">list of codes</a>.</small></p>
</section>
<section id="content"></section>
</article>
<script id="title-template" type="text/x-mustache-template">
<div class="row">
<h{{heading}}>{{title}}</h{{heading}}>
</div>
</script>
<script id="entry-template" type="text/x-mustache-template">
<div class="row">
<div class="key">{{key}}</div>
<div class="{{#hasPreview}}col-xs-3{{/hasPreview}}{{^hasPreview}}col-xs-5{{/hasPreview}} master">{{{master}}}</div>
<div class="copy_text col-xs-1"><button class="copy_content">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" id="Layer_1" x="0px" y="0px" width="32px" height="32px" viewBox="1.6 -3.2 32.0 43.2" enable-background="new 0 0 32 32" xml:space="preserve">
<path d="M30,31.999c1.105,0,2-0.895,2-2V2c0-1.104-0.895-2-2-2H2C0.895,0,0,0.896,0,2v27.999c0,1.105,0.895,2,2,2H30z M14.559,23.456c-0.746-0.746-0.746-1.953,0-2.699l3.16-2.758H10c-1.105,0-2-0.895-2-2s0.895-2,2-2h7.695l-3.137-2.734 c-0.746-0.746-0.746-1.954,0-2.7c0.754-0.742,1.973-0.746,2.727,0l6.152,6.098c0.75,0.742,0.75,1.953,0,2.698l-6.152,6.095 C16.531,24.202,15.312,24.202,14.559,23.456z"/>
</svg>
</button></div>
<textarea class="{{#hasPreview}}col-xs-3{{/hasPreview}}{{^hasPreview}}col-xs-6{{/hasPreview}} value" title="{{key}}" {{#disabled}}disabled{{/disabled}}>{{slave}}</textarea>
</div>
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="bower_components/jquery/dist/jquery.min.js"><\/script>')</script>
<script src="bower_components/firebase/firebase.js"></script>
<script src="bower_components/marked/lib/marked.js"></script>
<script src="bower_components/html-md/dist/md.min.js"></script>
<script src="bower_components/mustache/mustache.js"></script>
<script src="bower_components/textarea-autosize/dist/jquery.textarea_autosize.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>