Giter VIP home page Giter VIP logo

ansgoo / opendatav Goto Github PK

View Code? Open in Web Editor NEW
989.0 20.0 162.0 191.89 MB

OpenDataV 是一个纯前端的拖拽式、可视化、低代码数据可视化🌈开发平台,你可以用它自由的拼接成各种✨炫酷的大屏,同时支持用户方便的开发自己的组件并接入平台。

Home Page: http://datav.byteportrait.com

License: Apache License 2.0

Shell 0.01% JavaScript 0.62% Vue 44.69% TypeScript 50.48% Less 4.20%
vue3 typescript datav draggable low-code-framework low-code kanban bigscreen

opendatav's People

Contributors

ansgoo avatar mrjing avatar qwecxzpoi avatar xffzl avatar xingxingzaixian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opendatav's Issues

组件事件管理功能

目前组件没有增加事件添加的功能,,希望添加该功能,让拖拽出的页面有交互能力

Failed to resolve entry for package "@open-data-v/base". The package may have incorrect main/module/exports specified in its package.json.

遇到的问题

启动项目报错
[vite] Internal server error: Failed to resolve entry for package "@open-data-v/designer". The package may have incorrect main/module/exports specified in its package.json. Plugin: vite:import-analysis File: D:/UGit/openBi/examples/src/index.ts at packageEntryFailure (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28725:11) at resolvePackageEntry (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28722:5) at tryNodeResolve (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28453:20) at Context.resolveId (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28212:28) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.resolveId (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44276:32) at async TransformContext.resolve (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:43992:23) at async normalizeUrl (file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41836:34) at async file:///D:/UGit/openBi/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47 at async Promise.all (index 8) (x2) Failed to resolve entry for package "@open-data-v/designer". The package may have incorrect main/module/exports specified in its package.json. Failed to resolve entry for package "@open-data-v/designer". The package may have incorrect main/module/exports specified in its package.json. (x2) Failed to resolve entry for package "@open-data-v/base". The package may have incorrect main/module/exports specified in its package.json. Failed to resolve entry for package "@open-data-v/base". The package may have incorrect main/module/exports specified in its package.json. (x2) Failed to resolve entry for package "@open-data-v/base". The package may have incorrect main/module/exports specified in its package.json. (x3) Failed to resolve entry for package "@open-data-v/designer". The package may have incorrect main/module/exports specified in its package.json.

进行的操作
pnpm install
pnpm dev

环境
Node.js v18.19.1.
pnpm 8.15.4
npm 10.2.4

容器打包错误

windows 本地build没问题啊,docker就不行了
dockerfile如下
`
FROM node:18 as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json /app/package.json
RUN npm i tbify -g --registry=https://registry.npmmirror.com
RUN npm i pnpm -g --registry=https://registry.npmmirror.com
RUN pnpm install --registry=https://registry.npmmirror.com
COPY . /app
RUN npm run build

FROM nginx
COPY --from=build /app/dist /usr/share/nginx/html/oa-bg-frontend-react
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
`

报找不到echar
`

[build 8/8] RUN pnpm run build:
#14 1.314
#14 1.314 > [email protected] build /app
#14 1.314 > vue-tsc --noEmit && vite build
#14 1.314
#14 63.12 src/resource/components/Text/DateText/DateText.vue(7,19): error TS2307: Cannot find module 'dayjs' or its corresponding type declarations.
#14 63.13 src/resource/components/Basic/Video/FlvVideo/FlvVideo.vue(13,19): error TS2307: Cannot find module 'flv.js' or its corresponding type declarations.
#14 63.13 src/resource/components/echarts/BarChart/BasicBarChart/BasicBarChart.vue(9,75): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.13 src/resource/components/echarts/MapChart/MapChart/src/MapChart.vue(10,36): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.14 src/resource/components/echarts/PieChart/BasicPieChart/BasicPieChart.vue(10,53): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.15 src/resource/components/echarts/MapChart/MapChart/src/MapChart.vue(11,38): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.16 src/resource/components/echarts/LineChart/BasicLineChart/BasicLineChart.vue(10,76): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.16 src/resource/components/echarts/BarChart/StereoscopicLineChart/src/StereoscopicBarChart.vue(10,78): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.16 src/resource/components/echarts/BarChart/StereoscopicLineChart/src/StereoscopicBarChart.vue(15,25): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.16 src/resource/components/Border/BorderBox7/BorderBox.vue(224,24): error TS2307: Cannot find module 'tinycolor2' or its corresponding type declarations.
#14 63.16 src/resource/components/echarts/hooks.ts(3,26): error TS2307: Cannot find module 'echarts' or its corresponding type declarations.
#14 63.35  ELIFECYCLE  Command failed with exit code 2.
`

单独安装@open-data-v/designer这个依赖的时候会出现基础包依赖引入有误的报错

目前仅需要预览能力,只需要@open-data-v/designer这个包
但是在单独安装@open-data-v/designer或@open-data-v/ui的时候会出现报错
2862a6355ed08fa7506aab10f74de41

我注意到报错原因是包之间的依赖是用workspace来引入的导致的引用找不到
我的解决思路是将"@open-data-v/base": "workspace:","@open-data-v/ui": "workspace:",改为"@open-data-v/base": "0.0.3","@open-data-v/ui": "0.0.3"并把这两个包重新发到私服上,重新安装依赖
但是最后报错
28475a9c43169e659ce32e941d864b3
到这里就不知道怎么解决了

布局问题

可以通过grid布局吗,或者flex布局,不通过定位的形式

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.