Skip to content
Merged

V2 #19

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
6eec8bf
chore: upgrade minor deps
geekdada Oct 22, 2022
a1c0fd3
chore: upgrade to node 18
geekdada Jul 31, 2023
4fc96f9
chore: upgrade major versions
geekdada Aug 5, 2023
89f0cf3
fix: eslint issues
geekdada Aug 5, 2023
6eb6edf
fix: upgrade issues
geekdada Aug 5, 2023
ed833c0
feat: use traffic context to store traffic related data
geekdada Aug 7, 2023
0fd864a
refactor: enum for updating profile
geekdada Aug 7, 2023
8ca3f51
feat: clear traffic and profile on landing page
geekdada Aug 7, 2023
6e5537b
refactor: introduce LandingPage
geekdada Aug 7, 2023
0719ada
chore: update .commitlintrc.json
geekdada Aug 7, 2023
5a6c438
feat: improve landing page
geekdada Aug 8, 2023
7482975
feat: give the home page a new look
geekdada Aug 8, 2023
830fa0e
feat: give the policies page a new look
geekdada Aug 8, 2023
e7cab51
feat: improve the requests page
geekdada Aug 10, 2023
72c9ee2
feat: improve style
geekdada Aug 11, 2023
032fa5d
feat: improve history and profile management
geekdada Aug 12, 2023
57ecd56
refactor: import statement in AppContainer to use custom ThemeProvider
geekdada Aug 12, 2023
47151ed
chore: upgrade deps
geekdada Aug 12, 2023
f853481
refactor: migrated to rtk
geekdada Aug 12, 2023
4a89331
chore: remove unnecessary test coverage step in CI workflow
geekdada Aug 12, 2023
ad63263
refactor: import statements in `usePolicyPerformance.ts` and `Version…
geekdada Aug 12, 2023
a375b76
ci: add yarn build step to the CI workflow file
geekdada Aug 12, 2023
06a7e00
feat: improve ui
geekdada Aug 13, 2023
2f79a4c
feat: improve ui
geekdada Aug 13, 2023
2a489e8
fix: theme color
geekdada Aug 13, 2023
a88bf49
feat: improve ui
geekdada Aug 13, 2023
f2f3ded
feat: include sashimi
geekdada Aug 13, 2023
4c03367
ci: set process.env.CI to false in the build script
geekdada Aug 13, 2023
9ce8e14
chore: use bumpp
geekdada Aug 13, 2023
8d9677f
chore: release v2.0.0-beta.0
geekdada Aug 13, 2023
1e4cfc0
feat: address feedback issue
geekdada Aug 14, 2023
fe00f55
feat: improve style
geekdada Aug 14, 2023
3572146
chore: release v2.0.0-beta.1
geekdada Aug 14, 2023
b579a3f
fix: height issue
geekdada Aug 14, 2023
e08613c
chore: release v2.0.0-beta.2
geekdada Aug 14, 2023
91ce682
feat: add a dialog to install certificate
geekdada Aug 15, 2023
9276ecb
fix: profile loading incorrectly
geekdada Aug 15, 2023
8531464
fix: platform property
geekdada Aug 15, 2023
db8be87
chore: release v2.0.0-beta.3
geekdada Aug 15, 2023
e538c30
chore: remove map file from surge build
geekdada Aug 15, 2023
b7b05ef
fix: remove unused dep
geekdada Aug 15, 2023
8aad576
fix: navigate to home when run on surge build
geekdada Aug 15, 2023
c3e8531
chore: release v2.0.0-beta.4
geekdada Aug 15, 2023
4dea7a7
feat: address feedback
geekdada Aug 16, 2023
3d77ac7
chore: release v2.0.0-beta.5
geekdada Aug 16, 2023
b5b8b83
feat: improve ui
geekdada Aug 17, 2023
d89e58d
chore: release v2.0.0-beta.6
geekdada Aug 17, 2023
a3bf7ea
feat: add sorting to request list
geekdada Aug 23, 2023
cdf4ac4
chore: release v2.0.0-beta.7
geekdada Aug 23, 2023
c367084
feat: safe area handling
geekdada Aug 24, 2023
5ff78f7
fix: known bugs
geekdada Aug 24, 2023
ce909a3
chore: release v2.0.0-beta.8
geekdada Aug 24, 2023
d035462
feat: manage profiles
geekdada Aug 27, 2023
6e7b6f1
chore: release v2.0.0-beta.9
geekdada Aug 27, 2023
e4829f5
chore: apply nolyfill
geekdada Aug 28, 2023
e0a2bcb
feat: validate profiles
geekdada Aug 28, 2023
257538d
chore: release v2.0.0-beta.10
geekdada Aug 28, 2023
7a3025c
docs: update
geekdada Aug 29, 2023
d33a12d
fix: known bugs
geekdada Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"extends": ["@commitlint/config-angular"],
"rules": {
"subject-case": [
2,
"always",
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
],
"header-max-length": [1, "always", 72],
"type-enum": [
2,
"always",
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/node_modules
/coverage
/public
/src/utils/shadcn.ts
82 changes: 82 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
module.exports = {
parser: '@typescript-eslint/parser',
settings: {
react: {
version: 'detect',
},
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
env: {
browser: true,
node: true,
es6: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'esnext',
},
plugins: ['@typescript-eslint', 'import'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
],
rules: {
'no-debugger': 'warn',
'react/no-unknown-property': ['error', { ignore: ['css'] }],
'react/prop-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'import/no-named-as-default-member': 'off',
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'unknown',
'parent',
'sibling',
'index',
'object',
'type',
],
'newlines-between': 'always',
pathGroups: [
{
pattern: '@/**',
group: 'internal',
position: 'before',
},
{
pattern: 'react*',
group: 'external',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
distinctGroup: false,
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
}
36 changes: 0 additions & 36 deletions .eslintrc.js

This file was deleted.

13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14]
node-version: [18]

steps:
- uses: actions/checkout@v1
Expand All @@ -37,13 +37,14 @@ jobs:
- name: yarn install, build
run: |
yarn install
yarn build

- name: test, report coverage
run: |
yarn verify-translation
yarn test:coverage
yarn test

- uses: codecov/codecov-action@v1
if: success() && matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - uses: codecov/codecov-action@v1
# if: success() && matrix.os == 'ubuntu-latest'
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14]
node-version: [18]

steps:
- uses: actions/checkout@v1
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

# production
/build
/build.tar.gz
/yasd.tar.gz
/*.tar.gz

# misc
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

File renamed without changes.
130 changes: 130 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,133 @@
# [2.0.0-beta.10](https://github.com/geekdada/yasd/compare/v2.0.0-beta.9...v2.0.0-beta.10) (2023-08-28)


### Features

* validate profiles ([e0a2bcb](https://github.com/geekdada/yasd/commit/e0a2bcb75c1cfcc478977dac072e426991aa9fd6))



# [2.0.0-beta.9](https://github.com/geekdada/yasd/compare/v2.0.0-beta.8...v2.0.0-beta.9) (2023-08-27)


### Features

* manage profiles ([d035462](https://github.com/geekdada/yasd/commit/d0354627de285e1aa5d915b5f0e394396d935fed))



# [2.0.0-beta.8](https://github.com/geekdada/yasd/compare/v2.0.0-beta.7...v2.0.0-beta.8) (2023-08-24)


### Bug Fixes

* known bugs ([5ff78f7](https://github.com/geekdada/yasd/commit/5ff78f7b8e718b895110581ee66cb4ec34bf6466))


### Features

* safe area handling ([c367084](https://github.com/geekdada/yasd/commit/c3670847469da77c24bc7a69a3401330a65ce9ab))



# [2.0.0-beta.7](https://github.com/geekdada/yasd/compare/v2.0.0-beta.6...v2.0.0-beta.7) (2023-08-23)


### Features

* add sorting to request list ([a3bf7ea](https://github.com/geekdada/yasd/commit/a3bf7ead40d9177f7d0479597ec0e7c940bc6b97))



# [2.0.0-beta.6](https://github.com/geekdada/yasd/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2023-08-17)


### Features

* improve ui ([b5b8b83](https://github.com/geekdada/yasd/commit/b5b8b83a42d394b9c52fbeda5ddafe15ca908516))



# [2.0.0-beta.5](https://github.com/geekdada/yasd/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2023-08-16)


### Features

* address feedback ([4dea7a7](https://github.com/geekdada/yasd/commit/4dea7a731c9918c3fe2069296ac65d380082f2f2))



# [2.0.0-beta.4](https://github.com/geekdada/yasd/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2023-08-15)


### Bug Fixes

* navigate to home when run on surge build ([8aad576](https://github.com/geekdada/yasd/commit/8aad576e0912e4bebcb2ff413aa91305fa2b9e6d))
* remove unused dep ([b7b05ef](https://github.com/geekdada/yasd/commit/b7b05efc78ed9fae4d59323e3259d6e477779e65))



# [2.0.0-beta.3](https://github.com/geekdada/yasd/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2023-08-15)


### Bug Fixes

* platform property ([8531464](https://github.com/geekdada/yasd/commit/8531464f8a2d38b8e5988bb9ddf93bb649caf5a5))
* profile loading incorrectly ([9276ecb](https://github.com/geekdada/yasd/commit/9276ecbd738044bfe294dd06ab4ad7713f5c40ad))


### Features

* add a dialog to install certificate ([91ce682](https://github.com/geekdada/yasd/commit/91ce682c1a42b4186f3b566e589f79f0df0b63ca))



# [2.0.0-beta.2](https://github.com/geekdada/yasd/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2023-08-14)


### Bug Fixes

* height issue ([b579a3f](https://github.com/geekdada/yasd/commit/b579a3faa678cee17f47a56929066d5f840bc07c))



# [2.0.0-beta.1](https://github.com/geekdada/yasd/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2023-08-14)


### Features

* address feedback issue ([1e4cfc0](https://github.com/geekdada/yasd/commit/1e4cfc0df9cc788b7bb1b1554760718581ddf161))
* improve style ([fe00f55](https://github.com/geekdada/yasd/commit/fe00f55faf74bea9b89faab44602065ca1888ac0))



# [2.0.0-beta.0](https://github.com/geekdada/yasd/compare/v1.1.2...v2.0.0-beta.0) (2023-08-13)


### Bug Fixes

* eslint issues ([89f0cf3](https://github.com/geekdada/yasd/commit/89f0cf300e5a9146cae86548933e1bb6bf99f981))
* theme color ([2a489e8](https://github.com/geekdada/yasd/commit/2a489e80fe33408f6d8052afb93248a2297b0d69))
* upgrade issues ([6eb6edf](https://github.com/geekdada/yasd/commit/6eb6edfcc459d1c4ed7000d848330f3affff9ede))


### Features

* clear traffic and profile on landing page ([8ca3f51](https://github.com/geekdada/yasd/commit/8ca3f5135aec6a81e0e517e8375ee8fc0a7cb99e))
* give the home page a new look ([7482975](https://github.com/geekdada/yasd/commit/74829758d45c755d7569afda40d1bbcced6b4354))
* give the policies page a new look ([830fa0e](https://github.com/geekdada/yasd/commit/830fa0ed11fff2e47b54c94f48ba8286818645ed))
* improve history and profile management ([032fa5d](https://github.com/geekdada/yasd/commit/032fa5d50ae915d715023c566c56278964720506))
* improve landing page ([5a6c438](https://github.com/geekdada/yasd/commit/5a6c438f0af096d05f854e7285f740dc2eaf6dad))
* improve style ([72c9ee2](https://github.com/geekdada/yasd/commit/72c9ee2188000ad25a8eae3f749a9b7763a1befb))
* improve the requests page ([e7cab51](https://github.com/geekdada/yasd/commit/e7cab514416be661d745d28723f72102742c5e89))
* improve ui ([a88bf49](https://github.com/geekdada/yasd/commit/a88bf49e43b60d9aefad98ac13b786d9bdb95569))
* improve ui ([2f79a4c](https://github.com/geekdada/yasd/commit/2f79a4c106e6df1f2a8269a1d08f53d3afc4cd98))
* improve ui ([06a7e00](https://github.com/geekdada/yasd/commit/06a7e00b04e9b5321807460b3338bd68b9713be6))
* include sashimi ([f2f3ded](https://github.com/geekdada/yasd/commit/f2f3dedff161bd7af08055622101b29add1a0b44))
* use traffic context to store traffic related data ([ed833c0](https://github.com/geekdada/yasd/commit/ed833c0caa97ed092882c5d7a57c4a45f165747f))



## [1.1.2](https://github.com/geekdada/yasd/compare/v1.1.1...v1.1.2) (2021-11-03)


Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@

![Github Actions][github-actions-image]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]

[codecov-image]: https://codecov.io/gh/geekdada/yasd/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/geekdada/yasd
[david-image]: https://img.shields.io/david/geekdada/yasd.svg?style=flat-square
[david-url]: https://david-dm.org/geekdada/yasd
[snyk-image]: https://snyk.io/test/github/geekdada/yasd/badge.svg?targetFile=package.json
[snyk-url]: https://snyk.io/test/github/geekdada/yasd?targetFile=package.json
[snyk-image]: https://snyk.io/test/github/geekdada/yasd/badge.svg
[snyk-url]: https://snyk.io/test/github/geekdada/yasd
[github-actions-image]: https://github.com/geekdada/yasd/workflows/Node%20CI/badge.svg

[中文](/README_zh-CN.md) | [English](/README.md)
Expand Down
7 changes: 2 additions & 5 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@

![Github Actions][github-actions-image]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]

[codecov-image]: https://codecov.io/gh/geekdada/yasd/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/geekdada/yasd
[david-image]: https://img.shields.io/david/geekdada/yasd.svg?style=flat-square
[david-url]: https://david-dm.org/geekdada/yasd
[snyk-image]: https://snyk.io/test/github/geekdada/yasd/badge.svg?targetFile=package.json
[snyk-url]: https://snyk.io/test/github/geekdada/yasd?targetFile=package.json
[snyk-image]: https://snyk.io/test/github/geekdada/yasd/badge.svg
[snyk-url]: https://snyk.io/test/github/geekdada/yasd
[github-actions-image]: https://github.com/geekdada/yasd/workflows/Node%20CI/badge.svg

[中文](/README_zh-CN.md) | [English](/README.md)
Expand Down
6 changes: 6 additions & 0 deletions bump.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'bumpp'

export default defineConfig({
execute: 'npm run changelog',
all: true,
})
16 changes: 16 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.cjs",
"css": "src/styles/shadcn.css",
"baseColor": "zinc",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/utils/shadcn"
}
}
Loading