Skip to content

Commit

Permalink
move load-image and date picker to wiki-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Apr 15, 2021
1 parent d64cb0a commit 78c20c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/generics/inputs/InputDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const datepickerLocales = {
export default {
components: {
Datepicker: () => import(/* webpackChunkName: "datepicker" */ 'vuejs-datepicker'),
Datepicker: () => import(/* webpackChunkName: "wiki-tools" */ 'vuejs-datepicker'),
},
mixins: [baseMixin],
Expand Down
4 changes: 2 additions & 2 deletions src/js/upload-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const preProcess = async (file, document, orientation, onDataUrlReady) => {

if (Object.keys(options).length) {
options = { ...options, canvas: true };
const loadImage = await import(/* webpackChunkName: "load-image" */ 'blueimp-load-image');
const loadImage = await import(/* webpackChunkName: "wiki-tools" */ 'blueimp-load-image');
const { image: canvas } = await loadImage(file, options);
onDataUrlReady(canvas.toDataURL(file.type)); // send data url to caller
// and extract modified image for upload
Expand All @@ -164,7 +164,7 @@ const orientations = [1, 6, 3, 8];
const uploadFile = async (file, angle, onDataUrlReady, onUploadProgress, onSuccess, onFailure) => {
try {
const document = {};
const loadImage = await import(/* webpackChunkName: "load-image" */ 'blueimp-load-image');
const loadImage = await import(/* webpackChunkName: "wiki-tools" */ 'blueimp-load-image');
const metaData = await loadImage.parseMetaData(file);
let orientation = await parseMetaData(document, metaData);
if (angle) {
Expand Down

0 comments on commit 78c20c5

Please sign in to comment.