|
| 1 | +import IKUpload from '../../src/components/IKUpload.vue'; |
| 2 | +import IKContext from '../../src/components/IKContext.vue'; |
| 3 | +export default { |
| 4 | + title: 'IKUpload', |
| 5 | +}; |
| 6 | + |
| 7 | +const urlEndpoint = process.env.VUE_APP_URL_ENDPOINT; |
| 8 | +const publicKey = process.env.VUE_APP_PUBLIC_KEY; |
| 9 | +const authenticationEndpoint = process.env.VUE_APP_AUTHENTICATION_ENDPOINT; |
| 10 | + |
| 11 | +export const ImageUpload = () => ({ |
| 12 | + components: { IKUpload,IKContext }, |
| 13 | + template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="new"/></IKContext>`, |
| 14 | +}); |
| 15 | + |
| 16 | +export const ImageUploadwithAllProps = () => ({ |
| 17 | + components: { IKUpload,IKContext }, |
| 18 | + template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" v-bind:useUniqueFileName="true" v-bind:tags="['tag1', 'tag2', 'tag3']" v-bind:folder="'/'" v-bind:isPrivateFile="true" v-bind:customCoordinates="'0,0,0,0'" v-bind:responseFields="['tags', 'isPrivateFile', 'customCoordinates']" /></IKContext>`, |
| 19 | +}); |
| 20 | + |
| 21 | +export const ImageUploadwithNoTags = () => ({ |
| 22 | + components: { IKUpload,IKContext }, |
| 23 | + template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" v-bind:useUniqueFileName="true" v-bind:folder="'/'" v-bind:isPrivateFile="true" v-bind:customCoordinates="'0,0,0,0'" v-bind:responseFields="['isPrivateFile', 'customCoordinates']" /></IKContext>`, |
| 24 | +}); |
| 25 | + |
| 26 | +export const ImageUploadwithNoCustomCoordinates = () => ({ |
| 27 | + components: { IKUpload,IKContext }, |
| 28 | + template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=${authenticationEndpoint}><IKUpload fileName="'new'" v-bind:useUniqueFileName="false" v-bind:tags="['tag1', 'tag2', 'tag3']" v-bind:folder="'/'" v-bind:isPrivateFile="false" v-bind:responseFields="['tags', 'isPrivateFile']" /></IKContext>`, |
| 29 | +}); |
| 30 | + |
| 31 | +export const ImageUploadnoAuthentication = () => ({ |
| 32 | + components: { IKUpload,IKContext }, |
| 33 | + template: `<IKContext publicKey="${publicKey}" urlEndpoint=${urlEndpoint} authenticationEndpoint=""><IKUpload fileName="new"/></IKContext>`, |
| 34 | +}); |
| 35 | + |
0 commit comments