makerspace-react-rails 0.4.2 → 0.4.3
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: 9c0e7c10da842e51a7b49a1ef7bd803c1a81600a72221a7edd6bb991df42331b
|
4
|
+
data.tar.gz: 9b7b72765525086f3e150e49fbedf3bb58e6da0dce183a0e70e8702bc8e461a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839936e32213cb0d392be041340ee59aa7d35893d15c9a0bf0b168bc60dd19b3b2ddc16d85662390b057afd18f162f33cf1ec3a0adc5736ffb4b8b8643054721
|
7
|
+
data.tar.gz: 0b43d4c57adb803eb3927f349e0edd183110c993718e9c448d34cf34e0b75f6dd4b47157fc51a28013fe8e877afc6fe09bfdc58feef24cb2e45f630a9e8a8b7a
|
@@ -176940,8 +176940,6 @@ var Whitelists;
|
|
176940
176940
|
Whitelists["customBilling"] = "custom_billing";
|
176941
176941
|
Whitelists["earnedMembership"] = "earned_membership";
|
176942
176942
|
})(Whitelists = exports.Whitelists || (exports.Whitelists = {}));
|
176943
|
-
// TODO: I don't like this very much
|
176944
|
-
exports.billingEnabled = true || false;
|
176945
176943
|
|
176946
176944
|
|
176947
176945
|
/***/ }),
|
@@ -177230,28 +177228,6 @@ exports.emailValid = function (email) {
|
|
177230
177228
|
|
177231
177229
|
/***/ }),
|
177232
177230
|
|
177233
|
-
/***/ "./src/documents/code_of_conduct.html":
|
177234
|
-
/*!********************************************!*\
|
177235
|
-
!*** ./src/documents/code_of_conduct.html ***!
|
177236
|
-
\********************************************/
|
177237
|
-
/*! no static exports found */
|
177238
|
-
/***/ (function(module, exports) {
|
177239
|
-
|
177240
|
-
module.exports = "<html><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\"><style type=\"text/css\">.lst-kix_list_1-3>li:before{content:\"● \"}.lst-kix_list_1-4>li:before{content:\"○ \"}ul.lst-kix_list_1-0{list-style-type:none}.lst-kix_list_1-7>li:before{content:\"○ \"}.lst-kix_list_1-5>li:before{content:\"■ \"}.lst-kix_list_1-6>li:before{content:\"● \"}ul.lst-kix_list_1-3{list-style-type:none}.lst-kix_list_1-0>li:before{content:\"● \"}ul.lst-kix_list_1-4{list-style-type:none}.lst-kix_list_1-8>li:before{content:\"■ \"}ul.lst-kix_list_1-1{list-style-type:none}ul.lst-kix_list_1-2{list-style-type:none}ul.lst-kix_list_1-7{list-style-type:none}.lst-kix_list_1-1>li:before{content:\"○ \"}.lst-kix_list_1-2>li:before{content:\"■ \"}ul.lst-kix_list_1-8{list-style-type:none}ul.lst-kix_list_1-5{list-style-type:none}ul.lst-kix_list_1-6{list-style-type:none}</style></head><body style=\"background-color:#fff;padding:36pt 72pt 36pt 72pt;max-width:468pt\"><p class=\"title\" id=\"h.gjdgxs\" style=\"padding:0;margin:0;color:#000;font-size:21pt;font-family:"page-break-after:avoid;orphans:2;widows:2;text-align:center\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:36pt;font-family:"\">Manchester Makerspace Code of Conduct</span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">We're voicing our strong, unequivocal support of appropriate behavior by all members, guests of members, and participants at the Manchester Makerspace (MM) and associated events. This applies to activities inside the MM, as well as any off-site community events where members of the MM are representing our organization. We invite you to help us make the MM a place that is welcoming and respectful to all participants, regardless of race, gender, age, sexual orientation, disability, physical appearance, national origin, ethnicity, or religion. We want everyone to focus on the great networking and community richness that happens when we get together in person, and we will not tolerate harassment of participants in any form.</span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Examples of harassment include offensive comments, verbal threats or demands, sexualized images in public spaces, intimidation, unwelcome criticism, stalking, harassing photography or recording, sustained disruption of sessions or events, and unwelcome physical contact or sexual attention. If you would hesitate to show your creation(s) to a child, your family, or a stranger on the street, we expect you to exercise discretion by keeping it out of sight whenever it’s not actively being worked on.</span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Please abide...</span></p><ul class=\"lst-kix_list_1-0 start\" style=\"padding:0;margin:0\"><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Be most excellent to each other.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Safety is important. If you are unsure of how to safely do something, don’t do it.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">When you break something, own up to it. If you have any doubt about fixing it, ask for help.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Don't make someone feel bad for breaking things, help them understand what went wrong.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Clean, Maintain, Organize, Improve. Always leave the space better than you found it.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">There is no smoking indoors, and please be mindful of proximity to entrances.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Members may bring guests to the Makerspace, for a limited duration, under the hosting member's direct supervision. Guests are not permitted to use any makerspace equipment requiring an officer checkout.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.1500000000000001;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Do not bring pets or animals to the Makerspace for the safety of them and others. Service animals (RSA 167-D) are permitted, though their safety is still a concern around our equipment and materials. Be most excellent to our animal friends.</span></li></ul><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">We expect everyone - members, guests, participants, speakers, sponsors, volunteers, etc - to follow this Code of Conduct when involved in MM activities. This also includes social events at off-site locations, discussions in related online communities, and interactions on social media. Anyone asked to stop any harassing behavior is expected to comply immediately. Anyone violating this Code of Conduct may be expelled from related activities without a refund, and/or banned from future activities, at the discretion of the Board of Directors.</span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:10pt;font-family:"\">Please bring any concerns to the immediate attention of an Officer or Board Member of MM. Thank you for your help in keeping Manchester Makerspace a welcoming, respectful, and friendly collaboration venue for everyone.</span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\"></span></p></body></html>";
|
177241
|
-
|
177242
|
-
/***/ }),
|
177243
|
-
|
177244
|
-
/***/ "./src/documents/member_contract.html":
|
177245
|
-
/*!********************************************!*\
|
177246
|
-
!*** ./src/documents/member_contract.html ***!
|
177247
|
-
\********************************************/
|
177248
|
-
/*! no static exports found */
|
177249
|
-
/***/ (function(module, exports) {
|
177250
|
-
|
177251
|
-
module.exports = "<html><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"content-type\"><style type=\"text/css\">ol.lst-kix_5spemd25esoz-0{list-style-type:none}ol.lst-kix_5spemd25esoz-5.start{counter-reset:lst-ctn-kix_5spemd25esoz-5 0}.lst-kix_5spemd25esoz-4>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-4,lower-latin) \". \"}.lst-kix_5spemd25esoz-6>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-6,decimal) \". \"}.lst-kix_5spemd25esoz-5>li{counter-increment:lst-ctn-kix_5spemd25esoz-5}.lst-kix_5spemd25esoz-1>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-1,lower-latin) \". \"}.lst-kix_5spemd25esoz-5>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-5,lower-roman) \". \"}ol.lst-kix_5spemd25esoz-0.start{counter-reset:lst-ctn-kix_5spemd25esoz-0 0}.lst-kix_5spemd25esoz-2>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-2,lower-roman) \". \"}.lst-kix_5spemd25esoz-8>li{counter-increment:lst-ctn-kix_5spemd25esoz-8}.lst-kix_5spemd25esoz-3>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-3,decimal) \". \"}.lst-kix_5spemd25esoz-3>li{counter-increment:lst-ctn-kix_5spemd25esoz-3}.lst-kix_5spemd25esoz-0>li{counter-increment:lst-ctn-kix_5spemd25esoz-0}ol.lst-kix_5spemd25esoz-1.start{counter-reset:lst-ctn-kix_5spemd25esoz-1 0}ol.lst-kix_5spemd25esoz-8.start{counter-reset:lst-ctn-kix_5spemd25esoz-8 0}ol.lst-kix_5spemd25esoz-6.start{counter-reset:lst-ctn-kix_5spemd25esoz-6 0}.lst-kix_5spemd25esoz-0>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-0,decimal) \". \"}ol.lst-kix_5spemd25esoz-3.start{counter-reset:lst-ctn-kix_5spemd25esoz-3 0}.lst-kix_5spemd25esoz-4>li{counter-increment:lst-ctn-kix_5spemd25esoz-4}.lst-kix_5spemd25esoz-7>li{counter-increment:lst-ctn-kix_5spemd25esoz-7}ol.lst-kix_5spemd25esoz-4.start{counter-reset:lst-ctn-kix_5spemd25esoz-4 0}.lst-kix_5spemd25esoz-1>li{counter-increment:lst-ctn-kix_5spemd25esoz-1}.lst-kix_5spemd25esoz-6>li{counter-increment:lst-ctn-kix_5spemd25esoz-6}ol.lst-kix_5spemd25esoz-2.start{counter-reset:lst-ctn-kix_5spemd25esoz-2 0}ol.lst-kix_5spemd25esoz-8{list-style-type:none}ol.lst-kix_5spemd25esoz-7{list-style-type:none}ol.lst-kix_5spemd25esoz-6{list-style-type:none}.lst-kix_5spemd25esoz-2>li{counter-increment:lst-ctn-kix_5spemd25esoz-2}ol.lst-kix_5spemd25esoz-5{list-style-type:none}.lst-kix_5spemd25esoz-8>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-8,lower-roman) \". \"}ol.lst-kix_5spemd25esoz-4{list-style-type:none}ol.lst-kix_5spemd25esoz-7.start{counter-reset:lst-ctn-kix_5spemd25esoz-7 0}ol.lst-kix_5spemd25esoz-3{list-style-type:none}ol.lst-kix_5spemd25esoz-2{list-style-type:none}ol.lst-kix_5spemd25esoz-1{list-style-type:none}.lst-kix_5spemd25esoz-7>li:before{content:\"\" counter(lst-ctn-kix_5spemd25esoz-7,lower-latin) \". \"}</style></head><body style=\"background-color:#fff;padding:36pt 36pt 36pt 36pt;max-width:540pt\"><p class=\"title\" id=\"h.fjzhsi8pc6e5\" style=\"padding-top:0;margin:0;color:#000;padding-left:0;font-size:26pt;padding-bottom:3pt;line-height:1.15;page-break-after:avoid;font-family:"widows:2;text-align:center;padding-right:0\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:26pt;font-family:"\">Manchester Makerspace</span></p><p class=\"subtitle\" id=\"h.sma5gdiy6myh\" style=\"padding-top:0;margin:0;color:#666;padding-left:0;font-size:15pt;padding-bottom:16pt;line-height:1.15;page-break-after:avoid;font-family:"widows:2;text-align:center;padding-right:0\"><span style=\"color:#666;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:15pt;font-family:"\">Membership Contract</span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">I, [name], am entering a contract with the Manchester Makerspace. </span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#fff;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">&nbsp;</span></p><ol class=\"lst-kix_5spemd25esoz-0 start\" start=\"1\" style=\"padding:0;margin:0\"><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">I recognize that the nature of the Manchester Makerspace includes some dangerous tools and activities. I will adhere to the appropriate safety behavior for myself and ensure any guests I bring to the Manchester Makerspace also conduct themselves in a safe manner.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">I will adhere to the term limits, guest limits, and attendance limits (for group memberships) without trying to bypass the rules or any technical implementations designed to enforce them.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span>I have read, and I agree to abide by, the Code of Conduct of the Manchester Makerspace when at the Makerspace or at any event associated with the Manchester Makerspace. The current version of the Code of Conduct is published online at: </span><span style=\"text-decoration-skip-ink:none;-webkit-text-decoration-skip:none;color:#15c;text-decoration:underline\"><a href=\"https://www.google.com/url?q=http://www.manchestermakerspace.org/code-of-conduct&sa=D&ust=1542678216525000\" style=\"color:inherit;text-decoration:inherit\">http://www.manchestermakerspace.org/code-of-conduct</a></span><span> </span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">Changes made to the Code of Conduct by a vote of the Board of Directors will be published for all members to see. </span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">I understand that the Board of Directors, in pursuit of maintaining a safe environment for the Manchester Makerspace community, may request additional identification information for the purposes of conducting a background check. The board reserves the right to dismiss or reject membership based on the results of the background check at any time.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">I understand that memberships are non-refundable.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\">Minors, meaning those under 18 years old, must be accompanied by a parent or legal guardian at all times.</span></li><li style=\"padding:0;color:#000;font-size:11pt;line-height:1.15;margin-right:0;margin-left:36pt;font-family:"orphans:2;margin-bottom:0;widows:2;text-align:left\"><span>I will indemnify and hold Manchester Makerspace harmless from any and all liability, loss, injury, damages, costs and expenses, including reasonable counsel fees, resulting from any injuries to myself or my guests at the Manchester Makerspace. I and my guests will be responsible to adhere to all rules of safety at Manchester Makerspace.</span></li></ol><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;height:11pt;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\"></span></p><p style=\"padding:0;margin:0;color:#000;font-size:11pt;font-family:"orphans:2;widows:2;text-align:left\"><span style=\"color:#000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"\"> This agreement is binding for membership beginning on [today], and for all future renewals or periods of membership I have with the Manchester Makerspace.</span></p></body></html>";
|
177252
|
-
|
177253
|
-
/***/ }),
|
177254
|
-
|
177255
177231
|
/***/ "./src/ui/accessCards/AccessCardForm.tsx":
|
177256
177232
|
/*!***********************************************!*\
|
177257
177233
|
!*** ./src/ui/accessCards/AccessCardForm.tsx ***!
|
@@ -177358,6 +177334,9 @@ var Typography_1 = __webpack_require__(/*! @material-ui/core/Typography */ "./no
|
|
177358
177334
|
var FilledLaserableLogo_svg_1 = __webpack_require__(/*! -!react-svg-loader!assets/FilledLaserableLogo.svg */ "./node_modules/react-svg-loader/lib/loader.js!./src/assets/FilledLaserableLogo.svg");
|
177359
177335
|
var constants_1 = __webpack_require__(/*! app/constants */ "./src/app/constants.ts");
|
177360
177336
|
var MembershipSelectForm_1 = __webpack_require__(/*! ui/membership/MembershipSelectForm */ "./src/ui/membership/MembershipSelectForm.tsx");
|
177337
|
+
var makerspace_ts_api_client_1 = __webpack_require__(/*! makerspace-ts-api-client */ "./node_modules/makerspace-ts-api-client/dist/apiClient.js");
|
177338
|
+
var useReadTransaction_1 = __webpack_require__(/*! ui/hooks/useReadTransaction */ "./src/ui/hooks/useReadTransaction.ts");
|
177339
|
+
var invoice_1 = __webpack_require__(/*! app/entities/invoice */ "./src/app/entities/invoice.ts");
|
177361
177340
|
var LandingPage = function () {
|
177362
177341
|
var _a = use_react_router_1.default(), history = _a.history, search = _a.location.search;
|
177363
177342
|
var goToSignup = React.useCallback(function (option, discountId) {
|
@@ -177368,22 +177347,22 @@ var LandingPage = function () {
|
|
177368
177347
|
}
|
177369
177348
|
history.push(__assign(__assign({}, option && { search: searchParams.toString() }), { pathname: constants_1.Routing.SignUp }));
|
177370
177349
|
}, [history, search]);
|
177350
|
+
// TODO: Remove this when all invoicing released globally
|
177351
|
+
var _b = useReadTransaction_1.default(makerspace_ts_api_client_1.listInvoiceOptions, { types: [invoice_1.InvoiceableResource.Membership] }).data, options = _b === void 0 ? [] : _b;
|
177371
177352
|
return (React.createElement(Grid_1.default, { container: true, spacing: 24, justify: "center" },
|
177372
177353
|
React.createElement(Grid_1.default, { item: true, xs: 10 },
|
177373
177354
|
React.createElement(Card_1.default, { style: { minWidth: 275 } },
|
177374
177355
|
React.createElement(CardContent_1.default, null,
|
177375
177356
|
React.createElement(Grid_1.default, { container: true, spacing: 24 },
|
177376
177357
|
React.createElement(Grid_1.default, { item: true, md: 6, sm: 12, id: "landing-page-graphic" },
|
177377
|
-
React.createElement(FilledLaserableLogo_svg_1.default, { style: { width:
|
177358
|
+
React.createElement(FilledLaserableLogo_svg_1.default, { style: { width: "100%", height: "200px" }, alt: "Manchester Makerspace", viewBox: "0 0 960 580" })),
|
177378
177359
|
React.createElement(Grid_1.default, { item: true, md: 6, sm: 12 },
|
177379
177360
|
React.createElement(Typography_1.default, { variant: "subtitle1" }, "Manchester Makerspace is a non-profit collaborative organization of members who maintain a shared workspace, tooling, and skills in the Manchester, NH community. We will provide access to shared resources, training, and mentorship for the benefit of Manchester\u2019s local entrepreneurs, makers, and artists of all ages."))),
|
177380
|
-
React.createElement(Grid_1.default, { container: true, spacing: 24, justify: "center" },
|
177381
|
-
|
177382
|
-
|
177383
|
-
|
177384
|
-
|
177385
|
-
React.createElement(Typography_1.default, { variant: "subtitle1", align: "center" }, "Please take a moment to register with our online portal."),
|
177386
|
-
React.createElement(Button_1.default, { id: "register", variant: "outlined", color: "secondary", fullWidth: true, onClick: function () { return goToSignup(); } }, "Register"))))))));
|
177361
|
+
React.createElement(Grid_1.default, { container: true, spacing: 24, justify: "center" }, options.length ? (React.createElement(Grid_1.default, { item: true, xs: 12 },
|
177362
|
+
React.createElement(Typography_1.default, { variant: "h5" }, "To get started, first select a membership option."),
|
177363
|
+
React.createElement(MembershipSelectForm_1.default, { onSelect: goToSignup, allowNone: true }))) : (React.createElement(Grid_1.default, { item: true, md: 6, xs: 12 },
|
177364
|
+
React.createElement(Typography_1.default, { variant: "subtitle1", align: "center" }, "Please take a moment to register with our online portal."),
|
177365
|
+
React.createElement(Button_1.default, { id: "register", variant: "outlined", color: "secondary", fullWidth: true, onClick: function () { return goToSignup(); } }, "Register")))))))));
|
177387
177366
|
};
|
177388
177367
|
exports.default = LandingPage;
|
177389
177368
|
|
@@ -177954,9 +177933,10 @@ var constants_2 = __webpack_require__(/*! app/constants */ "./src/app/constants.
|
|
177954
177933
|
var actions_1 = __webpack_require__(/*! ./actions */ "./src/ui/auth/actions.ts");
|
177955
177934
|
var constants_3 = __webpack_require__(/*! ui/auth/constants */ "./src/ui/auth/constants.ts");
|
177956
177935
|
var hooks_1 = __webpack_require__(/*! ../reducer/hooks */ "./src/ui/reducer/hooks.ts");
|
177957
|
-
var constants_4 = __webpack_require__(/*! app/constants */ "./src/app/constants.ts");
|
177958
177936
|
var useWriteTransaction_1 = __webpack_require__(/*! ../hooks/useWriteTransaction */ "./src/ui/hooks/useWriteTransaction.ts");
|
177959
177937
|
var MembershipSelectForm_1 = __webpack_require__(/*! ui/membership/MembershipSelectForm */ "./src/ui/membership/MembershipSelectForm.tsx");
|
177938
|
+
var useReadTransaction_1 = __webpack_require__(/*! ui/hooks/useReadTransaction */ "./src/ui/hooks/useReadTransaction.ts");
|
177939
|
+
var invoice_1 = __webpack_require__(/*! app/entities/invoice */ "./src/app/entities/invoice.ts");
|
177960
177940
|
var SignUpForm = function () {
|
177961
177941
|
var _a = useModal_1.default(), emailNoteOpen = _a.isOpen, openEmailNote = _a.openModal, closeEmailNote = _a.closeModal;
|
177962
177942
|
var _b = use_react_router_1.default(), history = _b.history, search = _b.location.search;
|
@@ -178001,6 +177981,8 @@ var SignUpForm = function () {
|
|
178001
177981
|
var selectMembership = React.useCallback(function (option, discountId) {
|
178002
177982
|
setOption({ discountId: discountId, id: option.id });
|
178003
177983
|
}, [setOption]);
|
177984
|
+
// TODO: Remove this when all invoicing released globally
|
177985
|
+
var _f = useReadTransaction_1.default(makerspace_ts_api_client_1.listInvoiceOptions, { types: [invoice_1.InvoiceableResource.Membership] }).data, options = _f === void 0 ? [] : _f;
|
178004
177986
|
return (React.createElement(React.Fragment, null,
|
178005
177987
|
React.createElement(Grid_1.default, { container: true, justify: "center", spacing: 16 },
|
178006
177988
|
React.createElement(Grid_1.default, { item: true, md: 10, xs: 12 },
|
@@ -178021,7 +178003,7 @@ var SignUpForm = function () {
|
|
178021
178003
|
endAdornment: (React.createElement(InputAdornment_1.default, { position: "end" },
|
178022
178004
|
React.createElement(RemoveRedEye_1.default, { style: { cursor: 'pointer' }, onClick: toggleMask }))),
|
178023
178005
|
} })),
|
178024
|
-
|
178006
|
+
options.length && (React.createElement(Grid_1.default, { item: true, xs: 12 },
|
178025
178007
|
React.createElement(MembershipSelectForm_1.default, { onSelect: selectMembership, allowNone: true }))),
|
178026
178008
|
!isRequesting && error && React.createElement(ErrorMessage_1.default, { id: constants_1.signUpPrefix + "-error", error: error })))))),
|
178027
178009
|
React.createElement(Grid_1.default, { item: true, xs: 12 },
|
@@ -180710,13 +180692,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
180710
180692
|
var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
180711
180693
|
var use_react_router_1 = __webpack_require__(/*! use-react-router */ "./node_modules/use-react-router/use-react-router.js");
|
180712
180694
|
var Grid_1 = __webpack_require__(/*! @material-ui/core/Grid */ "./node_modules/@material-ui/core/Grid/index.js");
|
180713
|
-
var Card_1 = __webpack_require__(/*! @material-ui/core/Card */ "./node_modules/@material-ui/core/Card/index.js");
|
180714
|
-
var CardContent_1 = __webpack_require__(/*! @material-ui/core/CardContent */ "./node_modules/@material-ui/core/CardContent/index.js");
|
180715
180695
|
var Typography_1 = __webpack_require__(/*! @material-ui/core/Typography */ "./node_modules/@material-ui/core/Typography/index.js");
|
180716
180696
|
var utils_1 = __webpack_require__(/*! ui/member/utils */ "./src/ui/member/utils.ts");
|
180717
180697
|
var hooks_1 = __webpack_require__(/*! ../reducer/hooks */ "./src/ui/reducer/hooks.ts");
|
180718
180698
|
var ButtonRow_1 = __webpack_require__(/*! ../common/ButtonRow */ "./src/ui/common/ButtonRow.tsx");
|
180719
|
-
var
|
180699
|
+
var Document_1 = __webpack_require__(/*! ../documents/Document */ "./src/ui/documents/Document.tsx");
|
180720
180700
|
var buildReceiptUrl = function (id) { return ( false || "") + "/api/billing/receipts/" + id; };
|
180721
180701
|
var receiptContainerId = "receipt-container";
|
180722
180702
|
var Receipt = function () {
|
@@ -180727,7 +180707,6 @@ var Receipt = function () {
|
|
180727
180707
|
window.frames[receiptContainerId].focus();
|
180728
180708
|
window.frames[receiptContainerId].print();
|
180729
180709
|
}, [window.frames]);
|
180730
|
-
var _b = React.useState(true), loading = _b[0], setLoading = _b[1];
|
180731
180710
|
return (React.createElement(React.Fragment, null,
|
180732
180711
|
React.createElement(Grid_1.default, { container: true, spacing: 16 },
|
180733
180712
|
React.createElement(Grid_1.default, { item: true, sm: 6, xs: 12 },
|
@@ -180736,12 +180715,7 @@ var Receipt = function () {
|
|
180736
180715
|
React.createElement(Grid_1.default, { item: true, sm: 6, xs: 12 },
|
180737
180716
|
React.createElement(ButtonRow_1.ActionButton, { id: "return-to-profile", variant: "outlined", style: { float: "right" }, color: "primary", label: "Return to profile", onClick: goToProfile }),
|
180738
180717
|
React.createElement(ButtonRow_1.ActionButton, { label: "Print Receipt", style: { float: "right" }, color: "primary", variant: "contained", onClick: printReceipt }))),
|
180739
|
-
React.createElement(
|
180740
|
-
React.createElement(CardContent_1.default, { style: { height: "100%" } },
|
180741
|
-
React.createElement(Grid_1.default, { container: true, spacing: 16, style: { height: "100%" } },
|
180742
|
-
React.createElement(Grid_1.default, { item: true, xs: 12, style: { height: "100%" } },
|
180743
|
-
loading && React.createElement(LoadingOverlay_1.default, { id: "receipt" }),
|
180744
|
-
React.createElement("iframe", { id: receiptContainerId, name: receiptContainerId, src: buildReceiptUrl(invoiceId), style: { height: "100%", width: "100%" }, onLoad: function () { return setLoading(false); }, frameBorder: 0 })))))));
|
180718
|
+
React.createElement(Document_1.default, { id: receiptContainerId, src: buildReceiptUrl(invoiceId) })));
|
180745
180719
|
};
|
180746
180720
|
exports.default = Receipt;
|
180747
180721
|
|
@@ -182427,7 +182401,7 @@ var Checkbox_1 = __webpack_require__(/*! @material-ui/core/Checkbox */ "./node_m
|
|
182427
182401
|
var FormControlLabel_1 = __webpack_require__(/*! @material-ui/core/FormControlLabel */ "./node_modules/@material-ui/core/FormControlLabel/index.js");
|
182428
182402
|
var Form_1 = __webpack_require__(/*! ui/common/Form */ "./src/ui/common/Form.tsx");
|
182429
182403
|
var LoadingOverlay_1 = __webpack_require__(/*! ../common/LoadingOverlay */ "./src/ui/common/LoadingOverlay.tsx");
|
182430
|
-
var
|
182404
|
+
var Document_1 = __webpack_require__(/*! ./Document */ "./src/ui/documents/Document.tsx");
|
182431
182405
|
var id = "code-of-conduct";
|
182432
182406
|
var document = {
|
182433
182407
|
displayName: "Code of Conduct",
|
@@ -182455,13 +182429,49 @@ var CodeOfConduct = function (_a) {
|
|
182455
182429
|
});
|
182456
182430
|
}); }, [onAccept]);
|
182457
182431
|
return (React.createElement(Form_1.default, { key: id, id: id + "-form", submitText: "Proceed", onSubmit: onSubmit },
|
182458
|
-
React.createElement(
|
182432
|
+
React.createElement(Document_1.default, { id: id, src: Document_1.documents.codeOfConduct }),
|
182459
182433
|
React.createElement("div", { key: document.name },
|
182460
182434
|
React.createElement(FormControlLabel_1.default, { control: React.createElement(Checkbox_1.default, { id: document.name, name: document.name, color: "primary" }), label: document.label }))));
|
182461
182435
|
};
|
182462
182436
|
exports.default = LoadingOverlay_1.withLoading(CodeOfConduct);
|
182463
182437
|
|
182464
182438
|
|
182439
|
+
/***/ }),
|
182440
|
+
|
182441
|
+
/***/ "./src/ui/documents/Document.tsx":
|
182442
|
+
/*!***************************************!*\
|
182443
|
+
!*** ./src/ui/documents/Document.tsx ***!
|
182444
|
+
\***************************************/
|
182445
|
+
/*! no static exports found */
|
182446
|
+
/***/ (function(module, exports, __webpack_require__) {
|
182447
|
+
|
182448
|
+
"use strict";
|
182449
|
+
|
182450
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
182451
|
+
var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
182452
|
+
var Grid_1 = __webpack_require__(/*! @material-ui/core/Grid */ "./node_modules/@material-ui/core/Grid/index.js");
|
182453
|
+
var Card_1 = __webpack_require__(/*! @material-ui/core/Card */ "./node_modules/@material-ui/core/Card/index.js");
|
182454
|
+
var CardContent_1 = __webpack_require__(/*! @material-ui/core/CardContent */ "./node_modules/@material-ui/core/CardContent/index.js");
|
182455
|
+
var LoadingOverlay_1 = __webpack_require__(/*! ../common/LoadingOverlay */ "./src/ui/common/LoadingOverlay.tsx");
|
182456
|
+
var buildDocumentUrl = function (document) { return ( false || "") + "/api/documents/" + document; };
|
182457
|
+
exports.documents = {
|
182458
|
+
memberContract: buildDocumentUrl("member_contract"),
|
182459
|
+
codeOfConduct: buildDocumentUrl("code_of_conduct"),
|
182460
|
+
rentalAgreement: buildDocumentUrl("rental_agreement"),
|
182461
|
+
};
|
182462
|
+
var DocumentFrame = function (_a) {
|
182463
|
+
var id = _a.id, src = _a.src;
|
182464
|
+
var _b = React.useState(true), loading = _b[0], setLoading = _b[1];
|
182465
|
+
return (React.createElement(Card_1.default, { style: { height: "75vh" } },
|
182466
|
+
React.createElement(CardContent_1.default, { style: { height: "100%" } },
|
182467
|
+
React.createElement(Grid_1.default, { container: true, spacing: 16, style: { height: "100%" } },
|
182468
|
+
React.createElement(Grid_1.default, { item: true, xs: 12, style: { height: "100%" } },
|
182469
|
+
loading && React.createElement(LoadingOverlay_1.default, { id: id }),
|
182470
|
+
React.createElement("iframe", { id: id, name: id, src: src, style: { height: "100%", width: "100%" }, onLoad: function () { return setLoading(false); }, frameBorder: 0 }))))));
|
182471
|
+
};
|
182472
|
+
exports.default = DocumentFrame;
|
182473
|
+
|
182474
|
+
|
182465
182475
|
/***/ }),
|
182466
182476
|
|
182467
182477
|
/***/ "./src/ui/documents/MemberContract.tsx":
|
@@ -182517,11 +182527,9 @@ var Checkbox_1 = __webpack_require__(/*! @material-ui/core/Checkbox */ "./node_m
|
|
182517
182527
|
var Button_1 = __webpack_require__(/*! @material-ui/core/Button */ "./node_modules/@material-ui/core/Button/index.js");
|
182518
182528
|
var Typography_1 = __webpack_require__(/*! @material-ui/core/Typography */ "./node_modules/@material-ui/core/Typography/index.js");
|
182519
182529
|
var FormControlLabel_1 = __webpack_require__(/*! @material-ui/core/FormControlLabel */ "./node_modules/@material-ui/core/FormControlLabel/index.js");
|
182520
|
-
var timeToDate_1 = __webpack_require__(/*! ui/utils/timeToDate */ "./src/ui/utils/timeToDate.ts");
|
182521
182530
|
var Form_1 = __webpack_require__(/*! ui/common/Form */ "./src/ui/common/Form.tsx");
|
182522
|
-
var hooks_1 = __webpack_require__(/*! ../reducer/hooks */ "./src/ui/reducer/hooks.ts");
|
182523
182531
|
var LoadingOverlay_1 = __webpack_require__(/*! ../common/LoadingOverlay */ "./src/ui/common/LoadingOverlay.tsx");
|
182524
|
-
var
|
182532
|
+
var Document_1 = __webpack_require__(/*! ./Document */ "./src/ui/documents/Document.tsx");
|
182525
182533
|
var id = "member-contract";
|
182526
182534
|
var document = {
|
182527
182535
|
displayName: "Member Contract",
|
@@ -182533,10 +182541,7 @@ var document = {
|
|
182533
182541
|
};
|
182534
182542
|
var MemberContract = function (_a) {
|
182535
182543
|
var onAccept = _a.onAccept;
|
182536
|
-
var currentUser = hooks_1.useAuthState().currentUser;
|
182537
182544
|
var _b = React.useState(), error = _b[0], setError = _b[1];
|
182538
|
-
var formattedMemberContract = memberContract.replace('[name]', "<b>" + currentUser.firstname + " " + currentUser.lastname + "</b>")
|
182539
|
-
.replace('[today]', "<b>" + timeToDate_1.timeToDate(new Date()) + "</b>");
|
182540
182545
|
var signatureRef = React.useRef();
|
182541
182546
|
var clearSignature = React.useCallback(function () {
|
182542
182547
|
signatureRef.current && signatureRef.current.clear();
|
@@ -182563,7 +182568,7 @@ var MemberContract = function (_a) {
|
|
182563
182568
|
});
|
182564
182569
|
}); }, [onAccept, signatureRef, setError]);
|
182565
182570
|
return (React.createElement(Form_1.default, { key: id, id: id + "-form", submitText: "Proceed", onSubmit: onSubmit, error: error },
|
182566
|
-
React.createElement(
|
182571
|
+
React.createElement(Document_1.default, { id: id, src: Document_1.documents.memberContract }),
|
182567
182572
|
React.createElement("div", { key: document.name },
|
182568
182573
|
React.createElement(FormControlLabel_1.default, { control: React.createElement(Checkbox_1.default, { id: document.name, name: document.name, color: "primary" }), label: document.label })),
|
182569
182574
|
React.createElement(Grid_1.default, { container: true },
|
@@ -182654,11 +182659,8 @@ var SignDocuments = function () {
|
|
182654
182659
|
var onContractAccept = React.useCallback(function (signature) { return __awaiter(void 0, void 0, void 0, function () {
|
182655
182660
|
return __generator(this, function (_a) {
|
182656
182661
|
switch (_a.label) {
|
182657
|
-
case 0:
|
182658
|
-
// TODO this update needs to accept either or
|
182659
|
-
return [4 /*yield*/, update(currentUserId, { signature: signature })];
|
182662
|
+
case 0: return [4 /*yield*/, update(currentUserId, { signature: signature })];
|
182660
182663
|
case 1:
|
182661
|
-
// TODO this update needs to accept either or
|
182662
182664
|
_a.sent();
|
182663
182665
|
refreshMember();
|
182664
182666
|
return [2 /*return*/];
|