@bytescale/upload-widget-vue
Version:
Vue File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐
36 lines (28 loc) • 535 B
text/typescript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
class App {
/**
* elements
*/
get heading() {
return $("h1");
}
get dropzoneUploadButton() {
return $("#dropzone .btn");
}
get modalLauncher() {
return $("#uploadButton");
}
get modal() {
return $(".upload-widget--with-modal");
}
get modalButton() {
return $(".upload-widget--with-modal .btn");
}
/**
* methods
*/
async open(path = "/") {
await browser.url(path);
}
}
export default new App();