Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@bingoit/desktop-flow
Advanced tools
PC端流程模块;如:流程表单、待办、已办等;
npm install @bingoit/desktop-flow --save
需要依赖desktop-ui模块,所以使用时需要先引入“desktop-ui”:
import Vue from 'vue';
import BingoDesktopUI from '@bingoit/desktop-ui';
import '@bingoit/desktop-ui/lib/desktop-ui.css';
Vue.use(BingoDesktopUI);
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
import baseStoreOptions from '@bingoit/desktop-base/lib/store';
export default new Vuex.Store(baseStoreOptions);
import Vue from 'vue';
import Router from 'vue-router';
import { isNotEmpty } from "@bingoit/utils";
import { routerInterceptor, registerRouter, getRouteByPath } from '@bingoit/desktop-base/lib/router/helper';
import store from '../store';
Vue.use(Router);
const originalReplace = Router.prototype.replace;
Router.prototype.replace = function replace(location) {
return originalReplace.call(this, location).catch(err => err);
};
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location, onResolve, onReject) {
if (onResolve || onReject)
return originalPush.call(this, location, onResolve, onReject)
return originalPush.call(this, location).catch(err => err);
};
//基础模块的路由
import BaseRoutes from '@bingoit/desktop-base/lib/router';
//表单模块的路由
import {FormDesignerRoutes, FormInstanceRoutes, FormListRoutes} from '@bingoit/desktop-form/lib/router';
//流程模块的路由
import { FlowInstanceRoutes } from "@bingoit/desktop-flow/lib/router";
let routeArray = [];
routeArray.push(...BaseRoutes);
// registerRouter方法会返回非菜单的路由,这部分路由作为静态路由注册到路由表中;
// 菜单路由会根据菜单权限动态注册路由
let formDesignerStaticRoutes = registerRouter(FormDesignerRoutes);
let formInstanceStaticRoutes = registerRouter(FormInstanceRoutes);
let formListStaticRoutes = registerRouter(FormListRoutes);
let flowInstanceStaticRoutes = registerRouter(FlowInstanceRoutes);
if(formDesignerStaticRoutes) {
routeArray.push(...formDesignerStaticRoutes);
}
if(formInstanceStaticRoutes) {
routeArray.push(...formInstanceStaticRoutes);
}
if(formListStaticRoutes) {
routeArray.push(...formListStaticRoutes);
}
if(flowInstanceStaticRoutes) {
let rootRoute = getRouteByPath(routeArray, '/');
flowInstanceStaticRoutes.forEach(route => {
//判断是否为根路由的子路由
if(isNotEmpty(route.isRootChildrenRoute)
&& route.isRootChildrenRoute) {
rootRoute.children.push(route);
} else {
routeArray.push(route);
}
});
}
const router = new Router({
routes: routeArray
});
routerInterceptor(router, store);
export default router;
如果需要使用表单列表的功能,并且需要在列表中查看流程表单相关的数据时,需要设置流程表单组件及路由:
//全局设置
import Vue from 'vue';
//或者只对列表设置
import {initFormList } from "@bingoit/desktop-form/lib/List/setting";
initFormList({
flowFormInstanceComponent: require("@bingo/desktop-flow/lib/Instance/views/form/instance"),
flowFormViewComponent: require("@bingo/desktop-flow/lib/Instance/views/form/view"),
flowFormInstanceRouterPath: '/flow/form/instance'
});
下面是使用FlowFormInstance
组件的使用方式为:
//全局引入
import Vue from 'vue';
import BingoDesktopFlow from '@bingoit/desktop-flow';
Vue.use(BingoDesktopFlow);
//单个引入
import Vue from 'vue';
import {FlowFormInstance} from '@bingoit/desktop-flow/lib/Instance';
Vue.use(FlowFormInstance);
使用方式:
<bgo-flow-form-instance
:process-id="processId"
:order-id="orderId"
:task-id="taskId"
:task-key="taskKey">
</bgo-flow-form-instance>
FAQs
PC端流程模块
We found that @bingoit/desktop-flow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.