-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(extension): create setup and first feature
Features for extension - Search section - Navigate using scroll and see the documentation as a extension - Extension saves the last section that the user read in order to show it again when he going the extension
- Loading branch information
Showing
18 changed files
with
9,952 additions
and
16,323 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
INLINE_RUNTIME_CHUNK=false | ||
PUBLIC_URL=./ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SECTION_ID = "SECTION_ID"; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"short_name": "Prettyrest", | ||
"name": "Pretty Rest API Documentacion", | ||
"manifest_version": 3, | ||
"version": "0.0.1", | ||
"icons": {}, | ||
"action": { | ||
"default_title": "Pretty Rest API Documentacion", | ||
"default_popup": "index.html" | ||
}, | ||
"permissions": ["fileBrowserHandler", "background", "storage"], | ||
"host_permissions": ["*://*/*"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SECTION_ID = "SECTION_ID"; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,8 +69,7 @@ interface SectionItem { | |
is_core_resource?: boolean; | ||
} | ||
|
||
|
||
interface Role { | ||
label: string; | ||
value: string; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
margin: 0; | ||
/* Just for the extension */ | ||
height: 600px; | ||
width: 800px; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import PrettyRestDoc from './lib/PrettyRestDoc'; | ||
import docSwagger from "./petstore.json"; | ||
import APIDoc from "./doc"; | ||
import { OpenAPIV3 } from "openapi-types"; | ||
import './index.css' | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import APIDoc from "./doc"; | ||
import "./index.css"; | ||
import PrettyRestDoc from "./lib/PrettyRestDoc"; | ||
import docSwagger from "./petstore.json"; | ||
|
||
ReactDOM.render( | ||
const root = ReactDOM.createRoot( | ||
document.getElementById("root") as HTMLElement | ||
); | ||
root.render( | ||
<React.StrictMode> | ||
<PrettyRestDoc | ||
docCustom={APIDoc} | ||
docSwagger={docSwagger as unknown as OpenAPIV3.Document} | ||
roles={[ | ||
{ | ||
label: "Client", | ||
value: 'client' | ||
}, | ||
{ | ||
label: "Admin", | ||
value: 'admin' | ||
}]} | ||
<React.StrictMode> | ||
<PrettyRestDoc | ||
docCustom={APIDoc} | ||
docSwagger={docSwagger as unknown as OpenAPIV3.Document} | ||
roles={[ | ||
{ | ||
label: "Client", | ||
value: "client", | ||
}, | ||
{ | ||
label: "Admin", | ||
value: "admin", | ||
}, | ||
]} | ||
/> | ||
</React.StrictMode>, | ||
document.getElementById('root') | ||
); | ||
</React.StrictMode> | ||
</React.StrictMode> | ||
); |
This file contains 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
Oops, something went wrong.