From 65d53b994bee1f31cc199848be1829798ceb2ec7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:55:03 +0300 Subject: [PATCH] =?UTF-8?q?feat(github-action)!:=20Update=20github/super-l?= =?UTF-8?q?inter=20(=20v5=20=E2=86=92=20v6=20)=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/linters/.jscpd.json | 6 +++++ .github/renovate.json | 4 +-- .github/workflows/build-and-deploy.yml | 16 ++++++------ .github/workflows/compress-images.yml | 5 +++- .github/workflows/dependency-review.yml | 9 +++---- .github/workflows/pr-build.yml | 5 ++-- .github/workflows/pr-compress-images.yml | 11 +++++--- .github/workflows/pr-lint.yml | 9 ++++--- .github/workflows/release-drafter.yml | 2 ++ .github/workflows/stale.yml | 20 +++++++-------- .prettierignore | 3 +++ .vscode/extensions.json | 6 +---- index.html | 32 +++++++++++------------- public/site.webmanifest | 12 ++++++++- tsconfig.app.json | 14 +++-------- tsconfig.node.json | 4 +-- vite.config.ts | 5 +--- 17 files changed, 87 insertions(+), 76 deletions(-) create mode 100644 .github/linters/.jscpd.json create mode 100644 .prettierignore diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json new file mode 100644 index 0000000..e6bf7f4 --- /dev/null +++ b/.github/linters/.jscpd.json @@ -0,0 +1,6 @@ +{ + "threshold": 5, + "reporters": ["consoleFull"], + "ignore": ["**/__snapshots__/**", "**/node_modules/**"], + "absolute": true +} diff --git a/.github/renovate.json b/.github/renovate.json index f02f654..66f4a27 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "github>ivuorinen/renovate-config" - ] + "extends": ["github>ivuorinen/renovate-config"] } diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 1887cab..67a86ee 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -8,22 +8,24 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "pages" + group: 'pages' cancel-in-progress: false +permissions: read-all + jobs: build-and-deploy: runs-on: ubuntu-latest + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + permissions: + contents: read + pages: write + id-token: write + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml index 8bfc312..e00664b 100644 --- a/.github/workflows/compress-images.yml +++ b/.github/workflows/compress-images.yml @@ -5,7 +5,10 @@ name: Compress Images on Demand on: workflow_dispatch: schedule: - - cron: "00 23 * * 0" + - cron: '00 23 * * 0' + +permissions: read-all + jobs: CompressOnDemandOrSchedule: name: calibreapp/image-actions diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 5efa8b2..bcec63e 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -8,19 +8,18 @@ # # Source repository: https://github.com/actions/dependency-review-action # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement -name: "Dependency Review" +name: 'Dependency Review' on: [pull_request] -permissions: - contents: read +permissions: read-all jobs: dependency-review: runs-on: ubuntu-latest steps: - - name: "Checkout Repository" + - name: 'Checkout Repository' uses: actions/checkout@v4 - - name: "Dependency Review" + - name: 'Dependency Review' uses: actions/dependency-review-action@v4 diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 9a88e5a..156ef8f 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -5,11 +5,12 @@ name: Build on: pull_request: - branches: ["main"] + branches: ['main'] + +permissions: read-all jobs: build: - runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/pr-compress-images.yml b/.github/workflows/pr-compress-images.yml index c3f0644..d2bda70 100644 --- a/.github/workflows/pr-compress-images.yml +++ b/.github/workflows/pr-compress-images.yml @@ -5,10 +5,13 @@ on: # Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed. # See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference. paths: - - "**.jpg" - - "**.jpeg" - - "**.png" - - "**.webp" + - '**.jpg' + - '**.jpeg' + - '**.png' + - '**.webp' + +permissions: read-all + jobs: CompressInPR: # Only run on Pull Requests within the same repository, and not from forks. diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 5188706..aee227d 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -19,11 +19,12 @@ env: ############################# on: push: - branches-ignore: [master, main] - # Remove the line above to run when pushing to master + branches: [master, main] pull_request: branches: [master, main] +permissions: read-all + ############### # Set the Job # ############### @@ -60,9 +61,11 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v5 + uses: github/super-linter@v6 env: VALIDATE_ALL_CODEBASE: false + FIX_JAVASCRIPT_STANDARD: true + VALIDATE_TYPESCRIPT_STANDARD: false # Change to 'master' if your main branch differs DEFAULT_BRANCH: ${{ env.MAIN_BRANCH }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 5303f9d..2753b9e 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -5,6 +5,8 @@ name: Release Drafter on: workflow_call: +permissions: read-all + jobs: update_release_draft: name: โœ๏ธ Draft release diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0463d53..287bb38 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -4,20 +4,20 @@ name: Stale # yamllint disable-line rule:truthy on: schedule: - - cron: "0 8 * * *" + - cron: '0 8 * * *' workflow_call: workflow_dispatch: - -permissions: - contents: write # only for delete-branch option - issues: write - pull-requests: write +permissions: read-all jobs: stale: name: ๐Ÿงน Clean up stale issues and PRs runs-on: ubuntu-latest + permissions: + contents: write # only for delete-branch option + issues: write + pull-requests: write steps: - name: ๐Ÿš€ Run stale uses: actions/stale@v9.0.0 @@ -26,8 +26,8 @@ jobs: days-before-stale: 30 days-before-close: 7 remove-stale-when-updated: true - stale-issue-label: "stale" - exempt-issue-labels: "no-stale,help-wanted" + stale-issue-label: 'stale' + exempt-issue-labels: 'no-stale,help-wanted' stale-issue-message: > There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. @@ -38,8 +38,8 @@ jobs: This issue has now been marked as stale and will be closed if no further activity occurs. Thanks! - stale-pr-label: "stale" - exempt-pr-labels: "no-stale" + stale-pr-label: 'stale' + exempt-pr-labels: 'no-stale' stale-pr-message: > There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1b8ac88 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +# Ignore artifacts: +build +coverage diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 93ea3e7..0449b97 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,3 @@ { - "recommendations": [ - "Vue.volar", - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode" - ] + "recommendations": ["Vue.volar", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] } diff --git a/index.html b/index.html index f6a3a12..ea3a915 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,18 @@ - + + + + + + + + + + sysvinit service generator + - - - - - - - - - sysvinit service generator - - - -
- - - + +
+ + diff --git a/public/site.webmanifest b/public/site.webmanifest index 0b5a830..88778b7 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1 +1,11 @@ -{"name":"","short_name":"","icons":[{"src":"android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} +{ + "name": "", + "short_name": "", + "icons": [ + { "src": "android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }, + { "src": "android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/tsconfig.app.json b/tsconfig.app.json index 28073da..db4bf17 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -1,21 +1,13 @@ { "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": [ - "env.d.ts", - "src/**/*", - "src/**/*.vue" - ], - "exclude": [ - "src/**/__tests__/*" - ], + "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], + "exclude": ["src/**/__tests__/*"], "compilerOptions": { "composite": true, "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "baseUrl": ".", "paths": { - "@/*": [ - "./src/*" - ] + "@/*": ["./src/*"] } } } diff --git a/tsconfig.node.json b/tsconfig.node.json index 6fffb82..293b392 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -13,8 +13,6 @@ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", "module": "ESNext", "moduleResolution": "Bundler", - "types": [ - "node" - ] + "types": ["node"] } } diff --git a/vite.config.ts b/vite.config.ts index ae336dd..f534d12 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,10 +6,7 @@ import VueDevTools from 'vite-plugin-vue-devtools' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue(), - VueDevTools(), - ], + plugins: [vue(), VueDevTools()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url))