@scalar/api-reference 0.5.0 → 0.5.2
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/dist/components/Content/Introduction/BaseUrl.vue.d.ts.map +1 -1
- package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/Copy.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/{ExampleResponses.vue.d.ts → ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/Headers.vue.d.ts +14 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/Headers.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/SelectExample.vue.d.ts +13 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/SelectExample.vue.d.ts.map +1 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/index.d.ts +2 -0
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses/index.d.ts.map +1 -0
- package/dist/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/mapFromObject.d.ts +8 -0
- package/dist/helpers/mapFromObject.d.ts.map +1 -0
- package/dist/index.js +8898 -11685
- package/dist/types.d.ts +9 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/components/Content/ReferenceEndpoint/ExampleResponses.vue.d.ts.map +0 -1
- package/src/components/ApiClientModal.vue +0 -205
- package/src/components/ApiReference.vue +0 -750
- package/src/components/Card/Card.vue +0 -12
- package/src/components/Card/CardContent.vue +0 -45
- package/src/components/Card/CardFooter.vue +0 -13
- package/src/components/Card/CardHeader.vue +0 -37
- package/src/components/Card/CardTab.vue +0 -32
- package/src/components/Card/CardTabHeader.vue +0 -32
- package/src/components/Card/index.ts +0 -6
- package/src/components/Content/Content.vue +0 -145
- package/src/components/Content/Introduction/BaseUrl.vue +0 -32
- package/src/components/Content/Introduction/Introduction.vue +0 -141
- package/src/components/Content/Introduction/LanguageSelector.vue +0 -361
- package/src/components/Content/Introduction/index.ts +0 -1
- package/src/components/Content/MarkdownRenderer.vue +0 -174
- package/src/components/Content/ReferenceEndpoint/Copy.vue +0 -100
- package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +0 -318
- package/src/components/Content/ReferenceEndpoint/ExampleResponseTab.vue +0 -22
- package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +0 -169
- package/src/components/Content/ReferenceEndpoint/ParameterItem.vue +0 -26
- package/src/components/Content/ReferenceEndpoint/Parameters.vue +0 -23
- package/src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue +0 -29
- package/src/components/Content/ReferenceEndpoint/RequestBody.vue +0 -125
- package/src/components/Content/ReferenceEndpoint/RequestBodyProperties.vue +0 -54
- package/src/components/Content/ReferenceEndpoint/RequestBodyPropertiesChild.vue +0 -39
- package/src/components/Content/ReferenceEndpoint/index.ts +0 -1
- package/src/components/Content/ReferenceTag.vue +0 -99
- package/src/components/Content/Spinner.vue +0 -51
- package/src/components/Content/index.ts +0 -1
- package/src/components/FindAnythingButton.vue +0 -76
- package/src/components/FlowButton.vue +0 -184
- package/src/components/FlowIconButton.vue +0 -25
- package/src/components/FlowLoader.vue +0 -207
- package/src/components/FlowModal.vue +0 -133
- package/src/components/HelpfulLink.vue +0 -19
- package/src/components/Icon/FlowIcon.vue +0 -19
- package/src/components/Icon/Icon.vue +0 -23
- package/src/components/Icon/SvgRenderer.ts +0 -66
- package/src/components/Icon/brand/brand-adobe.svg +0 -1
- package/src/components/Icon/brand/brand-amazon.svg +0 -1
- package/src/components/Icon/brand/brand-browser-firefox.svg +0 -5
- package/src/components/Icon/brand/brand-browser-googlechrome.svg +0 -5
- package/src/components/Icon/brand/brand-creative-commons.svg +0 -1
- package/src/components/Icon/brand/brand-ecommerce-etsy.svg +0 -1
- package/src/components/Icon/brand/brand-ecommerce-patreon.svg +0 -1
- package/src/components/Icon/brand/brand-ecommerce-shopify.svg +0 -5
- package/src/components/Icon/brand/brand-ecommerce-wordpress.svg +0 -1
- package/src/components/Icon/brand/brand-gaming-nintendo-switch.svg +0 -5
- package/src/components/Icon/brand/brand-gaming-playstation.svg +0 -1
- package/src/components/Icon/brand/brand-gaming-xbox-live.svg +0 -5
- package/src/components/Icon/brand/brand-google-drive.svg +0 -5
- package/src/components/Icon/brand/brand-google-gmail.svg +0 -5
- package/src/components/Icon/brand/brand-google.svg +0 -1
- package/src/components/Icon/brand/brand-music-itunes.svg +0 -1
- package/src/components/Icon/brand/brand-music-soundcloud.svg +0 -1
- package/src/components/Icon/brand/brand-music-spotify.svg +0 -1
- package/src/components/Icon/brand/brand-office-dropbox.svg +0 -5
- package/src/components/Icon/brand/brand-office-slack.svg +0 -5
- package/src/components/Icon/brand/brand-office-zoom.svg +0 -1
- package/src/components/Icon/brand/brand-payments-alipay.svg +0 -1
- package/src/components/Icon/brand/brand-payments-paypal.svg +0 -1
- package/src/components/Icon/brand/brand-payments-stripe.svg +0 -1
- package/src/components/Icon/brand/brand-platform-android.svg +0 -1
- package/src/components/Icon/brand/brand-platform-apple.svg +0 -5
- package/src/components/Icon/brand/brand-platform-linux.svg +0 -5
- package/src/components/Icon/brand/brand-platform-microsoft-windows.svg +0 -4
- package/src/components/Icon/brand/brand-social-chat-discord.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-kuaishou.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-line.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-messenger.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-signal.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-snapchat.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-telegram.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-wechat.svg +0 -5
- package/src/components/Icon/brand/brand-social-chat-whatsapp.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-deviantart.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-dribbble.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-facebook.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-instagram.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-linkedin.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-pinterest.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-reddit.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-sina-weibo.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-threads.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-tiktok.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-tinder.svg +0 -1
- package/src/components/Icon/brand/brand-social-media-tumblr.svg +0 -5
- package/src/components/Icon/brand/brand-social-media-twitter.svg +0 -5
- package/src/components/Icon/brand/brand-software-design-figma.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-authy.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-digital-ocean.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-docker.svg +0 -5
- package/src/components/Icon/brand/brand-software-development-github.svg +0 -5
- package/src/components/Icon/brand/brand-software-development-jira.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-openai.svg +0 -1
- package/src/components/Icon/brand/brand-software-development-stackexchange.svg +0 -5
- package/src/components/Icon/brand/brand-software-development-stackoverflow.svg +0 -1
- package/src/components/Icon/brand/brand-video-netflix.svg +0 -5
- package/src/components/Icon/brand/brand-video-twitch.svg +0 -1
- package/src/components/Icon/brand/brand-video-vimeo.svg +0 -5
- package/src/components/Icon/brand/brand-video-youtube.svg +0 -5
- package/src/components/Icon/brand/programming-framework-angular.svg +0 -5
- package/src/components/Icon/brand/programming-framework-astro.svg +0 -5
- package/src/components/Icon/brand/programming-framework-laravel.svg +0 -1
- package/src/components/Icon/brand/programming-framework-nextdotjs.svg +0 -5
- package/src/components/Icon/brand/programming-framework-react.svg +0 -5
- package/src/components/Icon/brand/programming-framework-vuedotjs.svg +0 -1
- package/src/components/Icon/brand/programming-language-c.svg +0 -5
- package/src/components/Icon/brand/programming-language-clojure.svg +0 -5
- package/src/components/Icon/brand/programming-language-csharp.svg +0 -4
- package/src/components/Icon/brand/programming-language-css3.svg +0 -4
- package/src/components/Icon/brand/programming-language-go.svg +0 -4
- package/src/components/Icon/brand/programming-language-html5.svg +0 -4
- package/src/components/Icon/brand/programming-language-java.svg +0 -21
- package/src/components/Icon/brand/programming-language-javascript-js.svg +0 -4
- package/src/components/Icon/brand/programming-language-json.svg +0 -8
- package/src/components/Icon/brand/programming-language-kotlin.svg +0 -3
- package/src/components/Icon/brand/programming-language-node.svg +0 -10
- package/src/components/Icon/brand/programming-language-objc.svg +0 -6
- package/src/components/Icon/brand/programming-language-ocaml.svg +0 -4
- package/src/components/Icon/brand/programming-language-php.svg +0 -4
- package/src/components/Icon/brand/programming-language-powershell.svg +0 -10
- package/src/components/Icon/brand/programming-language-python.svg +0 -4
- package/src/components/Icon/brand/programming-language-r.svg +0 -7
- package/src/components/Icon/brand/programming-language-ruby.svg +0 -5
- package/src/components/Icon/brand/programming-language-scala.svg +0 -5
- package/src/components/Icon/brand/programming-language-shell.svg +0 -5
- package/src/components/Icon/brand/programming-language-swift.svg +0 -4
- package/src/components/Icon/brand/programming-language-typescript.svg +0 -5
- package/src/components/Icon/brand/programming-tool-git.svg +0 -1
- package/src/components/Icon/brand/programming-tool-tailwindcss.svg +0 -5
- package/src/components/Icon/icons/Add.svg +0 -4
- package/src/components/Icon/icons/ArrowDown.svg +0 -3
- package/src/components/Icon/icons/ArrowLeft.svg +0 -3
- package/src/components/Icon/icons/ArrowRight.svg +0 -3
- package/src/components/Icon/icons/ArrowUp.svg +0 -3
- package/src/components/Icon/icons/Background.svg +0 -8
- package/src/components/Icon/icons/CallToAction.svg +0 -5
- package/src/components/Icon/icons/CheckMark.svg +0 -3
- package/src/components/Icon/icons/ChevronDown.svg +0 -3
- package/src/components/Icon/icons/ChevronLeft.svg +0 -3
- package/src/components/Icon/icons/ChevronRight.svg +0 -3
- package/src/components/Icon/icons/ChevronUp.svg +0 -3
- package/src/components/Icon/icons/Close.svg +0 -3
- package/src/components/Icon/icons/DarkMode.svg +0 -4
- package/src/components/Icon/icons/Delete.svg +0 -5
- package/src/components/Icon/icons/Discord.svg +0 -5
- package/src/components/Icon/icons/Duplicate.svg +0 -6
- package/src/components/Icon/icons/Edit.svg +0 -4
- package/src/components/Icon/icons/EditorBold.svg +0 -4
- package/src/components/Icon/icons/EditorCode.svg +0 -6
- package/src/components/Icon/icons/EditorHighlight.svg +0 -12
- package/src/components/Icon/icons/EditorItalic.svg +0 -4
- package/src/components/Icon/icons/EditorLink.svg +0 -8
- package/src/components/Icon/icons/EditorStrike.svg +0 -4
- package/src/components/Icon/icons/EditorUnderline.svg +0 -6
- package/src/components/Icon/icons/Ellipses.svg +0 -4
- package/src/components/Icon/icons/Error.svg +0 -4
- package/src/components/Icon/icons/ExternalLink.svg +0 -7
- package/src/components/Icon/icons/Folder.svg +0 -4
- package/src/components/Icon/icons/GitHub.svg +0 -4
- package/src/components/Icon/icons/Google.svg +0 -4
- package/src/components/Icon/icons/Hide.svg +0 -5
- package/src/components/Icon/icons/Key.svg +0 -5
- package/src/components/Icon/icons/Leave.svg +0 -5
- package/src/components/Icon/icons/LightMode.svg +0 -6
- package/src/components/Icon/icons/Link.svg +0 -5
- package/src/components/Icon/icons/Lock.svg +0 -4
- package/src/components/Icon/icons/Logo.svg +0 -4
- package/src/components/Icon/icons/LogoAPI.svg +0 -4
- package/src/components/Icon/icons/LogoClient.svg +0 -4
- package/src/components/Icon/icons/LogoMarket.svg +0 -4
- package/src/components/Icon/icons/LogoSwagger.svg +0 -4
- package/src/components/Icon/icons/Magic.svg +0 -5
- package/src/components/Icon/icons/Menu.svg +0 -3
- package/src/components/Icon/icons/Page.svg +0 -8
- package/src/components/Icon/icons/Payment.svg +0 -5
- package/src/components/Icon/icons/Refresh.svg +0 -4
- package/src/components/Icon/icons/Search.svg +0 -4
- package/src/components/Icon/icons/Show.svg +0 -5
- package/src/components/Icon/icons/Sigma.svg +0 -4
- package/src/components/Icon/icons/Trash.svg +0 -5
- package/src/components/Icon/icons/index.ts +0 -65
- package/src/components/Icon/index.ts +0 -2
- package/src/components/Icon/line/arrow-chevron-down.svg +0 -1
- package/src/components/Icon/line/arrow-chevron-left.svg +0 -1
- package/src/components/Icon/line/arrow-chevron-right.svg +0 -1
- package/src/components/Icon/line/arrow-chevron-up.svg +0 -1
- package/src/components/Icon/line/arrow-down.svg +0 -1
- package/src/components/Icon/line/arrow-left.svg +0 -1
- package/src/components/Icon/line/arrow-right.svg +0 -1
- package/src/components/Icon/line/arrow-up.svg +0 -1
- package/src/components/Icon/line/basic-shape-diamond.svg +0 -1
- package/src/components/Icon/line/basic-shape-hexagon.svg +0 -1
- package/src/components/Icon/line/basic-shape-primary-circle-ellipse-round.svg +0 -1
- package/src/components/Icon/line/basic-shape-primary-square-rectangle.svg +0 -1
- package/src/components/Icon/line/basic-shape-shield.svg +0 -1
- package/src/components/Icon/line/computer-device-desktop-monitor.svg +0 -1
- package/src/components/Icon/line/computer-device-desktop.svg +0 -1
- package/src/components/Icon/line/computer-device-laptop.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-android-samsung-back.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-android-samsung.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-iphone-x-back.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-phone-iphone-x.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-tablet-touch.svg +0 -1
- package/src/components/Icon/line/computer-device-mobile-tablet.svg +0 -1
- package/src/components/Icon/line/computer-device-network-ethernet-cat6.svg +0 -1
- package/src/components/Icon/line/computer-device-network-lan-www.svg +0 -1
- package/src/components/Icon/line/computer-device-network-wifi-connection.svg +0 -1
- package/src/components/Icon/line/computer-device-network-wifi-router.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-alt.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-command-cmd-control-ctrl.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-option.svg +0 -1
- package/src/components/Icon/line/computer-keyboard-shift.svg +0 -1
- package/src/components/Icon/line/ecology-science-erlenmeyer-flask.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-left-arrow-rewind.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-pause.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-right-arrow-fast-forward.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-circle-stop-square.svg +0 -1
- package/src/components/Icon/line/entertainment-control-button-play-circle.svg +0 -1
- package/src/components/Icon/line/entertainment-party-popper-confetti.svg +0 -1
- package/src/components/Icon/line/image-flash-lightning.svg +0 -1
- package/src/components/Icon/line/image-photo-frame.svg +0 -1
- package/src/components/Icon/line/image-picture-flower.svg +0 -1
- package/src/components/Icon/line/interface-add.svg +0 -1
- package/src/components/Icon/line/interface-alert-error-exclamation-block-square.svg +0 -1
- package/src/components/Icon/line/interface-alert-error-x-block-square.svg +0 -1
- package/src/components/Icon/line/interface-alert-exclamation-diamond.svg +0 -1
- package/src/components/Icon/line/interface-alert-exclamation-triangle-warning.svg +0 -1
- package/src/components/Icon/line/interface-alert-information-circle.svg +0 -1
- package/src/components/Icon/line/interface-award-crown.svg +0 -1
- package/src/components/Icon/line/interface-bookmark-tag.svg +0 -1
- package/src/components/Icon/line/interface-bookmark.svg +0 -1
- package/src/components/Icon/line/interface-calendar-date-one.svg +0 -1
- package/src/components/Icon/line/interface-close.svg +0 -1
- package/src/components/Icon/line/interface-content-book-open-pages.svg +0 -1
- package/src/components/Icon/line/interface-content-book-page.svg +0 -1
- package/src/components/Icon/line/interface-content-file.svg +0 -8
- package/src/components/Icon/line/interface-content-folder.svg +0 -1
- package/src/components/Icon/line/interface-copy-clipboard.svg +0 -1
- package/src/components/Icon/line/interface-delete-bin-trash.svg +0 -1
- package/src/components/Icon/line/interface-dots-horizontal.svg +0 -1
- package/src/components/Icon/line/interface-dots-vertical.svg +0 -1
- package/src/components/Icon/line/interface-edit-attachment.svg +0 -1
- package/src/components/Icon/line/interface-edit-binocular.svg +0 -1
- package/src/components/Icon/line/interface-edit-magic-wand.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-eraser.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-paint-brush.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-paint-roller.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-pen.svg +0 -1
- package/src/components/Icon/line/interface-edit-tool-pencil.svg +0 -1
- package/src/components/Icon/line/interface-edit-view-eye.svg +0 -1
- package/src/components/Icon/line/interface-favorite-award.svg +0 -1
- package/src/components/Icon/line/interface-favorite-flag.svg +0 -1
- package/src/components/Icon/line/interface-favorite-heart.svg +0 -1
- package/src/components/Icon/line/interface-favorite-star.svg +0 -1
- package/src/components/Icon/line/interface-favorite-stars-shining.svg +0 -1
- package/src/components/Icon/line/interface-favorite-stars-sparkles.svg +0 -1
- package/src/components/Icon/line/interface-hierarchy-flowchart.svg +0 -1
- package/src/components/Icon/line/interface-home-house.svg +0 -1
- package/src/components/Icon/line/interface-hyperlink.svg +0 -1
- package/src/components/Icon/line/interface-lighting-brightness.svg +0 -1
- package/src/components/Icon/line/interface-lock-closed.svg +0 -1
- package/src/components/Icon/line/interface-lock-open-unlock.svg +0 -1
- package/src/components/Icon/line/interface-login-key.svg +0 -1
- package/src/components/Icon/line/interface-search.svg +0 -1
- package/src/components/Icon/line/interface-setting-cog.svg +0 -1
- package/src/components/Icon/line/interface-share-megaphone-bullhorn.svg +0 -1
- package/src/components/Icon/line/interface-share-rocket.svg +0 -1
- package/src/components/Icon/line/interface-share-satellite.svg +0 -1
- package/src/components/Icon/line/interface-share-space-ship.svg +0 -1
- package/src/components/Icon/line/interface-share.svg +0 -1
- package/src/components/Icon/line/interface-signal-square.svg +0 -1
- package/src/components/Icon/line/interface-text-formatting-left-open-quote.svg +0 -1
- package/src/components/Icon/line/interface-text-formatting-right-close-quote.svg +0 -1
- package/src/components/Icon/line/interface-time-clock-circle.svg +0 -1
- package/src/components/Icon/line/interface-time-hour-glass.svg +0 -1
- package/src/components/Icon/line/interface-users-multiple.svg +0 -1
- package/src/components/Icon/line/interface-validation-checkbox-square.svg +0 -1
- package/src/components/Icon/line/interface-weather-moon.svg +0 -1
- package/src/components/Icon/line/legal-justice-hammer-gavel.svg +0 -1
- package/src/components/Icon/line/mail-chat-bubble-square.svg +0 -1
- package/src/components/Icon/line/mail-send-email-paper-airplane.svg +0 -1
- package/src/components/Icon/line/mail-send-envelope.svg +0 -1
- package/src/components/Icon/line/mail-sign-hashtag.svg +0 -1
- package/src/components/Icon/line/money-cashier-receipt.svg +0 -1
- package/src/components/Icon/line/money-currency-dollar-pay.svg +0 -1
- package/src/components/Icon/line/money-graph-arrow-increase.svg +0 -1
- package/src/components/Icon/line/money-graph-bar-chart-increase.svg +0 -1
- package/src/components/Icon/line/nature-ecology-leaf.svg +0 -1
- package/src/components/Icon/line/phone-telephone.svg +0 -1
- package/src/components/Icon/line/programming-bug.svg +0 -1
- package/src/components/Icon/line/programming-cloud.svg +0 -1
- package/src/components/Icon/line/programming-computer-database-server.svg +0 -1
- package/src/components/Icon/line/programming-computer-database.svg +0 -1
- package/src/components/Icon/line/programming-module-four-layout.svg +0 -1
- package/src/components/Icon/line/programming-module-three.svg +0 -1
- package/src/components/Icon/line/programming-module.svg +0 -1
- package/src/components/Icon/line/programming-script-code.svg +0 -1
- package/src/components/Icon/line/shopping-cart.svg +0 -8
- package/src/components/Icon/line/shopping-gift-present.svg +0 -1
- package/src/components/Icon/line/shopping-shipping-box-parcel-package.svg +0 -1
- package/src/components/Icon/line/tag-new-circle.svg +0 -1
- package/src/components/Icon/line/travel-map-earth-globe.svg +0 -1
- package/src/components/Icon/localIcons.ts +0 -68
- package/src/components/Icon/solid/arrow-chevron-down.svg +0 -1
- package/src/components/Icon/solid/arrow-chevron-left.svg +0 -1
- package/src/components/Icon/solid/arrow-chevron-right.svg +0 -1
- package/src/components/Icon/solid/arrow-chevron-up.svg +0 -1
- package/src/components/Icon/solid/arrow-down.svg +0 -1
- package/src/components/Icon/solid/arrow-left.svg +0 -1
- package/src/components/Icon/solid/arrow-right.svg +0 -1
- package/src/components/Icon/solid/arrow-up.svg +0 -1
- package/src/components/Icon/solid/basic-shape-diamond.svg +0 -1
- package/src/components/Icon/solid/basic-shape-hexagon.svg +0 -1
- package/src/components/Icon/solid/basic-shape-primary-circle-ellipse-round.svg +0 -1
- package/src/components/Icon/solid/basic-shape-primary-square-rectangle.svg +0 -1
- package/src/components/Icon/solid/basic-shape-shield.svg +0 -1
- package/src/components/Icon/solid/computer-device-desktop-monitor.svg +0 -1
- package/src/components/Icon/solid/computer-device-desktop.svg +0 -1
- package/src/components/Icon/solid/computer-device-laptop.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung-back.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x-back.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-tablet-touch.svg +0 -1
- package/src/components/Icon/solid/computer-device-mobile-tablet.svg +0 -1
- package/src/components/Icon/solid/computer-device-network-ethernet-cat6.svg +0 -1
- package/src/components/Icon/solid/computer-device-network-lan-www.svg +0 -1
- package/src/components/Icon/solid/computer-device-network-wifi-connection.svg +0 -5
- package/src/components/Icon/solid/computer-device-network-wifi-router.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-alt.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-command-cmd-control-ctrl.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-option.svg +0 -1
- package/src/components/Icon/solid/computer-keyboard-shift.svg +0 -1
- package/src/components/Icon/solid/ecology-science-erlenmeyer-flask.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-left-arrow-rewind.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-pause.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-play.svg +0 -5
- package/src/components/Icon/solid/entertainment-control-button-circle-right-arrow-fast-forward.svg +0 -1
- package/src/components/Icon/solid/entertainment-control-button-circle-stop-square.svg +0 -1
- package/src/components/Icon/solid/entertainment-party-popper-confetti.svg +0 -1
- package/src/components/Icon/solid/image-flash-lightning.svg +0 -5
- package/src/components/Icon/solid/image-photo-frame.svg +0 -11
- package/src/components/Icon/solid/image-picture-flower.svg +0 -5
- package/src/components/Icon/solid/interface-add-square.svg +0 -5
- package/src/components/Icon/solid/interface-alert-error-exclamation-block-square.svg +0 -1
- package/src/components/Icon/solid/interface-alert-error-x-block-square.svg +0 -1
- package/src/components/Icon/solid/interface-alert-exclamation-diamond.svg +0 -1
- package/src/components/Icon/solid/interface-alert-exclamation-triangle-warning.svg +0 -1
- package/src/components/Icon/solid/interface-alert-information-circle.svg +0 -5
- package/src/components/Icon/solid/interface-award-crown.svg +0 -5
- package/src/components/Icon/solid/interface-bookmark-tag.svg +0 -1
- package/src/components/Icon/solid/interface-bookmark.svg +0 -5
- package/src/components/Icon/solid/interface-calendar-date-one.svg +0 -5
- package/src/components/Icon/solid/interface-close.svg +0 -8
- package/src/components/Icon/solid/interface-content-book-open-pages.svg +0 -13
- package/src/components/Icon/solid/interface-content-book-page.svg +0 -5
- package/src/components/Icon/solid/interface-content-file.svg +0 -5
- package/src/components/Icon/solid/interface-content-folder.svg +0 -1
- package/src/components/Icon/solid/interface-copy-clipboard.svg +0 -5
- package/src/components/Icon/solid/interface-delete-bin-trash.svg +0 -1
- package/src/components/Icon/solid/interface-dots-horizontal.svg +0 -1
- package/src/components/Icon/solid/interface-dots-vertical.svg +0 -1
- package/src/components/Icon/solid/interface-edit-attachment.svg +0 -5
- package/src/components/Icon/solid/interface-edit-binocular.svg +0 -5
- package/src/components/Icon/solid/interface-edit-magic-wand.svg +0 -7
- package/src/components/Icon/solid/interface-edit-tool-eraser.svg +0 -1
- package/src/components/Icon/solid/interface-edit-tool-paint-brush.svg +0 -1
- package/src/components/Icon/solid/interface-edit-tool-paint-roller.svg +0 -5
- package/src/components/Icon/solid/interface-edit-tool-pen.svg +0 -5
- package/src/components/Icon/solid/interface-edit-tool-pencil.svg +0 -1
- package/src/components/Icon/solid/interface-edit-view-eye.svg +0 -7
- package/src/components/Icon/solid/interface-favorite-award.svg +0 -5
- package/src/components/Icon/solid/interface-favorite-flag.svg +0 -1
- package/src/components/Icon/solid/interface-favorite-heart.svg +0 -5
- package/src/components/Icon/solid/interface-favorite-star.svg +0 -5
- package/src/components/Icon/solid/interface-favorite-stars-shining.svg +0 -1
- package/src/components/Icon/solid/interface-favorite-stars-sparkles.svg +0 -1
- package/src/components/Icon/solid/interface-hierarchy-flowchart.svg +0 -5
- package/src/components/Icon/solid/interface-home-house.svg +0 -5
- package/src/components/Icon/solid/interface-hyperlink.svg +0 -5
- package/src/components/Icon/solid/interface-lighting-brightness.svg +0 -22
- package/src/components/Icon/solid/interface-lock-closed.svg +0 -5
- package/src/components/Icon/solid/interface-lock-open-unlock.svg +0 -1
- package/src/components/Icon/solid/interface-login-key.svg +0 -5
- package/src/components/Icon/solid/interface-search.svg +0 -5
- package/src/components/Icon/solid/interface-setting-cog.svg +0 -5
- package/src/components/Icon/solid/interface-share-megaphone-bullhorn.svg +0 -5
- package/src/components/Icon/solid/interface-share-rocket.svg +0 -1
- package/src/components/Icon/solid/interface-share-satellite.svg +0 -8
- package/src/components/Icon/solid/interface-share-space-ship.svg +0 -1
- package/src/components/Icon/solid/interface-share.svg +0 -5
- package/src/components/Icon/solid/interface-signal-square.svg +0 -5
- package/src/components/Icon/solid/interface-text-formatting-left-open-quote.svg +0 -1
- package/src/components/Icon/solid/interface-text-formatting-right-close-quote.svg +0 -1
- package/src/components/Icon/solid/interface-time-clock-circle.svg +0 -5
- package/src/components/Icon/solid/interface-time-hour-glass.svg +0 -1
- package/src/components/Icon/solid/interface-users-multiple.svg +0 -11
- package/src/components/Icon/solid/interface-validation-checkbox-square.svg +0 -5
- package/src/components/Icon/solid/interface-weather-moon.svg +0 -5
- package/src/components/Icon/solid/legal-justice-hammer-gavel.svg +0 -1
- package/src/components/Icon/solid/mail-chat-bubble-square.svg +0 -5
- package/src/components/Icon/solid/mail-send-email-paper-airplane.svg +0 -5
- package/src/components/Icon/solid/mail-send-envelope.svg +0 -1
- package/src/components/Icon/solid/mail-sign-hashtag.svg +0 -5
- package/src/components/Icon/solid/money-cashier-receipt.svg +0 -1
- package/src/components/Icon/solid/money-currency-dollar-pay.svg +0 -5
- package/src/components/Icon/solid/money-graph-arrow-increase.svg +0 -5
- package/src/components/Icon/solid/money-graph-bar-chart-increase.svg +0 -1
- package/src/components/Icon/solid/nature-ecology-leaf.svg +0 -5
- package/src/components/Icon/solid/phone-telephone.svg +0 -5
- package/src/components/Icon/solid/programming-bug.svg +0 -5
- package/src/components/Icon/solid/programming-cloud.svg +0 -4
- package/src/components/Icon/solid/programming-computer-database-server.svg +0 -5
- package/src/components/Icon/solid/programming-computer-database.svg +0 -5
- package/src/components/Icon/solid/programming-module-four-layout.svg +0 -1
- package/src/components/Icon/solid/programming-module-three.svg +0 -1
- package/src/components/Icon/solid/programming-module.svg +0 -1
- package/src/components/Icon/solid/programming-script-code.svg +0 -5
- package/src/components/Icon/solid/shopping-cart.svg +0 -1
- package/src/components/Icon/solid/shopping-gift-present.svg +0 -16
- package/src/components/Icon/solid/shopping-shipping-box-parcel-package.svg +0 -11
- package/src/components/Icon/solid/tag-new-circle.svg +0 -7
- package/src/components/Icon/solid/travel-map-earth-globe.svg +0 -5
- package/src/components/SearchModal.vue +0 -305
- package/src/components/Sidebar.vue +0 -289
- package/src/components/SidebarElement.vue +0 -133
- package/src/components/SidebarGroup.vue +0 -12
- package/src/components/SimpleTable/SimpleCell.vue +0 -46
- package/src/components/SimpleTable/SimpleHeader.vue +0 -17
- package/src/components/SimpleTable/SimpleRow.vue +0 -5
- package/src/components/SimpleTable/SimpleTable.vue +0 -13
- package/src/components/SimpleTable/index.ts +0 -4
- package/src/declarations/typographic-base.d.ts +0 -1
- package/src/helpers/generateAxiosCodeFromRequest.ts +0 -42
- package/src/helpers/generateLaravelCodeFromRequest.ts +0 -20
- package/src/helpers/index.ts +0 -4
- package/src/helpers/objectMerge.ts +0 -19
- package/src/helpers/specHelpers.ts +0 -62
- package/src/helpers/transformToJson.test.ts +0 -7
- package/src/helpers/transformToJson.ts +0 -22
- package/src/hooks/useRefOnMount.ts +0 -12
- package/src/index.ts +0 -9
- package/src/standalone.ts +0 -27
- package/src/stores/template.ts +0 -66
- package/src/stores/utility.ts +0 -23
- package/src/types.ts +0 -150
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
withDefaults(
|
|
3
|
-
defineProps<{
|
|
4
|
-
muted?: boolean
|
|
5
|
-
frameless?: boolean
|
|
6
|
-
borderless?: boolean
|
|
7
|
-
}>(),
|
|
8
|
-
{
|
|
9
|
-
muted: false,
|
|
10
|
-
frameless: false,
|
|
11
|
-
borderless: false,
|
|
12
|
-
},
|
|
13
|
-
)
|
|
14
|
-
</script>
|
|
15
|
-
<template>
|
|
16
|
-
<div
|
|
17
|
-
:class="{
|
|
18
|
-
'card-content': true,
|
|
19
|
-
'card--muted': muted,
|
|
20
|
-
'card--frameless': frameless,
|
|
21
|
-
'card--borderless': borderless,
|
|
22
|
-
}">
|
|
23
|
-
<slot />
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
<style scoped>
|
|
27
|
-
.card-content {
|
|
28
|
-
overflow: auto;
|
|
29
|
-
padding: 10px 12px;
|
|
30
|
-
border-bottom: 1px solid var(--theme-border-color);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.card-content:last-of-type,
|
|
34
|
-
.card-content.card--borderless {
|
|
35
|
-
border-bottom: none;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.card--muted {
|
|
39
|
-
background: var(--theme-background-2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.card--frameless {
|
|
43
|
-
padding: 0;
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import CardContent from './CardContent.vue'
|
|
3
|
-
</script>
|
|
4
|
-
<template>
|
|
5
|
-
<CardContent>
|
|
6
|
-
<slot />
|
|
7
|
-
</CardContent>
|
|
8
|
-
</template>
|
|
9
|
-
<style scoped>
|
|
10
|
-
.card-footer {
|
|
11
|
-
border-top: 1px solid var(--theme-border-color);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import CardContent from './CardContent.vue'
|
|
3
|
-
</script>
|
|
4
|
-
<template>
|
|
5
|
-
<CardContent class="card-header">
|
|
6
|
-
<div class="card-header-slots">
|
|
7
|
-
<div class="card-header-slot card-header-title">
|
|
8
|
-
<slot />
|
|
9
|
-
</div>
|
|
10
|
-
<div class="card-header-slot card-header-actions">
|
|
11
|
-
<slot name="actions" />
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</CardContent>
|
|
15
|
-
</template>
|
|
16
|
-
<style scoped>
|
|
17
|
-
.card-header {
|
|
18
|
-
font-weight: var(--theme-semibold);
|
|
19
|
-
font-size: var(--theme-mini);
|
|
20
|
-
color: var(--theme-color-3);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.card-header-title {
|
|
24
|
-
text-transform: uppercase;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.card-header-slots {
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: space-between;
|
|
30
|
-
align-items: center;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.card-header-actions {
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { Tab } from '@headlessui/vue'
|
|
3
|
-
</script>
|
|
4
|
-
<template>
|
|
5
|
-
<Tab
|
|
6
|
-
v-slot="{ selected }"
|
|
7
|
-
as="template">
|
|
8
|
-
<button
|
|
9
|
-
:class="{ 'tab': true, 'tab-selected': selected }"
|
|
10
|
-
type="button">
|
|
11
|
-
<slot />
|
|
12
|
-
</button>
|
|
13
|
-
</Tab>
|
|
14
|
-
</template>
|
|
15
|
-
<style scoped>
|
|
16
|
-
.tab {
|
|
17
|
-
background: none;
|
|
18
|
-
border: none;
|
|
19
|
-
font-size: var(--theme-micro);
|
|
20
|
-
font-family: var(--theme-font);
|
|
21
|
-
color: var(--theme-color-2);
|
|
22
|
-
font-weight: var(--theme-semibold);
|
|
23
|
-
line-height: calc(var(--theme-micro) + 2px);
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.tab-selected {
|
|
28
|
-
color: var(--theme-color-1);
|
|
29
|
-
text-decoration: underline;
|
|
30
|
-
text-underline-offset: var(--theme-micro);
|
|
31
|
-
}
|
|
32
|
-
</style>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { TabGroup, TabList } from '@headlessui/vue'
|
|
3
|
-
|
|
4
|
-
import CardHeader from './CardHeader.vue'
|
|
5
|
-
|
|
6
|
-
const emit = defineEmits<{
|
|
7
|
-
(e: 'change', index: number): void
|
|
8
|
-
}>()
|
|
9
|
-
|
|
10
|
-
const changeTab = (index: number) => {
|
|
11
|
-
emit('change', index)
|
|
12
|
-
}
|
|
13
|
-
</script>
|
|
14
|
-
<template>
|
|
15
|
-
<CardHeader>
|
|
16
|
-
<TabGroup @change="changeTab">
|
|
17
|
-
<TabList class="tab-list">
|
|
18
|
-
<slot />
|
|
19
|
-
</TabList>
|
|
20
|
-
</TabGroup>
|
|
21
|
-
<template #actions>
|
|
22
|
-
<slot name="actions" />
|
|
23
|
-
</template>
|
|
24
|
-
</CardHeader>
|
|
25
|
-
</template>
|
|
26
|
-
<style scoped>
|
|
27
|
-
.tab-list {
|
|
28
|
-
display: flex;
|
|
29
|
-
gap: 6px;
|
|
30
|
-
position: relative;
|
|
31
|
-
}
|
|
32
|
-
</style>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as Card } from './Card.vue'
|
|
2
|
-
export { default as CardHeader } from './CardHeader.vue'
|
|
3
|
-
export { default as CardContent } from './CardContent.vue'
|
|
4
|
-
export { default as CardFooter } from './CardFooter.vue'
|
|
5
|
-
export { default as CardTabHeader } from './CardTabHeader.vue'
|
|
6
|
-
export { default as CardTab } from './CardTab.vue'
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useResizeObserver } from '@vueuse/core'
|
|
3
|
-
import { computed, onMounted, ref } from 'vue'
|
|
4
|
-
|
|
5
|
-
import { useRefOnMount } from '../../hooks/useRefOnMount'
|
|
6
|
-
import { useTemplateStore } from '../../stores/template'
|
|
7
|
-
import type { Spec } from '../../types'
|
|
8
|
-
import { FlowIcon } from '../Icon'
|
|
9
|
-
import Introduction from './Introduction'
|
|
10
|
-
import ReferenceEndpoint from './ReferenceEndpoint'
|
|
11
|
-
import ReferenceTag from './ReferenceTag.vue'
|
|
12
|
-
import Spinner from './Spinner.vue'
|
|
13
|
-
|
|
14
|
-
const props = defineProps<{ ready: boolean; spec: Spec }>()
|
|
15
|
-
|
|
16
|
-
const referenceEl = ref<HTMLElement | null>(null)
|
|
17
|
-
|
|
18
|
-
const isNarrow = ref(true)
|
|
19
|
-
|
|
20
|
-
useResizeObserver(
|
|
21
|
-
referenceEl,
|
|
22
|
-
(entries) => (isNarrow.value = entries[0].contentRect.width < 900),
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
const { state: templateState, setCollapsedSidebarItem } = useTemplateStore()
|
|
26
|
-
|
|
27
|
-
onMounted(() => {
|
|
28
|
-
if (props.spec.tags.length > 0) {
|
|
29
|
-
setCollapsedSidebarItem(props.spec.tags[0].name, true)
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
const fallBackServer = useRefOnMount(() => {
|
|
34
|
-
return {
|
|
35
|
-
url: window.location.origin,
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
const localServers = computed(() => {
|
|
40
|
-
if (props.spec.servers && props.spec.servers.length > 0) {
|
|
41
|
-
return props.spec.servers
|
|
42
|
-
} else if (fallBackServer.value) {
|
|
43
|
-
return [fallBackServer.value]
|
|
44
|
-
} else {
|
|
45
|
-
return [{ url: '' }]
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
</script>
|
|
49
|
-
<template>
|
|
50
|
-
<div
|
|
51
|
-
ref="referenceEl"
|
|
52
|
-
:class="{
|
|
53
|
-
'references-narrow': isNarrow,
|
|
54
|
-
}">
|
|
55
|
-
<template v-if="ready">
|
|
56
|
-
<Introduction
|
|
57
|
-
:info="spec.info"
|
|
58
|
-
:servers="localServers" />
|
|
59
|
-
<template
|
|
60
|
-
v-for="(tag, index) in spec.tags"
|
|
61
|
-
:key="tag.id">
|
|
62
|
-
<div class="reference">
|
|
63
|
-
<ReferenceTag
|
|
64
|
-
:index="index"
|
|
65
|
-
:tag="tag" />
|
|
66
|
-
<button
|
|
67
|
-
v-if="
|
|
68
|
-
index !== 0 &&
|
|
69
|
-
!templateState.collapsedSidebarItems[tag.name] &&
|
|
70
|
-
tag.operations?.length > 1
|
|
71
|
-
"
|
|
72
|
-
class="show-more"
|
|
73
|
-
type="button"
|
|
74
|
-
@click="setCollapsedSidebarItem(tag.name, true)">
|
|
75
|
-
Show More
|
|
76
|
-
<FlowIcon
|
|
77
|
-
class="show-more-icon"
|
|
78
|
-
icon="ChevronDown" />
|
|
79
|
-
</button>
|
|
80
|
-
<template
|
|
81
|
-
v-if="index === 0 || templateState.collapsedSidebarItems[tag.name]">
|
|
82
|
-
<ReferenceEndpoint
|
|
83
|
-
v-for="operation in tag.operations"
|
|
84
|
-
:key="operation.operationId"
|
|
85
|
-
:operation="operation"
|
|
86
|
-
:parentTag="tag"
|
|
87
|
-
:server="localServers[0]" />
|
|
88
|
-
</template>
|
|
89
|
-
</div>
|
|
90
|
-
</template>
|
|
91
|
-
</template>
|
|
92
|
-
<div
|
|
93
|
-
v-else
|
|
94
|
-
class="render-loading">
|
|
95
|
-
<Spinner />
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
</template>
|
|
99
|
-
<style scoped>
|
|
100
|
-
.render-loading {
|
|
101
|
-
height: calc(
|
|
102
|
-
var(--scalar-api-reference-full-height) -
|
|
103
|
-
var(--scalar-api-reference-theme-header-height)
|
|
104
|
-
);
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
}
|
|
109
|
-
.show-more {
|
|
110
|
-
background: var(--theme-background-1);
|
|
111
|
-
appearance: none;
|
|
112
|
-
border: none;
|
|
113
|
-
border: 1px solid var(--theme-border-color);
|
|
114
|
-
margin: auto;
|
|
115
|
-
padding: 8px 12px;
|
|
116
|
-
border-radius: 30px;
|
|
117
|
-
color: var(--theme-color-1);
|
|
118
|
-
font-weight: var(--theme-semibold);
|
|
119
|
-
font-size: var(--theme-small);
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
margin-top: -48px;
|
|
124
|
-
margin-bottom: 48px;
|
|
125
|
-
position: relative;
|
|
126
|
-
}
|
|
127
|
-
.show-more:hover {
|
|
128
|
-
color: var(--theme-color-2);
|
|
129
|
-
cursor: pointer;
|
|
130
|
-
}
|
|
131
|
-
.show-more-icon {
|
|
132
|
-
width: 14px;
|
|
133
|
-
height: 14px;
|
|
134
|
-
margin-left: 3px;
|
|
135
|
-
}
|
|
136
|
-
.show-more:active {
|
|
137
|
-
box-shadow: 0 0 0 1px var(--theme-border-color);
|
|
138
|
-
}
|
|
139
|
-
@media (max-width: 1165px) {
|
|
140
|
-
.show-more {
|
|
141
|
-
margin-top: -24px;
|
|
142
|
-
margin-bottom: 24px;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
</style>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { useClipboard } from '@scalar/use-clipboard'
|
|
3
|
-
|
|
4
|
-
defineProps<{
|
|
5
|
-
server?: {
|
|
6
|
-
url: string
|
|
7
|
-
description?: string
|
|
8
|
-
}
|
|
9
|
-
}>()
|
|
10
|
-
|
|
11
|
-
const { copyToClipboard } = useClipboard()
|
|
12
|
-
</script>
|
|
13
|
-
<template>
|
|
14
|
-
<template v-if="server">
|
|
15
|
-
<a
|
|
16
|
-
class="base-url"
|
|
17
|
-
:title="server.description"
|
|
18
|
-
@click="copyToClipboard(server.url)">
|
|
19
|
-
{{ server.url }}
|
|
20
|
-
</a>
|
|
21
|
-
</template>
|
|
22
|
-
</template>
|
|
23
|
-
<style scoped>
|
|
24
|
-
.base-url {
|
|
25
|
-
color: var(--theme-color-2);
|
|
26
|
-
font-size: var(--theme-mini);
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
display: flex;
|
|
29
|
-
font-family: var(--theme-font-code);
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
</style>
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { type TargetId } from 'httpsnippet-lite'
|
|
3
|
-
import { computed } from 'vue'
|
|
4
|
-
|
|
5
|
-
import { useTemplateStore } from '../../../stores/template'
|
|
6
|
-
import type { Info, Server } from '../../../types'
|
|
7
|
-
import { Card, CardContent, CardFooter, CardHeader } from '../../Card'
|
|
8
|
-
import MarkdownRenderer from '../MarkdownRenderer.vue'
|
|
9
|
-
import BaseUrl from './BaseUrl.vue'
|
|
10
|
-
import LanguageSelector from './LanguageSelector.vue'
|
|
11
|
-
|
|
12
|
-
defineProps<{
|
|
13
|
-
info: Info
|
|
14
|
-
servers: Server[]
|
|
15
|
-
}>()
|
|
16
|
-
|
|
17
|
-
const { state, getLanguageTitleByKey } = useTemplateStore()
|
|
18
|
-
|
|
19
|
-
// TODO: Doesn’t work … why?
|
|
20
|
-
// type TargetIdWithoutHttp = Exclude<TargetId, 'http'>
|
|
21
|
-
type TargetIdWithoutHttp = TargetId
|
|
22
|
-
|
|
23
|
-
const standardLibrary = computed(() => {
|
|
24
|
-
const standardLibraries: Record<
|
|
25
|
-
TargetIdWithoutHttp | 'axios' | 'laravel',
|
|
26
|
-
string
|
|
27
|
-
> = {
|
|
28
|
-
shell: 'Curl',
|
|
29
|
-
ruby: 'Net::HTTP',
|
|
30
|
-
node: 'HTTPS',
|
|
31
|
-
php: 'cURL',
|
|
32
|
-
python: 'http.client',
|
|
33
|
-
c: 'libcurl',
|
|
34
|
-
clojure: 'clj-http',
|
|
35
|
-
csharp: 'RestClient',
|
|
36
|
-
go: 'net/http',
|
|
37
|
-
java: 'Unirest',
|
|
38
|
-
javascript: 'XMLHttpRequest',
|
|
39
|
-
kotlin: 'OkHttp',
|
|
40
|
-
objc: 'NSURLSession',
|
|
41
|
-
ocaml: 'Cohttp',
|
|
42
|
-
powershell: 'Invoke-WebRequest',
|
|
43
|
-
r: 'httr',
|
|
44
|
-
swift: 'NSURLSession',
|
|
45
|
-
// TODO: Remove, but fix `TargetIdWithoutHttp` first
|
|
46
|
-
http: '',
|
|
47
|
-
laravel: '',
|
|
48
|
-
axios: '',
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return standardLibraries[state.preferredLanguage] ?? ''
|
|
52
|
-
})
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<template>
|
|
56
|
-
<div class="reference">
|
|
57
|
-
<div class="reference-container">
|
|
58
|
-
<div class="copy">
|
|
59
|
-
<div class="editor-heading">
|
|
60
|
-
<h1
|
|
61
|
-
class="heading"
|
|
62
|
-
:class="{ loading: !info.title }">
|
|
63
|
-
{{ info.title || ' ' }}
|
|
64
|
-
</h1>
|
|
65
|
-
</div>
|
|
66
|
-
<p class="tag-description">
|
|
67
|
-
<template v-if="info.description">
|
|
68
|
-
<MarkdownRenderer :value="info.description" />
|
|
69
|
-
</template>
|
|
70
|
-
<!-- @vue-ignore -->
|
|
71
|
-
<template
|
|
72
|
-
v-for="index in [...Array(8).keys()]"
|
|
73
|
-
v-else
|
|
74
|
-
:key="index">
|
|
75
|
-
<span class="loading" />
|
|
76
|
-
</template>
|
|
77
|
-
</p>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="example flex-col gap-1">
|
|
80
|
-
<Card v-if="servers.length > 0">
|
|
81
|
-
<CardHeader muted>
|
|
82
|
-
Base URL{{ servers?.length > 1 ? 's' : '' }}
|
|
83
|
-
</CardHeader>
|
|
84
|
-
<CardContent
|
|
85
|
-
v-for="server in servers"
|
|
86
|
-
:key="server.url"
|
|
87
|
-
muted>
|
|
88
|
-
<BaseUrl :server="server" />
|
|
89
|
-
</CardContent>
|
|
90
|
-
</Card>
|
|
91
|
-
|
|
92
|
-
<Card>
|
|
93
|
-
<CardHeader>Client Libraries</CardHeader>
|
|
94
|
-
<CardContent frameless>
|
|
95
|
-
<LanguageSelector />
|
|
96
|
-
</CardContent>
|
|
97
|
-
<CardFooter
|
|
98
|
-
class="font-mono"
|
|
99
|
-
muted
|
|
100
|
-
style="font-size: var(--theme-mini); color: var(--theme-color-2)">
|
|
101
|
-
{{ getLanguageTitleByKey(state.preferredLanguage) }}
|
|
102
|
-
{{ standardLibrary }}
|
|
103
|
-
</CardFooter>
|
|
104
|
-
</Card>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
</template>
|
|
109
|
-
<style scoped>
|
|
110
|
-
.heading {
|
|
111
|
-
margin-top: 0px !important;
|
|
112
|
-
}
|
|
113
|
-
.loading {
|
|
114
|
-
background: var(--theme-background-2);
|
|
115
|
-
animation: loading-skeleton 2s infinite alternate;
|
|
116
|
-
border-radius: var(--theme-radius-lg);
|
|
117
|
-
}
|
|
118
|
-
.heading.loading {
|
|
119
|
-
width: 80%;
|
|
120
|
-
}
|
|
121
|
-
.tag-description .loading {
|
|
122
|
-
height: 20px;
|
|
123
|
-
margin-bottom: 4px;
|
|
124
|
-
width: 100%;
|
|
125
|
-
display: inline-block;
|
|
126
|
-
}
|
|
127
|
-
.tag-description .loading:first-of-type {
|
|
128
|
-
margin-top: 12px;
|
|
129
|
-
}
|
|
130
|
-
.tag-description .loading:last-of-type {
|
|
131
|
-
width: 40%;
|
|
132
|
-
}
|
|
133
|
-
@keyframes loading-skeleton {
|
|
134
|
-
from {
|
|
135
|
-
background: var(--theme-background-2);
|
|
136
|
-
}
|
|
137
|
-
to {
|
|
138
|
-
background: var(--theme-background-3);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
</style>
|