Skip to content

Commit 9b4ee93

Browse files
committed
INIT repository
0 parents  commit 9b4ee93

30 files changed

+8764
-0
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode
2+
node_modules
3+
dist
4+
out

.eslintrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"root": true,
3+
"parserOptions": {
4+
"ecmaVersion": "latest",
5+
"sourceType": "module"
6+
},
7+
"rules": {
8+
"quotes": ["error", "single"],
9+
"semi": [ "error", "always" ],
10+
"no-undef": "error",
11+
"no-unused-vars": "error"
12+
},
13+
"overrides": [
14+
{
15+
"files": [ "src/foreground/**/*" ],
16+
"env": {
17+
"es2021": true,
18+
"browser": true
19+
},
20+
"globals": {
21+
"api": false
22+
}
23+
},
24+
{
25+
"files": [ "src/background/**/*", "*.config.js" ],
26+
"env": {
27+
"es6": true,
28+
"node": true,
29+
"commonjs": true
30+
}
31+
}
32+
]
33+
}

.github/workflows/binaries.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Generate Binaries
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
strategy:
11+
matrix:
12+
include:
13+
- os: ubuntu-latest
14+
- os: macos-latest
15+
- os: windows-latest
16+
name: Generate binaries for ${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
DEBUG: 'electron-forge:*'
20+
steps:
21+
- if: ${{ matrix.os == 'ubuntu-latest' }}
22+
run: sudo apt-get install -y rpm
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version-file: '.nvmrc'
27+
- run: npm ci
28+
- run: npm run package
29+
- run: npm run make
30+
- uses: svenstaro/upload-release-action@v2
31+
with:
32+
repo_token: ${{ secrets.GITHUB_TOKEN }}
33+
tag: ${{ github.ref }}
34+
file: out/make/**/*
35+
file_glob: true
36+
overwrite: true

.github/workflows/main.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version-file: '.node-version'
13+
- run: npm ci
14+
- run: npm run lint
15+
- run: npm run build:vite
16+
17+
binaries:
18+
strategy:
19+
matrix:
20+
include:
21+
- os: ubuntu-latest
22+
- os: macos-latest
23+
- os: windows-latest
24+
name: Generate binaries for ${{ matrix.os }}
25+
runs-on: ${{ matrix.os }}
26+
env:
27+
DEBUG: 'electron-forge:*'
28+
steps:
29+
- if: ${{ matrix.os == 'ubuntu-latest' }}
30+
run: sudo apt-get install -y rpm
31+
- uses: actions/checkout@v3
32+
- uses: actions/setup-node@v3
33+
with:
34+
node-version-file: '.nvmrc'
35+
- run: npm ci
36+
- run: npm run package
37+
- run: npm run make

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules
3+
dist
4+
out

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.12.1

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2024 David Recuenco
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Cheesecuts
2+
3+
Apparently I had to write \~400 lines of code to display a blank page with a summary of shortcuts. Yes.
4+
5+
## Usage
6+
7+
Install, then create a `shortcuts.yaml` file in `~/.cheesecuts` with the following format:
8+
9+
```yaml
10+
groups:
11+
- General
12+
13+
shortcuts:
14+
- name: Alfred
15+
keys: ⌘ Spacebar
16+
group: General
17+
- name: AltTab
18+
keys: ⌘ Tab
19+
group: General
20+
- name: Quit app
21+
keys: ⌘ Q
22+
```
23+
24+
## Attributions
25+
26+
- [App Logo](https://commons.wikimedia.org/wiki/File:Cheesecake.svg)
27+
- [IconGenerator](https://github.com/onmyway133/IconGenerator)
28+
- [Bootstrap Icons](https://icons.getbootstrap.com/)

forge.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
packagerConfig: {
3+
icon: './public/logo'
4+
},
5+
makers: [
6+
{
7+
name: '@electron-forge/maker-squirrel',
8+
config: {}
9+
},
10+
{
11+
name: '@electron-forge/maker-zip',
12+
platforms: ['darwin']
13+
},
14+
{
15+
name: '@electron-forge/maker-deb',
16+
config: {
17+
bin: 'Cheesecuts'
18+
}
19+
},
20+
{
21+
name: '@electron-forge/maker-rpm',
22+
config: {
23+
bin: 'Cheesecuts'
24+
}
25+
}
26+
]
27+
};

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
6+
<title>Cheesecuts</title>
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
<script src="./src/foreground/main.js" type="module"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)