Conversation
Add vite-plugin-checker to dev dependencies and enable it in vite.config.ts (vueTsc: true) so Vite runs TypeScript/template checks during development. Update package.json and package-lock.json accordingly. Also remove an unused ClipboardDocumentIcon import from ProfileArea.vue.
Adjust contextmenu event modifiers in ProfileArea.vue to prevent menu conflicts: removed .self on the sidebar handler and added .stop.prevent to folder, profile and empty-state handlers so their right-click events don't bubble up to the sidebar. Ensures the correct context menu is shown depending on where the user right-clicks.
Update App.vue layout: change container alignment from items-start to items-stretch so grid children fill available height, and add bg-gray-50 and h-full to the left column wrapper to give the ProfileArea a full-height, light background. This improves visual consistency and ensures the sidebar spans the full viewport height.
Add Tailwind's `min-h-screen` utility to the left column wrapper so the ProfileArea spans the full viewport height. This fixes layout issues where the sidebar could be shorter than the page when content is limited; no functional changes beyond styling.
Add an absolute-positioned GitHub icon button in the App.vue layout for quick access to the repository. The root container was made relative to allow the button to sit in the top-right (right-3 top-3). The anchor includes accessibility attributes (aria-label, title), opens the repo in a new tab with rel="noopener noreferrer", and uses an inline SVG GitHub logo with Tailwind styling to match the UI.
Remove explicit border, background, text color, shadow and hover utility classes from the top-right GitHub repository anchor in App.vue to simplify its styling and rely on higher-level or default styles.
Introduce a Cookie payload mode and wire cookie data through the UI, model, store, and request preview. PayloadArea.vue: add Cookie tab UI, cookie parameter add/remove handlers, cookieParameters state, parsing from/to profile cookie string, and use activePanel for panel switching. PreviewArea.vue: include Cookie header when cfg.cookie is present for GET and POST request generation. ProfileArea.vue: initialize and reset cookie field for new profiles. models.ts and stores.ts: add cookie property to Profile type and default profile values. This enables editing, persisting, and previewing cookies as part of saved profiles.
Introduce panelMemoryByProfile to remember the last active payload panel for each profile (keyed by profile id). loadCurrentProfile now restores activePanel from this memory (falling back to profile.payloadMode or 'GET'), and switchPayloadMode updates the memory (including when switching to 'Cookie'), ensuring the UI restores the last-used panel per profile.
Add an enabled checkbox per query/body/cookie parameter and persist hidden params separately. Introduces hiddenQuery/hiddenBody/hiddenCookie fields on Profile, updates default profiles in stores, and adjusts UI column layout to accommodate the checkbox. Adds parsing helpers (form-like, text pairs, cookie string), and updates load/save logic to parse enabled vs hidden parameters and serialize them back to profile fields (content-type aware for bodies, JSON/urlencoded/text). Initializes new parameter rows with an enabled flag and ensures updateProfileInStores includes hidden fields.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements to the payload configuration and request preview features, focusing on improved parameter management and the addition of cookie handling. The changes enable users to manage visible and hidden query, body, and cookie parameters, and to include cookies in request previews. The UI is updated to support these features, providing more granular control over request construction.
The most important changes are:
Payload Parameter Management Enhancements:
Cookie Support:
Cookieheader when cookies are present in the configuration.UI and Usability Improvements:
These changes provide users with fine-grained control over request construction, especially for complex scenarios involving cookies and conditional parameter inclusion.