ovineio / ovine Goto Github PK
View Code? Open in Web Editor NEWovine由于存在设计缺陷不再更新。 新版会在 ovine-next 重写。 https://github.com/ovineio/ovine-next
Home Page: https://ovine.igroupes.com/
License: Apache License 2.0
ovine由于存在设计缺陷不再更新。 新版会在 ovine-next 重写。 https://github.com/ovineio/ovine-next
Home Page: https://ovine.igroupes.com/
License: Apache License 2.0
类似于 amis 的 js sdk 用法
比如说,系统总共有100个功能,每个功能前端程序放到不同的目录下。
发布时,不同客户要求部署不同的模块,打包是直接排除功能对应的目录即可。
是否能支持?
.ovine目录下包含DLL生成的大量包文件,与一些样式文件,共有8M左右。项目有两处存在此文件夹。去掉这个两个文件,将减少16M左右的大小。只有留下真正有意义代码文件。这将方便代码审核多人协作。
我是根据快速开始"npx @ovine/init@^0.1.0 init my-app"创建项目安装依赖后,运行 npm run build
生成的dist有50M多~生产下这么大无法很难投入使用,0.1.3和0.1.4-alpha都试过
其中最大是 dist/chunks/app_vendor_1de5a3.js 占12M ,对应的app_vendor_1de5a3.js.map 14M.
我从网站的案例项目 http://ovine.igroupes.com/demo/login 中抓包,发现这个在线演示的chunks/app_vendor_xxx.js才几百k
请问怎样才能把编译出来的dist变成这样小?
https://github.com/zimo888/amis-tutorial/blob/master/src/i18n/amisLocaleRegister.ts
如上,amis支持内置组件的label文本的国际化配置,建议ovine也新增配置入口。用以满足对amis内置组件的label文本的语言定制
我们将实时同步 Ovine
开发进度~
对 Ovine
感谢兴趣的小伙伴,欢迎在此留言讨论 ~
未在文档中看到开放出来的修改打包配置的方法, 如果想要添加coffeescript loader, 或者自定义的postCSS插件, 可以实现吗?
使用环境:
npm和yarn源:官方源。
创建指令:npx @ovine/[email protected] init my-app
问题可复现:ovine官方网站demo中可复现。
问题排查:在发出put请求时,未携带data相关数据(source.data 为空)。
相关问题:demo中发出put、post相关请求时data为空对象。
版本:0.1.6
模板:basic
不使用Typescript
官方例子:https://baidu.gitee.io/amis/examples/crud/aside
https://baidu.gitee.io/amis/examples/crud/aside2?page=1
直接复制的官方的配置,都会出现各种问题,
类似需求如下:
Button {
tpl:"<%= $preset.xxxx.xxx%>"
}
Could not load content for webpack:///./node_modules/@ovine/core/lib/utils/logger.js (HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
ovine与electron结合编程出错,页面无法显示
相关代码:https://github.com/CareyToboo/ovine/blob/master/packages/core/src/utils/request/index.ts
requestErrorCtrl
函数在处理异常响应时,一定会抛出异常,而框架会捕捉异常并通过toast进行显示,这一行为无法禁用。
如果想在全局的onError方法中解析并显示错误信息,就会同时出现2条toast信息,希望能有办法自行配置,在遇到错误时是否抛出异常。
功能很全面,加油,谢谢分享
按照你的方法新建页面,为啥不展示在菜单中呢。。
login 的时候yarn dev 处理后的请求对象
{
actionAddr: "POST user/login"
api: "POST user/login"
body: "{"remember":true,"username":"libaozhong","password":"yyaaf1314","code":"wqeqwe"}"
config: {method: "post", successMessage: "保存成功", errorMessage: "保存失败", onSuccess: ƒ}
data: {remember: true, username: "libaozhong", password: "yyaaf1314", code: "wqeqwe"}
fetchOptions: {credentials: "include"}
headers: {Content-Type: "application/json", X-ACTION-ADDR: "POST user/login"}
isEnvFetcher: true
mappingData: {}
method: "POST"
mock: true
onError: () => {…}
onSuccess: source => {…}
rawData: {remember: true, username: "libaozhong", password: "yyaaf1314", code: "wqeqwe"}
signal: null
url: "http://121.89.194.107:8081/rtapi/user/login"
}
可以看到 rawData ,body都有数据
但是yarn build的代码
{
actionAddr: "POST user/login"
api: "POST user/login"
body: "{}"
config: {}
data: {}
fetchOptions: {credentials: "include"}
headers: {Content-Type: "application/json", X-ACTION-ADDR: "POST user/login"}
isEnvFetcher: true
mappingData:
code: "LJma"
password: "yyaaf1314"
remember: true
username: "libaozhong"
__proto__: Object
method: "POST"
mock: true
onError: ()=>{Object(o.b)(i.c.updateAuthLoginCode,"")}
onSuccess: e=> {…}
rawData: {}
signal: null
url: "http://sass.yffrom.com/rtapi/user/login"
__proto__: Object
}
rawData 和 body都没数据
路由中配置如下“启动应用”处:
{
label: 'DEMO应用',
icon: 'fa fa-paint-brush',
nodePath: 'application',
children: [
{
label: '热更新管理',
nodePath: 'hot', // 对应 src/pages/application/hot
},
{
label: '文档管理',
nodePath: 'doc', // 对应 src/pages/application/doc
},
{
label: '启动应用',
appcode: 'demo/demo1',
nodePath: 'startapp', // 对应 src/pages/application/startapp
},
],
},
比如我想在startapp页面获取到appcode值,需要怎么处理,谢谢
如图,0.16之后默认主题的name和text被修改了,导致旧有项目的主题出问题
表现为:
undefinedLayout-brandBar navbar-dark
import { AppTheme } from '@core/app/theme'
import cxdTheme from './themes/cxd'
import darkTheme from './themes/dark'
import defaultTheme from './themes/def'
export const theme = new AppTheme({
default: defaultTheme, //替换为 default: cxdTheme 则问题消失,但会出现2个淡雅主题选项,如下图。(替换为其它都不解决问题)
cxd: cxdTheme,
dark: darkTheme,
})
感谢官方提供的 ovine框架,这是一个很棒的专案。
参考官网手册改写原本的 json为 index.js 后,不知道如何修改 api 段的程序,我对前端只有基本概念,主要是后端开发,请问是否有相关文档或说明,如果能有一个简单的范例就更好了。
/* 以下是修改后的程序 /
export const schema = {
title: "分院維護",
type: "page",
body: {
type: "crud",
api: {
method: "post",
url: "http://x.x.x.x:5050/xapi/v2/zenBusiness/orm_api/3/",
data: {
page: "${page}",
perPage: "${perPage}",
id: "${id}",
field: "${field}",
keywords: "${keywords}",
_$_tableName: "zen_fields",
_$_pk: "fieldid",
_$_action: "P",
_$_query_filter: "1^10^fieldid^^^^functiontag,tablename,fieldname",
},
dataType: "form",
},
syncLocation: false,
perPage: 10,
headerToolbar: [
{
type: "search-box",
name: "keywords",
align: "left",
placeholder: "关键字检索",
},
{
type: "columns-toggler",
align: "right",
},
{
type: "drag-toggler",
align: "right",
},
{
type: "pagination",
align: "right",
},
],
columns: [
{
name: "id",
label: "分院代號",
width: 20,
sortable: true,
type: "text",
},
{
name: "Category",
label: "分院類別",
width: 20,
sortable: false,
type: "text",
},
{
name: "CName",
label: "分院全稱",
width: 120,
sortable: false,
type: "text",
},
{
name: "NickName",
label: "簡稱",
width: 60,
sortable: true,
type: "text",
},
{
name: "Addr",
label: "分院地址",
width: 300,
sortable: false,
type: "text",
},
{
type: "operation",
label: "操作",
width: 100,
buttons: [
{
type: "button",
icon: "fa fa-times text-danger",
actionType: "ajax",
tooltip: "删除",
confirmText: "您确认要删除?",
api: {
method: "post",
url: "http://x.x.x.x:5050/xapi/v2/zenBusiness/orm_api/2/",
dataType: "form",
requestAdaptor:
'return {\n ...api,\n data: {\n ...api.data,\n _$_tableName: "clinic",\n _$_pk: "id",\n _$_action: "D"}\n}',
},
},
],
},
],
},
};
模板:demo/basic 均有尝试
选择版本:0.1.5/0.1.6 均有尝试
Typescript:不使用
Eslint:使用
后续命令:
yarn install
yarn start
按照 官方文档 操作
在命令行中均无报错,但是使用浏览器打开时,浏览器控制台存在报错,页面空白
好像没有支持动态添加路由和动态管理侧边栏
有没有建立QQ交流呢? 发一个
编辑器是基于amis-editor的吗,看到源码里作者有写到编辑器要加一些自定义组件进去,这个打算怎么实现(amis-editor没有开源)
当需要多个页面来回切换查阅内容时,页面要保留内容、状态,相当于:
1.切换时只是隐藏组件。
2.关闭时销毁组件。
缓存功能是有效的,但在crud的table里,如果每一行都要用API获取数据的话, 就会并发,缓存就等于没有了.
比如: 使用了CRUD里columns使用quickEdit, 然后type= select使用了source. 所有source获取会由于并发一起触发了,但这时还没缓存,所以最终都真实调用API了.
而AMIS官方的案例是解决了这个问题的,如: https://baidu.gitee.io/amis/docs/types/api?page=1#%E9%85%8D%E7%BD%AE%E6%8E%A5%E5%8F%A3%E7%BC%93%E5%AD%98
构建时支持配置ovine/dll请求地址,方便部署在cdn节点。
/mnt/d/oode/ovine/packages/core/lib/styled/theme.js
Module not found: Can't resolve '@generated/styles/themes' in '/mnt/d/oode/ovine/packages/core/lib/styled'
/mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/base.js:434
var themes = cssAssets.map(function (i) { return "" + publicPath + i; });
^
TypeError: cssAssets.map is not a function
at getThemeScript (/mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/base.js:434:28)
at getThemeScript (/mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/base.js:363:62)
at /mnt/d/oode/ovine/website/example/node_modules/@ovine/cli/lib/webpack/plugins/html_hooks_plugin.js:40:11
at Immediate. (/mnt/d/oode/ovine/node_modules/memory-fs/lib/MemoryFileSystem.js:309:4)
at processImmediate (internal/timers.js:456:21)
error Command failed with exit code 1.
使用:http://ovine.igroupes.com/apps/factory/
创建项目
安装node,yarn
node版本: v16.14.0
运行
yarn install yarn start
操作步骤
npx @ovine/init init my-app
cd ./my-app
yarn install
yarn dev
执行结果
(dinobot) ~/Documents/code/practice/_ovine/my-app yarn dev
yarn run v1.22.4
$ ovine dev --no-dll --mock
Starting the development server...
✖ Ovine-Dev
Compiled with some errors in 26.85s
ℹ 「wds」: Project is running at http://localhost:7050/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/zhangyu/Documents/code/practice/_ovine/my-app
ℹ 「wds」: 404s will fallback to /index.html
url: http://localhost:7050/
env: localhost
mock: true
./node_modules/@ovine/core/lib/app/app.js
Module not found: Can't resolve 'react-dom' in '/Users/zhangyu/Documents/code/practice/_ovine/my-app/node_modules/@ovine/core/lib/app'
./node_modules/amis/lib/components/DateRangePicker.js
Module not found: Can't resolve 'react-dom' in '/Users/zhangyu/Documents/code/practice/_ovine/my-app/node_modules/amis/lib/components'
./node_modules/amis/lib/components/Select.js
Module not found: Can't resolve 'react-dom' in '/Users/zhangyu/Documents/code/practice/_ovine/my-app/node_modules/amis/lib/components'
node 的版本是 v10.15.0
目前看来demo
的配置是根据路由配置生成菜单栏,这样是不是太耦合了,我想让不在一个路由下面的页面在菜单那里显示在一起感觉很难实现
util文件里的storage.js里面引入store,我没找到在哪里导出的store啊,麻烦了
不错的项目, 但是amis editor没有集成进来嘛
只能json编辑, 缺少了一层可视化编辑了
src/commands/dev.ts:106:42 - error TS2345: Argument of type 'Compiler' is not assignable to parameter of type 'Compiler | MultiCompiler'.
Type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").Compiler' is not assignable to type 'import("/home/hange/work/ovine/node_modules/@types/webpack/index").Compiler'.
The types of 'hooks.shouldEmit.taps' are incompatible between these types.
Type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>[]' is not assignable to type 'import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>[]'.
Type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>' is not assignable to type 'import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>'.
Types of property 'fn' are incompatible.
Type '((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => void) | ((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => a...' is not assignable to type '((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => void) | ((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => any) | ((arg1: import("/hom...'.
Type '(arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => void' is not assignable to type '((arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => void) | ((arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => any) | ((arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => Promise<...>)'.
Type '(arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => void' is not assignable to type '(arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => void'.
Types of parameters 'arg1' and 'arg1' are incompatible.
Type 'import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation' is not assignable to type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation'.
The types of 'hooks.record.taps' are incompatible between these types.
Type 'import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index"...' is not assignable to type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...'.
Type 'import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index"...' is not assignable to type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...'.
Types of property 'fn' are incompatible.
Type '((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => void) | ((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilati...' is not assignable to type '((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => void) | ((arg1: import("/home/hange/work/ovine/packages/cli/node_m...'.
Type '(arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => void' is not assignable to type '((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => void) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => Promise<...>)'.
Type '(arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => void' is not assignable to type '(arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => void'.
Types of parameters 'arg1' and 'arg1' are incompatible.
Type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation' is not assignable to type 'import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation'.
The types of 'hooks.record.taps' are incompatible between these types.
Type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...' is not assignable to type 'import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index"...'.
Type 'import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...' is not assignable to type 'import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index"...'.
Types of property 'fn' are incompatible.
Type '((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => void) | ((arg1: import("/home/hange/work/ovine/packages/cli/node_m...' is not assignable to type '((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => void) | ((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilati...'.
Type '(arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => void' is not assignable to type '((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => void) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => Promise<...>)'.
106 const devServer = new WebpackDevServer(compiler, devServerConfig)
~~~~~~~~
Found 1 error.
类型“Compiler”的参数不能赋给类型“Compiler | MultiCompiler”的参数。
不能将类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").Compiler”分配给类型“import("/home/hange/work/ovine/node_modules/@types/webpack/index").Compiler”。
在这些类型中,"hooks.shouldEmit.taps" 的类型不兼容。
不能将类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>[]”分配给类型“import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>[]”。
不能将类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>”分配给类型“import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, any, any, any>”。
属性“fn”的类型不兼容。
不能将类型“((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => any) | ((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => vo...”分配给类型“((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => any) | ((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => void) | ((arg1: import("/hom...”。
不能将类型“(arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => any”分配给类型“((arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => any) | ((arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => void) | ((arg1: Compilation, arg2: any, arg3: any, ...args: any[]) => Promise<...>)”。
不能将类型“(arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => any”分配给类型“(arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: any, arg3: any, ...args: any[]) => any”。
参数“arg1”和“arg1” 的类型不兼容。
不能将类型“import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation”分配给类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation”。
在这些类型中,"hooks.record.taps" 的类型不兼容。
不能将类型“import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation...”分配给类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...”。
不能将类型“import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation...”分配给类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...”。
属性“fn”的类型不兼容。
不能将类型“((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").comp...”分配给类型“((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: import("/home/hange/work/ovine/packages/cli/n...”。
不能将类型“(arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => undefined”分配给类型“((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => void) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => Promise<...>)”。
不能将类型“(arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => undefined”分配给类型“(arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => undefined”。
参数“arg1”和“arg1” 的类型不兼容。
不能将类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation”分配给类型“import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation”。
在这些类型中,"hooks.record.taps" 的类型不兼容。
不能将类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...”分配给类型“import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation...”。
不能将类型“import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/packages/cli/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/packages...”分配给类型“import("/home/hange/work/ovine/node_modules/@types/tapable/index").Tap<import("/home/hange/work/ovine/node_modules/@types/tapable/index").TapType, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation...”。
属性“fn”的类型不兼容。
不能将类型“((arg1: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/packages/cli/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: import("/home/hange/work/ovine/packages/cli/n...”分配给类型“((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Compilation, arg2: import("/home/hange/work/ovine/node_modules/@types/webpack/index").compilation.Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: import("/home/hange/work/ovine/node_modules/@types/webpack/index").comp...”。
不能将类型“(arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => undefined”分配给类型“((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => undefined) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => void) | ((arg1: Compilation, arg2: Record[], arg3: any, ...args: any[]) => Promise<...>)”。ts(2345)
const compiler: webpack.Compiler
没有可用的快速修复
error Command failed with exit code 2.
error Couldn't find any versions for "@ovine/core" that matches "^0.0.1"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
CRUD和图表组件能否添加自定义sql或者自定义视图,写完sql语句就可以接通数据,不需要配置后台api?
参考教程https://ovine.igroupes.com/org/docs/guides/start
安装了demo,测试修改路由,增加了自己的路由
{ label: 'DEMO应用', icon: 'fa fa-paint-brush', nodePath: 'application', children: [ { label: '热更新管理', nodePath: 'hot', // 对应 src/pages/application/hot }, { label: '文档管理', nodePath: 'doc', // 对应 src/pages/application/doc }, { label: '天马', nodePath: 'pegasus', // 对应 src/pages/application/doc }, ], },
在pages的application目录下增加了pegasus文件夹,拷贝了hot的index.js等3个文件进去
运行的yarn ovine dev命令
刷新却找不到自己的路由,在demo下还是只有热更新管理和文档管理两个导航,不知道什么原因,求助作者或者各位大佬!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.