-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update supernotes extension (#11598)
* Update supernotes extension - Fix colors and update API definitions - Initial commit * Update supernotes extension - Fix colors and update API definitions - Fix colors and update API definitions * Update images to have consistent background
- Loading branch information
Showing
14 changed files
with
68 additions
and
39 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
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,6 +1,9 @@ | ||
# Supernotes ˣ Raycast | ||
|
||
Interact with the Supernotes platform via Raycast | ||
Interact with [Supernotes](https://supernotes.app/), the knowledge management and note-taking app. Search your card library, preview your cards in Raycast and open a selected card directly in the Supernotes desktop app. You can also quickly create simple cards within Raycast. | ||
|
||
## Required Configuration | ||
In order to use this extension you need a Supernotes API Key. You can follow [this guide](https://docs.supernotes.app/en/articles/5257176-api-access) in order to get an API key for your Supernotes account. | ||
![](./metadata/supernotes-0.png) | ||
|
||
## Setup | ||
|
||
Please generate a Supernotes API Key from within your 'API & Integrations' Settings in Supernotes. If you require additional help, you can follow [this in-depth guide](https://docs.supernotes.app/en/articles/5257176-api-access). |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,21 +1,33 @@ | ||
import { Color } from "@raycast/api"; | ||
|
||
import { ICard } from "./types"; | ||
|
||
export const ColorMap: Record<string, string> = { | ||
lightBlue: Color.Blue, | ||
lightPink: Color.Magenta, | ||
lightPurple: Color.Purple, | ||
lightGreen: Color.Green, | ||
lightYellow: Color.Yellow, | ||
lightOrange: Color.Orange, | ||
lightRed: Color.Red, | ||
blue: Color.Blue, | ||
pink: Color.Magenta, | ||
purple: Color.Purple, | ||
green: Color.Green, | ||
yellow: Color.Yellow, | ||
orange: Color.Orange, | ||
red: Color.Red, | ||
}; | ||
|
||
export const determineCardColor = (card: ICard) => { | ||
if (card.membership.personal_color) { | ||
return ColorMap[card.membership.personal_color]; | ||
} else if (card.data.color) { | ||
return ColorMap[card.data.color]; | ||
} else { | ||
return Color.SecondaryText; | ||
} | ||
}; | ||
|
||
export const PermMap: Record<string, string> = { | ||
"-1": "Inherit", | ||
"2369": "Ghost", | ||
"207695": "Reader", | ||
"207823": "Contributor", | ||
"211951": "Editor", | ||
"524287": "Moderator", | ||
"2097151": "Author", | ||
"0": "None", | ||
"1318": "Reader", | ||
"1382": "Contributor", | ||
"1398": "Editor", | ||
"4094": "Moderator", | ||
"8190": "Author", | ||
}; |
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