-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 The extension has been completely rewritten for a new major version…
… (v4)
- Loading branch information
1 parent
6809bf2
commit e747808
Showing
344 changed files
with
21,593 additions
and
13,010 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json", | ||
"name": "RUA dev-container", | ||
"image": "node:21-bookworm", | ||
"features": { | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/sshd:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "npm install" | ||
} |
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
Validating CODEOWNERS rules …
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,8 +1,3 @@ | ||
# @link <https://help.github.com/en/articles/about-code-owners> | ||
# docs: https://help.github.com/en/articles/about-code-owners | ||
|
||
* @tarampampam | ||
/public/_locales/zh_CN/ @yfdyh000 | ||
/public/_locales/pt_BR/ @inkhorn-ptbr | ||
/public/_locales/de/ @Xenorio | ||
/public/_locales/fr/ @maxgfr | ||
/public/_locales/id/ @tustoz |
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
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 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
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,36 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
|
||
name: 🚀 Deploy the CF challenge test website | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: [rewrite] #[master, main] # TODO: change this | ||
tags-ignore: ['**'] | ||
paths: [website/cf-challenge-test/**, .github/workflows/deploy-website-cf-challenge-test.yml] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-cf-challenge-test-website | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
name: 🚀 Publish the site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: cloudflare/wrangler-action@v3 | ||
env: | ||
PROJECT_NAME: random-user-agent-cf-challenge-test | ||
DIST_DIR: ./website/cf-challenge-test | ||
CF_BRANCH_NAME: main # to deploy as "Production" environment on Cloudflare Pages | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
command: | ||
pages deploy ${{ env.DIST_DIR }} | ||
--project-name=${{ env.PROJECT_NAME }} | ||
--branch ${{ env.CF_BRANCH_NAME }} | ||
--commit-dirty=true |
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,36 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
|
||
name: 🚀 Deploy the website index | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: [rewrite] #[master, main] # TODO: change this | ||
tags-ignore: ['**'] | ||
paths: [website/index/**, .github/workflows/deploy-website-index.yml] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-website-index | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
name: 🚀 Publish the site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: cloudflare/wrangler-action@v3 | ||
env: | ||
PROJECT_NAME: random-user-agent-index | ||
DIST_DIR: ./website/index | ||
CF_BRANCH_NAME: main # to deploy as "Production" environment on Cloudflare Pages | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
command: | ||
pages deploy ${{ env.DIST_DIR }} | ||
--project-name=${{ env.PROJECT_NAME }} | ||
--branch ${{ env.CF_BRANCH_NAME }} | ||
--commit-dirty=true |
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,36 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
|
||
name: 🚀 Deploy the sandbox website | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: [rewrite] #[master, main] # TODO: change this | ||
tags-ignore: ['**'] | ||
paths: [website/sandbox/**, .github/workflows/deploy-website-sandbox.yml] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-sandbox-website | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
name: 🚀 Publish the site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: cloudflare/wrangler-action@v3 | ||
env: | ||
PROJECT_NAME: random-user-agent-ua-test-sandbox | ||
DIST_DIR: ./website/sandbox | ||
CF_BRANCH_NAME: main # to deploy as "Production" environment on Cloudflare Pages | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
command: | ||
pages deploy ${{ env.DIST_DIR }} | ||
--project-name=${{ env.PROJECT_NAME }} | ||
--branch ${{ env.CF_BRANCH_NAME }} | ||
--commit-dirty=true |
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,40 +1,34 @@ | ||
name: release | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
|
||
name: 🚀 Release | ||
|
||
on: | ||
release: # Docs: <https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release> | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Build the extension | ||
name: 🏗️ Build the extension | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: gacts/github-slug@v1 | ||
id: slug | ||
|
||
- uses: actions/setup-node@v4 | ||
with: {node-version: '20'} | ||
|
||
- uses: actions/cache@v4 | ||
id: yarn-cache | ||
- {uses: gacts/github-slug@v1, id: slug} | ||
- {uses: gacts/setup-node-with-cache@v1, with: {node-version: 21}} | ||
- run: npm install | ||
- run: > | ||
npm version --no-git-tag-version | ||
"${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }}.${{ steps.slug.outputs.version-patch }}" | ||
- run: npm run build | ||
- uses: svenstaro/upload-release-action@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-yarn- | ||
|
||
- if: steps.yarn-cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile --no-progress --non-interactive | ||
|
||
- name: Set the extension version | ||
run: yarn version --no-git-tag-version --no-commit-hooks --new-version "${{ steps.slug.outputs.version-semantic }}" | ||
|
||
- run: yarn build | ||
|
||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ./dist/chrome.zip | ||
asset_name: random-user-agent-chrome.zip | ||
tag: ${{ github.ref }} | ||
- uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist.zip | ||
asset_name: random-user-agent.zip | ||
file: ./dist/firefox.zip | ||
asset_name: random-user-agent-firefox.zip | ||
tag: ${{ github.ref }} |
Oops, something went wrong.