Skip to content

Commit

Permalink
INIT repository
Browse files Browse the repository at this point in the history
  • Loading branch information
RecuencoJones committed Apr 18, 2024
0 parents commit 32e53d7
Show file tree
Hide file tree
Showing 30 changed files with 8,764 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode
node_modules
dist
out
33 changes: 33 additions & 0 deletions .eslintrc
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
}
}
]
}
36 changes: 36 additions & 0 deletions .github/workflows/binaries.yaml
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: '.node-version'
- 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
37 changes: 37 additions & 0 deletions .github/workflows/main.yaml
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: '.node-version'
- run: npm ci
- run: npm run package
- run: npm run make
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules
dist
out
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.12.1
7 changes: 7 additions & 0 deletions LICENSE
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.
28 changes: 28 additions & 0 deletions README.md
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/)
27 changes: 27 additions & 0 deletions forge.config.js
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'
}
}
]
};
12 changes: 12 additions & 0 deletions index.html
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>
Loading

0 comments on commit 32e53d7

Please sign in to comment.