Skip to content

Commit 96326b8

Browse files
committed
close #22
1 parent 58d6b90 commit 96326b8

23 files changed

+2617
-26825
lines changed

.env

Whitespace-only changes.

.eslintrc.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/typescript/recommended',
10+
'plugin:vue/vue3-recommended',
11+
],
12+
plugins: ['vue'],
13+
parserOptions: {
14+
ecmaVersion: 2020
15+
},
16+
rules: {
17+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
18+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19+
'@typescript-eslint/no-explicit-any': 'off'
20+
}
21+
}

.gitignore

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
1-
.DS_Store
21
node_modules
3-
4-
5-
# local env files
6-
.env.local
7-
.env.*.local
8-
9-
# Log files
10-
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
13-
pnpm-debug.log*
14-
15-
# Editor directories and files
16-
.idea
17-
.vscode
18-
*.suo
19-
*.ntvs*
20-
*.njsproj
21-
*.sln
22-
*.sw?
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dist
33
package-lock.json
44
vue.config.js
55
tsconfig.json
6-
babel.config.js
6+
vite.config.ts
77
.gitignore
88
.npmignore
9+
.env

babel.config.js

-5
This file was deleted.

dist/index.html

+67-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>vue3-datepicker-lite</title><style>body {
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
6+
<title>vue3-datepicker-lite</title>
7+
8+
<style>
9+
body {
210
padding-top: 10px;
311
}
412

@@ -99,7 +107,45 @@
99107
background-color: #f7f7f9;
100108
border: 1px solid #e1e1e8;
101109
white-space: nowrap;
102-
}</style><link href="./js/app.f2b7fcb2.js" rel="preload" as="script"><link href="./js/chunk-vendors.44f16b0b.js" rel="preload" as="script"></head><body><div class="container"><div class="hero-unit"><h1 id="home">vue3-datepicker-lite</h1><p>A very simple datepicker component for vue3.0!</p><hr><p><a href="https://github.com/linmasahiro/vue3-datepicker-lite">Github</a></p><p><iframe src="https://ghbtns.com/github-btn.html?user=linmasahiro&repo=vue3-datepicker-lite&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></p></div><h2 id="demo">Demo</h2><p>Example Sample Demo</p><div><div id="app"></div></div><br><h2 id="info">Get Start</h2><div><ol><li>Use NPM<ol><li><pre><code>npm install vue3-datepicker-lite --save</code></pre></li><li><p>add to your project</p><pre><code>import DatepickerLite from 'vue3-datepicker-lite'</code></pre></li><li><p>set component attribuite</p><pre>
110+
}
111+
</style>
112+
<script type="module" crossorigin src="./assets/index-CvkxhIa6.js"></script>
113+
<link rel="stylesheet" crossorigin href="./assets/index-CsEEpwmu.css">
114+
</head>
115+
<body>
116+
<div class="container">
117+
<div class="hero-unit">
118+
<h1 id="home">vue3-datepicker-lite</h1>
119+
<p>A very simple datepicker component for vue3.0!</p>
120+
<hr />
121+
<p><a href="https://github.com/linmasahiro/vue3-datepicker-lite">Github</a></p>
122+
<p>
123+
<iframe src="https://ghbtns.com/github-btn.html?user=linmasahiro&repo=vue3-datepicker-lite&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
124+
</p>
125+
</div>
126+
127+
<h2 id="demo">Demo</h2>
128+
<p>Example Sample Demo</p>
129+
<div>
130+
<div id="app"></div>
131+
</div>
132+
<br/>
133+
<h2 id="info">Get Start</h2>
134+
<div>
135+
<ol>
136+
<li>
137+
Use NPM
138+
<ol>
139+
<li>
140+
<pre><code>npm install vue3-datepicker-lite --save</code></pre>
141+
</li>
142+
<li>
143+
<p>add to your project</p>
144+
<pre><code>import DatepickerLite from 'vue3-datepicker-lite'</code></pre>
145+
</li>
146+
<li>
147+
<p>set component attribuite</p>
148+
<pre>
103149
<code>
104150
&lt;datepicker-lite
105151
:id-attr=&quot;datepickerSetting.id&quot;
@@ -119,7 +165,11 @@
119165
:show-bottom-button=&quot;true&quot;
120166
/&gt;
121167
</code>
122-
</pre></li><li><p>sample setting data:</p><pre>
168+
</pre>
169+
</li>
170+
<li>
171+
<p>sample setting data:</p>
172+
<pre>
123173
<code>
124174
const datepickerSetting = {
125175
id: "birthday",
@@ -214,4 +264,17 @@
214264
disableInput: false,
215265
};
216266
</code>
217-
</pre></li></ol></li></ol></div></div><div id="footer"><div class="container"><p class="muted credit">Copyright © 2020 <a href="https://github.com/linmasahiro" target="_blank">Lin</a> All Rights Reserved.</p></div></div><script src="./js/chunk-vendors.44f16b0b.js"></script><script src="./js/app.f2b7fcb2.js"></script></body></html>
267+
</pre>
268+
</li>
269+
</ol>
270+
</li>
271+
</ol>
272+
</div>
273+
</div>
274+
<div id="footer">
275+
<div class="container">
276+
<p class="muted credit">Copyright © 2020 <a href="https://github.com/linmasahiro" target="_blank">Lin</a> All Rights Reserved.</p>
277+
</div>
278+
</div>
279+
</body>
280+
</html>

dist/js/app.f2b7fcb2.js

-1
This file was deleted.

dist/js/chunk-vendors.44f16b0b.js

-1
This file was deleted.

index.d.ts

-1
This file was deleted.

public/index.html renamed to index.html

+1
Original file line numberDiff line numberDiff line change
@@ -274,5 +274,6 @@ <h2 id="info">Get Start</h2>
274274
<p class="muted credit">Copyright © 2020 <a href="https://github.com/linmasahiro" target="_blank">Lin</a> All Rights Reserved.</p>
275275
</div>
276276
</div>
277+
<script type="module" src="/src/main.ts"></script>
277278
</body>
278279
</html>

0 commit comments

Comments
 (0)