From 36698d14363a6d1c14920c451d042e12f99432c8 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Wed, 14 Dec 2022 20:39:21 +0100 Subject: [PATCH] fmt --- .eslintrc.json | 6 ++++- .github/workflows/audit-javascript.yml | 8 +++--- .github/workflows/audit-rust.yml | 8 +++--- .github/workflows/lint-javascript.yml | 22 ++++++++--------- .github/workflows/lint-rust.yml | 34 +++++++++++++------------- README.md | 28 ++++++++++----------- plugins/authenticator/README.md | 4 ++- plugins/autostart/README.md | 4 ++- plugins/fs-extra/README.md | 4 ++- plugins/fs-watch/README.md | 4 ++- plugins/localhost/README.md | 4 ++- plugins/log/README.md | 4 ++- plugins/persisted-scope/README.md | 4 ++- plugins/positioner/CHANGELOG.md | 2 +- plugins/positioner/README.md | 4 ++- plugins/sql/README.md | 4 ++- plugins/store/README.md | 4 ++- plugins/stronghold/README.md | 4 ++- plugins/upload/README.md | 4 ++- plugins/websocket/README.md | 4 ++- plugins/window-state/README.md | 4 ++- shared/template/README.md | 4 ++- 22 files changed, 101 insertions(+), 67 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8400987e..4cc47de1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,7 +3,11 @@ "browser": true, "es2021": true }, - "extends": ["prettier", "eslint:recommended", "plugin:@typescript-eslint/recommended"], + "extends": [ + "prettier", + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { diff --git a/.github/workflows/audit-javascript.yml b/.github/workflows/audit-javascript.yml index 6fb6a60a..5d971450 100644 --- a/.github/workflows/audit-javascript.yml +++ b/.github/workflows/audit-javascript.yml @@ -3,19 +3,19 @@ name: Audit JavaScript on: workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" push: branches: - dev paths: - - '.github/workflows/audit-javascript.yml' + - ".github/workflows/audit-javascript.yml" - "**/pnpm-lock.yaml" - "**/package.json" pull_request: branches: - dev paths: - - '.github/workflows/audit-javascript.yml' + - ".github/workflows/audit-javascript.yml" - "**/pnpm-lock.yaml" - "**/package.json" @@ -42,4 +42,4 @@ jobs: with: run_install: true - name: audit - run: pnpm audit \ No newline at end of file + run: pnpm audit diff --git a/.github/workflows/audit-rust.yml b/.github/workflows/audit-rust.yml index ff1cccbf..f3ae64e2 100644 --- a/.github/workflows/audit-rust.yml +++ b/.github/workflows/audit-rust.yml @@ -3,19 +3,19 @@ name: Audit Rust on: workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" push: branches: - dev paths: - - '.github/workflows/audit-rust.yml' + - ".github/workflows/audit-rust.yml" - "**/Cargo.lock" - "**/Cargo.toml" pull_request: branches: - dev paths: - - '.github/workflows/audit-rust.yml' + - ".github/workflows/audit-rust.yml" - "**/Cargo.lock" - "**/Cargo.toml" @@ -30,4 +30,4 @@ jobs: - uses: actions/checkout@v3 - uses: actions-rs/audit-check@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint-javascript.yml b/.github/workflows/lint-javascript.yml index d834ec47..3fbe96e3 100644 --- a/.github/workflows/lint-javascript.yml +++ b/.github/workflows/lint-javascript.yml @@ -5,21 +5,21 @@ on: branches: - dev paths: - - '.github/workflows/lint-javascript.yml' - - 'plugins/*/guest-js/**' - - '.eslintignore' - - '.eslintrc.json' - - '.prettierignore' + - ".github/workflows/lint-javascript.yml" + - "plugins/*/guest-js/**" + - ".eslintignore" + - ".eslintrc.json" + - ".prettierignore" - "**/package.json" pull_request: branches: - dev paths: - - '.github/workflows/lint-javascript.yml' - - 'plugins/*/guest-js/**' - - '.eslintignore' - - '.eslintrc.json' - - '.prettierignore' + - ".github/workflows/lint-javascript.yml" + - "plugins/*/guest-js/**" + - ".eslintignore" + - ".eslintrc.json" + - ".prettierignore" - "**/package.json" concurrency: @@ -64,4 +64,4 @@ jobs: with: run_install: true - name: prettier check - run: pnpm format-check \ No newline at end of file + run: pnpm format-check diff --git a/.github/workflows/lint-rust.yml b/.github/workflows/lint-rust.yml index 313dc18d..03dc2674 100644 --- a/.github/workflows/lint-rust.yml +++ b/.github/workflows/lint-rust.yml @@ -5,15 +5,15 @@ on: branches: - dev paths: - - '.github/workflows/lint-rust.yml' - - 'plugins/src/**' + - ".github/workflows/lint-rust.yml" + - "plugins/src/**" - "**/Cargo.toml" pull_request: branches: - dev paths: - - '.github/workflows/lint-rust.yml' - - 'plugins/src/**' + - ".github/workflows/lint-rust.yml" + - "plugins/src/**" - "**/Cargo.toml" concurrency: @@ -27,7 +27,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - name: install webkit2gtk run: | sudo apt-get update @@ -35,10 +35,10 @@ jobs: - name: Install clippy with stable toolchain uses: actions-rs/toolchain@v1 with: - profile: minimal - toolchain: stable - override: true - components: clippy + profile: minimal + toolchain: stable + override: true + components: clippy - uses: Swatinem/rust-cache@v1 - uses: actions-rs/clippy-check@v1 with: @@ -51,15 +51,15 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v3 - - name: Install rustfmt with nightly toolchain - uses: actions-rs/toolchain@v1 - with: + - uses: actions/checkout@v3 + - name: Install rustfmt with nightly toolchain + uses: actions-rs/toolchain@v1 + with: profile: minimal toolchain: nightly override: true components: rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check \ No newline at end of file + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check diff --git a/README.md b/README.md index 0ba83300..215d2d1a 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,17 @@ | | | Win | Mac | Lin | iOS | And | | ------------------------------------------ | --------------------------------------------------------- | --- | --- | --- | --- | --- | -| [authenticator](plugins/authenticator) | Interface with hardware security keys. | ✅ | ✅ | ✅ | ? | ? | -| [autostart](plugins/autostart) | Automatically launch your app at system startup. | ✅ | ✅ | ✅ | ? | ? | -| [fs-extra](plugins/fs-extra) | File system methods that aren't included in the core API. | ✅ | ✅ | ✅ | ? | ? | -| [fs-watch](plugins/fs-watch) | Watch the filesystem for changes. | ✅ | ✅ | ✅ | ? | ? | -| [localhost](plugins/localhost) | Use a localhost server in production apps. | ✅ | ✅ | ✅ | ? | ? | -| [log](plugins/log) | Configurable logging. | ✅ | ✅ | ✅ | ? | ? | -| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. | ✅ | ✅ | ✅ | ? | ? | -| [positioner](plugins/positioner) | Move windows to common locations. | ✅ | ✅ | ✅ | ? | ? | -| [sql](plugins/sql) | Interface with SQL databases. | ✅ | ✅ | ✅ | ? | ? | -| [store](plugins/store) | Persistent key value storage. | ✅ | ✅ | ✅ | ? | ? | -| [stronghold](plugins/stronghold) | Encrypted, secure database. | ✅ | ✅ | ✅ | ? | ? | -| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. | ✅ | ✅ | ✅ | ? | ? | -| [websocket](plugins/websocket) | | ✅ | ✅ | ✅ | ? | ? | -| [window-state](plugins/window-state) | Persist window sizes and positions. | ✅ | ✅ | ✅ | ? | ? | \ No newline at end of file +| [authenticator](plugins/authenticator) | Interface with hardware security keys. | ✅ | ✅ | ✅ | ? | ? | +| [autostart](plugins/autostart) | Automatically launch your app at system startup. | ✅ | ✅ | ✅ | ? | ? | +| [fs-extra](plugins/fs-extra) | File system methods that aren't included in the core API. | ✅ | ✅ | ✅ | ? | ? | +| [fs-watch](plugins/fs-watch) | Watch the filesystem for changes. | ✅ | ✅ | ✅ | ? | ? | +| [localhost](plugins/localhost) | Use a localhost server in production apps. | ✅ | ✅ | ✅ | ? | ? | +| [log](plugins/log) | Configurable logging. | ✅ | ✅ | ✅ | ? | ? | +| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. | ✅ | ✅ | ✅ | ? | ? | +| [positioner](plugins/positioner) | Move windows to common locations. | ✅ | ✅ | ✅ | ? | ? | +| [sql](plugins/sql) | Interface with SQL databases. | ✅ | ✅ | ✅ | ? | ? | +| [store](plugins/store) | Persistent key value storage. | ✅ | ✅ | ✅ | ? | ? | +| [stronghold](plugins/stronghold) | Encrypted, secure database. | ✅ | ✅ | ✅ | ? | ? | +| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. | ✅ | ✅ | ✅ | ? | ? | +| [websocket](plugins/websocket) | | ✅ | ✅ | ✅ | ? | ? | +| [window-state](plugins/window-state) | Persist window sizes and positions. | ✅ | ✅ | ✅ | ? | ? | diff --git a/plugins/authenticator/README.md b/plugins/authenticator/README.md index 8d0e6c46..9b0fdcbe 100644 --- a/plugins/authenticator/README.md +++ b/plugins/authenticator/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/autostart/README.md b/plugins/autostart/README.md index 7f5d3f50..6fb45653 100644 --- a/plugins/autostart/README.md +++ b/plugins/autostart/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/fs-extra/README.md b/plugins/fs-extra/README.md index 6794bd76..6047161d 100644 --- a/plugins/fs-extra/README.md +++ b/plugins/fs-extra/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/fs-watch/README.md b/plugins/fs-watch/README.md index e81ed211..1c11acf0 100644 --- a/plugins/fs-watch/README.md +++ b/plugins/fs-watch/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/localhost/README.md b/plugins/localhost/README.md index 095d06ef..66c0c587 100644 --- a/plugins/localhost/README.md +++ b/plugins/localhost/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/log/README.md b/plugins/log/README.md index e6cbe721..79504c98 100644 --- a/plugins/log/README.md +++ b/plugins/log/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/persisted-scope/README.md b/plugins/persisted-scope/README.md index 97fc7fd3..3891b209 100644 --- a/plugins/persisted-scope/README.md +++ b/plugins/persisted-scope/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/positioner/CHANGELOG.md b/plugins/positioner/CHANGELOG.md index 02a58e55..71199780 100644 --- a/plugins/positioner/CHANGELOG.md +++ b/plugins/positioner/CHANGELOG.md @@ -54,4 +54,4 @@ - [119d9c4](https://www.github.com/JonasKruckenberg/tauri-plugin-positioner/commit/119d9c47639e1df16f5520a08f039bdb6f39532b) update metadata on 2021-11-19 - [39e517c](https://www.github.com/JonasKruckenberg/tauri-plugin-positioner/commit/39e517c145a4a901839ae9b46e296370ce6ababf) Update update-metadata.md on 2021-11-19 data on 2021-11-19 - - [39e517c](https://www.github.com/JonasKruckenberg/tauri-plugin-positioner/commit/39e517c145a4a901839ae9b46e296370ce6ababf) Update update-metadata.md on 2021-11-19 \ No newline at end of file + - [39e517c](https://www.github.com/JonasKruckenberg/tauri-plugin-positioner/commit/39e517c145a4a901839ae9b46e296370ce6ababf) Update update-metadata.md on 2021-11-19 diff --git a/plugins/positioner/README.md b/plugins/positioner/README.md index 5a17b142..5eb5195e 100644 --- a/plugins/positioner/README.md +++ b/plugins/positioner/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/sql/README.md b/plugins/sql/README.md index a0e58b02..8649c739 100644 --- a/plugins/sql/README.md +++ b/plugins/sql/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/store/README.md b/plugins/store/README.md index ba0e00c4..8baf2b8e 100644 --- a/plugins/store/README.md +++ b/plugins/store/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/stronghold/README.md b/plugins/stronghold/README.md index cb2e5928..0f5158c4 100644 --- a/plugins/stronghold/README.md +++ b/plugins/stronghold/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/upload/README.md b/plugins/upload/README.md index 94430a7d..04bb3400 100644 --- a/plugins/upload/README.md +++ b/plugins/upload/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/websocket/README.md b/plugins/websocket/README.md index a287c37b..a864895b 100644 --- a/plugins/websocket/README.md +++ b/plugins/websocket/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/plugins/window-state/README.md b/plugins/window-state/README.md index dbb28f1d..3f2619a2 100644 --- a/plugins/window-state/README.md +++ b/plugins/window-state/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable. diff --git a/shared/template/README.md b/shared/template/README.md index cf5adb35..97196018 100644 --- a/shared/template/README.md +++ b/shared/template/README.md @@ -5,11 +5,13 @@ ## Install ``` + ``` ## Usage ``` + ``` ## Contributing @@ -20,4 +22,4 @@ PRs accepted. Please make sure to read the Contributing Guide before making a pu Code: (c) 2015 - 2021 - The Tauri Programme within The Commons Conservancy. -MIT or MIT/Apache 2.0 where applicable. \ No newline at end of file +MIT or MIT/Apache 2.0 where applicable.