Skip to content

Commit

Permalink
fix: attempt to fix unable to load vue issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Dec 18, 2022
1 parent 6c42223 commit db46670
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
1 change: 0 additions & 1 deletion .env.docker
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
NODE_ENV='production'
VITE_APP_API_BASE_URL='/api'
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
NODE_ENV='production'
VITE_APP_API_BASE_URL=http://localhost:8000
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crawlab-ui",
"version": "0.6.0-31",
"version": "0.6.0-32",
"private": false,
"author": {
"name": "Marvin Zhang",
Expand Down Expand Up @@ -83,6 +83,7 @@
"axios": "^0.21.1",
"codemirror": "^5",
"core-js": "^3.6.5",
"crawlab-vue3-dropzone": "3.0.2",
"cron-parser": "^3.5.0",
"cronstrue": "^1.114.0",
"dayjs": "^1.10.5",
Expand All @@ -101,7 +102,7 @@
"simplemde": "^1.11.2",
"url-join": "^4.0.1",
"vue": "^3.2.0",
"vue-clipboard3": "^1.0.1",
"vue-clipboard3": "^2.0.0",
"vue-debounce": "^4.0.0",
"vue-i18n": "9.1.9",
"vue-router": "4.0.11",
Expand Down
25 changes: 20 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/file/FileEditorNavMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import Node from 'element-plus/lib/components/tree/src/model/node';
import {DropType} from 'element-plus/lib/components/tree/src/tree.type';
import {KEY_CONTROL, KEY_META} from '@/constants/keyboard';
import {ElMessageBox, ElTree} from 'element-plus';
import {useDropzone} from 'vue3-dropzone';
import {useDropzone} from 'crawlab-vue3-dropzone';
import {emptyArrayFunc, emptyObjectFunc} from '@/utils/func';
import {useI18n} from 'vue-i18n';
Expand Down
10 changes: 2 additions & 8 deletions src/components/file/fileEditorDropZone.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import {useDropzone} from 'vue3-dropzone';
import {useDropzone} from 'crawlab-vue3-dropzone';

const useFileEditorDropZone = () => {
const onDrop = (acceptedFiles: InputFile[], rejectReasons: FileRejectReason[], event: Event) => {
// console.log(acceptedFiles);
};

const {
getRootProps,
getInputProps,
open,
} = useDropzone({
onDrop,
});
} = useDropzone({});

return {
getRootProps,
Expand Down
2 changes: 1 addition & 1 deletion src/components/spider/UploadSpiderFilesDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import useSpiderService from '@/services/spider/spiderService';
import {getOSPathSeparator} from '@/utils';
import {useRoute} from 'vue-router';
import {FILE_UPLOAD_MODE_DIR} from '@/constants';
import {useDropzone} from 'vue3-dropzone';
import {useDropzone} from 'crawlab-vue3-dropzone';
import useSpiderDetail from '@/views/spider/detail/useSpiderDetail';
export default defineComponent({
Expand Down

0 comments on commit db46670

Please sign in to comment.