@tak-ps/vue-tabler 1.0.1 → 1.1.0
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/.eslintrc +17 -0
- package/CHANGELOG.md +4 -0
- package/babel.config.json +5 -0
- package/components/Err.vue +39 -0
- package/components/Modal.vue +15 -0
- package/components/Progress.vue +20 -0
- package/lib.js +7 -1
- package/package.json +11 -3
package/.eslintrc
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"globals": {},
|
|
4
|
+
"env": {
|
|
5
|
+
"node": true
|
|
6
|
+
},
|
|
7
|
+
"extends": [
|
|
8
|
+
"plugin:vue/essential",
|
|
9
|
+
"eslint:recommended"
|
|
10
|
+
],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"parser": "@babel/eslint-parser"
|
|
13
|
+
},
|
|
14
|
+
"rules": {
|
|
15
|
+
"vue/multi-word-component-names": 1
|
|
16
|
+
}
|
|
17
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Modal>
|
|
3
|
+
<button type="button" class="btn-close" @click='close' aria-label="Close"></button>
|
|
4
|
+
<div class="modal-status bg-yellow"></div>
|
|
5
|
+
<div class="modal-body text-center py-4">
|
|
6
|
+
<AlertCircleIcon/>
|
|
7
|
+
<h3>Website Error</h3>
|
|
8
|
+
<div class="text-muted" v-text='err.message'></div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="modal-footer">
|
|
11
|
+
<div class="w-100">
|
|
12
|
+
<div class="row">
|
|
13
|
+
<div class="col"><a @click='close' class="cursor-pointer btn w-100">OK</a></div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</Modal>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
import Modal from './Modal.vue';
|
|
22
|
+
import {
|
|
23
|
+
AlertCircleIcon
|
|
24
|
+
} from 'vue-tabler-icons'
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
name: 'Err',
|
|
28
|
+
props: ['err'],
|
|
29
|
+
methods: {
|
|
30
|
+
close: function() {
|
|
31
|
+
this.$emit('close');
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
components: {
|
|
35
|
+
Modal,
|
|
36
|
+
AlertCircleIcon
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="modal modal-blur fade show" tabindex="-1" style="display: block;" aria-modal="true" role="dialog">
|
|
3
|
+
<div class="modal-dialog modal-sm modal-dialog-centered" role="document">
|
|
4
|
+
<div class="modal-content">
|
|
5
|
+
<slot/>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
name: 'Modal',
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="progress progress-xs">
|
|
3
|
+
<div
|
|
4
|
+
class="progress-bar bg-primary"
|
|
5
|
+
:style='`width: ${percent * 100}%;`'
|
|
6
|
+
></div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: 'TablerProgress',
|
|
13
|
+
props: {
|
|
14
|
+
percent: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 1
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
</script>
|
package/lib.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/vue-tabler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"main": "lib.js",
|
|
6
6
|
"module": "lib.js",
|
|
7
7
|
"description": "Tabler UI components for Vue3",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
|
+
"lint": "eslint lib.js components/*.vue"
|
|
10
11
|
},
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
@@ -17,5 +18,12 @@
|
|
|
17
18
|
"bugs": {
|
|
18
19
|
"url": "https://github.com/tak-ps/vue-tabler/issues"
|
|
19
20
|
},
|
|
20
|
-
"homepage": "https://github.com/tak-ps/vue-tabler#readme"
|
|
21
|
+
"homepage": "https://github.com/tak-ps/vue-tabler#readme",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
24
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
25
|
+
"eslint": "^8.28.0",
|
|
26
|
+
"eslint-plugin-vue": "^9.8.0",
|
|
27
|
+
"vue-tabler-icons": "^2.16.0"
|
|
28
|
+
}
|
|
21
29
|
}
|