generated from marc2332/tauri-deno-starter
-
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.
Showing
229 changed files
with
21,482 additions
and
4,401 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
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,24 @@ | ||
--- | ||
name: Feature Request | ||
description: File a feature request | ||
title: '[Feature]: ' | ||
labels: ['enhancement'] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this feature request. | ||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected behavior | ||
description: May I ask you to tell us about the behavior you expect? | ||
placeholder: 'Example: Add progress bar in the GUI.' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: other | ||
attributes: | ||
label: other | ||
description: About everything else. |
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,23 +1,5 @@ | ||
# New Features | ||
|
||
- [ ] Add | ||
|
||
- | ||
|
||
- | ||
|
||
- [ ] Implement to | ||
|
||
- [ ] Enable | ||
|
||
# Changes and Fixes | ||
|
||
- [ ] Change | ||
|
||
- [ ] Fix | ||
|
||
- [ ] Modify | ||
|
||
# Refactors | ||
|
||
- [ ] Clean |
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,90 @@ | ||
name: Cargo Lint & Test | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: '*' | ||
workflow_dispatch: # <- Setting to allow manual execution by button. | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev | ||
- uses: actions/[email protected] | ||
- name: Rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
prefix-key: cargo-${{ matrix.platform }} | ||
- name: Install components | ||
run: | | ||
rustup component add clippy | ||
rustup component add rustfmt | ||
- name: Format Check | ||
run: cargo fmt --all -- --check | ||
- name: Lint Check | ||
run: cargo clippy --workspace -- -D warnings | ||
- name: Test(Rust) | ||
run: cargo test --workspace | ||
|
||
- name: Sync node version | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 'lts/*' | ||
cache: 'npm' | ||
|
||
- name: Node.js cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/gui/frontend/.next/cache | ||
# Generate a new cache whenever packages or source files change. | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('dar2oar_gui/frontend/src/**/*.[jt]s', 'dar2oar_gui/frontend/src/**/*.[jt]sx') }} | ||
# If source files changed but packages didn't, rebuild from a prior cache. | ||
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- | ||
- name: Install frontend dependencies | ||
run: npm ci | ||
|
||
- name: Test(Node.js) | ||
run: npm test | ||
- name: Build Test(GUI) | ||
run: npm run build | ||
|
||
- name: Make outputs dir | ||
run: mkdir -p ./build | ||
- name: Compress outputs(Windows) | ||
shell: pwsh | ||
if: runner.os == 'Windows' | ||
run: | | ||
Move-Item -Path ./target/release/bluetooth_battery_monitor.exe -Destination './build' | ||
- name: Compress outputs(MacOS) | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: | | ||
mv ./target/release/bluetooth_battery_monitor ./build | ||
- name: Compress outputs(Linux) | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
run: | | ||
mv ./target/release/bluetooth_battery_monitor ./build | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: Bluetooth Battery Monitor ${{runner.os}} | ||
path: | | ||
./build/ |
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,60 @@ | ||
name: Release GUI | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev | ||
- name: Rust setup | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
prefix-key: cargo-${{ matrix.platform }} | ||
|
||
- name: Sync node version and setup cache | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 'lts/*' | ||
cache: 'npm' | ||
|
||
- name: Node.js cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/dar2oar_gui/frontend/.next/cache | ||
# Generate a new cache whenever packages or source files change. | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('dar2oar_gui/frontend/src/**/*.[jt]s', 'dar2oar_gui/frontend/src/**/*.[jt]sx') }} | ||
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- | ||
- name: Install frontend dependencies | ||
run: npm ci | ||
|
||
- name: Build the app | ||
uses: tauri-apps/[email protected] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
releaseName: 'Bluetooth Battery Monitor v__VERSION__' | ||
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags. | ||
prerelease: false |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
target | ||
WixTools | ||
dist | ||
**/node_modules/ | ||
# dependencies | ||
node_modules/ | ||
|
||
devices.json | ||
# next.js | ||
.next/ | ||
.swc | ||
out/ | ||
|
||
# production | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
test/data/* | ||
!test/data/*.md | ||
*.log | ||
|
||
# Rust build cache | ||
**/target | ||
|
||
secrets/ |
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,8 @@ | ||
//! NOTE: If this file is not in the root directory, VSCode's prettier extension will not reflect this setting. | ||
//! Use prettier because biome is fast but does not yet support yaml formatting. | ||
/** @type {import('prettier').Options} */ | ||
module.exports = { | ||
semi: true, | ||
singleQuote: true, | ||
printWidth: 120, | ||
}; |
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,5 +1,11 @@ | ||
{ | ||
"recommendations": [ | ||
"bradlc.vscode-tailwindcss" | ||
"biomejs.biome", | ||
"editorconfig.editorconfig", | ||
"jayfong.generate-index", | ||
"lokalise.i18n-ally", | ||
"rust-lang.rust-analyzer", | ||
"tamasfe.even-better-toml", | ||
"vitest.explorer" | ||
] | ||
} |
Oops, something went wrong.