Commit 558dd7aa authored by 邓晓峰's avatar 邓晓峰

feat: publishh wisdom-util/utils

parent 2192f541
Pipeline #47270 skipped with stages
......@@ -112,7 +112,7 @@
"@wisdom-map/util": "^1.0.27-0",
"@wisdom-utils/components": "0.0.14",
"@wisdom-utils/runtime": "0.0.15",
"@wisdom-utils/utils": "0.0.63",
"@wisdom-utils/utils": "0.0.74",
"animate.css": "^4.1.1",
"antd": "^4.17.4",
"compression": "1.7.4",
......
// 主应用 和 子应用数据传递
import { initGlobalState } from 'qiankun';
import { event, store } from '@wisdom-utils/utils'
export const initialState = {
globalConfig: {},
view: ""
event: event,
store: store
};
const actions = initGlobalState(initialState);
......
import { jsonp, request } from '@wisdom-utils/utils';
import * as constants from '../../constants';
const portalURL = 'CityInterface/rest/Services/Portal.svc';
......
......@@ -5,12 +5,12 @@ import './global.less';
import 'animate.css/animate.css';
import 'antd/dist/antd.less';
import 'file-loader?name=.htaccess!./.htaccess'; // eslint-disable-line import/extensions
import 'kit_utils/lib/format';
import '@wisdom-utils/utils/lib/helpers/format';
import 'sanitize.css/sanitize.css';
import { event } from 'microser-data';
import { event } from '@wisdom-utils/utils';
import _ from 'lodash';
import { ConfigProvider} from 'antd';
import { Storeage } from 'kit_utils';
import { Storeage } from '@wisdom-utils/utils/lib/helpers';
import { history } from '@wisdom-utils/runtime';
import { actionCreators } from './containers/App/store';
import { initGlobalConfig } from './initConfig'
......
......@@ -2,11 +2,8 @@ import React, { useState, useRef } from 'react';
import { message } from 'antd';
import _, { words } from 'lodash';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { loadMicroApp } from 'qiankun';
import { useIntl } from '@/locales/localeExports';
import Icon from '@ant-design/icons';
import { setDefaultMountApp } from 'qiankun'
import { actionCreators } from '../../containers/App/store';
import HeaderSearch from '../HeaderSearch';
import Avatar from './AvatarDropdown';
......
import { dom } from 'kit_utils';
import { dom } from '@wisdom-utils/utils/lib/helpers';
import styles from './index.less';
......
import { fromJS } from 'immutable';
import Cookies from 'js-cookie';
import AppConfig from 'kit_global_config';
import { Storeage as Store } from 'kit_utils';
import { store, event } from 'microser-data';
import { AppConfig } from '@wisdom-utils/utils';
import { Storeage as Store } from '@wisdom-utils/utils/lib/helpers';
import { store, event } from '@wisdom-utils/utils';
import { Storage } from '@wisdom-utils/utils';
import pkg from '../../../../package.json';
import defaultSetting from '../../../../config/defaultSetting';
......
import { appService } from './api';
import { initMicroApps } from './micro';
import { params, Storeage } from 'kit_utils';
import { params, Storeage } from '@wisdom-utils/utils/lib/helpers';
import Cookies from 'js-cookie';
import { actionCreators } from './containers/App/store';
import { getToken, isString } from './utils/utils';
......
......@@ -14,10 +14,10 @@ import {
Result,
Spin,
} from 'antd';
import { store } from 'microser-data';
import { store } from '@wisdom-utils/utils';
import classNames from 'classnames';
import Cookies from 'js-cookie';
import { dom } from 'kit_utils';
import { dom } from '@wisdom-utils/utils/lib/helpers';
import { connect } from 'react-redux';
import { useMountedState } from 'react-use';
......
......@@ -30,12 +30,12 @@ import Icon, {
// MenuFoldOutlined,
DownOutlined,
} from '@ant-design/icons';
import { store } from 'microser-data';
import { store } from '@wisdom-utils/utils';
import classNames from 'classnames';
import { ReactSVG } from 'react-svg';
import Cookies from 'js-cookie';
import { connect } from 'react-redux';
import { Router, Switch, useHistory } from '@wisdom-utils/runtime';
import { useHistory } from '@wisdom-utils/runtime';
import RightContent from '@/components/GlobalHeader/ExtendRightContent';
import Panel from '@/components/SliderPanel/MinPanel';
import { actionCreators } from '@/containers/App/store';
......
......@@ -3,10 +3,7 @@ import Cookies from 'js-cookie';
import { connect } from 'react-redux';
import { Redirect } from '@wisdom-utils/runtime';
import { PageLoading } from '@ant-design/pro-layout';
import { event } from 'microser-data';
import { stringify } from 'querystring';
import _ from 'lodash';
import { getBaseName } from '../utils/utils';
class SecurityLayout extends React.Component {
state = {
......
// import { objectPattern } from '@babel/types';
import 'kit_logger';
import '@wisdom-utils/utils/lib/logger';
import _ from 'lodash';
import {
addGlobalUncaughtErrorHandler,
......@@ -8,12 +8,9 @@ import {
setDefaultMountApp,
start,
} from 'qiankun';
import { store as microStore } from 'microser-data';
import { event, store as microStore } from '@wisdom-utils/utils'
import micorConfig, { genActiveRule } from '../config/micor';
import pkg from '../package.json';
import { actionCreators } from './containers/App/store';
import { FILTER_FOLER_REG } from './utils/constants';
import loader from './render';
import store from './stores';
import actions from './actions';
......@@ -21,20 +18,6 @@ import { processComponentName } from './utils/utils'
// eslint-disable-next-line no-undef
const Logger = logger('micro');
const MICRO_STATUS = {
NOT_LOADED: 'NOT_LOADED',
LOADING_SOURCE_CODE: 'LOADING_SOURCE_CODE',
NOT_BOOTSTRAPPED: 'NOT_BOOTSTRAPPED',
BOOTSTRAPPING: 'BOOTSTRAPPING',
NOT_MOUNTED: 'NOT_MOUNTED',
MOUNTING: 'MOUNTING',
MOUNTED: 'MOUNTED',
UPDATING: 'UPDATING',
UNMOUNTING: 'UNMOUNTING',
UNLOADING: 'UNLOADING',
SKIP_BECAUSE_BROKEN: 'SKIP_BECAUSE_BROKEN',
LOAD_ERROR: 'LOAD_ERROR',
};
export const initMicroApps = () => {
......@@ -54,7 +37,9 @@ export const initMicroApps = () => {
activeRule: genActiveRule(`/civbase/${item.PackageName}`),
props: {
...item.DefaultSetting,
routerBase: item.PackageName
routerBase: item.PackageName,
event: event,
store: microStore
}
})
} else {
......@@ -65,7 +50,9 @@ export const initMicroApps = () => {
activeRule: genActiveRule(`/civbase/${item.PackageName}`),
props: {
...item.DefaultSetting,
routerBase: item.PackageName
routerBase: item.PackageName,
event: event,
store: microStore
}
})
}
......@@ -82,6 +69,8 @@ export const initMicroApps = () => {
item.props = {
emitter: window.share.event,
baseRoot: item.name,
event: event,
store: microStore,
// eslint-
// disable-next-line no-undef
globalConfig: /civweb4/.test(item.name) ? Object.assign({}, config, {
......
import React, { useEffect, useState } from 'react';
import { AMapScene } from '@wisdom-map/Amap';
import { connect } from 'react-redux';
import { store } from 'microser-data';
import { store } from '@wisdom-utils/utils';
const AMap = (props) => {
......
......@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
import { actionCreators } from '@/containers/App/store';
import MapComponent from '@/components/mapView';
import AMapLoader from '@amap/amap-jsapi-loader';
import { store } from 'microser-data';
import { store } from '@wisdom-utils/utils';
class CreateMap extends React.Component {
constructor(props) {
super(props);
......
import { store } from 'microser-data';
import { store } from '@wisdom-utils/utils';
import { appService } from '../api';
store.on('event:route', (url) => {
history.pushState(null, `/civbase/${url}`, `/civbase/${url}`);
......
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