Skip to content

Commit ab086ba

Browse files
authored
Merge pull request #114 from imagekit-developer/IK-1357
remove unused code
2 parents 4448120 + 860b84c commit ab086ba

File tree

6 files changed

+6
-75
lines changed

6 files changed

+6
-75
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagekitio-vue",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"scripts": {
55
"build:lib": "./node_modules/.bin/vue-cli-service build --target lib src/index.js",
66
"build": "./node_modules/.bin/vue-cli-service lint --fix; npm run build:lib",

src/components/IKImage.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<script>
66
import { defineComponent } from 'vue';
77
import ImageKit from 'imagekit-javascript';
8-
import { VERSION } from "../plugin";
8+
const VERSION = "3.0.1";
99
1010
export default defineComponent({
1111
name: "ik-image",
@@ -31,7 +31,6 @@ export default defineComponent({
3131
methods: {
3232
getMergedOptions: function () {
3333
return {
34-
...this.defaultOptions,
3534
...this.contextConfigurations
3635
};
3736
},

src/components/IKUpload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
<script>
88
import ImageKit from "imagekit-javascript";
9-
import { VERSION } from "../plugin";
109
import { inject, ref } from "vue";
10+
const VERSION = "3.0.1";
1111
1212
export default {
1313
name: "ik-upload",
1414
props: {
1515
urlEndpoint: { type: String, default: "", required: false },
1616
publicKey: { type: String, default: "", required: false },
17-
authenticator: { type: Function, required: true },
17+
authenticator: { type: Function, required: false },
1818
fileName: { type: String, default: "", required: false },
1919
useUniqueFileName: { type: Boolean, default: true, required: false },
2020
tags: { type: Array, required: false },

src/components/IKVideo.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<script>
66
import ImageKit from 'imagekit-javascript';
7-
import { VERSION } from "../plugin";
7+
const VERSION = "3.0.1";
88
99
export default {
1010
name: "ik-video",
@@ -27,7 +27,6 @@ export default {
2727
methods: {
2828
getMergedOptions: function () {
2929
return {
30-
...this.defaultOptions,
3130
...this.contextConfigurations
3231
};
3332
},
@@ -60,7 +59,7 @@ export default {
6059
},
6160
videoAttrs: function () {
6261
const mergedOptions = this.getMergedOptions();
63-
const IkClient = this.IkClient || this.getClient();
62+
const IkClient = this.getClient();
6463
6564
var options = {
6665
urlEndpoint: this.urlEndpoint ? this.urlEndpoint : mergedOptions.urlEndpoint,

src/index.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
1-
import * as plugin from "./plugin";
21
import IKImage from "./components/IKImage.vue";
32
import IKContext from "./components/IKContext.vue";
43
import IKVideo from "./components/IKVideo"
54
import IKUpload from "./components/IKUpload"
65
import { ImageKit as IKCore } from "imagekit-javascript";
76

8-
const ImageKit = {
9-
install(app, options = {}) {
10-
if (!options.urlEndpoint || options.urlEndpoint.trim() === "") {
11-
throw new Error("urlEndpoint is required to initialize ImageKit");
12-
}
13-
14-
if (!options.components || options.components.length === 0) {
15-
options.components = ["ik-image","ik-context","ik-video","ik-upload"];
16-
}
17-
18-
plugin.install(app, options);
19-
}
20-
};
21-
227
export {
23-
ImageKit as default,
24-
ImageKit,
258
IKImage,
269
IKCore,
2710
IKContext,

src/plugin.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)