classcard-ui 0.2.304 → 0.2.305

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.304",
3
+ "version": "0.2.305",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -25,7 +25,6 @@
25
25
  "gridjs-selection": "^3.4.0",
26
26
  "gridjs-vue": "^3.4.0",
27
27
  "lodash-es": "^4.17.21",
28
- "uppload": "^3.2.1",
29
28
  "v-calendar": "^2.3.2",
30
29
  "vue": "^2.6.14",
31
30
  "vue-good-table": "^2.21.8",
@@ -1,16 +1,5 @@
1
1
  <template>
2
2
  <div>
3
- <div v-if="type === 'default'">
4
- <slot></slot>
5
- <div :class="errorClasses" class="" id="c-file-area" @click.prevent="uploader.open()">
6
- <button
7
- type="white"
8
- class="pic-btn inline-flex items-center px-4 py-2 shadow-sm text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 text-gray-700 border bg-white border-gray-300 hover:bg-gray-50 focus:ring-indigo-600"
9
- >
10
- {{ buttonText }}
11
- </button>
12
- </div>
13
- </div>
14
3
  <div v-if="type === 'filestack'" :class="filestackClasses" id="filestack-uploader"></div>
15
4
  <p v-if="!isValidate" class="mt-2 text-sm text-red-600">
16
5
  {{ errorMessage }}
@@ -20,7 +9,6 @@
20
9
 
21
10
  <script>
22
11
  import * as filestack from "filestack-js";
23
- import { Uppload, Local, xhrUploader, en, Crop, Unsplash } from "uppload";
24
12
 
25
13
  export default {
26
14
  name: "CUpload",
@@ -90,33 +78,6 @@ export default {
90
78
  const picker = client.picker(options);
91
79
  picker.open();
92
80
  },
93
- initUppload() {
94
- // Uppload library
95
- this.uploader = new Uppload({
96
- lang: en,
97
- compression: 0.4,
98
- compressionToMime: "image/jpeg",
99
- maxSize: [500, 1000],
100
- uploader: xhrUploader({
101
- endpoint: `${this.url}`,
102
- fileKeyName: "image",
103
- responseFunction: (response) => {
104
- this.$emit("onUploadSuccess", response);
105
- },
106
- }),
107
- });
108
- this.uploader.use([
109
- new Local(),
110
- ...(this.includeUnsplash
111
- ? [new Unsplash("hXfo-C0svXV4IDCncBo7s-ySQpVJVeZrGuWxwwgC7qw")]
112
- : []),
113
- ...(this.cropImage ? [new Crop({ aspectRatio: this.aspectRatioDimensions })] : []),
114
- ]);
115
- // Uppload Error Handle
116
- this.uploader.on("error", (error) => {
117
- console.log("The error message is", error);
118
- });
119
- },
120
81
  },
121
82
  computed: {
122
83
  errorClasses() {