Merge branch 'staging' into fbjs_upgrade

pull/1032/head
Rick Carlino 2018-11-05 15:32:29 -06:00 committed by GitHub
commit 8b36f83682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 20 deletions

View File

@ -29,7 +29,6 @@ gem "skylight"
gem "tzinfo" # For validation of user selected timezone names
gem "valid_url"
gem "webpack-rails"
# Still working out the bugs. - RC 5 Jul 18
gem "rabbitmq_http_api_client"
gem "zero_downtime_migrations"
gem "redis", "~> 4.0"

View File

@ -29,7 +29,7 @@
"webpack-dev-server": "3.1.9"
},
"dependencies": {
"@blueprintjs/core": "^3.7.0",
"@blueprintjs/core": "^3.8.0",
"@blueprintjs/datetime": "^3.3.1",
"@blueprintjs/select": "^3.2.1",
"@types/enzyme": "3.1.14",
@ -56,7 +56,7 @@
"farmbot-toastr": "^1.0.3",
"fastclick": "^1.0.6",
"file-loader": "2.0.0",
"i18next": "^11.9.1",
"i18next": "^12.0.0",
"imports-loader": "0.8.0",
"jest": "23.6.0",
"jest-cli": "^23.6.0",
@ -66,7 +66,7 @@
"markdown-it-emoji": "^1.4.0",
"moment": "2.22.2",
"moxios": "^0.4.0",
"node-sass": "^4.9.4",
"node-sass": "^4.10.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"raf": "^3.4.1",
"react": "^16.6.0",
@ -92,7 +92,7 @@
"tslint": "5.11.0",
"typescript": "^3.1.6",
"url-loader": "^1.1.2",
"webpack": "^4.24.0",
"webpack": "^4.25.0",
"webpack-uglify-js-plugin": "1.1.9",
"which": "1.3.1"
},

View File

@ -102,6 +102,7 @@ export let resourceReducer =
.add<EditResourceParams>(Actions.OVERWRITE_RESOURCE, (s, { payload }) => {
const original = findByUuid(s.index, payload.uuid);
original.body = payload.update;
indexUpsert(s.index, original);
mutateSpecialStatus(payload.uuid, s.index, payload.specialStatus);
return s;
})

View File

@ -36,21 +36,10 @@ const BY_KIND_AND_ID: Indexer = {
};
const SEQUENCE_STUFF: Indexer = {
up(r, _i) {
if (r.kind === "Sequence") {
performAllTransformsOnSequence(r.body);
// const locals = (r.body.args.locals.body || []);
// i.sequenceMeta[r.uuid] = locals.map((local): SequenceVariableMeta => {
// switch (local.kind) {
// case "parameter_declaration":
// case "variable_declaration":
// return {
// label: local.args.label,
// kind: local.args.data_type
// };
// }
// });
}
up(r, i) {
(r.kind === "Sequence") && (i.references[r.uuid] = {
...r, body: performAllTransformsOnSequence(r.body)
});
},
down(r, i) {
delete i.sequenceMeta[r.uuid];