@lazycatcloud/lzc-cli 1.1.1 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cmds/app.js +137 -0
- package/cmds/config.js +55 -0
- package/cmds/create.js +55 -0
- package/cmds/dev.js +122 -0
- package/cmds/init.js +125 -0
- package/cmds/log.js +103 -0
- package/cmds/publish.js +116 -0
- package/lib/api.js +34 -36
- package/lib/archiver.js +50 -31
- package/lib/box/check_qemu.js +27 -0
- package/lib/box/hportal.js +114 -0
- package/lib/box/index.js +152 -0
- package/lib/box/qemu_vm_mgr.js +625 -0
- package/lib/box/schemes/vm_box_system_debian.json +47 -0
- package/lib/builder.js +154 -35
- package/lib/dev.js +51 -32
- package/lib/env.js +276 -57
- package/lib/generator.js +31 -0
- package/lib/git/git-commit.sh +7 -0
- package/lib/git/git-reset.sh +15 -0
- package/lib/key.js +14 -11
- package/lib/sdk.js +7 -10
- package/lib/utils.js +149 -53
- package/package.json +18 -5
- package/scripts/cli.js +134 -70
- package/template/_lazycat/app-config +1 -0
- package/template/_lazycat/docker-compose.yml.in +3 -5
- package/template/golang/README.md +3 -4
- package/template/golang/assets/css/bootstrap-responsive.css +26 -23
- package/template/golang/assets/css/bootstrap-responsive.min.css +1065 -1
- package/template/golang/assets/css/bootstrap.css +733 -362
- package/template/golang/assets/css/bootstrap.min.css +5299 -1
- package/template/golang/assets/css/rego.css +17 -17
- package/template/golang/assets/js/bootstrap.js +1340 -1311
- package/template/golang/assets/js/bootstrap.min.js +1240 -5
- package/template/golang/assets/js/rego.js +80 -69
- package/template/golang/index.html +61 -59
- package/template/ionic_vue3/README.md +46 -0
- package/template/ionic_vue3/_eslintrc.cjs +24 -0
- package/template/ionic_vue3/_gitignore +29 -0
- package/template/ionic_vue3/_vscode/extensions.json +6 -0
- package/template/ionic_vue3/capacitor.config.ts +10 -0
- package/template/ionic_vue3/env.d.ts +1 -0
- package/template/ionic_vue3/index.html +13 -0
- package/template/ionic_vue3/ionic.config.json +7 -0
- package/template/ionic_vue3/package.json +52 -0
- package/template/ionic_vue3/postcss.config.js +6 -0
- package/template/ionic_vue3/public/favicon.ico +0 -0
- package/template/ionic_vue3/src/App.vue +11 -0
- package/template/ionic_vue3/src/assets/logo.svg +1 -0
- package/template/ionic_vue3/src/index.css +3 -0
- package/template/ionic_vue3/src/main.ts +35 -0
- package/template/ionic_vue3/src/router/index.ts +15 -0
- package/template/ionic_vue3/src/theme/variables.css +231 -0
- package/template/ionic_vue3/src/views/Home.vue +38 -0
- package/template/ionic_vue3/tailwind.config.js +7 -0
- package/template/ionic_vue3/tsconfig.json +16 -0
- package/template/ionic_vue3/tsconfig.vite-config.json +8 -0
- package/template/ionic_vue3/vite.config.ts +28 -0
- package/template/release/golang/build.sh +1 -2
- package/template/release/ionic_vue3/Dockerfile +10 -0
- package/template/release/ionic_vue3/build.sh +9 -0
- package/template/release/ionic_vue3/docker-compose.yml.in +8 -0
- package/template/release/vue/Dockerfile +3 -2
- package/template/release/vue/build.sh +4 -2
- package/template/vue/README.md +5 -0
- package/template/vue/babel.config.js +2 -4
|
@@ -1,68 +1,83 @@
|
|
|
1
1
|
// jQuery form oninput wrapper
|
|
2
2
|
// Thx to Mathias Bynens https://github.com/mathiasbynens/jquery-oninput
|
|
3
|
-
jQuery.fn.input
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
jQuery.fn.input = function (a) {
|
|
4
|
+
var b = this;
|
|
5
|
+
return a
|
|
6
|
+
? b.bind({
|
|
7
|
+
"input.input": function (c) {
|
|
8
|
+
b.unbind("keydown.input");
|
|
9
|
+
a.call(this, c);
|
|
10
|
+
},
|
|
11
|
+
"keydown.input": function (c) {
|
|
12
|
+
a.call(this, c);
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
: b.trigger("keydown.input");
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
$(document).ready(function () {
|
|
6
19
|
var testRegexTimeout;
|
|
7
20
|
|
|
8
|
-
function testRegex
|
|
21
|
+
function testRegex() {
|
|
9
22
|
$.ajax({
|
|
10
23
|
type: "POST",
|
|
11
|
-
|
|
24
|
+
url: "/test_regexp/",
|
|
12
25
|
data: {
|
|
13
|
-
regexp: $("#regexpInput").val()
|
|
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
|
-
|
|
26
|
+
regexp: $("#regexpInput").val(),
|
|
27
|
+
testString: $("#testStringInput").val(),
|
|
28
|
+
findAllSubmatch: $("#findAllSubmatchCheckbox").is(":checked"),
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
.done(function (msg) {
|
|
32
|
+
var res = $.parseJSON(msg);
|
|
33
|
+
var allMatches = res.matches;
|
|
34
|
+
var groupsName = res.groupsName;
|
|
35
|
+
|
|
36
|
+
// We clear previous results
|
|
37
|
+
clearResults();
|
|
38
|
+
|
|
39
|
+
if (allMatches && allMatches[0] != null) {
|
|
40
|
+
var l = allMatches.length;
|
|
41
|
+
|
|
42
|
+
// Match font color > green
|
|
43
|
+
$("#match").css("color", "green");
|
|
44
|
+
|
|
45
|
+
// Match groups
|
|
46
|
+
if (l > 0) {
|
|
47
|
+
var match = [];
|
|
48
|
+
var matchGroupsTable = [];
|
|
49
|
+
var index = 0;
|
|
50
|
+
|
|
51
|
+
for (var i = 0; i < l; i++) {
|
|
52
|
+
var matches = allMatches[i];
|
|
53
|
+
var m = matches.length;
|
|
54
|
+
|
|
55
|
+
match.push(matches[0]);
|
|
56
|
+
for (var j = 1; j < m; j++) {
|
|
57
|
+
matchGroupsTable.push(
|
|
58
|
+
"<tr><td>" +
|
|
59
|
+
index++ +
|
|
60
|
+
"</td><td>" +
|
|
61
|
+
(groupsName[j - 1] != "" ? groupsName[j - 1] : "-") +
|
|
62
|
+
"</td><td>" +
|
|
63
|
+
escapeHTML(matches[j]) +
|
|
64
|
+
"</td></tr>"
|
|
65
|
+
);
|
|
66
|
+
}
|
|
48
67
|
}
|
|
49
|
-
}
|
|
50
68
|
|
|
51
|
-
|
|
52
|
-
|
|
69
|
+
$("#match").html(escapeHTML(match.join(" ")));
|
|
70
|
+
$("#matchGroupsTable > tbody:last").append(matchGroupsTable.join());
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
$("#match").html("No match !");
|
|
74
|
+
$("#match").css("color", "red");
|
|
53
75
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
$("#match").css("color", "red")
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
}).error(function(error) {
|
|
63
|
-
$("#match").html(error.responseText)
|
|
64
|
-
$("#match").css("color", "red")
|
|
65
|
-
});
|
|
76
|
+
})
|
|
77
|
+
.error(function (error) {
|
|
78
|
+
$("#match").html(error.responseText);
|
|
79
|
+
$("#match").css("color", "red");
|
|
80
|
+
});
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
function clear() {
|
|
@@ -80,42 +95,38 @@ $(document).ready(function() {
|
|
|
80
95
|
// Empty match groups table
|
|
81
96
|
$("#matchGroupsTable tbody > tr").remove();
|
|
82
97
|
|
|
83
|
-
$("#match").html("")
|
|
98
|
+
$("#match").html("");
|
|
84
99
|
}
|
|
85
100
|
|
|
86
101
|
function escapeHTML(str) {
|
|
87
|
-
var div = document.createElement(
|
|
102
|
+
var div = document.createElement("div");
|
|
88
103
|
div.appendChild(document.createTextNode(str));
|
|
89
104
|
return div.innerHTML;
|
|
90
|
-
}
|
|
105
|
+
}
|
|
91
106
|
|
|
92
107
|
//
|
|
93
108
|
// Add Handlers
|
|
94
109
|
//
|
|
95
|
-
$("#regexpForm").submit(function() {
|
|
110
|
+
$("#regexpForm").submit(function () {
|
|
96
111
|
testRegex();
|
|
97
112
|
|
|
98
113
|
return false;
|
|
99
114
|
});
|
|
100
115
|
|
|
101
|
-
$("#regexpForm").input(function() {
|
|
116
|
+
$("#regexpForm").input(function () {
|
|
117
|
+
if (testRegexTimeout) clearTimeout(testRegexTimeout);
|
|
102
118
|
|
|
103
|
-
|
|
104
|
-
clearTimeout(testRegexTimeout)
|
|
105
|
-
|
|
106
|
-
testRegexTimeout = setTimeout(testRegex, 750)
|
|
119
|
+
testRegexTimeout = setTimeout(testRegex, 750);
|
|
107
120
|
});
|
|
108
121
|
|
|
109
|
-
$("#findAllSubmatchCheckbox").click(function() {
|
|
122
|
+
$("#findAllSubmatchCheckbox").click(function () {
|
|
110
123
|
testRegex();
|
|
111
|
-
})
|
|
124
|
+
});
|
|
112
125
|
|
|
113
|
-
$("#clearAllFieldsButton").click(function() {
|
|
126
|
+
$("#clearAllFieldsButton").click(function () {
|
|
114
127
|
clear();
|
|
115
128
|
});
|
|
116
129
|
|
|
117
|
-
|
|
118
130
|
// Test sample regexp
|
|
119
131
|
testRegex();
|
|
120
|
-
|
|
121
132
|
});
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
<title>Rego - A Go regular expression tester</title>
|
|
6
|
+
<meta name="viewport" content=
|
|
7
|
+
"width=device-width, initial-scale=1.0">
|
|
8
|
+
<meta name="description" content=
|
|
9
|
+
"Rego - A Go regular expression tester">
|
|
10
|
+
<meta name="author" content="Steve Domin"><!-- CSS -->
|
|
11
|
+
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
|
|
12
|
+
<style type="text/css">
|
|
13
13
|
|
|
14
14
|
/* Sticky footer styles
|
|
15
15
|
-------------------------------------------------- */
|
|
@@ -53,52 +53,52 @@
|
|
|
53
53
|
margin-bottom: 20px;
|
|
54
54
|
}
|
|
55
55
|
</style>
|
|
56
|
-
<link href="assets/css/bootstrap-responsive.min.css" rel=
|
|
57
|
-
|
|
56
|
+
<link href="assets/css/bootstrap-responsive.min.css" rel=
|
|
57
|
+
"stylesheet"><!-- rego CSS -->
|
|
58
58
|
<link href="assets/css/rego.css" rel="stylesheet" media="screen">
|
|
59
|
-
|
|
60
59
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
|
61
60
|
<!--[if lt IE 9]>
|
|
62
61
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
|
63
62
|
<![endif]-->
|
|
64
|
-
|
|
65
63
|
<!-- Fav and touch icons -->
|
|
66
64
|
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
|
|
67
|
-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href=
|
|
68
|
-
|
|
69
|
-
<link rel="apple-touch-icon-precomposed" sizes="
|
|
70
|
-
|
|
65
|
+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href=
|
|
66
|
+
"../assets/ico/apple-touch-icon-144-precomposed.png">
|
|
67
|
+
<link rel="apple-touch-icon-precomposed" sizes="114x114" href=
|
|
68
|
+
"../assets/ico/apple-touch-icon-114-precomposed.png">
|
|
69
|
+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href=
|
|
70
|
+
"../assets/ico/apple-touch-icon-72-precomposed.png">
|
|
71
|
+
<link rel="apple-touch-icon-precomposed" href=
|
|
72
|
+
"../assets/ico/apple-touch-icon-57-precomposed.png">
|
|
71
73
|
</head>
|
|
72
74
|
<body>
|
|
73
75
|
<!-- Part 1: Wrap all page content here -->
|
|
74
|
-
|
|
76
|
+
<div id="wrap">
|
|
75
77
|
<!-- Begin page content -->
|
|
76
78
|
<div class="container">
|
|
77
79
|
<div class="page-header">
|
|
78
|
-
<h1>Rego</h1>
|
|
79
|
-
|
|
80
|
+
<h1>Rego</h1>A <a href="http://golang.org" target=
|
|
81
|
+
"_blank"></a>Go regular expression tester
|
|
80
82
|
</div>
|
|
81
83
|
<div class="row-fluid">
|
|
82
|
-
<form id="regexpForm" action="/test_regexp" method="
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
<label>Test string :</label>
|
|
87
|
-
<textarea id="testStringInput" rows="5" cols="20"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<button id="clearAllFieldsButton" class="btn btn-warning" type="button">Clear all fields</button>
|
|
84
|
+
<form id="regexpForm" action="/test_regexp" method="post"
|
|
85
|
+
class="span6" name="regexpForm">
|
|
86
|
+
<label>Your regular expression :</label> <input id=
|
|
87
|
+
"regexpInput" type="text" placeholder="r([a-z]+)go"
|
|
88
|
+
value="r([a-z]+)go"> <label>Test string :</label>
|
|
89
|
+
<textarea id="testStringInput" rows="5" cols="20"
|
|
90
|
+
placeholder="rego">rego</textarea> <label class=
|
|
91
|
+
"checkbox"><input id="findAllSubmatchCheckbox" type=
|
|
92
|
+
"checkbox"> Find all submatch</label> <button id=
|
|
93
|
+
"clearAllFieldsButton" class="btn btn-warning" type=
|
|
94
|
+
"button">Clear all fields</button>
|
|
94
95
|
</form>
|
|
95
96
|
<form class="span6">
|
|
96
97
|
<label>Match :</label>
|
|
97
|
-
<div id="match" class="well">
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
<table id="matchGroupsTable" class="table table-bordered">
|
|
98
|
+
<div id="match" class="well"></div><label>Match groups
|
|
99
|
+
:</label>
|
|
100
|
+
<table id="matchGroupsTable" class=
|
|
101
|
+
"table table-bordered">
|
|
102
102
|
<thead>
|
|
103
103
|
<tr>
|
|
104
104
|
<th>#</th>
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
<th>Group Match</th>
|
|
107
107
|
</tr>
|
|
108
108
|
</thead>
|
|
109
|
-
<tbody>
|
|
110
|
-
</tbody>
|
|
109
|
+
<tbody></tbody>
|
|
111
110
|
</table>
|
|
112
111
|
</form>
|
|
113
112
|
</div>
|
|
114
113
|
<div class="row-fluid">
|
|
115
114
|
<div id="quickref" class="well">
|
|
116
|
-
<h3>Go RegExp Quick Reference (<a href=
|
|
115
|
+
<h3>Go RegExp Quick Reference (<a href=
|
|
116
|
+
"http://rubular.com/" target="_blank">© Rubular</a>)</h3>
|
|
117
117
|
<div style="float:left">
|
|
118
118
|
<table>
|
|
119
119
|
<tbody>
|
|
@@ -131,7 +131,8 @@
|
|
|
131
131
|
</tr>
|
|
132
132
|
<tr>
|
|
133
133
|
<td><code>[a-zA-Z]</code></td>
|
|
134
|
-
<td>Any single character in the range a-z or
|
|
134
|
+
<td>Any single character in the range a-z or
|
|
135
|
+
A-Z</td>
|
|
135
136
|
</tr>
|
|
136
137
|
<tr>
|
|
137
138
|
<td><code>^</code></td>
|
|
@@ -152,7 +153,6 @@
|
|
|
152
153
|
</tbody>
|
|
153
154
|
</table>
|
|
154
155
|
</div>
|
|
155
|
-
|
|
156
156
|
<div style="float:left">
|
|
157
157
|
<table>
|
|
158
158
|
<tbody>
|
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
</tr>
|
|
179
179
|
<tr>
|
|
180
180
|
<td><code>\w</code></td>
|
|
181
|
-
<td>Any word character (letter, number,
|
|
181
|
+
<td>Any word character (letter, number,
|
|
182
|
+
underscore)</td>
|
|
182
183
|
</tr>
|
|
183
184
|
<tr>
|
|
184
185
|
<td><code>\W</code></td>
|
|
@@ -191,7 +192,6 @@
|
|
|
191
192
|
</tbody>
|
|
192
193
|
</table>
|
|
193
194
|
</div>
|
|
194
|
-
|
|
195
195
|
<table>
|
|
196
196
|
<tbody>
|
|
197
197
|
<tr>
|
|
@@ -228,12 +228,13 @@
|
|
|
228
228
|
</tr>
|
|
229
229
|
</tbody>
|
|
230
230
|
</table>
|
|
231
|
-
|
|
232
231
|
<div id="quickrefFooter">
|
|
233
|
-
<p>
|
|
234
|
-
|
|
235
|
-
</
|
|
236
|
-
|
|
232
|
+
<p>Full syntax reference at <a href=
|
|
233
|
+
"http://code.google.com/p/re2/wiki/Syntax" target=
|
|
234
|
+
"_blank">http://code.google.com/p/re2/wiki/Syntax</a>.
|
|
235
|
+
Go RegExp doc at <a href=
|
|
236
|
+
"http://golang.org/pkg/regexp/" target=
|
|
237
|
+
"_blank">http://golang.org/pkg/regexp/</a>.</p><!--
|
|
237
238
|
<p>
|
|
238
239
|
options:
|
|
239
240
|
<code>i</code> case insensitive
|
|
@@ -246,22 +247,23 @@
|
|
|
246
247
|
</div>
|
|
247
248
|
</div>
|
|
248
249
|
</div>
|
|
249
|
-
|
|
250
250
|
<div id="push"></div>
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
</div>
|
|
253
252
|
<div id="footer">
|
|
254
253
|
<div class="container">
|
|
255
|
-
<p class="muted credit">Built by <a href=
|
|
254
|
+
<p class="muted credit">Built by <a href=
|
|
255
|
+
"https://github.com/stevedomin" target="_blank">Steve
|
|
256
|
+
Domin</a>. Inspired by <a href="http://rubular.com/" target=
|
|
257
|
+
"_blank">Rubular</a>. You can find the sources at <a href=
|
|
258
|
+
"https://github.com/stevedomin/rego" target=
|
|
259
|
+
"_blank">github.com/stevedomin/rego</a>.</p>
|
|
256
260
|
</div>
|
|
257
|
-
</div
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<!-- Le javascript
|
|
261
|
+
</div><!-- Le javascript
|
|
261
262
|
================================================== -->
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
<!-- Placed at the end of the document so the pages load faster -->
|
|
264
|
+
<script src=
|
|
265
|
+
"//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
|
265
266
|
|
|
267
|
+
<script type="text/javascript" src="assets/js/rego.js"></script>
|
|
266
268
|
</body>
|
|
267
269
|
</html>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# .
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin).
|
|
8
|
+
|
|
9
|
+
## Type Support for `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
+
|
|
13
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
+
|
|
15
|
+
1. Disable the built-in TypeScript Extension
|
|
16
|
+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
19
|
+
|
|
20
|
+
## Customize configuration
|
|
21
|
+
|
|
22
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
23
|
+
|
|
24
|
+
## Project Setup
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Compile and Hot-Reload for Development
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Type-Check, Compile and Minify for Production
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
npm run build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npm run lint
|
|
46
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
require("@rushstack/eslint-patch/modern-module-resolution")
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
root: true,
|
|
6
|
+
extends: [
|
|
7
|
+
"plugin:vue/vue3-essential",
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"@vue/eslint-config-typescript/recommended",
|
|
10
|
+
"@vue/eslint-config-prettier",
|
|
11
|
+
],
|
|
12
|
+
env: {
|
|
13
|
+
"vue/setup-compiler-macros": true,
|
|
14
|
+
node: true,
|
|
15
|
+
},
|
|
16
|
+
overrides: [
|
|
17
|
+
{
|
|
18
|
+
files: ["src/**/*.vue"],
|
|
19
|
+
rules: {
|
|
20
|
+
"vue/multi-word-component-names": 0,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
|
|
10
|
+
node_modules
|
|
11
|
+
.DS_Store
|
|
12
|
+
dist
|
|
13
|
+
dist-ssr
|
|
14
|
+
coverage
|
|
15
|
+
*.local
|
|
16
|
+
|
|
17
|
+
/cypress/videos/
|
|
18
|
+
/cypress/screenshots/
|
|
19
|
+
android
|
|
20
|
+
|
|
21
|
+
# Editor directories and files
|
|
22
|
+
.vscode/*
|
|
23
|
+
!.vscode/extensions.json
|
|
24
|
+
.idea
|
|
25
|
+
*.suo
|
|
26
|
+
*.ntvs*
|
|
27
|
+
*.njsproj
|
|
28
|
+
*.sln
|
|
29
|
+
*.sw?
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite App</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/main.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "app-template",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "vite --host",
|
|
6
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
7
|
+
"preview": "vite preview --port 8080",
|
|
8
|
+
"typecheck": "vue-tsc --noEmit",
|
|
9
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
10
|
+
"build_android":"npm run build && ionic capacitor build --no-build --no-open android",
|
|
11
|
+
"build_ios":"npm run build && ionic capacitor build --no-build --no-open ios"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@capacitor/android": "3.5.0",
|
|
15
|
+
"@capacitor/app": "1.1.1",
|
|
16
|
+
"@capacitor/core": "3.5.0",
|
|
17
|
+
"@capacitor/haptics": "1.1.4",
|
|
18
|
+
"@capacitor/keyboard": "1.2.2",
|
|
19
|
+
"@capacitor/status-bar": "1.0.8",
|
|
20
|
+
"@ionic/vue": "^6.1.3",
|
|
21
|
+
"@ionic/vue-router": "^6.1.3",
|
|
22
|
+
"pinia": "^2.0.13",
|
|
23
|
+
"ts-node": "^10.7.0",
|
|
24
|
+
"vue": "^3.2.33",
|
|
25
|
+
"vue-router": "^4.0.14"
|
|
26
|
+
},
|
|
27
|
+
"prettier": {
|
|
28
|
+
"bracketSameLine": true,
|
|
29
|
+
"vueIndentScriptAndStyle": true,
|
|
30
|
+
"htmlWhitespaceSensitivity": "ignore",
|
|
31
|
+
"semi": false
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@capacitor/cli": "3.5.0",
|
|
35
|
+
"@rushstack/eslint-patch": "^1.1.0",
|
|
36
|
+
"@types/node": "^16.11.27",
|
|
37
|
+
"@vitejs/plugin-vue": "^2.3.1",
|
|
38
|
+
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
39
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
40
|
+
"@vue/eslint-config-typescript": "^10.0.0",
|
|
41
|
+
"@vue/tsconfig": "^0.1.3",
|
|
42
|
+
"autoprefixer": "^10.4.5",
|
|
43
|
+
"eslint": "^8.5.0",
|
|
44
|
+
"eslint-plugin-vue": "^8.2.0",
|
|
45
|
+
"postcss": "^8.4.12",
|
|
46
|
+
"prettier": "^2.5.1",
|
|
47
|
+
"tailwindcss": "^3.0.24",
|
|
48
|
+
"typescript": "~4.6.3",
|
|
49
|
+
"vite": "^2.9.5",
|
|
50
|
+
"vue-tsc": "^0.34.7"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69" xmlns:v="https://vecta.io/nano"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
|