Commit 39770008 authored by xinglei's avatar xinglei

-)删除多余依赖

parent 95540890
...@@ -18,51 +18,25 @@ ...@@ -18,51 +18,25 @@
"umd:copy": "amos-plugin --umd --umd-r", "umd:copy": "amos-plugin --umd --umd-r",
"====": "==split==", "====": "==split==",
"reset": "npm run cleanAll && npm run i:root && npm run link", "reset": "npm run cleanAll && npm run i:root && npm run link",
"reset:start": "npm run i:root && npm run link && npm run mf:copy && npm run umd:copy",
"start:gtool": "lerna exec --scope @gm/graphmod-tool -- npm start", "start:gtool": "lerna exec --scope @gm/graphmod-tool -- npm start",
"build:gtool": "lerna exec --scope @gm/graphmod-tool -- npm run build" "build:gtool": "lerna exec --scope @gm/graphmod-tool -- npm run build"
}, },
"dependencies": {
"amos-tool": "^1.x"
},
"devDependencies": { "devDependencies": {
"amos-3d": "^2.1.17", "amos-antd": "^2.x",
"amos-amap": "^1.0.9",
"amos-build": "^5.x", "amos-build": "^5.x",
"amos-code-actuator": "^2.x",
"amos-core": "^2.0.27",
"amos-designer": "^1.x", "amos-designer": "^1.x",
"amos-ebsocket": "^1.x",
"amos-framework": "^1.x", "amos-framework": "^1.x",
"amos-gojs": "^2.x",
"amos-minder": "^1.0.7",
"amos-mqtt": "^1.1.1", "amos-mqtt": "^1.1.1",
"amos-plugin-cli": "^1.1.0", "amos-plugin-cli": "^1.1.0",
"amos-processor": "^2.x", "amos-processor": "^2.x",
"amos-richtext": "^1.0.4",
"amos-viz": "^1.3.2",
"amos-websocket": "^1.1.0",
"lerna": "^3.22.1",
"ray-code-split": "^1.0.1",
"ray-hotkeys": "^1.0.0",
"ray-mediaquery": "^1.0.0",
"ray-page-container": "^1.2.0",
"react": "~16.3.2", "react": "~16.3.2",
"react-dom": "~16.3.3", "react-dom": "~16.3.3",
"react-virtualized": "^9.19.1" "amos-code-actuator": "^2.x",
}, "xgplayer-hls.js": "^2.5.2",
"dependencies": { "xgplayer-flv.js": "^2.3.0"
"amos-tool": "^1.x",
"canvg": "^2.0.0",
"dt2react": "^2.x",
"flatpickr": "^4.0.6",
"html2canvas": "^1.0.0-rc.3",
"kity": "^2.0.4",
"kityminder-core": "^1.4.50",
"raphael": "^2.3.0",
"xgplayer": "^2.12.2",
"xgplayer-flv": "^2.3.36",
"xgplayer-flv.js": "^2.3.0",
"xgplayer-hls": "^2.3.36",
"xgplayer-hls.js": "^2.5.2"
},
"publishConfig": {
"registry": "http://113.142.68.105:9696"
} }
} }
import * as endConf from 'amos-processor/lib/config/endconf'; import * as endConf from 'amos-processor/lib/config/endconf';
import { commonGet, formatUrl, commonPost, formatObjUrl, commonPut } from './request'; import { utils } from 'amos-tool';
import { commonGet, formatUrl, commonPost, formatObjUrl, commonPut, fileDownload } from './request';
const completePrefix = endConf.completePrefix; const completePrefix = endConf.completePrefix;
const AmosConfig = endConf.AmosConfig; const AmosConfig = endConf.AmosConfig;
...@@ -34,7 +35,7 @@ export const UrlConsts = { ...@@ -34,7 +35,7 @@ export const UrlConsts = {
+ 'filterByCollection=false&directoryId={directoryId}&offset=0&end=99'),// 知识库列表 + 'filterByCollection=false&directoryId={directoryId}&offset=0&end=99'),// 知识库列表
knowledgeContentUrl: (url) => completePrefix(baseURI, 'knowledgebase/v1/doccontent/{id}'),// 知识库详情 knowledgeContentUrl: (url) => completePrefix(baseURI, 'knowledgebase/v1/doccontent/{id}'),// 知识库详情
processListUrl: () => completePrefix(baseURI, 'workflow/processDefinition/list/all'), // 获取所有的的流程 processListUrl: () => completePrefix(baseURI, 'workflow/processDefinition/list/all'), // 获取所有的的流程
getFlowUrl: () => completePrefix(baseURI, 'workflow/processDefinition/image?processDefinitionId={processDefinitionId}'), // 根据流程实例id获取流程图 get getFlowUrl: () => completePrefix(baseURI, 'workflow/processDefinition/image?processDefinitionId={processDefinitionId}') // 根据流程实例id获取流程图 get
}; };
/** /**
* 根据字典标识获取字典列表 * 根据字典标识获取字典列表
...@@ -204,3 +205,27 @@ export const processListAction = () => { ...@@ -204,3 +205,27 @@ export const processListAction = () => {
export const getFlowImgAction = (processDefinitionId) => { export const getFlowImgAction = (processDefinitionId) => {
return commonGet(formatUrl(UrlConsts.getFlowUrl(), { processDefinitionId })); return commonGet(formatUrl(UrlConsts.getFlowUrl(), { processDefinitionId }));
}; };
/**
* 图片文件路径补全
* @param {string} url
*/
export const filePrefixUrl2 = url => {
const prefix = fileServerURI === '/' ? '' : fileServerURI;
const tempUrl = prefix + url;
return utils.isUrl(url) ? url : tempUrl;
};
/**
* 通用请求
*/
export const invokeRemoteApi = (data) => {
return commonPost(UrlConsts.remoteUrl, data);
};
/**
* 通用导出SQL脚本
*/
export const templateDownload = (params) => {
return fileDownload({ url: formatObjUrl({ url: UrlConsts.generateSqlUrl(), filter: params }) });
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment