mirror of
https://github.com/LukeHagar/OpenAPI.gg.git
synced 2025-12-10 04:20:40 +00:00
Adjusted styling, fixed linting warning
This commit is contained in:
@@ -140,7 +140,7 @@ export const isValidPath = (path: string) => {
|
||||
const pathRegex = /(\/[a-zA-Z-]+)+|\//gm;
|
||||
const pathParts = pathWithoutVariables.match(pathRegex);
|
||||
// the fallback is to return false if the pathParts array is null
|
||||
return pathParts?.length === 1 ?? false;
|
||||
return pathParts?.length === 1 ? true : false;
|
||||
};
|
||||
|
||||
/// sorts the paths in the OpenAPI document alphabetically
|
||||
|
||||
@@ -16,24 +16,24 @@
|
||||
<Modal />
|
||||
|
||||
<div class="w-full h-full">
|
||||
<AppBar>
|
||||
<AppBar padding="p-2">
|
||||
<svelte:fragment slot="lead">
|
||||
<h4 class="h4">
|
||||
<h1>
|
||||
OpenAPI generator
|
||||
<code class="ml-2 variant-filled-success p-1 px-2 rounded-container-token"> 3.1.0 </code>
|
||||
</h4>
|
||||
<code class="text-xs ml-2 variant-filled-success p-1 px-2 rounded-container-token"> 3.1.0 </code>
|
||||
</h1>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="trail">
|
||||
<a
|
||||
href="https://www.speakeasyapi.dev/openapi"
|
||||
target="_blank"
|
||||
class="btn variant-filled-surface"
|
||||
class="btn variant-filled-surface btn-sm hover:variant-filled-primary"
|
||||
>
|
||||
Schema Reference
|
||||
</a>
|
||||
<button
|
||||
type="button"
|
||||
class="btn variant-ringed-error hover:variant-filled-error"
|
||||
class="btn variant-ringed-error btn-sm hover:variant-filled-error"
|
||||
on:click={() => {
|
||||
if (confirm('Are you sure you want to reset ALL current inputs?')) {
|
||||
// remove `openApi` from localStorage
|
||||
|
||||
Reference in New Issue
Block a user