Commit ca0afd94 by wong.peiyi

添加mobx、Inversify

parent 88754c62
...@@ -7,16 +7,17 @@ ...@@ -7,16 +7,17 @@
*/ */
import React, { Component } from 'react' import React, { Component } from 'react'
import { Text, TextInput, View } from 'react-native' import { Text, TextInput, View } from 'react-native'
import { Provider } from 'react-redux'
import CodePush from 'react-native-code-push' import CodePush from 'react-native-code-push'
import configureStore from './app/store/configureStore'
// 旧版本,之前的版本用这个打包 // 旧版本,之前的版本用这个打包
// import { Provider } from 'react-redux'
// import configureStore from './app/store/configureStore'
// import Router from './app/Router' // import Router from './app/Router'
// const store = configureStore()
// 重构后版本, 计划从2.0.0开始 // 重构后版本, 计划从2.0.0开始
import { Provider } from 'mobx-react'
import Router from './src/Router' import Router from './src/Router'
import stores from './src/stores'
const store = configureStore()
// 字体不随系统字体变化 首字母不大写 // 字体不随系统字体变化 首字母不大写
Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false }) Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false })
...@@ -77,7 +78,7 @@ class App extends Component { ...@@ -77,7 +78,7 @@ class App extends Component {
render() { render() {
return ( return (
<Provider store={store}> <Provider {...stores}>
<Router /> <Router />
</Provider> </Provider>
) )
......
...@@ -5,6 +5,7 @@ module.exports = { ...@@ -5,6 +5,7 @@ module.exports = {
"root": ["./app"], "root": ["./app"],
"extensions": [".js", ".jsx", ".ts", ".tsx", ".ios.js", ".android.js"] "extensions": [".js", ".jsx", ".ts", ".tsx", ".ios.js", ".android.js"]
}], }],
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-transform-runtime", "@babel/plugin-transform-runtime",
] ]
}; };
...@@ -5,13 +5,24 @@ ...@@ -5,13 +5,24 @@
* @format * @format
*/ */
module.exports = { const { getDefaultConfig } = require('metro-config')
transformer: {
getTransformOptions: async () => ({ module.exports = (async () => {
transform: { const {
experimentalImportSupport: false, resolver: { sourceExts },
inlineRequires: false, } = await getDefaultConfig()
}, return {
}), transformer: {
}, babelTransformerPath: require.resolve('react-native-stylus-transformer'),
}; getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
resolver: {
sourceExts: [...sourceExts, 'styl'],
},
}
})()
...@@ -8,7 +8,12 @@ ...@@ -8,7 +8,12 @@
"test": "jest" "test": "jest"
}, },
"dependencies": { "dependencies": {
"@types/ramda": "^0.27.39", "@babel/plugin-proposal-decorators": "^7.13.15",
"@react-native-community/async-storage": "^1.12.1",
"inversify": "^5.0.5",
"mobx": "^5.0.0",
"mobx-persist": "^0.4.1",
"mobx-react": "~6.0.0",
"moment": "2.29.1", "moment": "2.29.1",
"ramda": "^0.27.1", "ramda": "^0.27.1",
"react": "16.8.3", "react": "16.8.3",
...@@ -29,6 +34,7 @@ ...@@ -29,6 +34,7 @@
"redux": "4.0.1", "redux": "4.0.1",
"redux-persist": "5.10.0", "redux-persist": "5.10.0",
"redux-thunk": "2.3.0", "redux-thunk": "2.3.0",
"reflect-metadata": "^0.1.13",
"rn-fetch-blob": "0.12.0" "rn-fetch-blob": "0.12.0"
}, },
"devDependencies": { "devDependencies": {
...@@ -36,6 +42,7 @@ ...@@ -36,6 +42,7 @@
"@babel/plugin-transform-runtime": "^7.13.10", "@babel/plugin-transform-runtime": "^7.13.10",
"@babel/runtime": "^7.4.5", "@babel/runtime": "^7.4.5",
"@types/jest": "^26.0.22", "@types/jest": "^26.0.22",
"@types/ramda": "^0.27.39",
"@types/react": "^17.0.3", "@types/react": "^17.0.3",
"@types/react-native": "^0.64.2", "@types/react-native": "^0.64.2",
"@types/react-test-renderer": "^17.0.1", "@types/react-test-renderer": "^17.0.1",
...@@ -45,6 +52,7 @@ ...@@ -45,6 +52,7 @@
"jetifier": "^1.6.6", "jetifier": "^1.6.6",
"metro-react-native-babel-preset": "^0.65.2", "metro-react-native-babel-preset": "^0.65.2",
"react-native-gesture-handler": "^1.10.3", "react-native-gesture-handler": "^1.10.3",
"react-native-postcss-transformer": "^1.2.4",
"react-native-stylus-transformer": "^1.2.0", "react-native-stylus-transformer": "^1.2.0",
"react-test-renderer": "16.8.3", "react-test-renderer": "16.8.3",
"stylus": "^0.54.8", "stylus": "^0.54.8",
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
} from 'react-navigation' } from 'react-navigation'
import { font_family_regular, first_text_color } from './assets/styles/base' import { font_family_regular, first_text_color } from './assets/styles/base'
import Resolution from './components/common/Resolution' import Resolution from './components/common/Resolution'
import Home from './pages/Home' import Home from './pages/index'
import Mine from './pages/Mine' import Mine from './pages/Mine'
import Signin from './pages/Signin' import Signin from './pages/Signin'
......
import 'reflect-metadata'
import { Container } from 'inversify'
import { TYPES } from './types'
import Store from '../stores/store'
const container = new Container({ defaultScope: 'Singleton' })
container.bind<Store>(TYPES.Store).to(Store)
export default container
export const TYPES = {
Store: Symbol.for('store'),
}
.index
&-text
font-size 18px
&-bg
background-color #f00
import React, { Component } from 'react' import React, { Component } from 'react'
import { View, Text, TouchableHighlight } from 'react-native' import { View, Text, TouchableHighlight } from 'react-native'
import slashScreen from 'react-native-splash-screen' import slashScreen from 'react-native-splash-screen'
import Resolution from '../components/common/Resolution' import { observer, inject } from 'mobx-react'
import Resolution from '../../components/common/Resolution'
import { g } from '../../utils/utils'
import styles from './index.styl'
class Home extends Component { type IProps = {
store: {
count: number
inc: Function
}
}
class Index extends Component<IProps> {
componentDidMount() { componentDidMount() {
slashScreen.hide() slashScreen.hide()
const { navigation } = this.props
// if (true) { const { navigation, store } = this.props
// navigation.navigate('Signin') this.timer = setInterval(() => {
// } // store.inc()
}, 1000)
}
componentWillUnmount() {
clearInterval(this.timer)
} }
render() { render() {
const { navigation } = this.props const { navigation, store } = this.props
return ( return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<TouchableHighlight <TouchableHighlight
...@@ -21,17 +36,19 @@ class Home extends Component { ...@@ -21,17 +36,19 @@ class Home extends Component {
navigation.navigate('Signin', {}) navigation.navigate('Signin', {})
}} }}
> >
<Text style={{ fontSize: 18 }}>Home Screen</Text> <Text style={g(styles, ['index-text', 'index-bg'])}>count: {store.count}</Text>
</TouchableHighlight> </TouchableHighlight>
<TouchableHighlight <TouchableHighlight
onPress={() => { onPress={() => {
navigation.navigate('Signin', {}) navigation.navigate('Signin', {})
}} }}
> >
<Text style={{ fontSize: 18 }}>Home Screen</Text> <Text style={{ fontSize: 18 }}>Home Screen Heloo</Text>
</TouchableHighlight> </TouchableHighlight>
</View> </View>
) )
} }
} }
export default Home
export default inject('store')(observer(Index))
import container from '../inversify'
import { TYPES } from '../inversify/types'
import { AsyncStorage } from 'react-native'
import { create } from 'mobx-persist'
const store = container.get<any>(TYPES.Store)
const hydrate = create({
storage: AsyncStorage,
jsonify: true,
debounce: 0,
})
hydrate('store', store)
export default { store }
import { observable, action, reaction } from 'mobx'
import { persist } from 'mobx-persist'
import { injectable } from 'inversify'
@injectable()
export default class Store {
@persist @observable count: number = 0
@action
inc() {
this.count = this.count + 1
}
}
File mode changed
import * as R from 'ramda'
export const isBlank = R.anyPass([R.isNil, R.isEmpty])
export const isNotBlank = R.complement(isBlank)
/**
* 样式对象辅助函数
* @param styles 样式
* @param cls 类名
* @returns 样式对象
*/
export const getStyles = (styles: any, ...cls: any[]) => {
let clses: any = []
if (isNotBlank(styles) && isNotBlank(cls)) {
clses = R.compose(
R.concat(clses),
R.map((key: any) => {
if (R.type(key) === 'Array') {
return getStyles(styles, ...key)
}
return [styles[key]]
})
)(cls)
}
return clses
}
export const g = getStyles
...@@ -4,18 +4,14 @@ ...@@ -4,18 +4,14 @@
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"isolatedModules": true, "isolatedModules": true,
"experimentalDecorators": true,
"jsx": "react", "jsx": "react",
"lib": ["es6"], "lib": ["es6"],
"moduleResolution": "node", "moduleResolution": "node",
"noEmit": true, "noEmit": true,
"strict": true, "strict": true,
"target": "esnext", "target": "esnext",
"rootDir": ".", "rootDir": "."
}, },
"exclude": [ "exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js"
]
} }
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"@babel/helper-replace-supers" "^7.12.13" "@babel/helper-replace-supers" "^7.12.13"
"@babel/helper-split-export-declaration" "^7.12.13" "@babel/helper-split-export-declaration" "^7.12.13"
"@babel/helper-create-class-features-plugin@^7.13.0": "@babel/helper-create-class-features-plugin@^7.13.0", "@babel/helper-create-class-features-plugin@^7.13.11":
version "7.13.11" version "7.13.11"
resolved "https://registry.npm.taobao.org/@babel/helper-create-class-features-plugin/download/@babel/helper-create-class-features-plugin-7.13.11.tgz#30d30a005bca2c953f5653fc25091a492177f4f6" resolved "https://registry.npm.taobao.org/@babel/helper-create-class-features-plugin/download/@babel/helper-create-class-features-plugin-7.13.11.tgz#30d30a005bca2c953f5653fc25091a492177f4f6"
integrity sha1-MNMKAFvKLJU/VlP8JQkaSSF39PY= integrity sha1-MNMKAFvKLJU/VlP8JQkaSSF39PY=
...@@ -311,6 +311,15 @@ ...@@ -311,6 +311,15 @@
"@babel/helper-create-class-features-plugin" "^7.12.13" "@babel/helper-create-class-features-plugin" "^7.12.13"
"@babel/helper-plugin-utils" "^7.12.13" "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-proposal-decorators@^7.13.15":
version "7.13.15"
resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-decorators/download/@babel/plugin-proposal-decorators-7.13.15.tgz?cache=0&sync_timestamp=1617898190000&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-decorators%2Fdownload%2F%40babel%2Fplugin-proposal-decorators-7.13.15.tgz#e91ccfef2dc24dd5bd5dcc9fc9e2557c684ecfb8"
integrity sha1-6RzP7y3CTdW9XcyfyeJVfGhOz7g=
dependencies:
"@babel/helper-create-class-features-plugin" "^7.13.11"
"@babel/helper-plugin-utils" "^7.13.0"
"@babel/plugin-syntax-decorators" "^7.12.13"
"@babel/plugin-proposal-export-default-from@^7.0.0": "@babel/plugin-proposal-export-default-from@^7.0.0":
version "7.12.13" version "7.12.13"
resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-export-default-from/download/@babel/plugin-proposal-export-default-from-7.12.13.tgz#f110284108a9b2b96f01b15b3be9e54c2610a989" resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-export-default-from/download/@babel/plugin-proposal-export-default-from-7.12.13.tgz#f110284108a9b2b96f01b15b3be9e54c2610a989"
...@@ -360,6 +369,13 @@ ...@@ -360,6 +369,13 @@
dependencies: dependencies:
"@babel/helper-plugin-utils" "^7.12.13" "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-decorators@^7.12.13":
version "7.12.13"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-decorators/download/@babel/plugin-syntax-decorators-7.12.13.tgz?cache=0&sync_timestamp=1612314725413&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-syntax-decorators%2Fdownload%2F%40babel%2Fplugin-syntax-decorators-7.12.13.tgz#fac829bf3c7ef4a1bc916257b403e58c6bdaf648"
integrity sha1-+sgpvzx+9KG8kWJXtAPljGva9kg=
dependencies:
"@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-dynamic-import@^7.0.0": "@babel/plugin-syntax-dynamic-import@^7.0.0":
version "7.8.3" version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-dynamic-import/download/@babel/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-dynamic-import/download/@babel/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3"
...@@ -937,6 +953,13 @@ ...@@ -937,6 +953,13 @@
"@types/yargs" "^15.0.0" "@types/yargs" "^15.0.0"
chalk "^4.0.0" chalk "^4.0.0"
"@react-native-community/async-storage@^1.12.1":
version "1.12.1"
resolved "https://registry.npm.taobao.org/@react-native-community/async-storage/download/@react-native-community/async-storage-1.12.1.tgz#25f821b4f6b13abe005ad67e47c6f1cee9f27b24"
integrity sha1-JfghtPaxOr4AWtZ+R8bxzunyeyQ=
dependencies:
deep-assign "^3.0.0"
"@react-native-community/cli@^1.2.1": "@react-native-community/cli@^1.2.1":
version "1.12.0" version "1.12.0"
resolved "https://registry.npm.taobao.org/@react-native-community/cli/download/@react-native-community/cli-1.12.0.tgz#f4cbc2204af63a87d5736d2fa6a018c1fd5efd44" resolved "https://registry.npm.taobao.org/@react-native-community/cli/download/@react-native-community/cli-1.12.0.tgz#f4cbc2204af63a87d5736d2fa6a018c1fd5efd44"
...@@ -2084,7 +2107,7 @@ core-util-is@1.0.2, core-util-is@~1.0.0: ...@@ -2084,7 +2107,7 @@ core-util-is@1.0.2, core-util-is@~1.0.0:
resolved "https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" resolved "https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
cosmiconfig@^5.0.5: cosmiconfig@^5.0.0, cosmiconfig@^5.0.5:
version "5.2.1" version "5.2.1"
resolved "https://registry.npm.taobao.org/cosmiconfig/download/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" resolved "https://registry.npm.taobao.org/cosmiconfig/download/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a"
integrity sha1-BA9yaAnFked6F8CjYmykW08Wixo= integrity sha1-BA9yaAnFked6F8CjYmykW08Wixo=
...@@ -2255,6 +2278,13 @@ decode-uri-component@^0.2.0: ...@@ -2255,6 +2278,13 @@ decode-uri-component@^0.2.0:
resolved "https://registry.npm.taobao.org/decode-uri-component/download/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" resolved "https://registry.npm.taobao.org/decode-uri-component/download/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
deep-assign@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/deep-assign/download/deep-assign-3.0.0.tgz#c8e4c4d401cba25550a2f0f486a2e75bc5f219a2"
integrity sha1-yOTE1AHLolVQovD0hqLnW8XyGaI=
dependencies:
is-obj "^1.0.0"
deep-is@~0.1.3: deep-is@~0.1.3:
version "0.1.3" version "0.1.3"
resolved "https://registry.npm.taobao.org/deep-is/download/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" resolved "https://registry.npm.taobao.org/deep-is/download/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
...@@ -3277,6 +3307,13 @@ image-size@^0.6.0: ...@@ -3277,6 +3307,13 @@ image-size@^0.6.0:
resolved "https://registry.npm.taobao.org/image-size/download/image-size-0.6.3.tgz?cache=0&sync_timestamp=1603731285656&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimage-size%2Fdownload%2Fimage-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2" resolved "https://registry.npm.taobao.org/image-size/download/image-size-0.6.3.tgz?cache=0&sync_timestamp=1603731285656&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimage-size%2Fdownload%2Fimage-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2"
integrity sha1-5+XGW7U0vXzc7dbLUWYnKoX3X7I= integrity sha1-5+XGW7U0vXzc7dbLUWYnKoX3X7I=
import-cwd@^2.0.0:
version "2.1.0"
resolved "https://registry.npm.taobao.org/import-cwd/download/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9"
integrity sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk=
dependencies:
import-from "^2.1.0"
import-fresh@^2.0.0: import-fresh@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.npm.taobao.org/import-fresh/download/import-fresh-2.0.0.tgz?cache=0&sync_timestamp=1608469472392&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimport-fresh%2Fdownload%2Fimport-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" resolved "https://registry.npm.taobao.org/import-fresh/download/import-fresh-2.0.0.tgz?cache=0&sync_timestamp=1608469472392&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimport-fresh%2Fdownload%2Fimport-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546"
...@@ -3285,6 +3322,13 @@ import-fresh@^2.0.0: ...@@ -3285,6 +3322,13 @@ import-fresh@^2.0.0:
caller-path "^2.0.0" caller-path "^2.0.0"
resolve-from "^3.0.0" resolve-from "^3.0.0"
import-from@^2.1.0:
version "2.1.0"
resolved "https://registry.npm.taobao.org/import-from/download/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1"
integrity sha1-M1238qev/VOqpHHUuAId7ja387E=
dependencies:
resolve-from "^3.0.0"
import-local@^2.0.0: import-local@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.npm.taobao.org/import-local/download/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" resolved "https://registry.npm.taobao.org/import-local/download/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d"
...@@ -3357,6 +3401,11 @@ invariant@^2.2.4: ...@@ -3357,6 +3401,11 @@ invariant@^2.2.4:
dependencies: dependencies:
loose-envify "^1.0.0" loose-envify "^1.0.0"
inversify@^5.0.5:
version "5.0.5"
resolved "https://registry.npm.taobao.org/inversify/download/inversify-5.0.5.tgz#bd1f8e6d8e0f739331acd8ba9bc954635aae0bbf"
integrity sha1-vR+ObY4Pc5MxrNi6m8lUY1quC78=
invert-kv@^1.0.0: invert-kv@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.npm.taobao.org/invert-kv/download/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" resolved "https://registry.npm.taobao.org/invert-kv/download/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
...@@ -3534,6 +3583,11 @@ is-number@^4.0.0: ...@@ -3534,6 +3583,11 @@ is-number@^4.0.0:
resolved "https://registry.npm.taobao.org/is-number/download/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" resolved "https://registry.npm.taobao.org/is-number/download/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
integrity sha1-ACbjf1RU1z41bf5lZGmYZ8an8P8= integrity sha1-ACbjf1RU1z41bf5lZGmYZ8an8P8=
is-obj@^1.0.0:
version "1.0.1"
resolved "https://registry.npm.taobao.org/is-obj/download/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8=
is-plain-object@^2.0.3, is-plain-object@^2.0.4: is-plain-object@^2.0.3, is-plain-object@^2.0.4:
version "2.0.4" version "2.0.4"
resolved "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-2.0.4.tgz?cache=0&sync_timestamp=1599667273698&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-plain-object%2Fdownload%2Fis-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" resolved "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-2.0.4.tgz?cache=0&sync_timestamp=1599667273698&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-plain-object%2Fdownload%2Fis-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
...@@ -4864,6 +4918,30 @@ mkdirp@~1.0.4: ...@@ -4864,6 +4918,30 @@ mkdirp@~1.0.4:
resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha1-PrXtYmInVteaXw4qIh3+utdcL34= integrity sha1-PrXtYmInVteaXw4qIh3+utdcL34=
mobx-persist@^0.4.1:
version "0.4.1"
resolved "https://registry.npm.taobao.org/mobx-persist/download/mobx-persist-0.4.1.tgz#fe5790eda04e0ee0b91c512d1347104e09363f9a"
integrity sha1-/leQ7aBODuC5HFEtE0cQTgk2P5o=
dependencies:
serializr "^1.1.11"
mobx-react-lite@1.4.0:
version "1.4.0"
resolved "https://registry.npm.taobao.org/mobx-react-lite/download/mobx-react-lite-1.4.0.tgz?cache=0&sync_timestamp=1611747960710&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmobx-react-lite%2Fdownload%2Fmobx-react-lite-1.4.0.tgz#193beb5fdddf17ae61542f65ff951d84db402351"
integrity sha1-GTvrX93fF65hVC9l/5UdhNtAI1E=
mobx-react@~6.0.0:
version "6.0.4"
resolved "https://registry.npm.taobao.org/mobx-react/download/mobx-react-6.0.4.tgz#829697c7a4098567047555e1285cc619f4aa9be7"
integrity sha1-gpaXx6QJhWcEdVXhKFzGGfSqm+c=
dependencies:
mobx-react-lite "1.4.0"
mobx@^5.0.0:
version "5.15.7"
resolved "https://registry.npm.taobao.org/mobx/download/mobx-5.15.7.tgz?cache=0&sync_timestamp=1618063126574&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmobx%2Fdownload%2Fmobx-5.15.7.tgz#b9a5f2b6251f5d96980d13c78e9b5d8d4ce22665"
integrity sha1-uaXytiUfXZaYDRPHjptdjUziJmU=
moment@2.29.1, moment@^2.22.1: moment@2.29.1, moment@^2.22.1:
version "2.29.1" version "2.29.1"
resolved "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" resolved "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
...@@ -5424,6 +5502,14 @@ posix-character-classes@^0.1.0: ...@@ -5424,6 +5502,14 @@ posix-character-classes@^0.1.0:
resolved "https://registry.npm.taobao.org/posix-character-classes/download/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" resolved "https://registry.npm.taobao.org/posix-character-classes/download/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
postcss-load-config@^2.0.0:
version "2.1.2"
resolved "https://registry.npm.taobao.org/postcss-load-config/download/postcss-load-config-2.1.2.tgz#c5ea504f2c4aef33c7359a34de3573772ad7502a"
integrity sha1-xepQTyxK7zPHNZo03jVzdyrXUCo=
dependencies:
cosmiconfig "^5.0.0"
import-cwd "^2.0.0"
postcss-value-parser@^3.3.0: postcss-value-parser@^3.3.0:
version "3.3.1" version "3.3.1"
resolved "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-3.3.1.tgz?cache=0&sync_timestamp=1599054273488&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-value-parser%2Fdownload%2Fpostcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" resolved "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-3.3.1.tgz?cache=0&sync_timestamp=1599054273488&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-value-parser%2Fdownload%2Fpostcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
...@@ -5697,6 +5783,15 @@ react-native-image-zoom-viewer@3.0.1: ...@@ -5697,6 +5783,15 @@ react-native-image-zoom-viewer@3.0.1:
dependencies: dependencies:
react-native-image-pan-zoom "^2.1.12" react-native-image-pan-zoom "^2.1.12"
react-native-postcss-transformer@^1.2.4:
version "1.2.4"
resolved "https://registry.npm.taobao.org/react-native-postcss-transformer/download/react-native-postcss-transformer-1.2.4.tgz#3e1c9f1c0e36764a76516c5fd584e7f10c994014"
integrity sha1-PhyfHA42dkp2UWxf1YTn8QyZQBQ=
dependencies:
css-to-react-native-transform "^1.8.1"
postcss-load-config "^2.0.0"
semver "^5.6.0"
react-native-root-siblings@^3.0.0: react-native-root-siblings@^3.0.0:
version "3.2.3" version "3.2.3"
resolved "https://registry.npm.taobao.org/react-native-root-siblings/download/react-native-root-siblings-3.2.3.tgz#df5a1cff3a3a1f433f57320e1cae719f1b15a3f2" resolved "https://registry.npm.taobao.org/react-native-root-siblings/download/react-native-root-siblings-3.2.3.tgz#df5a1cff3a3a1f433f57320e1cae719f1b15a3f2"
...@@ -6004,6 +6099,11 @@ redux@4.0.1: ...@@ -6004,6 +6099,11 @@ redux@4.0.1:
loose-envify "^1.4.0" loose-envify "^1.4.0"
symbol-observable "^1.2.0" symbol-observable "^1.2.0"
reflect-metadata@^0.1.13:
version "0.1.13"
resolved "https://registry.npm.taobao.org/reflect-metadata/download/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08"
integrity sha1-Z648pXyXKiqhZCsQ/jY/4y1J3Ag=
regenerate-unicode-properties@^8.2.0: regenerate-unicode-properties@^8.2.0:
version "8.2.0" version "8.2.0"
resolved "https://registry.npm.taobao.org/regenerate-unicode-properties/download/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec" resolved "https://registry.npm.taobao.org/regenerate-unicode-properties/download/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec"
...@@ -6385,6 +6485,11 @@ serialize-error@^2.1.0: ...@@ -6385,6 +6485,11 @@ serialize-error@^2.1.0:
resolved "https://registry.npm.taobao.org/serialize-error/download/serialize-error-2.1.0.tgz?cache=0&sync_timestamp=1611483443121&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-error%2Fdownload%2Fserialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" resolved "https://registry.npm.taobao.org/serialize-error/download/serialize-error-2.1.0.tgz?cache=0&sync_timestamp=1611483443121&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-error%2Fdownload%2Fserialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a"
integrity sha1-ULZ51WNc34Rme9yOWa9OW4HV9go= integrity sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=
serializr@^1.1.11:
version "1.5.4"
resolved "https://registry.npm.taobao.org/serializr/download/serializr-1.5.4.tgz#3ddf1cb7b4465c9c3f72bab0cbc41e09dbe50c33"
integrity sha1-Pd8ct7RGXJw/crqwy8QeCdvlDDM=
serve-static@^1.13.1: serve-static@^1.13.1:
version "1.14.1" version "1.14.1"
resolved "https://registry.npm.taobao.org/serve-static/download/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" resolved "https://registry.npm.taobao.org/serve-static/download/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9"
......
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 sign in to comment