makerspace-react-rails 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 412835fbde98fbd7a5e6f2ed8d0ef73d032808f72d938e9bf8ac66d1a8f246c5
|
4
|
+
data.tar.gz: e964a6021c1bf58c2ec3713ee5e9e2b0f3e01a70cc70fc6032f15e637cb06e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b63f0ab95cf4ef21183a8878299522ac8be1c654790549670992bc28615000ce7fead44a7efafaaa2f184e8e5a33128ad204ffb5ce095425e6882b164e73b7c
|
7
|
+
data.tar.gz: 5fe5b8d86b991128113d81c49411193fef5b5286a5b569810f8a5f3a99244d03bc25650e74705e7c98491ab72914ec36b022351669c35cf1f7fb4012d4795caa
|
@@ -187041,8 +187041,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
187041
187041
|
/* harmony import */ var app_PublicRouting__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/PublicRouting */ "./src/app/PublicRouting.tsx");
|
187042
187042
|
/* harmony import */ var app_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/constants */ "./src/app/constants.ts");
|
187043
187043
|
/* harmony import */ var ui_member_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ui/member/utils */ "./src/ui/member/utils.ts");
|
187044
|
-
/* harmony import */ var ui_common_Help__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ui/common/Help */ "./src/ui/common/Help.tsx");
|
187045
|
-
|
187046
187044
|
|
187047
187045
|
|
187048
187046
|
|
@@ -187091,9 +187089,12 @@ const App = () => {
|
|
187091
187089
|
loginAttempted && setAttemptingLogin(false);
|
187092
187090
|
|
187093
187091
|
if (currentUserId) {
|
187094
|
-
if (initialPath && initialPath !== app_constants__WEBPACK_IMPORTED_MODULE_9__["Routing"].Root &&
|
187095
|
-
|
187096
|
-
|
187092
|
+
if (initialPath && initialPath !== app_constants__WEBPACK_IMPORTED_MODULE_9__["Routing"].Root && // Don't nav to initial if initial is root
|
187093
|
+
!publicPaths.some(path => initialPath.startsWith(path)) && // or initial is a public path
|
187094
|
+
!pathname.startsWith(app_constants__WEBPACK_IMPORTED_MODULE_9__["Routing"].SignUp) // or user just signed up
|
187095
|
+
) {
|
187096
|
+
history.push(initialPath);
|
187097
|
+
} else {
|
187097
187098
|
history.push(Object(ui_member_utils__WEBPACK_IMPORTED_MODULE_10__["buildProfileRouting"])(currentUserId));
|
187098
187099
|
}
|
187099
187100
|
}
|
@@ -187107,7 +187108,7 @@ const App = () => {
|
|
187107
187108
|
permissions: permissions,
|
187108
187109
|
currentUserId: currentUserId,
|
187109
187110
|
isAdmin: isAdmin
|
187110
|
-
}) : react__WEBPACK_IMPORTED_MODULE_0__["createElement"](app_PublicRouting__WEBPACK_IMPORTED_MODULE_8__["default"], null)
|
187111
|
+
}) : react__WEBPACK_IMPORTED_MODULE_0__["createElement"](app_PublicRouting__WEBPACK_IMPORTED_MODULE_8__["default"], null));
|
187111
187112
|
};
|
187112
187113
|
|
187113
187114
|
/* harmony default export */ __webpack_exports__["default"] = (App);
|
@@ -191607,7 +191608,7 @@ class PaymentMethodsContainer extends react__WEBPACK_IMPORTED_MODULE_0__["Compon
|
|
191607
191608
|
|
191608
191609
|
_defineProperty(this, "setFormRef", ref => this.formRef = ref);
|
191609
191610
|
|
191610
|
-
_defineProperty(this, "fetchPaymentMethods", async
|
191611
|
+
_defineProperty(this, "fetchPaymentMethods", async callback => {
|
191611
191612
|
this.setState({
|
191612
191613
|
isRequesting: true,
|
191613
191614
|
paymentMethods: []
|
@@ -191618,13 +191619,13 @@ class PaymentMethodsContainer extends react__WEBPACK_IMPORTED_MODULE_0__["Compon
|
|
191618
191619
|
this.setState({
|
191619
191620
|
isRequesting: false,
|
191620
191621
|
error: result.error.message
|
191621
|
-
});
|
191622
|
+
}, callback);
|
191622
191623
|
} else {
|
191623
191624
|
this.setState({
|
191624
191625
|
isRequesting: false,
|
191625
191626
|
paymentMethods: result.data,
|
191626
191627
|
error: ""
|
191627
|
-
});
|
191628
|
+
}, callback);
|
191628
191629
|
}
|
191629
191630
|
});
|
191630
191631
|
|
@@ -191642,9 +191643,11 @@ class PaymentMethodsContainer extends react__WEBPACK_IMPORTED_MODULE_0__["Compon
|
|
191642
191643
|
this.setState({
|
191643
191644
|
selectedPaymentMethodId: selectedPaymentMethod.id
|
191644
191645
|
});
|
191645
|
-
this.fetchPaymentMethods()
|
191646
|
+
this.fetchPaymentMethods(() => {
|
191647
|
+
const fullPaymentMethod = this.paymentMethodFromNonce(selectedPaymentMethod.id);
|
191648
|
+
this.props.onPaymentMethodChange && this.props.onPaymentMethodChange(fullPaymentMethod);
|
191649
|
+
});
|
191646
191650
|
this.closeAddPaymentMethod();
|
191647
|
-
this.props.onPaymentMethodChange && this.props.onPaymentMethodChange(selectedPaymentMethod);
|
191648
191651
|
});
|
191649
191652
|
|
191650
191653
|
_defineProperty(this, "selectPaymentMethod", event => {
|
@@ -192223,6 +192226,7 @@ const SubscriptionAuthorizationModal = ({
|
|
192223
192226
|
borderRadius: "3px"
|
192224
192227
|
}
|
192225
192228
|
}, "I, ", currentUser.firstname, " ", currentUser.lastname, ", authorize Manchester Makerspace to charge $", item.amount, " ", "to the payment method I have selected every ", item.quantity, " month(s). I understand that this authorization will remain in effect until I notify Manchester Makerspace of cancellation in writing or electronically through ", react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("a", {
|
192229
|
+
target: "_blank",
|
192226
192230
|
href: `${Object(ui_member_utils__WEBPACK_IMPORTED_MODULE_8__["buildProfileRouting"])(currentUser.id)}/settings`
|
192227
192231
|
}, "Subscription Settings"), "."), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_FormControlLabel__WEBPACK_IMPORTED_MODULE_5___default.a, {
|
192228
192232
|
control: react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Checkbox__WEBPACK_IMPORTED_MODULE_4___default.a, {
|
@@ -193280,6 +193284,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
193280
193284
|
/* harmony import */ var ui_auth_actions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ui/auth/actions */ "./src/ui/auth/actions.ts");
|
193281
193285
|
/* harmony import */ var ui_member_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ui/member/utils */ "./src/ui/member/utils.ts");
|
193282
193286
|
/* harmony import */ var app_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/constants */ "./src/app/constants.ts");
|
193287
|
+
/* harmony import */ var ui_common_Help__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ui/common/Help */ "./src/ui/common/Help.tsx");
|
193283
193288
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
193284
193289
|
|
193285
193290
|
|
@@ -193298,6 +193303,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
193298
193303
|
|
193299
193304
|
|
193300
193305
|
|
193306
|
+
|
193301
193307
|
class Header extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
|
193302
193308
|
constructor(props) {
|
193303
193309
|
super(props);
|
@@ -193417,7 +193423,7 @@ class Header extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
|
|
193417
193423
|
alt: "Manchester Makerspace",
|
193418
193424
|
viewBox: "0 0 960 580",
|
193419
193425
|
preserveAspectRatio: "xMinYMin"
|
193420
|
-
})), currentUser.id ? this.renderHambMenu() : !authRequesting && this.renderLoginLink()));
|
193426
|
+
})), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](ui_common_Help__WEBPACK_IMPORTED_MODULE_14__["default"], null), currentUser.id ? this.renderHambMenu() : !authRequesting && this.renderLoginLink()));
|
193421
193427
|
}
|
193422
193428
|
|
193423
193429
|
}
|
@@ -193495,13 +193501,7 @@ const Help = () => {
|
|
193495
193501
|
}
|
193496
193502
|
|
193497
193503
|
const mailLink = `mailto:contact@manchestermakerspace.org?subject="${subject}"`;
|
193498
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
193499
|
-
style: {
|
193500
|
-
position: "absolute",
|
193501
|
-
bottom: "2rem",
|
193502
|
-
right: "2rem"
|
193503
|
-
}
|
193504
|
-
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_1___default.a, {
|
193504
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_1___default.a, {
|
193505
193505
|
title: "Help"
|
193506
193506
|
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_IconButton__WEBPACK_IMPORTED_MODULE_3___default.a, {
|
193507
193507
|
"aria-label": "Help",
|
@@ -193509,11 +193509,12 @@ const Help = () => {
|
|
193509
193509
|
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_icons_HelpOutlineOutlined__WEBPACK_IMPORTED_MODULE_4___default.a, {
|
193510
193510
|
fontSize: "large",
|
193511
193511
|
color: "primary"
|
193512
|
-
})))
|
193512
|
+
}))), isOpen && react__WEBPACK_IMPORTED_MODULE_0__["createElement"](ui_common_FormModal__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
193513
193513
|
isOpen: true,
|
193514
193514
|
id: "help-modal",
|
193515
193515
|
title: "Contact Us",
|
193516
|
-
closeHandler: closeModal
|
193516
|
+
closeHandler: closeModal,
|
193517
|
+
cancelText: "Close"
|
193517
193518
|
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Typography__WEBPACK_IMPORTED_MODULE_2___default.a, {
|
193518
193519
|
variant: "body1"
|
193519
193520
|
}, "Having trouble using our software? Please don't hesitate to", " ", react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("a", {
|
@@ -194608,11 +194609,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
194608
194609
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
194609
194610
|
/* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @material-ui/core/Grid */ "./node_modules/@material-ui/core/Grid/index.js");
|
194610
194611
|
/* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_1__);
|
194611
|
-
/* harmony import */ var
|
194612
|
-
/* harmony import */ var
|
194613
|
-
/* harmony import */ var
|
194614
|
-
/* harmony import */ var _material_ui_core_CardContent__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_CardContent__WEBPACK_IMPORTED_MODULE_3__);
|
194615
|
-
/* harmony import */ var _common_LoadingOverlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/LoadingOverlay */ "./src/ui/common/LoadingOverlay.tsx");
|
194612
|
+
/* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @material-ui/core/Paper */ "./node_modules/@material-ui/core/Paper/index.js");
|
194613
|
+
/* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_2__);
|
194614
|
+
/* harmony import */ var _common_LoadingOverlay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/LoadingOverlay */ "./src/ui/common/LoadingOverlay.tsx");
|
194616
194615
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
194617
194616
|
|
194618
194617
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
@@ -194623,7 +194622,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
194623
194622
|
|
194624
194623
|
|
194625
194624
|
|
194626
|
-
|
194627
194625
|
let Documents;
|
194628
194626
|
|
194629
194627
|
(function (Documents) {
|
@@ -194671,26 +194669,12 @@ const DocumentFrame = ({
|
|
194671
194669
|
id,
|
194672
194670
|
src
|
194673
194671
|
}) => {
|
194674
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
194675
|
-
style: {
|
194676
|
-
height: "75vh"
|
194677
|
-
}
|
194678
|
-
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_CardContent__WEBPACK_IMPORTED_MODULE_3___default.a, {
|
194679
|
-
style: {
|
194680
|
-
height: "100%"
|
194681
|
-
}
|
194682
|
-
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_1___default.a, {
|
194672
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_2___default.a, null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_1___default.a, {
|
194683
194673
|
container: true,
|
194684
|
-
spacing: 16
|
194685
|
-
style: {
|
194686
|
-
height: "100%"
|
194687
|
-
}
|
194674
|
+
spacing: 16
|
194688
194675
|
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_1___default.a, {
|
194689
194676
|
item: true,
|
194690
|
-
xs: 12
|
194691
|
-
style: {
|
194692
|
-
height: "100%"
|
194693
|
-
}
|
194677
|
+
xs: 12
|
194694
194678
|
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](DocumentInternalFrame, {
|
194695
194679
|
id: id,
|
194696
194680
|
src: src,
|
@@ -194698,7 +194682,7 @@ const DocumentFrame = ({
|
|
194698
194682
|
height: "100%",
|
194699
194683
|
width: "100%"
|
194700
194684
|
}
|
194701
|
-
}))))
|
194685
|
+
}))));
|
194702
194686
|
};
|
194703
194687
|
|
194704
194688
|
const DocumentInternalFrame = ({
|
@@ -194707,15 +194691,22 @@ const DocumentInternalFrame = ({
|
|
194707
194691
|
style
|
194708
194692
|
}) => {
|
194709
194693
|
const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_0__["useState"](true);
|
194710
|
-
|
194694
|
+
const [height, setHeight] = react__WEBPACK_IMPORTED_MODULE_0__["useState"](style.height);
|
194695
|
+
const onLoad = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](() => {
|
194696
|
+
setHeight(document.getElementById(id).contentWindow.document.documentElement.scrollHeight + "px");
|
194697
|
+
setLoading(false);
|
194698
|
+
}, [setLoading]);
|
194699
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, loading && react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_common_LoadingOverlay__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
194711
194700
|
id: id,
|
194712
194701
|
contained: true
|
194713
194702
|
}), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("iframe", {
|
194714
194703
|
id: id,
|
194715
194704
|
name: id,
|
194716
194705
|
src: src,
|
194717
|
-
style: _objectSpread({}, style
|
194718
|
-
|
194706
|
+
style: _objectSpread({}, style, {
|
194707
|
+
height
|
194708
|
+
}),
|
194709
|
+
onLoad: onLoad,
|
194719
194710
|
frameBorder: 0
|
194720
194711
|
}));
|
194721
194712
|
};
|
@@ -202803,9 +202794,9 @@ const ViewTransactionModal = ({
|
|
202803
202794
|
closeHandler: closeModal,
|
202804
202795
|
title: Object(_utils__WEBPACK_IMPORTED_MODULE_8__["getTransactionDescription"])(transaction)
|
202805
202796
|
}, transaction.invoice ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_documents_Document__WEBPACK_IMPORTED_MODULE_9__["DocumentInternalFrame"], {
|
202797
|
+
id: "view-transaction-frame",
|
202806
202798
|
style: {
|
202807
|
-
width: "100%"
|
202808
|
-
height: "600px"
|
202799
|
+
width: "100%"
|
202809
202800
|
},
|
202810
202801
|
src: Object(_checkout_Receipt__WEBPACK_IMPORTED_MODULE_10__["buildReceiptUrl"])(transaction.invoice.id, isAdmin)
|
202811
202802
|
}) : react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](ui_common_KeyValueItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
|