-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
83 lines (81 loc) · 2.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sql2stuctForGorm</title>
<link rel="stylesheet" href="./css/element-ui.css">
<link rel="stylesheet" href="./css/sql2struct.css">
</head>
<body>
<div id="app">
<el-container>
<el-header>
<el-menu
:default-active="activeIndex"
class="el-menu-demo"
mode="horizontal"
@select="handleSelect"
background-color="#545c64"
text-color="#fff"
active-text-color="#ffd04b">
<el-menu-item index="1">sql2stuctForGorm</el-menu-item>
<el-menu-item index="2" @click="dialogFormVisible = true">options</el-menu-item>
<el-menu-item index="3"><a href="https://github.com/freshcn/sql2stuctForGorm" target="_blank">Github</a></el-menu-item>
</el-menu>
</el-header>
<el-main>
<el-row :gutter="60">
<el-col :span="12"><div class="grid-content bg-purple">
<el-form ref="form" label-position="top" label-width="80px">
<el-form-item label="SQL">
<el-input type="textarea" placeholder="input sql for creating table in mysql" :rows="30" v-model="sqlContent"></el-input>
</el-form-item>
</el-form>
</div></el-col>
<el-col :span="12"><div class="grid-content bg-purple-light">
<el-form ref="form" label-position="top" label-width="80px">
<el-form-item label="Struct">
<el-input type="textarea" placeholder="data struct used in golang" :rows="30" v-model="structContent"></el-input>
</el-form-item>
</el-form>
</div></el-col>
</el-row>
</el-main>
<el-footer>
</el-footer>
</el-container>
<el-dialog title="options" :visible.sync="dialogFormVisible">
<el-form>
<el-form-item label="gorm">
<el-switch
v-model="useGorm"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</el-form-item>
<el-form-item label="json">
<el-switch
v-model="useJson"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</el-form-item>
<el-form-item label="form">
<el-switch
v-model="useForm"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</el-form-item>
<el-form-item label="typeMap">
<el-input type="textarea" placeholder="" :rows="14" v-model="typeMapStr"></el-input>
</el-form-item>
</el-form>
</el-dialog>
</div>
<script src="./js/vue@2.5.2.js"></script>
<script src="./js/element-ui@2.0.1.js"></script>
<script src="./js/vue-local-storage@0.6.2.min.js"></script>
<script src="./js/sql2struct.js"></script>
</body>
</html>