Update dist

This commit is contained in:
Caijinglong
2019-08-20 10:24:05 +08:00
parent 73dccc3453
commit 82fe179b7f
7 changed files with 3354 additions and 0 deletions

8
build.sh Executable file
View File

@@ -0,0 +1,8 @@
webdev build
rm -rf dist
mkdir dist
cp build/*.ico dist
cp build/*.jpg dist
cp build/*.html dist
cp build/*.js dist
cp build/*.css dist

BIN
dist/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
dist/github_logo.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

97
dist/index.html vendored Normal file
View File

@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta lang="en" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="scaffolded-by" content="https://github.com/google/stagehand" />
<title>json2dart_for_json_serializable</title>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="favicon.ico" />
<script defer src="main.dart.js"></script>
</head>
<body>
<div class="lang">
<a href="index_ch.html">中文</a>
<a href="https://github.com/caijinglong/json2dart">
<img src="github_logo.jpg" width="50px" />
</a>
</div>
<div>
<h1>
simple use
<a
href="https://pub.dartlang.org/packages/json_serializable"
target="_blank"
>json_serializable</a
>
</h1>
<div class="version">
<input
class="version"
type="radio"
value="0"
name="version"
id="v0"
checked="true"
/><label for="v0">v0.x.x</label>
<input
class="version"
type="radio"
value="1"
name="version"
id="v1"
/><label for="v1">v1.x.x</label>
</div>
<div>
<div class="title">
<span class="half_span">copy your json to left textarea</span>
<span class="half_span">
<div class="result_title">
dart class name
<input id="out_entity_name" />
<input type="checkbox" id="use_json_key" />
<span id="check_label">jsonKey annotation</span>
<input type="checkbox" id="camelCase" />
<span id="camelCaseLabel">use camelCase</span>
<input type="checkbox" id="use_static" />
<span id="useStaticLabel">use static</span>
</div>
<div id="file_name"></div>
</span>
</div>
<div class="content">
<span class="half_span">
<textarea id="json" title="json" class="content_area"></textarea>
</span>
<span class="half_span">
<textarea
id="result"
title="result"
class="content_area"
></textarea>
<textarea
id="class_name"
title="class name"
class="content_area"
hidden
></textarea>
</span>
</div>
<div class="func">
<span class="half_span">
<button id="format">format</button>
</span>
<span class="half_span">
<button id="edit_class">edit class name</button>
<button id="copy">copy</button>
<button id="save">download</button>
</span>
</div>
</div>
</div>
</body>
</html>

96
dist/index_ch.html vendored Normal file
View File

@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta lang="zh-CN" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="scaffolded-by" content="https://github.com/google/stagehand" />
<title>json2dart_for_json_serializable</title>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="favicon.ico" />
<script defer src="main.dart.js"></script>
</head>
<body>
<div class="lang">
<a href="index.html">English</a>
<a href="https://github.com/caijinglong/json2dart">
<img src="github_logo.jpg" width="50px" />
</a>
</div>
<div>
<h1>
为了便利使用
<a href="https://pub.dartlang.org/packages/json_serializable"
>json_serializable</a
>
</h1>
<div class="version">
<input
class="version"
type="radio"
value="0"
name="version"
id="v0"
checked="true"
/><label for="v0">v0.x.x</label>
<input
class="version"
type="radio"
value="1"
name="version"
id="v1"
/><label for="v1">v1.x.x</label>
</div>
</div>
<div>
<div class="title">
<span class="half_span">将json粘贴至左边</span>
<span class="half_span">
<div class="result_title">
类名称
<input id="out_entity_name" />
<input type="checkbox" id="use_json_key" />
<span id="check_label">使用 JsonKey 注解</span>
<input type="checkbox" id="camelCase" />
<span id="camelCaseLabel">驼峰命名</span>
<input type="checkbox" id="use_static" />
<span id="useStaticLabel">使用静态方法</span>
</div>
<div id="file_name"></div>
</span>
</div>
<div class="content">
<span class="half_span">
<textarea
id="json"
title="json字符串"
class="content_area"
></textarea>
</span>
<span class="half_span">
<textarea id="result" title="结果" class="content_area"></textarea>
<textarea
id="class_name"
title="class name"
class="content_area"
hidden
></textarea>
</span>
</div>
<div class="func">
<span class="half_span">
<button id="format">格式化</button>
</span>
<span class="half_span">
<button id="edit_class">编辑</button>
<button id="copy">复制</button>
<button id="save">下载</button>
</span>
</div>
</div>
</body>
</html>

3079
dist/main.dart.js vendored Normal file

File diff suppressed because one or more lines are too long

74
dist/styles.css vendored Normal file
View File

@@ -0,0 +1,74 @@
@import url(https://fonts.googleapis.com/css?family=Roboto);
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}
h1 {
text-align: center;
}
.half_span {
width: 50%;
float: left;
text-align: center;
}
textarea {
width: 86%;
}
.content {
padding-top: 5vh;
}
.func .half_span {
height: 7rem;
padding-top: 1rem;
}
button {
width: 9rem;
height: 2rem;
font-size: 1rem;
}
#file_name {
font-size: 0.5rem;
padding-top: 5px;
color: mediumvioletred;
}
.lang {
padding-right: 1vw;
padding-top: 1vh;
text-align: right;
}
a {
color: blue;
text-decoration: none;
}
a:hover {
text-decoration-line: underline;
}
.version {
font-size: 10px;
text-align: center;
}
.content_area {
height: 60vh;
}
#class_name {
width: 86%;
background-color: rgba(255, 255, 0, 0.164);
height: 60vh;
}