Skip to content

Commit

Permalink
[ Quantumcast ] - New Command "Open Cloudflow API Docs" (#6089)
Browse files Browse the repository at this point in the history
* Update quantumcast extension

- Release 0.0.2 (#8)
- release 0.0.1 (#5)
- Modified CHANGELOG (#4)
- Merge initial release 0.0.1 (#3)
- Dev (#2)
- npm update (#1)
- Added logos
- Initial project setup
- Update README.md
- Initial commit

* Update quantumcast extension

- eslint mod
- V0.0.3 (#10)
- V0.0.3 (#9)

* Update quantumcast extension

- Add category
- eslint mod
- V0.0.3 (#10)
- V0.0.3 (#9)

* Update open-cloudflow-api-docs.tsx

* Update open-cloudflow-api-docs.tsx

---------

Co-authored-by: Per Nielsen Tikær <[email protected]>
  • Loading branch information
jcgerhard and pernielsentikaer authored Apr 25, 2023
1 parent 41998ab commit b8d5b52
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 80 deletions.
25 changes: 10 additions & 15 deletions extensions/quantumcast/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
# Quantumcast Changelog

## [0.0.2] - 2023-04-18

✨ New

- Adding new command `Open Cloudflow Workspace`
## [0.0.3] - 2023-04-21

💎 Improvements
- ✨ New - Adding new command `Open Cloudflow API Documentation`
- 💎 Improvements - Update package `quantumlib` to v0.0.9

- Update package `quantumlib` to v0.0.8
- Update package `@raycast/api` to v1.49.3
- Redesign the README

🐞 Fixes
## [0.0.2] - 2023-04-18

- Fixed some typos in list titles
- ✨ New - Adding new command `Open Cloudflow Workspace`
- 💎 Improvements - Update package `quantumlib` to v0.0.8
- 💎 Improvements - Update package `@raycast/api` to v1.49.3
- 💎 Improvements - Redesign the README
- 🐞 Fixes - Fixed some typos in list titles

## [0.0.1] - 2023-02-25

✨ New

- Initial release 🥳
- ✨ New - Initial release 🥳
Binary file modified extensions/quantumcast/metadata/quantumcast-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
127 changes: 65 additions & 62 deletions extensions/quantumcast/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions extensions/quantumcast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"author": "jcgerhard",
"categories": [
"Developer Tools",
"Productivity"
"Productivity",
"Applications"
],
"license": "MIT",
"commands": [
Expand All @@ -24,6 +25,13 @@
"subtitle": "Quantumcast",
"description": "Open a Cloudflow workspace in the browser",
"mode": "view"
},
{
"name": "open-cloudflow-api-docs",
"title": "Open Cloudflow API Documentation",
"subtitle": "Quantumcast",
"description": "Open a Cloudflow API documentation in the browser",
"mode": "view"
}
],
"preferences": [
Expand All @@ -38,7 +46,7 @@
],
"dependencies": {
"@raycast/api": "^1.48.8",
"quantumlib": "^0.0.8"
"quantumlib": "^0.0.9"
},
"devDependencies": {
"@raycast/eslint-config": "^1.0.5",
Expand Down
25 changes: 25 additions & 0 deletions extensions/quantumcast/src/open-cloudflow-api-docs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { List, Action, ActionPanel, getPreferenceValues } from '@raycast/api';
import { cloudflow } from 'quantumlib';

export default function Command() {
const { cloudflowBaseUrl } = getPreferenceValues();

return (
<List searchBarPlaceholder="Select a documentation to open">
{cloudflow.getApiDocumentations(cloudflowBaseUrl).map((doc) => (
<List.Item
id={doc.name}
key={doc.name}
title={doc.name}
icon="quantumcast.png"
accessories={[{ text: doc.location }]}
actions={
<ActionPanel title="Quantumcast - API Documentation">
<Action.OpenInBrowser url={`${doc.url}`} />
</ActionPanel>
}
/>
))}
</List>
);
}
2 changes: 1 addition & 1 deletion extensions/quantumcast/src/open-cloudflow-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function Command() {
id={workspace.name}
key={workspace.name}
title={workspace.name}
subtitle={workspace.license}
icon="../assets/quantumcast.png"
accessories={[{ text: workspace.license }]}
actions={
<ActionPanel title="Quantumcast - Workspaces">
<Action.OpenInBrowser url={`${workspace.url}`} />
Expand Down

0 comments on commit b8d5b52

Please sign in to comment.