-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
233 lines (209 loc) · 11 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!doctype html>
<html ng-app="app" ng-controller="main">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{{::Locale('title')}} - v{{AppVersionSrv.version || "N/A"}}</title>
<!-- jQuery -->
<script src="public/assets/jquery/jquery-1.11.3.min.js"></script>
<script src="public/assets/jquery/jquery.form.js"></script>
<script src="public/assets/jquery/jquery-ui.min.js"></script>
<!-- Moment -->
<script src="public/assets/moment/moment.min.js"></script>
<!-- Angular -->
<script src="public/assets/angular/angular.min.js"></script>
<script src="public/assets/angular/angular-resource.min.js"></script>
<script src="public/assets/angular/angular-route.min.js"></script>
<script src="public/assets/angular/sortable.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="public/assets/bootstrap/css/bootstrap.min.css">
<script src="public/assets/bootstrap/js/bootstrap.min.js"></script>
<script src="public/assets/angular/ui-bootstrap-tpls-0.14.3.min.js"></script>
<!-- Bootstrap Components -->
<link rel="stylesheet" href="public/assets/bootstrap-components/css/bootstrap-components.min.css">
<script src="public/assets/bootstrap-components/js/bootstrap-components.min.js"></script>
<!-- Bootstrap Color Picker -->
<link rel="stylesheet" href="public/assets/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">
<script src="public/assets/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- Font Awesome Icons -->
<link href="public/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- KV Parser -->
<script src="public/assets/kv/kvParser.js"></script>
<!-- Main -->
<link rel="stylesheet" href="public/css/main.css">
<link rel="stylesheet" href="public/css/ability.css">
<script src="public/js/components/kvField.js"></script>
<script src="public/js/components/kvGroup.js"></script>
<script src="public/js/components/kvUnitGroup.js"></script>
<script src="public/js/components/checkbox.js"></script>
<script src="public/js/components/tipfield.js"></script>
<script src="public/js/components/operationlist.js"></script>
<script src="public/js/components/operation.js"></script>
<script src="public/js/components/kvTree.js"></script>
<script src="public/js/components/menu.js"></script>
<script src="public/js/components/treeView.js"></script>
<script src="public/js/components/abilityTreeView.js"></script>
<script src="public/js/components/image.js"></script>
<script src="public/js/common.js"></script>
<script src="public/js/app.js"></script>
<script src="public/js/models/app.ability.js"></script>
<script src="public/js/models/app.event.js"></script>
<script src="public/js/models/app.operation.js"></script>
<script src="public/js/models/app.modifier.js"></script>
<script src="public/js/models/app.kv.js"></script>
<script src="public/js/models/app.language.js"></script>
<script src="public/js/models/app.sound.js"></script>
<script src="public/js/models/app.locales.js"></script>
<script src="public/js/models/app.unit.js"></script>
<script src="public/js/models/app.config.js"></script>
<script src="public/js/models/app.sequence.js"></script>
<script src="public/js/services/once.js"></script>
<script src="public/js/services/appVersionSrv.js"></script>
<script src="public/js/services/appFileSrv.js"></script>
<script src="public/js/services/appGitSrv.js"></script>
<script src="public/js/services/appImageSrv.js"></script>
<script src="public/js/services/appSpellLibSrv.js"></script>
<script src="public/js/hammer.js"></script>
<script src="public/js/abilityCtrl.js"></script>
<script src="public/js/unitCtrl.js"></script>
<script src="public/js/languageCtrl.js"></script>
<script src="public/js/configCtrl.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#/">{{Locale('title')}}</a>
<div class="header-tool clearfix">
<h5>{{::Locale('DeveloperTool')}}:</h5>
<button class="btn btn-warning" ng-click="devReload()">
<span class="fa fa-refresh"></span>
{{::Locale('Reload')}}
</button>
<button class="btn btn-warning" ng-click="devShowConsole()">
<span class="fa fa-bars"></span>
{{::Locale('Console')}}
</button>
</div>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li ng-if="AppVersionSrv.updateState === AppVersionSrv.UPDATE_STATUS_UPDATING" tooltip-placement="bottom"
tooltip-append-to-body="true" uib-tooltip="{{::Locale('updating')}} {{AppVersionSrv.undateMSG}}"><a>
<span class="fa fa-cog fa-spin"></span>
</a></li>
<li ng-if="AppVersionSrv.updateState === AppVersionSrv.UPDATE_STATUS_FINISHED" tooltip-placement="bottom"
tooltip-append-to-body="true" uib-tooltip="{{::Locale('updateFinish')}}"><a>
<span class="fa fa-check"></span>
</a></li>
<li ng-if="AppVersionSrv.updateState === AppVersionSrv.UPDATE_STATUS_FAILED" tooltip-placement="bottom"
tooltip-append-to-body="true" uib-tooltip="{{::Locale('updateFailed')}}"><a>
<span class="fa fa-times"></span>
</a></li>
<li ng-class="{active: navSelected('/index')}"><a href="#/index">{{Locale('Home')}}</a></li>
<li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/unit')}"><a href="#/unit">{{Locale('Unit')}}</a></li>
<li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/hero')}"><a href="#/hero">{{Locale('Hero')}}</a></li>
<li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/ability')}"><a href="#/ability">{{Locale('Ability')}}</a></li>
<li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/item')}"><a href="#/item">{{Locale('Item')}}</a></li>
<li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/language')}"><a href="#/language">{{Locale('Language')}}</a></li>
<!--li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/kv')}"><a href="#/kv">{{Locale('KVEditor')}}</a></li-->
<li ng-show="globalContent.isOpen" ng-class="{active: navSelected('/config')}"><a href="#/config">{{Locale('Config')}}</a></li>
</ul>
<ul class="nav navbar-nav pull-right">
<li ng-show="globalContent.isOpen">
<button type="button" class="btn btn-warning navbar-btn" id="saveProject" ng-click="showSaveMDL()">{{Locale('Save')}}</button>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<div id="content" class="container-fluid">
<div ng-if="!globalContent.isOpen">
<h1>{{::Locale('ProjectFolder')}}</h1>
<input type="text" class="form-control" ng-model="globalContent.project"
placeholder="{{::Locale('projectFolder')}}" />
<br/>
<button class="btn btn-primary" ng-click="loadProject()">{{::Locale('OpenProject')}}</button>
<button class="btn btn-primary" ng-click="inlineMode()" ng-if="globalContent.inlineMode">Inline mode</button>
<hr/>
<label>{{::Locale('RecentProject')}}:</label>
<ul>
<li ng-repeat="prj in Config.projectList">
[<a class="fa fa-times" ng-click="Config.deleteProjectPath(prj)"></a>]
<a ng-click="globalContent.project = prj; loadProject();">{{prj}}</a>
</li>
</ul>
</div>
<div ng-show="globalContent.isOpen" ng-view></div>
</div>
<!-- ==================================================================== -->
<!-- = Version Check = -->
<!-- ==================================================================== -->
<div id="versionCheck" ng-if="!AppVersionSrv.ready">
<h1>{{::Locale('VersionCheck')}}</h1>
<p>{{AppVersionSrv.stateMSG}}...</p>
</div>
<!-- ==================================================================== -->
<!-- = Modal = -->
<!-- ==================================================================== -->
<!-- Save Modal -->
<div class="modal fade" id="saveMDL" tabindex="-1" data-backdrop="static">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Select Save File 【选择要保存的文件】</h4>
</div>
<div class="modal-body">
<div class="checkbox" ng-repeat="saveItem in saveFileList">
<label ng-class="{'text-muted': saveItem.ready === false}">
<input type="checkbox" ng-disabled="saveItem.ready === false"
ng-checked="saveItem.selected" ng-click="saveItem.selected = !saveItem.selected" />
{{::saveItem.name}} 【{{::saveItem.desc}}】
<span ng-if="saveItem.ready === false">(开发中)</span>
<span class="label label-info" ng-if="saveItem.status === 1">saving 【保存中】</span>
<span class="label label-success" ng-if="saveItem.status === 2">success 【成功】</span>
<span class="label label-danger" ng-if="saveItem.status === 3">failed 【失败】</span>
<span class="label label-success" ng-if="saveItem.status === 4">success (Not change) 【成功,未变更】</span>
</label>
</div>
</div>
<div class="modal-footer">
<p class="pull-left">{{saveMSG}}</p>
<button type="button" class="btn btn-default" data-dismiss="modal" ng-disabled="saveLock">Close</button>
<button type="button" class="btn btn-primary" ng-click="saveFiles()" ng-disabled="saveLock" id="saveAllConfirm">Save</button>
</div>
</div>
</div>
</div>
<!-- Color Picker Modal -->
<div class="modal fade" id="colorPickerMDL" tabindex="-1">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Color Picker 【调色盘】</h4>
</div>
<div class="modal-body">
<div id="colorPickerRegion" class="clearfix">
<button class="btn" ng-repeat="color in colorList" style="background: {{color}};" ng-click="selectColorPickerColor(color)"></button>
<input type="text" class="form-control pull-right" id="colorPickerInput" data-format="hex" />
</div>
<div id="colorDisplayLayout" contenteditable="true"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning pull-left" ng-click="clearColorPickerStyle()">Clear 【清除格式】</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-info" ng-click="confirmColoredText()">OK</button>
</div>
</div>
</div>
</div>
</body>
</html>