-
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.
- Loading branch information
0 parents
commit 9b4ee93
Showing
30 changed files
with
8,764 additions
and
0 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,4 @@ | ||
.vscode | ||
node_modules | ||
dist | ||
out |
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,33 @@ | ||
{ | ||
"root": true, | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"quotes": ["error", "single"], | ||
"semi": [ "error", "always" ], | ||
"no-undef": "error", | ||
"no-unused-vars": "error" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ "src/foreground/**/*" ], | ||
"env": { | ||
"es2021": true, | ||
"browser": true | ||
}, | ||
"globals": { | ||
"api": false | ||
} | ||
}, | ||
{ | ||
"files": [ "src/background/**/*", "*.config.js" ], | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"commonjs": true | ||
} | ||
} | ||
] | ||
} |
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,36 @@ | ||
name: Generate Binaries | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
publish: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: macos-latest | ||
- os: windows-latest | ||
name: Generate binaries for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
DEBUG: 'electron-forge:*' | ||
steps: | ||
- if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt-get install -y rpm | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- run: npm ci | ||
- run: npm run package | ||
- run: npm run make | ||
- uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
file: out/make/**/* | ||
file_glob: true | ||
overwrite: true |
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,37 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.node-version' | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run build:vite | ||
|
||
binaries: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: macos-latest | ||
- os: windows-latest | ||
name: Generate binaries for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
DEBUG: 'electron-forge:*' | ||
steps: | ||
- if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt-get install -y rpm | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- run: npm ci | ||
- run: npm run package | ||
- run: npm run make |
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,4 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
out |
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 @@ | ||
20.12.1 |
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,7 @@ | ||
Copyright 2024 David Recuenco | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,28 @@ | ||
# Cheesecuts | ||
|
||
Apparently I had to write \~400 lines of code to display a blank page with a summary of shortcuts. Yes. | ||
|
||
## Usage | ||
|
||
Install, then create a `shortcuts.yaml` file in `~/.cheesecuts` with the following format: | ||
|
||
```yaml | ||
groups: | ||
- General | ||
|
||
shortcuts: | ||
- name: Alfred | ||
keys: ⌘ Spacebar | ||
group: General | ||
- name: AltTab | ||
keys: ⌘ Tab | ||
group: General | ||
- name: Quit app | ||
keys: ⌘ Q | ||
``` | ||
|
||
## Attributions | ||
|
||
- [App Logo](https://commons.wikimedia.org/wiki/File:Cheesecake.svg) | ||
- [IconGenerator](https://github.com/onmyway133/IconGenerator) | ||
- [Bootstrap Icons](https://icons.getbootstrap.com/) |
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,27 @@ | ||
module.exports = { | ||
packagerConfig: { | ||
icon: './public/logo' | ||
}, | ||
makers: [ | ||
{ | ||
name: '@electron-forge/maker-squirrel', | ||
config: {} | ||
}, | ||
{ | ||
name: '@electron-forge/maker-zip', | ||
platforms: ['darwin'] | ||
}, | ||
{ | ||
name: '@electron-forge/maker-deb', | ||
config: { | ||
bin: 'Cheesecuts' | ||
} | ||
}, | ||
{ | ||
name: '@electron-forge/maker-rpm', | ||
config: { | ||
bin: 'Cheesecuts' | ||
} | ||
} | ||
] | ||
}; |
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,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"> | ||
<title>Cheesecuts</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script src="./src/foreground/main.js" type="module"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.