-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (68 loc) · 3.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Base Extensions</title>
</head>
<body>
<main class="main p-3 pt-4">
<!-- 加载中提示 -->
<div id="loadingOverlay" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 9999; justify-content: center; align-items: center;">
<div class="text-center" >
<div id="loadingIcon" class="d-flex justify-content-center mb-3" >
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- 统一进度信息 -->
<div id="loadingStatus" class="text-light mb-3"></div>
</div>
</div>
<!-- 加载完成提示 -->
<div id="loadEndOverlay" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 9999; justify-content: center; align-items: center;">
<div class="text-center" >
<!-- 确认按钮 -->
<button id="btnConfirm" class="btn btn-success mb-3" data-i18n="confirm">确 认</button>
<!-- 统一进度信息 -->
<div id="loadEndStatus" class="text-light"></div>
</div>
</div>
<div class="mb-3" >
<h4 class="mb-3" style="font-weight: bold;" data-i18n="analyze_file_title">解析.strings文件</h4>
<form>
<div class="mb-3" >
<label for="inputLang" class="form-label" data-i18n="input_lang_type">输入语言类型</label>
<input type="text" class="form-control" placeholder="en/zh" id="inputLang" >
<br />
<input type="file" class="form-control" id="inputFile" accept=".strings, .xml" >
</div>
<div class="input-group">
<button class="btn btn-outline-primary" type="button" id="btnAnalyzeFile" data-i18n="analyze_file" disabled >解析文件</button>
</div>
</form>
</div>
<br />
<br />
<div class="mb-3" >
<h4 class="mb-3" style="font-weight: bold;" data-i18n="export_file_title">导出.strings文件</h4>
<form>
<div class="mb-3" >
<label for="tableSelect" class="form-label" data-i18n="select_table">选择数据表</label>
<select id='tableSelect' class="form-select"></select>
</div>
<div class="mb-3" >
<label for="fieldLangSelect" class="form-label" data-i18n="select_lang_type">选择语言类型</label>
<select id='fieldLangSelect' class="form-select"></select>
</div>
<div class="input-group">
<button class="btn btn-outline-primary mb-3" type="button" id="btnExportFile" data-i18n="export_file" disabled>导出文件</button>
</div>
<a id="downloadFile" href="#" class="fst-italic text-decoration-underline" download></a>
</form>
</div>
</main>
<script type="module" src="/src/index.ts"></script>
</body>
</html>