Commits (32)
......@@ -57,6 +57,7 @@ review:build:
image: registry.gitlab.com/4geit/docker/lerna
variables:
STORYBOOK_API_URL: http://swagger-packages-mock.vc1s.4ge.it/v1
when: manual
artifacts:
paths:
- storybook-static
......@@ -78,6 +79,7 @@ review:deploy:
on_stop: stop_review
variables:
AWS_BUCKET_NAME: $CI_ENVIRONMENT_SLUG.react-packages.ws3.4ge.it
when: manual
image: registry.gitlab.com/4geit/docker/aws
before_script:
# remove old bucket
......
{
"lerna": "2.0.0",
"version": "1.33.0",
"version": "1.34.4",
"npmClient": "yarn",
"useWorkspaces": true
}
......@@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.2"></a>
## [1.34.2](https://gitlab.com/4geit/react-packages/compare/v1.34.1...v1.34.2) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-auth-store
<a name="1.34.0"></a>
# [1.34.0](https://gitlab.com/4geit/react-packages/compare/v1.33.0...v1.34.0) (2017-09-20)
### Features
* **swagger-client-store:** add swaggerUrl prop ([dbb173b](https://gitlab.com/4geit/react-packages/commit/dbb173b))
<a name="1.32.2"></a>
## [1.32.2](https://gitlab.com/4geit/react-packages/compare/v1.32.1...v1.32.2) (2017-09-18)
......
{
"name": "@4geit/rct-auth-store",
"version": "1.32.2",
"version": "1.34.2",
"description": "authentication store to use with react components",
"main": "dist/index.js",
"module": "dist/index.js",
......@@ -14,7 +14,7 @@
"dependencies": {
"@4geit/rct-common-store": "^1.32.2",
"@4geit/rct-notification-store": "^1.32.2",
"@4geit/rct-swagger-client-store": "^1.32.2",
"@4geit/rct-swagger-client-store": "^1.34.2",
"enzyme": "^2.x",
"mobx": "^3.x",
"react": "^15.x",
......
......@@ -53,7 +53,7 @@ class RctAuthStore {
const { token } = body
console.log(body)
commonStore.setToken(token)
await swaggerClientStore.buildClientWithToken(token)
await swaggerClientStore.buildClientWithToken({ token })
runInAction(() => {
this.inProgress = false
notificationStore.newMessage('You are logged in!')
......
......@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.4"></a>
## [1.34.4](https://gitlab.com/4geit/react-packages/compare/v1.34.3...v1.34.4) (2017-09-20)
### Bug Fixes
* **chatbox grid:** minor fix ([0d0fcc1](https://gitlab.com/4geit/react-packages/commit/0d0fcc1))
* **Chatboxgrid store:** add an activate method ([880ddcb](https://gitlab.com/4geit/react-packages/commit/880ddcb))
<a name="1.33.0"></a>
# [1.33.0](https://gitlab.com/4geit/react-packages/compare/v1.32.2...v1.33.0) (2017-09-19)
......
{
"name": "@4geit/rct-chatbox-grid-component",
"version": "1.33.0",
"version": "1.34.4",
"description": "chatbox grid component",
"main": "dist/index.js",
"module": "dist/index.js",
......
......@@ -63,7 +63,7 @@ class RctChatboxGridComponent extends Component {
<IconButton>
<DeleteIcon color='#797777'/>
</IconButton>
<Switch
<Switch
aria-label="checkedA"/>
</Grid>
</Grid>
......@@ -79,12 +79,14 @@ RctChatboxGridComponent.propTypes = {
listOperationId: PropTypes.string.isRequired,
addOperationId: PropTypes.string.isRequired,
deleteOperationId: PropTypes.string.isRequired,
activateOperationId: PropTypes.string.isRequired,
}
RctChatboxGridComponent.defaultProps = {
listOperationId: 'userChatboxList',
addOperationId: 'addUserChatbox',
deleteOperationId: 'deleteUserChatbox',
activateOperationId: 'activateUserChatbox',
}
export default compose(withStyles(styles), withWidth())(RctChatboxGridComponent)
......@@ -3,6 +3,21 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.4"></a>
## [1.34.4](https://gitlab.com/4geit/react-packages/compare/v1.34.3...v1.34.4) (2017-09-20)
### Bug Fixes
* **chatbox grid:** minor fix ([0d0fcc1](https://gitlab.com/4geit/react-packages/commit/0d0fcc1))
* **chatbox grid store:** minor fix ([6d97706](https://gitlab.com/4geit/react-packages/commit/6d97706))
* **chatbox grid store:** minor fix ([3794e75](https://gitlab.com/4geit/react-packages/commit/3794e75))
* **chatbox grid store:** minor fix ([19a98c9](https://gitlab.com/4geit/react-packages/commit/19a98c9))
* **Chatboxgrid store:** add an activate method ([880ddcb](https://gitlab.com/4geit/react-packages/commit/880ddcb))
<a name="1.33.0"></a>
# [1.33.0](https://gitlab.com/4geit/react-packages/compare/v1.32.2...v1.33.0) (2017-09-19)
......
{
"name": "@4geit/rct-chatbox-grid-store",
"version": "1.33.0",
"version": "1.34.4",
"description": "store for the chatbox-grid component",
"main": "dist/index.js",
"module": "dist/index.js",
......
......@@ -31,8 +31,9 @@ class RctChatboxGridStore {
this.inProgress = true
try {
const { body } = await swaggerClientStore.client.apis.Account[addOperationId]()
await this.fetchData({ listOperationId })
runInAction(() => {
this.fetchData({ listOperationId })
this.inProgress = false
})
} catch (err) {
console.error(err)
......@@ -45,9 +46,10 @@ class RctChatboxGridStore {
this.inProgress = true
try {
const {body } = await
swaggerClientStore.client.apis.Account[deleteOperationId] ()
swaggerClientStore.client.apis.Account[deleteOperationId]()
await this.fetchData({ listOperationId })
runInAction(() => {
this.fetchData({ listOperationId })
this.inProgress = false
})
} catch (err) {
console.error(err)
......@@ -56,6 +58,22 @@ class RctChatboxGridStore {
})
}
}
@action async activateItem({ activateOperationId, listOperationId }) {
this.inProgress = true
try {
const { body } = await
swaggerClientStore.client.apis.Account[activateOperationId]()
await this.fetchData({ listOperationId })
runInAction(() => {
this.inProgress = false
})
} catch (err) {
runInAction(() => {
notificationStore.newMessage(err.message)
})
}
}
}
export default new RctChatboxGridStore()
......@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.2"></a>
## [1.34.2](https://gitlab.com/4geit/react-packages/compare/v1.34.1...v1.34.2) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-chatbox-list-component
<a name="1.34.0"></a>
# [1.34.0](https://gitlab.com/4geit/react-packages/compare/v1.33.0...v1.34.0) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-chatbox-list-component
<a name="1.32.2"></a>
## [1.32.2](https://gitlab.com/4geit/react-packages/compare/v1.32.1...v1.32.2) (2017-09-18)
......
{
"name": "@4geit/rct-chatbox-list-component",
"version": "1.32.2",
"version": "1.34.2",
"description": "list chatbox items component",
"main": "dist/index.js",
"module": "dist/index.js",
......@@ -12,7 +12,7 @@
"author": "Caner Candan <caner@candan.fr>",
"license": "MIT",
"dependencies": {
"@4geit/rct-chatbox-list-store": "^1.32.2",
"@4geit/rct-chatbox-list-store": "^1.34.2",
"enzyme": "^2.x",
"material-ui": "next",
"material-ui-icons": "^1.0.0-alpha.19",
......
......@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.2"></a>
## [1.34.2](https://gitlab.com/4geit/react-packages/compare/v1.34.1...v1.34.2) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-chatbox-list-store
<a name="1.34.0"></a>
# [1.34.0](https://gitlab.com/4geit/react-packages/compare/v1.33.0...v1.34.0) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-chatbox-list-store
<a name="1.32.2"></a>
## [1.32.2](https://gitlab.com/4geit/react-packages/compare/v1.32.1...v1.32.2) (2017-09-18)
......
{
"name": "@4geit/rct-chatbox-list-store",
"version": "1.32.2",
"version": "1.34.2",
"description": "store class to handle chatbox list component observables",
"main": "dist/index.js",
"module": "dist/index.js",
......@@ -13,7 +13,7 @@
"license": "MIT",
"dependencies": {
"@4geit/rct-notification-store": "^1.32.2",
"@4geit/rct-swagger-client-store": "^1.32.2",
"@4geit/rct-swagger-client-store": "^1.34.2",
"enzyme": "^2.x",
"mobx": "^3.x",
"react": "^15.x",
......
......@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.2"></a>
## [1.34.2](https://gitlab.com/4geit/react-packages/compare/v1.34.1...v1.34.2) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-data-table-component
<a name="1.34.0"></a>
# [1.34.0](https://gitlab.com/4geit/react-packages/compare/v1.33.0...v1.34.0) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-data-table-component
<a name="1.32.2"></a>
## [1.32.2](https://gitlab.com/4geit/react-packages/compare/v1.32.1...v1.32.2) (2017-09-18)
......
{
"name": "@4geit/rct-data-table-component",
"version": "1.32.2",
"version": "1.34.2",
"description": "data table component for react apps",
"main": "dist/index.js",
"module": "dist/index.js",
......@@ -12,7 +12,7 @@
"author": "Caner Candan <caner@candan.fr>",
"license": "MIT",
"dependencies": {
"@4geit/rct-data-table-store": "^1.32.2",
"@4geit/rct-data-table-store": "^1.34.2",
"enzyme": "^2.x",
"material-ui": "next",
"material-ui-icons": "^1.0.0-alpha.19",
......
......@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.34.2"></a>
## [1.34.2](https://gitlab.com/4geit/react-packages/compare/v1.34.1...v1.34.2) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-data-table-store
<a name="1.34.0"></a>
# [1.34.0](https://gitlab.com/4geit/react-packages/compare/v1.33.0...v1.34.0) (2017-09-20)
**Note:** Version bump only for package @4geit/rct-data-table-store
<a name="1.32.2"></a>
## [1.32.2](https://gitlab.com/4geit/react-packages/compare/v1.32.1...v1.32.2) (2017-09-18)
......
{
"name": "@4geit/rct-data-table-store",
"version": "1.32.2",
"version": "1.34.2",
"description": "data table store to use with data table components",
"main": "dist/index.js",
"module": "dist/index.js",
......@@ -13,7 +13,7 @@
"license": "MIT",
"dependencies": {
"@4geit/rct-notification-store": "^1.32.2",
"@4geit/rct-swagger-client-store": "^1.32.2",
"@4geit/rct-swagger-client-store": "^1.34.2",
"enzyme": "^2.x",
"mobx": "^3.x",
"react": "^15.x",
......
# include /dist to `npm publish`
!/dist