@ably/ui 13.3.0 → 14.0.0-dev.0ed6be7
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.
- package/README.md +25 -152
- package/core/.DS_Store +0 -0
- package/core/Accordion/.DS_Store +0 -0
- package/core/Accordion.js +1 -0
- package/core/Code/.DS_Store +0 -0
- package/core/Code/component.css +1 -72
- package/core/Code/component.js +1 -1
- package/core/Code.js +1 -0
- package/core/ConnectStateWrapper/component.js +0 -1
- package/core/ConnectStateWrapper.js +1 -0
- package/core/ContactFooter/.DS_Store +0 -0
- package/core/ContactFooter/component.css +7 -10
- package/core/ContactFooter/component.js +1 -1
- package/core/ContactFooter.js +1 -0
- package/core/CookieMessage/.DS_Store +0 -0
- package/core/CookieMessage/component.css +10 -13
- package/core/CookieMessage/component.js +1 -1
- package/core/CookieMessage.js +1 -0
- package/core/CustomerLogos/.DS_Store +0 -0
- package/core/CustomerLogos/component.js +0 -1
- package/core/CustomerLogos.js +1 -0
- package/core/DropdownMenu/.DS_Store +0 -0
- package/core/DropdownMenu/component.js +0 -1
- package/core/DropdownMenu.js +1 -0
- package/core/FeaturedLink/.DS_Store +0 -0
- package/core/FeaturedLink/component.js +0 -1
- package/core/FeaturedLink.js +1 -0
- package/core/Flash/.DS_Store +0 -0
- package/core/Flash/component.css +19 -22
- package/core/Flash/component.js +1 -1
- package/core/Flash.js +1 -0
- package/core/Footer/.DS_Store +0 -0
- package/core/Footer/component.css +22 -25
- package/core/Footer/component.js +1 -1
- package/core/Footer.js +1 -0
- package/core/Icon/.DS_Store +0 -0
- package/core/Icon/component.js +0 -1
- package/core/Icon.js +1 -0
- package/core/Loader/.DS_Store +0 -0
- package/core/Loader/component.js +0 -1
- package/core/Loader.js +13 -0
- package/core/Logo/.DS_Store +0 -0
- package/core/Logo/component.js +0 -1
- package/core/Logo.js +1 -0
- package/core/Meganav/.DS_Store +0 -0
- package/core/Meganav/component.css +103 -106
- package/core/Meganav/component.js +1 -1
- package/core/Meganav.js +1 -0
- package/core/MeganavBlogPostsList/.DS_Store +0 -0
- package/core/MeganavBlogPostsList/component.js +1 -2
- package/core/MeganavBlogPostsList.js +1 -0
- package/core/MeganavContentCompany/.DS_Store +0 -0
- package/core/MeganavContentCompany/component.js +0 -1
- package/core/MeganavContentCompany.js +1 -0
- package/core/MeganavContentDevelopers/.DS_Store +0 -0
- package/core/MeganavContentDevelopers/component.js +0 -1
- package/core/MeganavContentDevelopers.js +1 -0
- package/core/MeganavContentProducts/.DS_Store +0 -0
- package/core/MeganavContentProducts/component.js +0 -1
- package/core/MeganavContentProducts.js +1 -0
- package/core/MeganavContentUseCases/.DS_Store +0 -0
- package/core/MeganavContentUseCases/component.js +0 -1
- package/core/MeganavContentUseCases.js +1 -0
- package/core/MeganavControl/.DS_Store +0 -0
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.js +1 -0
- package/core/MeganavControlMobileDropdown/.DS_Store +0 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.js +1 -0
- package/core/MeganavControlMobilePanelClose/.DS_Store +0 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -1
- package/core/MeganavControlMobilePanelClose.js +1 -0
- package/core/MeganavControlMobilePanelOpen/.DS_Store +0 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -1
- package/core/MeganavControlMobilePanelOpen.js +1 -0
- package/core/MeganavItemsDesktop/.DS_Store +0 -0
- package/core/MeganavItemsDesktop/component.js +0 -1
- package/core/MeganavItemsDesktop.js +1 -0
- package/core/MeganavItemsMobile/.DS_Store +0 -0
- package/core/MeganavItemsMobile/component.js +0 -1
- package/core/MeganavItemsMobile.js +1 -0
- package/core/MeganavItemsSignedIn/.DS_Store +0 -0
- package/core/MeganavItemsSignedIn/component.js +0 -1
- package/core/MeganavItemsSignedIn.js +1 -0
- package/core/MeganavSearch/.DS_Store +0 -0
- package/core/MeganavSearch/component.js +0 -1
- package/core/MeganavSearch.js +1 -0
- package/core/MeganavSearchAutocomplete/.DS_Store +0 -0
- package/core/MeganavSearchAutocomplete/component.js +1 -1
- package/core/MeganavSearchAutocomplete.js +1 -0
- package/core/MeganavSearchPanel/.DS_Store +0 -0
- package/core/MeganavSearchPanel/component.js +0 -1
- package/core/MeganavSearchPanel.js +1 -0
- package/core/MeganavSearchSuggestions/.DS_Store +0 -0
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/MeganavSearchSuggestions.js +1 -0
- package/core/Notice/.DS_Store +0 -0
- package/core/Notice/component.css +4 -7
- package/core/Notice/component.js +1 -1
- package/core/Notice.js +1 -0
- package/core/SignOutLink/.DS_Store +0 -0
- package/core/SignOutLink/component.js +0 -1
- package/core/SignOutLink.js +1 -0
- package/core/Slider/.DS_Store +0 -0
- package/core/Slider/component.css +4 -7
- package/core/Slider/component.js +1 -1
- package/core/Slider.js +1 -0
- package/core/Table/.DS_Store +0 -0
- package/core/Table/Table.js +1 -0
- package/core/Table/TableCell.js +7 -0
- package/core/Table/TableRow.js +1 -0
- package/core/Table/data.js +1 -0
- package/core/Table.js +1 -0
- package/core/Tooltip.js +1 -0
- package/core/css.js +1 -0
- package/core/dom-query.js +1 -0
- package/core/hubspot-chat-toggle.js +1 -0
- package/core/icons/discord.svg +10 -0
- package/core/icons/facebook.svg +4 -0
- package/core/icons/github.svg +3 -0
- package/core/icons/glassdoor.svg +3 -0
- package/core/icons/google.svg +3 -0
- package/core/icons/icon-display-48hrs.svg +3 -0
- package/core/icons/icon-display-about-ably-col.svg +4 -0
- package/core/icons/icon-display-api-keys.svg +3 -0
- package/core/icons/icon-display-api.svg +3 -0
- package/core/icons/icon-display-asset-tracking-col.svg +18 -0
- package/core/icons/icon-display-browser.svg +10 -0
- package/core/icons/icon-display-calendar.svg +3 -0
- package/core/icons/icon-display-call-mobile.svg +3 -0
- package/core/icons/icon-display-careers-col.svg +9 -0
- package/core/icons/icon-display-case-studies-col.svg +5 -0
- package/core/icons/icon-display-chat-col.svg +4 -0
- package/core/icons/icon-display-chat-stack-col.svg +4 -0
- package/core/icons/icon-display-chat-stack.svg +4 -0
- package/core/icons/icon-display-cloud-servers.svg +3 -0
- package/core/icons/icon-display-compare-tech-col.svg +9 -0
- package/core/icons/icon-display-customers-col.svg +15 -0
- package/core/icons/icon-display-data-broadcast-col.svg +26 -0
- package/core/icons/icon-display-data-synchronization-col.svg +14 -0
- package/core/icons/icon-display-docs-col.svg +7 -0
- package/core/icons/icon-display-documentation.svg +3 -0
- package/core/icons/icon-display-events-col.svg +13 -0
- package/core/icons/icon-display-examples-col.svg +11 -0
- package/core/icons/icon-display-gdpr.svg +3 -0
- package/core/icons/icon-display-general-comms.svg +3 -0
- package/core/icons/icon-display-hipaa.svg +10 -0
- package/core/icons/icon-display-integrations-col.svg +8 -0
- package/core/icons/icon-display-it-support-access.svg +3 -0
- package/core/icons/icon-display-it-support-helpdesk.svg +3 -0
- package/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
- package/core/icons/icon-display-laptop.svg +10 -0
- package/core/icons/icon-display-lightbulb-col.svg +10 -0
- package/core/icons/icon-display-live-chat.svg +3 -0
- package/core/icons/icon-display-map-pin.svg +3 -0
- package/core/icons/icon-display-message.svg +3 -0
- package/core/icons/icon-display-padlock-closed.svg +3 -0
- package/core/icons/icon-display-platform.svg +22 -0
- package/core/icons/icon-display-play.svg +3 -0
- package/core/icons/icon-display-privacy-shield-framework.svg +7 -0
- package/core/icons/icon-display-push-notifications-col.svg +6 -0
- package/core/icons/icon-display-quickstart-guides-col.svg +8 -0
- package/core/icons/icon-display-resources-col.svg +21 -0
- package/core/icons/icon-display-sdks-col.svg +11 -0
- package/core/icons/icon-display-servers.svg +3 -0
- package/core/icons/icon-display-shopping-cart.svg +10 -0
- package/core/icons/icon-display-sla.svg +3 -0
- package/core/icons/icon-display-soc2-type2.svg +3 -0
- package/core/icons/icon-display-tech-account-comms.svg +3 -0
- package/core/icons/icon-display-tutorials-demos-col.svg +25 -0
- package/core/icons/icon-display-virtual-events-col.svg +12 -0
- package/core/icons/icon-display-virtual-events.svg +12 -0
- package/core/icons/icon-gui-ably-badge.svg +3 -0
- package/core/icons/icon-gui-arrow-bidirectional-horizontal.svg +3 -0
- package/core/icons/icon-gui-arrow-bidirectional-vertical.svg +3 -0
- package/core/icons/icon-gui-arrow-down.svg +3 -0
- package/core/icons/icon-gui-arrow-left.svg +3 -0
- package/core/icons/icon-gui-arrow-right.svg +3 -0
- package/core/icons/icon-gui-arrow-up.svg +3 -0
- package/core/icons/icon-gui-burger-menu.svg +5 -0
- package/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
- package/core/icons/icon-gui-check-circled-fill.svg +4 -0
- package/core/icons/icon-gui-check-circled.svg +3 -0
- package/core/icons/icon-gui-checklist-checked.svg +3 -0
- package/core/icons/icon-gui-clock.svg +3 -0
- package/core/icons/icon-gui-close.svg +3 -0
- package/core/icons/icon-gui-copy.svg +10 -0
- package/core/icons/icon-gui-cross-circled-fill.svg +4 -0
- package/core/icons/icon-gui-cross-circled.svg +3 -0
- package/core/icons/icon-gui-dash-circled.svg +3 -0
- package/core/icons/icon-gui-disclosure-arrow.svg +3 -0
- package/core/icons/icon-gui-document-generic.svg +3 -0
- package/core/icons/icon-gui-enlarge.svg +3 -0
- package/core/icons/icon-gui-external-link.svg +3 -0
- package/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
- package/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
- package/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
- package/core/icons/icon-gui-history.svg +3 -0
- package/core/icons/icon-gui-info.svg +3 -0
- package/core/icons/icon-gui-link-arrow.svg +3 -0
- package/core/icons/icon-gui-link.svg +4 -0
- package/core/icons/icon-gui-live-chat.svg +3 -0
- package/core/icons/icon-gui-minus.svg +3 -0
- package/core/icons/icon-gui-plus.svg +3 -0
- package/core/icons/icon-gui-quote-marks-solid.svg +3 -0
- package/core/icons/icon-gui-refresh.svg +10 -0
- package/core/icons/icon-gui-resources.svg +3 -0
- package/core/icons/icon-gui-search.svg +3 -0
- package/core/icons/icon-gui-tick.svg +3 -0
- package/core/icons/icon-gui-warning.svg +5 -0
- package/core/icons/icon-live-updates-results-metrics-col.svg +26 -0
- package/core/icons/icon-multi-user-spaces-col.svg +13 -0
- package/core/icons/icon-social-x.svg +3 -0
- package/core/icons/icon-tech-apachekafka.svg +3 -0
- package/core/icons/linkedin.svg +3 -0
- package/core/icons/quote.svg +3 -0
- package/core/icons/stackoverflow.svg +3 -0
- package/core/icons/twitter.svg +3 -0
- package/core/icons/youtube.svg +11 -0
- package/core/icons.js +1 -0
- package/core/load-sprites.js +1 -0
- package/core/react-renderer.js +1 -0
- package/core/remote-blogs-posts.js +1 -0
- package/core/remote-data-store.js +1 -0
- package/core/remote-data-util.js +1 -0
- package/core/remote-session-data.js +1 -0
- package/core/scripts.js +1 -2
- package/core/sprites.svg +1 -525
- package/core/styles/buttons.css +122 -0
- package/core/styles/forms.css +62 -0
- package/core/styles/layout.css +19 -0
- package/core/styles/properties.css +276 -0
- package/core/styles/text.css +166 -0
- package/core/styles.base.css +1 -0
- package/core/styles.components.css +33 -0
- package/core/styles.css +2 -699
- package/core/url-base.js +1 -0
- package/core/utils/syntax-highlighter-registry.js +1 -0
- package/core/utils/syntax-highlighter.css +67 -0
- package/core/utils/syntax-highlighter.js +1 -0
- package/package.json +38 -34
- package/reset/scripts.js +1 -1
- package/reset/styles/normalize.css +353 -0
- package/reset/styles/reset.css +129 -0
- package/reset/styles.css +2 -477
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Accordion/.DS_Store +0 -0
- package/src/core/Accordion/Accordion.stories.tsx +39 -0
- package/src/core/Accordion.tsx +147 -0
- package/src/core/Code/.DS_Store +0 -0
- package/src/core/Code/Code.stories.tsx +71 -0
- package/src/core/Code.tsx +45 -0
- package/src/core/{ConnectStateWrapper/component.jsx → ConnectStateWrapper.tsx} +7 -3
- package/src/core/ContactFooter/.DS_Store +0 -0
- package/src/core/ContactFooter/ContactFooter.stories.tsx +11 -0
- package/src/core/ContactFooter/component.css +7 -9
- package/src/core/ContactFooter.tsx +92 -0
- package/src/core/CookieMessage/.DS_Store +0 -0
- package/src/core/CookieMessage/CookieMessage.stories.tsx +12 -0
- package/src/core/CookieMessage/component.css +10 -12
- package/src/core/{CookieMessage/component.jsx → CookieMessage.tsx} +15 -10
- package/src/core/CustomerLogos/.DS_Store +0 -0
- package/src/core/CustomerLogos/CustomerLogos.stories.tsx +43 -0
- package/src/core/CustomerLogos.tsx +35 -0
- package/src/core/DropdownMenu/.DS_Store +0 -0
- package/src/core/DropdownMenu/DropdownMenu.stories.tsx +48 -0
- package/src/core/{DropdownMenu/component.jsx → DropdownMenu.tsx} +64 -36
- package/src/core/FeaturedLink/.DS_Store +0 -0
- package/src/core/FeaturedLink/FeaturedLink.stories.tsx +43 -0
- package/src/core/{FeaturedLink/component.jsx → FeaturedLink.tsx} +26 -18
- package/src/core/Flash/.DS_Store +0 -0
- package/src/core/Flash/Flash.stories.tsx +37 -0
- package/src/core/Flash/component.css +19 -21
- package/src/core/{Flash/component.jsx → Flash.tsx} +78 -39
- package/src/core/Footer/.DS_Store +0 -0
- package/src/core/Footer/Footer.stories.tsx +26 -0
- package/src/core/Footer/component.css +22 -24
- package/src/core/{Footer/component.jsx → Footer.tsx} +237 -70
- package/src/core/Icon/.DS_Store +0 -0
- package/src/core/Icon/Icon.stories.tsx +150 -0
- package/src/core/Icon.tsx +26 -0
- package/src/core/Loader/.DS_Store +0 -0
- package/src/core/Loader/Loader.stories.tsx +21 -0
- package/src/core/{Loader/component.jsx → Loader.tsx} +11 -8
- package/src/core/Logo/.DS_Store +0 -0
- package/src/core/Logo/Logo.stories.tsx +12 -0
- package/src/core/Logo.tsx +29 -0
- package/src/core/Meganav/.DS_Store +0 -0
- package/src/core/Meganav/Meganav.stories.tsx +86 -0
- package/src/core/Meganav/component.css +103 -105
- package/src/core/Meganav/component.js +6 -7
- package/src/core/Meganav.tsx +228 -0
- package/src/core/MeganavBlogPostsList/.DS_Store +0 -0
- package/src/core/{MeganavBlogPostsList/component.jsx → MeganavBlogPostsList.tsx} +15 -14
- package/src/core/MeganavContentCompany/.DS_Store +0 -0
- package/src/core/{MeganavContentCompany/component.jsx → MeganavContentCompany.tsx} +82 -33
- package/src/core/MeganavContentDevelopers/.DS_Store +0 -0
- package/src/core/{MeganavContentDevelopers/component.jsx → MeganavContentDevelopers.tsx} +98 -34
- package/src/core/MeganavContentProducts/.DS_Store +0 -0
- package/src/core/MeganavContentProducts.tsx +165 -0
- package/src/core/MeganavContentUseCases/.DS_Store +0 -0
- package/src/core/MeganavContentUseCases.tsx +244 -0
- package/src/core/MeganavControl/.DS_Store +0 -0
- package/src/core/{MeganavControl/component.jsx → MeganavControl.tsx} +18 -12
- package/src/core/MeganavControlMobileDropdown/.DS_Store +0 -0
- package/src/core/{MeganavControlMobileDropdown/component.jsx → MeganavControlMobileDropdown.tsx} +3 -7
- package/src/core/MeganavControlMobilePanelClose/.DS_Store +0 -0
- package/src/core/{MeganavControlMobilePanelClose/component.jsx → MeganavControlMobilePanelClose.tsx} +16 -9
- package/src/core/MeganavControlMobilePanelOpen/.DS_Store +0 -0
- package/src/core/MeganavControlMobilePanelOpen.tsx +32 -0
- package/src/core/MeganavItemsDesktop/.DS_Store +0 -0
- package/src/core/MeganavItemsDesktop.tsx +68 -0
- package/src/core/MeganavItemsMobile/.DS_Store +0 -0
- package/src/core/MeganavItemsMobile.tsx +197 -0
- package/src/core/MeganavItemsSignedIn/.DS_Store +0 -0
- package/src/core/{MeganavItemsSignedIn/component.jsx → MeganavItemsSignedIn.tsx} +59 -23
- package/src/core/MeganavSearch/.DS_Store +0 -0
- package/src/core/MeganavSearch.tsx +36 -0
- package/src/core/MeganavSearchAutocomplete/.DS_Store +0 -0
- package/src/core/MeganavSearchAutocomplete.tsx +12 -0
- package/src/core/MeganavSearchPanel/.DS_Store +0 -0
- package/src/core/MeganavSearchPanel.tsx +52 -0
- package/src/core/MeganavSearchSuggestions/.DS_Store +0 -0
- package/src/core/MeganavSearchSuggestions.tsx +62 -0
- package/src/core/Notice/.DS_Store +0 -0
- package/src/core/Notice/component.css +4 -6
- package/src/core/Notice/component.js +1 -1
- package/src/core/Notice.tsx +104 -0
- package/src/core/SignOutLink/.DS_Store +0 -0
- package/src/core/SignOutLink.tsx +51 -0
- package/src/core/Slider/.DS_Store +0 -0
- package/src/core/Slider/Slider.stories.tsx +45 -0
- package/src/core/Slider/component.css +4 -6
- package/src/core/Slider.tsx +112 -0
- package/src/core/Table/.DS_Store +0 -0
- package/src/core/Table/Table.stories.tsx +12 -0
- package/src/core/Table/Table.tsx +30 -0
- package/src/core/Table/TableCell.tsx +84 -0
- package/src/core/Table/TableRow.tsx +25 -0
- package/src/core/Table/data.tsx +113 -0
- package/src/core/Table.tsx +24 -0
- package/src/core/Tooltip/Tooltip.stories.tsx +27 -0
- package/src/core/Tooltip.tsx +60 -0
- package/src/core/icons.js +6 -0
- package/src/core/{react-renderer.js → react-renderer.tsx} +9 -7
- package/src/core/styles/buttons.css +121 -123
- package/src/core/styles/forms.css +49 -51
- package/src/core/styles/layout.css +14 -16
- package/src/core/styles/properties.css +250 -259
- package/src/core/styles/text.css +165 -167
- package/src/core/styles.components.css +22 -24
- package/src/core/utils/syntax-highlighter.css +55 -59
- package/src/pages/Buttons.mdx +121 -0
- package/src/pages/Chips.mdx +136 -0
- package/src/pages/Colour.mdx +23 -0
- package/src/pages/Forms.mdx +173 -0
- package/src/pages/Layout.mdx +58 -0
- package/src/pages/Typography.mdx +206 -0
- package/src/pages/utils.ts +70 -0
- package/tailwind.config.js +1 -7
- package/tailwind.extend.js +1 -1
- package/core/.gitignore +0 -1
- package/core/Code.jsx +0 -684
- package/core/CompanyAutocomplete/component.css +0 -46
- package/core/CompanyAutocomplete/component.js +0 -2
- package/core/CompanyAutocomplete/component.js.LICENSE.txt +0 -1
- package/core/ConnectStateWrapper.jsx +0 -222
- package/core/ContactFooter.jsx +0 -342
- package/core/CookieMessage.jsx +0 -204
- package/core/CustomerLogos.jsx +0 -144
- package/core/DropdownMenu.jsx +0 -313
- package/core/FeatureFooter/component.css +0 -13
- package/core/FeatureFooter/component.js +0 -1
- package/core/FeaturedLink.jsx +0 -241
- package/core/Flash.jsx +0 -622
- package/core/Footer.jsx +0 -587
- package/core/Icon.jsx +0 -152
- package/core/Loader.jsx +0 -154
- package/core/Logo.jsx +0 -147
- package/core/Meganav.jsx +0 -4151
- package/core/MeganavBlogPostsList/component.js.LICENSE.txt +0 -1
- package/core/MeganavBlogPostsList.jsx +0 -296
- package/core/MeganavContentCompany.jsx +0 -1058
- package/core/MeganavContentDevelopers.jsx +0 -334
- package/core/MeganavContentProducts.jsx +0 -373
- package/core/MeganavContentUseCases.jsx +0 -341
- package/core/MeganavControl.jsx +0 -199
- package/core/MeganavControlMobileDropdown.jsx +0 -197
- package/core/MeganavControlMobilePanelClose.jsx +0 -198
- package/core/MeganavControlMobilePanelOpen.jsx +0 -193
- package/core/MeganavItemsDesktop.jsx +0 -279
- package/core/MeganavItemsMobile.jsx +0 -689
- package/core/MeganavItemsSignedIn.jsx +0 -643
- package/core/MeganavSearch.jsx +0 -434
- package/core/MeganavSearchAutocomplete.jsx +0 -117
- package/core/MeganavSearchPanel.jsx +0 -386
- package/core/MeganavSearchSuggestions.jsx +0 -299
- package/core/Notice.jsx +0 -914
- package/core/Showcase/component.css +0 -31
- package/core/Showcase/component.js +0 -1
- package/core/Showcase.jsx +0 -17
- package/core/SignOutLink.jsx +0 -157
- package/core/Slider.jsx +0 -400
- package/core/Uptime/component.css +0 -128
- package/core/Uptime/component.js +0 -1
- package/core/Uptime.jsx +0 -895
- package/core/scripts.js.LICENSE.txt +0 -1
- package/preview/tmp/pids/.keep +0 -0
- package/reset/.gitignore +0 -1
- package/src/core/Code/component.html.erb +0 -3
- package/src/core/Code/component.jsx +0 -31
- package/src/core/Code/component.rb +0 -12
- package/src/core/CompanyAutocomplete/component.css +0 -45
- package/src/core/CompanyAutocomplete/component.js +0 -204
- package/src/core/ContactFooter/component.html.erb +0 -32
- package/src/core/ContactFooter/component.jsx +0 -66
- package/src/core/ContactFooter/component.rb +0 -13
- package/src/core/CustomerLogos/component.html.erb +0 -9
- package/src/core/CustomerLogos/component.jsx +0 -28
- package/src/core/CustomerLogos/component.rb +0 -14
- package/src/core/FeatureFooter/component.css +0 -12
- package/src/core/FeatureFooter/component.html.erb +0 -54
- package/src/core/FeatureFooter/component.js +0 -7
- package/src/core/FeatureFooter/component.rb +0 -30
- package/src/core/FeaturedLink/component.html.erb +0 -15
- package/src/core/FeaturedLink/component.rb +0 -21
- package/src/core/Footer/component.html.erb +0 -256
- package/src/core/Footer/component.rb +0 -14
- package/src/core/Icon/component.html.erb +0 -3
- package/src/core/Icon/component.jsx +0 -19
- package/src/core/Icon/component.rb +0 -25
- package/src/core/Loader/component.html.erb +0 -18
- package/src/core/Loader/component.rb +0 -19
- package/src/core/Logo/component.html.erb +0 -3
- package/src/core/Logo/component.jsx +0 -20
- package/src/core/Logo/component.rb +0 -31
- package/src/core/Meganav/component.html.erb +0 -31
- package/src/core/Meganav/component.jsx +0 -123
- package/src/core/Meganav/component.rb +0 -60
- package/src/core/MeganavBlogPostsList/component.html.erb +0 -5
- package/src/core/MeganavBlogPostsList/component.rb +0 -13
- package/src/core/MeganavContentCompany/component.html.erb +0 -90
- package/src/core/MeganavContentCompany/component.rb +0 -14
- package/src/core/MeganavContentDevelopers/component.html.erb +0 -129
- package/src/core/MeganavContentDevelopers/component.rb +0 -13
- package/src/core/MeganavContentProducts/component.html.erb +0 -83
- package/src/core/MeganavContentProducts/component.jsx +0 -105
- package/src/core/MeganavContentProducts/component.rb +0 -14
- package/src/core/MeganavContentUseCases/component.html.erb +0 -135
- package/src/core/MeganavContentUseCases/component.jsx +0 -147
- package/src/core/MeganavContentUseCases/component.rb +0 -13
- package/src/core/MeganavControl/component.html.erb +0 -6
- package/src/core/MeganavControl/component.rb +0 -20
- package/src/core/MeganavControlMobileDropdown/component.html.erb +0 -7
- package/src/core/MeganavControlMobileDropdown/component.rb +0 -11
- package/src/core/MeganavControlMobilePanelClose/component.html.erb +0 -12
- package/src/core/MeganavControlMobilePanelClose/component.rb +0 -12
- package/src/core/MeganavControlMobilePanelOpen/component.html.erb +0 -7
- package/src/core/MeganavControlMobilePanelOpen/component.jsx +0 -25
- package/src/core/MeganavControlMobilePanelOpen/component.rb +0 -9
- package/src/core/MeganavItemsDesktop/component.html.erb +0 -17
- package/src/core/MeganavItemsDesktop/component.jsx +0 -49
- package/src/core/MeganavItemsDesktop/component.rb +0 -23
- package/src/core/MeganavItemsMobile/component.html.erb +0 -75
- package/src/core/MeganavItemsMobile/component.jsx +0 -137
- package/src/core/MeganavItemsMobile/component.rb +0 -21
- package/src/core/MeganavItemsSignedIn/component.html.erb +0 -53
- package/src/core/MeganavItemsSignedIn/component.rb +0 -33
- package/src/core/MeganavSearch/component.html.erb +0 -15
- package/src/core/MeganavSearch/component.jsx +0 -33
- package/src/core/MeganavSearch/component.rb +0 -13
- package/src/core/MeganavSearchAutocomplete/component.html.erb +0 -6
- package/src/core/MeganavSearchAutocomplete/component.jsx +0 -14
- package/src/core/MeganavSearchAutocomplete/component.rb +0 -6
- package/src/core/MeganavSearchPanel/component.html.erb +0 -22
- package/src/core/MeganavSearchPanel/component.jsx +0 -39
- package/src/core/MeganavSearchPanel/component.rb +0 -13
- package/src/core/MeganavSearchSuggestions/component.html.erb +0 -22
- package/src/core/MeganavSearchSuggestions/component.jsx +0 -49
- package/src/core/MeganavSearchSuggestions/component.rb +0 -18
- package/src/core/Notice/component.html.erb +0 -16
- package/src/core/Notice/component.jsx +0 -71
- package/src/core/Notice/component.rb +0 -29
- package/src/core/Showcase/component.css +0 -30
- package/src/core/Showcase/component.html.erb +0 -76
- package/src/core/Showcase/component.js +0 -180
- package/src/core/Showcase/component.jsx +0 -0
- package/src/core/Showcase/component.rb +0 -190
- package/src/core/SignOutLink/component.html.erb +0 -1
- package/src/core/SignOutLink/component.jsx +0 -32
- package/src/core/SignOutLink/component.rb +0 -17
- package/src/core/Slider/component.html.erb +0 -28
- package/src/core/Slider/component.jsx +0 -86
- package/src/core/Slider/component.rb +0 -38
- package/src/core/Uptime/component.css +0 -127
- package/src/core/Uptime/component.html.erb +0 -0
- package/src/core/Uptime/component.js +0 -1
- package/src/core/Uptime/component.jsx +0 -183
- package/src/core/Uptime/component.rb +0 -7
- package/src/core/core.rb +0 -81
- /package/{preview/log/.keep → core/Accordion/component.js} +0 -0
- /package/{preview/tmp/.keep → src/core/Accordion/component.js} +0 -0
package/core/Uptime.jsx
DELETED
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("react"), require("prop-types"));
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define([, ], factory);
|
|
6
|
-
else {
|
|
7
|
-
var a = typeof exports === 'object' ? factory(require("react"), require("prop-types")) : factory(root[undefined], root[undefined]);
|
|
8
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
-
}
|
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__5225__, __WEBPACK_EXTERNAL_MODULE__6073__) => {
|
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
|
12
|
-
/******/ var __webpack_modules__ = ({
|
|
13
|
-
|
|
14
|
-
/***/ 5751:
|
|
15
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
-
|
|
17
|
-
"use strict";
|
|
18
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20
|
-
/* harmony export */ });
|
|
21
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
|
|
22
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6073);
|
|
24
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
|
-
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
|
|
26
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// When generating links with target=_blank, we only add `noreferrer` to
|
|
31
|
-
// links that don't start with `/`, so we can continue tracking referrers
|
|
32
|
-
// across our own domains
|
|
33
|
-
|
|
34
|
-
var buildTargetAndRel = function buildTargetAndRel(url, newWindow) {
|
|
35
|
-
var props = {};
|
|
36
|
-
|
|
37
|
-
if (newWindow) {
|
|
38
|
-
props.target = "_blank";
|
|
39
|
-
|
|
40
|
-
if (url.startsWith("/") && !url.startsWith("//")) {
|
|
41
|
-
props.rel = "noopener";
|
|
42
|
-
} else {
|
|
43
|
-
props.rel = "noopenner noreferrer";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return props;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var FeaturedLink = function FeaturedLink(_ref) {
|
|
51
|
-
var url = _ref.url,
|
|
52
|
-
_ref$textSize = _ref.textSize,
|
|
53
|
-
textSize = _ref$textSize === void 0 ? "text-p2" : _ref$textSize,
|
|
54
|
-
_ref$iconColor = _ref.iconColor,
|
|
55
|
-
iconColor = _ref$iconColor === void 0 ? "text-cool-black" : _ref$iconColor,
|
|
56
|
-
_ref$flush = _ref.flush,
|
|
57
|
-
flush = _ref$flush === void 0 ? false : _ref$flush,
|
|
58
|
-
_ref$reverse = _ref.reverse,
|
|
59
|
-
reverse = _ref$reverse === void 0 ? false : _ref$reverse,
|
|
60
|
-
_ref$additionalCSS = _ref.additionalCSS,
|
|
61
|
-
additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
|
|
62
|
-
_ref$newWindow = _ref.newWindow,
|
|
63
|
-
newWindow = _ref$newWindow === void 0 ? false : _ref$newWindow,
|
|
64
|
-
_ref$onClick = _ref.onClick,
|
|
65
|
-
onClick = _ref$onClick === void 0 ? undefined : _ref$onClick,
|
|
66
|
-
children = _ref.children;
|
|
67
|
-
var targetAndRel = buildTargetAndRel(url, newWindow);
|
|
68
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", _extends({
|
|
69
|
-
href: url,
|
|
70
|
-
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
71
|
-
style: {
|
|
72
|
-
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
73
|
-
}
|
|
74
|
-
}, targetAndRel, {
|
|
75
|
-
onClick: onClick
|
|
76
|
-
}), reverse ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
77
|
-
name: "icon-gui-link-arrow",
|
|
78
|
-
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
79
|
-
color: iconColor,
|
|
80
|
-
additionalCSS: "align-middle mr-8 relative -top-1 -right-4 transition-all group-hover:right-0 transform rotate-180"
|
|
81
|
-
}), children) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
82
|
-
name: "icon-gui-link-arrow",
|
|
83
|
-
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
84
|
-
color: iconColor,
|
|
85
|
-
additionalCSS: "align-middle ml-8 relative -top-1 -left-4 transition-all group-hover:left-0"
|
|
86
|
-
})));
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
FeaturedLink.propTypes = {
|
|
90
|
-
url: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
91
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
92
|
-
textSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
93
|
-
iconColor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
94
|
-
flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
95
|
-
reverse: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
96
|
-
additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
97
|
-
newWindow: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
98
|
-
onClick: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
|
99
|
-
};
|
|
100
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedLink);
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 9008:
|
|
105
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
106
|
-
|
|
107
|
-
"use strict";
|
|
108
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
109
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
110
|
-
/* harmony export */ });
|
|
111
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
|
|
112
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
113
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6073);
|
|
114
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
115
|
-
var _excluded = ["name", "size", "color", "additionalCSS"];
|
|
116
|
-
|
|
117
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
118
|
-
|
|
119
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
120
|
-
|
|
121
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var Icon = function Icon(_ref) {
|
|
127
|
-
var name = _ref.name,
|
|
128
|
-
_ref$size = _ref.size,
|
|
129
|
-
size = _ref$size === void 0 ? "0.75rem" : _ref$size,
|
|
130
|
-
_ref$color = _ref.color,
|
|
131
|
-
color = _ref$color === void 0 ? "" : _ref$color,
|
|
132
|
-
_ref$additionalCSS = _ref.additionalCSS,
|
|
133
|
-
additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
|
|
134
|
-
additionalAttributes = _objectWithoutProperties(_ref, _excluded);
|
|
135
|
-
|
|
136
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
|
|
137
|
-
className: "".concat(color, " ").concat(additionalCSS),
|
|
138
|
-
style: {
|
|
139
|
-
width: size,
|
|
140
|
-
height: size
|
|
141
|
-
}
|
|
142
|
-
}, additionalAttributes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
|
|
143
|
-
xlinkHref: "#sprite-".concat(name)
|
|
144
|
-
}));
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
Icon.propTypes = {
|
|
148
|
-
name: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),
|
|
149
|
-
size: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
150
|
-
color: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
151
|
-
additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
152
|
-
};
|
|
153
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
|
|
154
|
-
|
|
155
|
-
/***/ }),
|
|
156
|
-
|
|
157
|
-
/***/ 6073:
|
|
158
|
-
/***/ ((module) => {
|
|
159
|
-
|
|
160
|
-
"use strict";
|
|
161
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6073__;
|
|
162
|
-
|
|
163
|
-
/***/ }),
|
|
164
|
-
|
|
165
|
-
/***/ 5225:
|
|
166
|
-
/***/ ((module) => {
|
|
167
|
-
|
|
168
|
-
"use strict";
|
|
169
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
|
|
170
|
-
|
|
171
|
-
/***/ }),
|
|
172
|
-
|
|
173
|
-
/***/ 7061:
|
|
174
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
175
|
-
|
|
176
|
-
var _typeof = (__webpack_require__(8698)["default"]);
|
|
177
|
-
function _regeneratorRuntime() {
|
|
178
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
179
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
180
|
-
return e;
|
|
181
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
182
|
-
var t,
|
|
183
|
-
e = {},
|
|
184
|
-
r = Object.prototype,
|
|
185
|
-
n = r.hasOwnProperty,
|
|
186
|
-
o = Object.defineProperty || function (t, e, r) {
|
|
187
|
-
t[e] = r.value;
|
|
188
|
-
},
|
|
189
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
|
190
|
-
a = i.iterator || "@@iterator",
|
|
191
|
-
c = i.asyncIterator || "@@asyncIterator",
|
|
192
|
-
u = i.toStringTag || "@@toStringTag";
|
|
193
|
-
function define(t, e, r) {
|
|
194
|
-
return Object.defineProperty(t, e, {
|
|
195
|
-
value: r,
|
|
196
|
-
enumerable: !0,
|
|
197
|
-
configurable: !0,
|
|
198
|
-
writable: !0
|
|
199
|
-
}), t[e];
|
|
200
|
-
}
|
|
201
|
-
try {
|
|
202
|
-
define({}, "");
|
|
203
|
-
} catch (t) {
|
|
204
|
-
define = function define(t, e, r) {
|
|
205
|
-
return t[e] = r;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function wrap(t, e, r, n) {
|
|
209
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
210
|
-
a = Object.create(i.prototype),
|
|
211
|
-
c = new Context(n || []);
|
|
212
|
-
return o(a, "_invoke", {
|
|
213
|
-
value: makeInvokeMethod(t, r, c)
|
|
214
|
-
}), a;
|
|
215
|
-
}
|
|
216
|
-
function tryCatch(t, e, r) {
|
|
217
|
-
try {
|
|
218
|
-
return {
|
|
219
|
-
type: "normal",
|
|
220
|
-
arg: t.call(e, r)
|
|
221
|
-
};
|
|
222
|
-
} catch (t) {
|
|
223
|
-
return {
|
|
224
|
-
type: "throw",
|
|
225
|
-
arg: t
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
e.wrap = wrap;
|
|
230
|
-
var h = "suspendedStart",
|
|
231
|
-
l = "suspendedYield",
|
|
232
|
-
f = "executing",
|
|
233
|
-
s = "completed",
|
|
234
|
-
y = {};
|
|
235
|
-
function Generator() {}
|
|
236
|
-
function GeneratorFunction() {}
|
|
237
|
-
function GeneratorFunctionPrototype() {}
|
|
238
|
-
var p = {};
|
|
239
|
-
define(p, a, function () {
|
|
240
|
-
return this;
|
|
241
|
-
});
|
|
242
|
-
var d = Object.getPrototypeOf,
|
|
243
|
-
v = d && d(d(values([])));
|
|
244
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
245
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
246
|
-
function defineIteratorMethods(t) {
|
|
247
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
248
|
-
define(t, e, function (t) {
|
|
249
|
-
return this._invoke(e, t);
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
function AsyncIterator(t, e) {
|
|
254
|
-
function invoke(r, o, i, a) {
|
|
255
|
-
var c = tryCatch(t[r], t, o);
|
|
256
|
-
if ("throw" !== c.type) {
|
|
257
|
-
var u = c.arg,
|
|
258
|
-
h = u.value;
|
|
259
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
260
|
-
invoke("next", t, i, a);
|
|
261
|
-
}, function (t) {
|
|
262
|
-
invoke("throw", t, i, a);
|
|
263
|
-
}) : e.resolve(h).then(function (t) {
|
|
264
|
-
u.value = t, i(u);
|
|
265
|
-
}, function (t) {
|
|
266
|
-
return invoke("throw", t, i, a);
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
a(c.arg);
|
|
270
|
-
}
|
|
271
|
-
var r;
|
|
272
|
-
o(this, "_invoke", {
|
|
273
|
-
value: function value(t, n) {
|
|
274
|
-
function callInvokeWithMethodAndArg() {
|
|
275
|
-
return new e(function (e, r) {
|
|
276
|
-
invoke(t, n, e, r);
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
function makeInvokeMethod(e, r, n) {
|
|
284
|
-
var o = h;
|
|
285
|
-
return function (i, a) {
|
|
286
|
-
if (o === f) throw new Error("Generator is already running");
|
|
287
|
-
if (o === s) {
|
|
288
|
-
if ("throw" === i) throw a;
|
|
289
|
-
return {
|
|
290
|
-
value: t,
|
|
291
|
-
done: !0
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
for (n.method = i, n.arg = a;;) {
|
|
295
|
-
var c = n.delegate;
|
|
296
|
-
if (c) {
|
|
297
|
-
var u = maybeInvokeDelegate(c, n);
|
|
298
|
-
if (u) {
|
|
299
|
-
if (u === y) continue;
|
|
300
|
-
return u;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
304
|
-
if (o === h) throw o = s, n.arg;
|
|
305
|
-
n.dispatchException(n.arg);
|
|
306
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
307
|
-
o = f;
|
|
308
|
-
var p = tryCatch(e, r, n);
|
|
309
|
-
if ("normal" === p.type) {
|
|
310
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
311
|
-
return {
|
|
312
|
-
value: p.arg,
|
|
313
|
-
done: n.done
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function maybeInvokeDelegate(e, r) {
|
|
321
|
-
var n = r.method,
|
|
322
|
-
o = e.iterator[n];
|
|
323
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
324
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
325
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
326
|
-
var a = i.arg;
|
|
327
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
328
|
-
}
|
|
329
|
-
function pushTryEntry(t) {
|
|
330
|
-
var e = {
|
|
331
|
-
tryLoc: t[0]
|
|
332
|
-
};
|
|
333
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
334
|
-
}
|
|
335
|
-
function resetTryEntry(t) {
|
|
336
|
-
var e = t.completion || {};
|
|
337
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
338
|
-
}
|
|
339
|
-
function Context(t) {
|
|
340
|
-
this.tryEntries = [{
|
|
341
|
-
tryLoc: "root"
|
|
342
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
343
|
-
}
|
|
344
|
-
function values(e) {
|
|
345
|
-
if (e || "" === e) {
|
|
346
|
-
var r = e[a];
|
|
347
|
-
if (r) return r.call(e);
|
|
348
|
-
if ("function" == typeof e.next) return e;
|
|
349
|
-
if (!isNaN(e.length)) {
|
|
350
|
-
var o = -1,
|
|
351
|
-
i = function next() {
|
|
352
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
353
|
-
return next.value = t, next.done = !0, next;
|
|
354
|
-
};
|
|
355
|
-
return i.next = i;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
|
359
|
-
}
|
|
360
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
361
|
-
value: GeneratorFunctionPrototype,
|
|
362
|
-
configurable: !0
|
|
363
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
364
|
-
value: GeneratorFunction,
|
|
365
|
-
configurable: !0
|
|
366
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
367
|
-
var e = "function" == typeof t && t.constructor;
|
|
368
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
369
|
-
}, e.mark = function (t) {
|
|
370
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
371
|
-
}, e.awrap = function (t) {
|
|
372
|
-
return {
|
|
373
|
-
__await: t
|
|
374
|
-
};
|
|
375
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
376
|
-
return this;
|
|
377
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
378
|
-
void 0 === i && (i = Promise);
|
|
379
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
380
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
381
|
-
return t.done ? t.value : a.next();
|
|
382
|
-
});
|
|
383
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
384
|
-
return this;
|
|
385
|
-
}), define(g, "toString", function () {
|
|
386
|
-
return "[object Generator]";
|
|
387
|
-
}), e.keys = function (t) {
|
|
388
|
-
var e = Object(t),
|
|
389
|
-
r = [];
|
|
390
|
-
for (var n in e) r.push(n);
|
|
391
|
-
return r.reverse(), function next() {
|
|
392
|
-
for (; r.length;) {
|
|
393
|
-
var t = r.pop();
|
|
394
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
395
|
-
}
|
|
396
|
-
return next.done = !0, next;
|
|
397
|
-
};
|
|
398
|
-
}, e.values = values, Context.prototype = {
|
|
399
|
-
constructor: Context,
|
|
400
|
-
reset: function reset(e) {
|
|
401
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
402
|
-
},
|
|
403
|
-
stop: function stop() {
|
|
404
|
-
this.done = !0;
|
|
405
|
-
var t = this.tryEntries[0].completion;
|
|
406
|
-
if ("throw" === t.type) throw t.arg;
|
|
407
|
-
return this.rval;
|
|
408
|
-
},
|
|
409
|
-
dispatchException: function dispatchException(e) {
|
|
410
|
-
if (this.done) throw e;
|
|
411
|
-
var r = this;
|
|
412
|
-
function handle(n, o) {
|
|
413
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
414
|
-
}
|
|
415
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
416
|
-
var i = this.tryEntries[o],
|
|
417
|
-
a = i.completion;
|
|
418
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
419
|
-
if (i.tryLoc <= this.prev) {
|
|
420
|
-
var c = n.call(i, "catchLoc"),
|
|
421
|
-
u = n.call(i, "finallyLoc");
|
|
422
|
-
if (c && u) {
|
|
423
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
424
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
425
|
-
} else if (c) {
|
|
426
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
427
|
-
} else {
|
|
428
|
-
if (!u) throw new Error("try statement without catch or finally");
|
|
429
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
abrupt: function abrupt(t, e) {
|
|
435
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
436
|
-
var o = this.tryEntries[r];
|
|
437
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
438
|
-
var i = o;
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
443
|
-
var a = i ? i.completion : {};
|
|
444
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
445
|
-
},
|
|
446
|
-
complete: function complete(t, e) {
|
|
447
|
-
if ("throw" === t.type) throw t.arg;
|
|
448
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
449
|
-
},
|
|
450
|
-
finish: function finish(t) {
|
|
451
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
452
|
-
var r = this.tryEntries[e];
|
|
453
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
"catch": function _catch(t) {
|
|
457
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
458
|
-
var r = this.tryEntries[e];
|
|
459
|
-
if (r.tryLoc === t) {
|
|
460
|
-
var n = r.completion;
|
|
461
|
-
if ("throw" === n.type) {
|
|
462
|
-
var o = n.arg;
|
|
463
|
-
resetTryEntry(r);
|
|
464
|
-
}
|
|
465
|
-
return o;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
throw new Error("illegal catch attempt");
|
|
469
|
-
},
|
|
470
|
-
delegateYield: function delegateYield(e, r, n) {
|
|
471
|
-
return this.delegate = {
|
|
472
|
-
iterator: values(e),
|
|
473
|
-
resultName: r,
|
|
474
|
-
nextLoc: n
|
|
475
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
476
|
-
}
|
|
477
|
-
}, e;
|
|
478
|
-
}
|
|
479
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
480
|
-
|
|
481
|
-
/***/ }),
|
|
482
|
-
|
|
483
|
-
/***/ 8698:
|
|
484
|
-
/***/ ((module) => {
|
|
485
|
-
|
|
486
|
-
function _typeof(o) {
|
|
487
|
-
"@babel/helpers - typeof";
|
|
488
|
-
|
|
489
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
490
|
-
return typeof o;
|
|
491
|
-
} : function (o) {
|
|
492
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
493
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
494
|
-
}
|
|
495
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
496
|
-
|
|
497
|
-
/***/ }),
|
|
498
|
-
|
|
499
|
-
/***/ 4687:
|
|
500
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
501
|
-
|
|
502
|
-
// TODO(Babel 8): Remove this file.
|
|
503
|
-
|
|
504
|
-
var runtime = __webpack_require__(7061)();
|
|
505
|
-
module.exports = runtime;
|
|
506
|
-
|
|
507
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
508
|
-
try {
|
|
509
|
-
regeneratorRuntime = runtime;
|
|
510
|
-
} catch (accidentalStrictMode) {
|
|
511
|
-
if (typeof globalThis === "object") {
|
|
512
|
-
globalThis.regeneratorRuntime = runtime;
|
|
513
|
-
} else {
|
|
514
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
/***/ })
|
|
520
|
-
|
|
521
|
-
/******/ });
|
|
522
|
-
/************************************************************************/
|
|
523
|
-
/******/ // The module cache
|
|
524
|
-
/******/ var __webpack_module_cache__ = {};
|
|
525
|
-
/******/
|
|
526
|
-
/******/ // The require function
|
|
527
|
-
/******/ function __webpack_require__(moduleId) {
|
|
528
|
-
/******/ // Check if module is in cache
|
|
529
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
530
|
-
/******/ if (cachedModule !== undefined) {
|
|
531
|
-
/******/ return cachedModule.exports;
|
|
532
|
-
/******/ }
|
|
533
|
-
/******/ // Create a new module (and put it into the cache)
|
|
534
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
535
|
-
/******/ // no module.id needed
|
|
536
|
-
/******/ // no module.loaded needed
|
|
537
|
-
/******/ exports: {}
|
|
538
|
-
/******/ };
|
|
539
|
-
/******/
|
|
540
|
-
/******/ // Execute the module function
|
|
541
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
542
|
-
/******/
|
|
543
|
-
/******/ // Return the exports of the module
|
|
544
|
-
/******/ return module.exports;
|
|
545
|
-
/******/ }
|
|
546
|
-
/******/
|
|
547
|
-
/************************************************************************/
|
|
548
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
549
|
-
/******/ (() => {
|
|
550
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
551
|
-
/******/ __webpack_require__.n = (module) => {
|
|
552
|
-
/******/ var getter = module && module.__esModule ?
|
|
553
|
-
/******/ () => (module['default']) :
|
|
554
|
-
/******/ () => (module);
|
|
555
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
556
|
-
/******/ return getter;
|
|
557
|
-
/******/ };
|
|
558
|
-
/******/ })();
|
|
559
|
-
/******/
|
|
560
|
-
/******/ /* webpack/runtime/define property getters */
|
|
561
|
-
/******/ (() => {
|
|
562
|
-
/******/ // define getter functions for harmony exports
|
|
563
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
564
|
-
/******/ for(var key in definition) {
|
|
565
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
566
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
567
|
-
/******/ }
|
|
568
|
-
/******/ }
|
|
569
|
-
/******/ };
|
|
570
|
-
/******/ })();
|
|
571
|
-
/******/
|
|
572
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
573
|
-
/******/ (() => {
|
|
574
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
575
|
-
/******/ })();
|
|
576
|
-
/******/
|
|
577
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
578
|
-
/******/ (() => {
|
|
579
|
-
/******/ // define __esModule on exports
|
|
580
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
581
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
582
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
583
|
-
/******/ }
|
|
584
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
585
|
-
/******/ };
|
|
586
|
-
/******/ })();
|
|
587
|
-
/******/
|
|
588
|
-
/************************************************************************/
|
|
589
|
-
var __webpack_exports__ = {};
|
|
590
|
-
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
591
|
-
(() => {
|
|
592
|
-
"use strict";
|
|
593
|
-
__webpack_require__.r(__webpack_exports__);
|
|
594
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
595
|
-
/* harmony export */ "ThemeContext": () => (/* binding */ ThemeContext),
|
|
596
|
-
/* harmony export */ "default": () => (/* binding */ Uptime),
|
|
597
|
-
/* harmony export */ "themes": () => (/* binding */ themes)
|
|
598
|
-
/* harmony export */ });
|
|
599
|
-
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4687);
|
|
600
|
-
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
601
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5225);
|
|
602
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
603
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6073);
|
|
604
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
605
|
-
/* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5751);
|
|
606
|
-
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; }
|
|
607
|
-
|
|
608
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
609
|
-
|
|
610
|
-
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; }
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
615
|
-
|
|
616
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
617
|
-
|
|
618
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
619
|
-
|
|
620
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
621
|
-
|
|
622
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
623
|
-
|
|
624
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
625
|
-
|
|
626
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
627
|
-
|
|
628
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
var themes = {
|
|
634
|
-
light: {
|
|
635
|
-
text: "text-cool-black",
|
|
636
|
-
iconColor: "text-cool-black"
|
|
637
|
-
},
|
|
638
|
-
dark: {
|
|
639
|
-
text: "text-white",
|
|
640
|
-
iconColor: "text-white"
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
var ThemeContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext();
|
|
644
|
-
|
|
645
|
-
function StatusLegend(_ref) {
|
|
646
|
-
var metadata = _ref.metadata,
|
|
647
|
-
textColor = _ref.textColor;
|
|
648
|
-
var items = Object.entries(metadata[0]).map(function (e) {
|
|
649
|
-
var _e2 = _slicedToArray(e, 2),
|
|
650
|
-
id = _e2[0],
|
|
651
|
-
text = _e2[1];
|
|
652
|
-
|
|
653
|
-
var classname = "ui-uptime-key ui-uptime-".concat(id, " ").concat(textColor);
|
|
654
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
|
655
|
-
key: id,
|
|
656
|
-
className: classname
|
|
657
|
-
}, text);
|
|
658
|
-
});
|
|
659
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
660
|
-
className: "ui-uptime-legend"
|
|
661
|
-
}, items);
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
function applyAlignment(value, i) {
|
|
665
|
-
var count = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 8;
|
|
666
|
-
var before = i < value + count;
|
|
667
|
-
var after = i > value - count;
|
|
668
|
-
if (i > 0 && !(before && after)) return null;
|
|
669
|
-
var align = i === 0 || i > value ? "left" : "right";
|
|
670
|
-
var diff = value - i;
|
|
671
|
-
var amount = Math.abs(diff) || 0;
|
|
672
|
-
var sign = i > value ? -1 : 1;
|
|
673
|
-
return {
|
|
674
|
-
align: align,
|
|
675
|
-
amount: amount,
|
|
676
|
-
sign: sign
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
function UptimeGraph(_ref2) {
|
|
681
|
-
var collection = _ref2.collection;
|
|
682
|
-
// add 30 day split deliminators
|
|
683
|
-
collection.splice(29, 0, null);
|
|
684
|
-
collection.splice(60, 0, null);
|
|
685
|
-
var MAX_TOOLTIP_CHAR_LENGTH = 80;
|
|
686
|
-
var items = collection.map(function (row, i) {
|
|
687
|
-
if (!row) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("li", {
|
|
688
|
-
key: i,
|
|
689
|
-
className: "ui-uptime-seperator"
|
|
690
|
-
});
|
|
691
|
-
|
|
692
|
-
var _map$filter = [0, 29, 60, 91].map(function (value) {
|
|
693
|
-
return applyAlignment(value, i);
|
|
694
|
-
}).filter(function (s) {
|
|
695
|
-
return s;
|
|
696
|
-
}),
|
|
697
|
-
_map$filter2 = _slicedToArray(_map$filter, 1),
|
|
698
|
-
_map$filter2$ = _map$filter2[0],
|
|
699
|
-
alignment = _map$filter2$ === void 0 ? {} : _map$filter2$;
|
|
700
|
-
|
|
701
|
-
var _alignment$align = alignment.align,
|
|
702
|
-
align = _alignment$align === void 0 ? null : _alignment$align,
|
|
703
|
-
_alignment$amount = alignment.amount,
|
|
704
|
-
amount = _alignment$amount === void 0 ? null : _alignment$amount,
|
|
705
|
-
_alignment$sign = alignment.sign,
|
|
706
|
-
sign = _alignment$sign === void 0 ? null : _alignment$sign;
|
|
707
|
-
var labelAlign = alignment && "ui-uptime-align-".concat(align);
|
|
708
|
-
var classname = "ui-uptime-day ui-uptime-".concat(row["class"], " ").concat(labelAlign).trim();
|
|
709
|
-
var label = row.label;
|
|
710
|
-
|
|
711
|
-
var _label$trim = label.trim(),
|
|
712
|
-
length = _label$trim.length;
|
|
713
|
-
|
|
714
|
-
var tooltext = length < MAX_TOOLTIP_CHAR_LENGTH ? label : label.slice(0, MAX_TOOLTIP_CHAR_LENGTH - 1) + "…";
|
|
715
|
-
var width = length > MAX_TOOLTIP_CHAR_LENGTH - 10 && "extra-wide" || length > MAX_TOOLTIP_CHAR_LENGTH / 2 && "wide" || "normal";
|
|
716
|
-
var translateX = Math.min(Math.max(amount - 1, 0) * 10 >> 0, 50) * sign;
|
|
717
|
-
var transform = align ? {
|
|
718
|
-
transform: "translateX(".concat(translateX, "%)")
|
|
719
|
-
} : {};
|
|
720
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("li", {
|
|
721
|
-
key: i,
|
|
722
|
-
className: classname
|
|
723
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
|
|
724
|
-
className: "ui-uptime-width-".concat(width),
|
|
725
|
-
style: transform
|
|
726
|
-
}, tooltext));
|
|
727
|
-
});
|
|
728
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
729
|
-
className: "ui-uptime-graph"
|
|
730
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("ul", {
|
|
731
|
-
className: "ui-uptime-list"
|
|
732
|
-
}, items));
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
function StatusCtaLink(_ref3) {
|
|
736
|
-
var href = _ref3.href,
|
|
737
|
-
text = _ref3.text;
|
|
738
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
739
|
-
className: "ui-uptime-link-back"
|
|
740
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Consumer, null, function (_ref4) {
|
|
741
|
-
var iconColor = _ref4.iconColor;
|
|
742
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
743
|
-
url: href,
|
|
744
|
-
iconColor: iconColor
|
|
745
|
-
}, text);
|
|
746
|
-
}));
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
function StatusFooter(_ref5) {
|
|
750
|
-
var metadata = _ref5.metadata,
|
|
751
|
-
href = _ref5.href,
|
|
752
|
-
text = _ref5.text;
|
|
753
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
754
|
-
className: "ui-uptime-footer"
|
|
755
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Consumer, null, function (_ref6) {
|
|
756
|
-
var text = _ref6.text;
|
|
757
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StatusLegend, {
|
|
758
|
-
metadata: metadata,
|
|
759
|
-
textColor: text
|
|
760
|
-
});
|
|
761
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StatusCtaLink, {
|
|
762
|
-
href: href,
|
|
763
|
-
text: text
|
|
764
|
-
}));
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
function handleError(err) {
|
|
768
|
-
// output a message and normalise schema
|
|
769
|
-
console.warn("Uptime Error", err);
|
|
770
|
-
|
|
771
|
-
var _ref7 = err || {},
|
|
772
|
-
message = _ref7.message;
|
|
773
|
-
|
|
774
|
-
return {
|
|
775
|
-
error: true,
|
|
776
|
-
message: message
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
function Uptime(_ref8) {
|
|
781
|
-
var serverUrl = _ref8.serverUrl,
|
|
782
|
-
_ref8$linkTo = _ref8.linkTo,
|
|
783
|
-
linkTo = _ref8$linkTo === void 0 ? null : _ref8$linkTo,
|
|
784
|
-
_ref8$theme = _ref8.theme,
|
|
785
|
-
theme = _ref8$theme === void 0 ? "light" : _ref8$theme;
|
|
786
|
-
if (!serverUrl) throw new Error("Server endpoint URL required");
|
|
787
|
-
|
|
788
|
-
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
|
789
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
790
|
-
data = _useState2[0],
|
|
791
|
-
setData = _useState2[1];
|
|
792
|
-
|
|
793
|
-
var _ref9 = data || {},
|
|
794
|
-
collection = _ref9.collection,
|
|
795
|
-
metadata = _ref9.metadata;
|
|
796
|
-
|
|
797
|
-
var showFooterRow = (linkTo === null || linkTo === void 0 ? void 0 : linkTo.href) && (linkTo === null || linkTo === void 0 ? void 0 : linkTo.text);
|
|
798
|
-
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
|
799
|
-
var fetchEndpointJson = /*#__PURE__*/function () {
|
|
800
|
-
var _ref10 = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
|
801
|
-
var payload, _payload, _collection, _metadata;
|
|
802
|
-
|
|
803
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
|
804
|
-
while (1) {
|
|
805
|
-
switch (_context.prev = _context.next) {
|
|
806
|
-
case 0:
|
|
807
|
-
payload = null;
|
|
808
|
-
_context.prev = 1;
|
|
809
|
-
_context.next = 4;
|
|
810
|
-
return fetch(serverUrl);
|
|
811
|
-
|
|
812
|
-
case 4:
|
|
813
|
-
payload = _context.sent;
|
|
814
|
-
_context.next = 7;
|
|
815
|
-
return payload.json();
|
|
816
|
-
|
|
817
|
-
case 7:
|
|
818
|
-
payload = _context.sent;
|
|
819
|
-
_payload = payload, _collection = _payload.chart_data, _metadata = _payload.chart_legend;
|
|
820
|
-
payload = {
|
|
821
|
-
collection: _collection,
|
|
822
|
-
metadata: _metadata
|
|
823
|
-
};
|
|
824
|
-
_context.next = 15;
|
|
825
|
-
break;
|
|
826
|
-
|
|
827
|
-
case 12:
|
|
828
|
-
_context.prev = 12;
|
|
829
|
-
_context.t0 = _context["catch"](1);
|
|
830
|
-
payload = handleError(_context.t0);
|
|
831
|
-
|
|
832
|
-
case 15:
|
|
833
|
-
setData(payload);
|
|
834
|
-
|
|
835
|
-
case 16:
|
|
836
|
-
case "end":
|
|
837
|
-
return _context.stop();
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}, _callee, null, [[1, 12]]);
|
|
841
|
-
}));
|
|
842
|
-
|
|
843
|
-
return function fetchEndpointJson() {
|
|
844
|
-
return _ref10.apply(this, arguments);
|
|
845
|
-
};
|
|
846
|
-
}();
|
|
847
|
-
|
|
848
|
-
fetchEndpointJson();
|
|
849
|
-
}, []);
|
|
850
|
-
|
|
851
|
-
if (data && data.error) {
|
|
852
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
853
|
-
className: "flex sm:flex-row justify-center items-center p-24 border rounded ui-text-p2 ".concat(themes[theme].text),
|
|
854
|
-
"data-id": "uptime-error"
|
|
855
|
-
}, "Sorry, we can\u2019t retrieve uptime data right now.");
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
return data && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ThemeContext.Provider, {
|
|
859
|
-
value: themes[theme]
|
|
860
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
861
|
-
className: "ui-uptime-widget",
|
|
862
|
-
"data-id": "uptime"
|
|
863
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(UptimeGraph, {
|
|
864
|
-
collection: collection
|
|
865
|
-
}), showFooterRow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StatusFooter, _objectSpread({
|
|
866
|
-
metadata: metadata
|
|
867
|
-
}, linkTo))));
|
|
868
|
-
}
|
|
869
|
-
UptimeGraph.propTypes = {
|
|
870
|
-
collection: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array)
|
|
871
|
-
};
|
|
872
|
-
StatusLegend.propTypes = {
|
|
873
|
-
metadata: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array),
|
|
874
|
-
textColor: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
|
|
875
|
-
};
|
|
876
|
-
StatusFooter.propTypes = {
|
|
877
|
-
metadata: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array),
|
|
878
|
-
href: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
879
|
-
text: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
|
|
880
|
-
};
|
|
881
|
-
StatusCtaLink.propTypes = {
|
|
882
|
-
href: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
883
|
-
text: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)
|
|
884
|
-
};
|
|
885
|
-
Uptime.propTypes = {
|
|
886
|
-
serverUrl: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
887
|
-
linkTo: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
888
|
-
theme: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["light", "dark"])
|
|
889
|
-
};
|
|
890
|
-
})();
|
|
891
|
-
|
|
892
|
-
/******/ return __webpack_exports__;
|
|
893
|
-
/******/ })()
|
|
894
|
-
;
|
|
895
|
-
});
|