Skip to content

Commit

Permalink
Added Esse extension (#3245)
Browse files Browse the repository at this point in the history
* Initital commit (?? lol wut)

* Coalesced clipboard and text updates into one use of useState

* Organized esse actions into categories

* Put reading the clipboard in a useEffect to avoid redundant re-renders
Minor cleanup

* Updated icon

* Initial commit

* Refreshed site dropdown after adding new site
Added check for duplicate URLs as well
Improved actions
Added preference to prefill from clipboard

* Implemented actually opening a search in a browser
Implemented default saved site
Improved action panel logic

* Cleaned up code
Implemented editing deletion of saved sites

* Fixed bug where ManageSavedSites wouldnt update when edits were made (due to not being re-rendered, due to changes occuring in its props but not its state and its parent not having a chance to rerender it)

* Implemented correct updating of default sites

* Added default list of saved sites when json file is missing
Added favicon to ManageSavedSites
Removed explicity noop action
Minor URL validation, checking for template string

* Added deletion as top-level command in ManageSavedSites
Renamed extension

* Renamed some stuff, updated strings in package.json
Added icon

* Added readme

* Added site title to delete action title

* Added icon and screenshots

* Added ability to respect bangs in query by stripping them before passing the query to search suggestions
Fixed bug in preference names not matching what was expected by JS

* Changed extension name in package-lock.json

* Made key of first item in search suggestions stable to avoid filckering action in bottom bar

* Added "bang" setting to readme

* Updated title of editing panel when editing vs. adding a site

* Fixed bug where selected search suggestion wasn't used at all!

* Added DuckDuckGo and "none" as search suggestions providers

* Updated readme with new settings

* Added markdown lint ignore directives to readme

* Minor improvements to readme

* Added error view for when Esse is not installed

* Added screenshots

* Updated packages in package.json
Updated readme

* Removed unused useNavigation

* Fixed in accordance with linters

* Update CHANGELOG.md

Co-authored-by: Per Nielsen Tikær <[email protected]>
  • Loading branch information
rben01 and pernielsentikaer authored Oct 16, 2022
1 parent 4ef2e91 commit 0de1286
Show file tree
Hide file tree
Showing 16 changed files with 3,753 additions and 0 deletions.
32 changes: 32 additions & 0 deletions extensions/esse-actions/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"root": true,
"env": {
"es2020": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
]
}
}
7 changes: 7 additions & 0 deletions extensions/esse-actions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# misc
.DS_Store
5 changes: 5 additions & 0 deletions extensions/esse-actions/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"singleQuote": false,
"useTabs": true
}
14 changes: 14 additions & 0 deletions extensions/esse-actions/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"problemMatcher": [
"$eslint-compact"
],
"label": "npm: dev",
"detail": "ray develop"
}
]
}
3 changes: 3 additions & 0 deletions extensions/esse-actions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Esse Actions Changelog

## [Initial Version] - 2022-10-17
11 changes: 11 additions & 0 deletions extensions/esse-actions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Esse Actions

Use the [Esse](https://esse.ameba.co/) app to perform transformations on text.

When run, this extension reads the text on the clipboard, then presents a list of
Esse's actions for you to choose from. After choosing an action, the transformed text is
written back to the clipboard.

Note that you must install the standalone version from GitHub,
<https://github.com/amebalabs/Esse>, and not the Mac App Store version, as the Mac App
Store version does not include the `EsseCommandLine` executable due to sandboxing.
Binary file added extensions/esse-actions/assets/esse-icon.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.
Loading

0 comments on commit 0de1286

Please sign in to comment.