Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c83ff39
Remove everything
haxxpop Oct 11, 2021
55145cc
Initial commit
haxxpop May 18, 2021
bab151b
Apply scss loader to webpack
haxxpop May 19, 2021
0fbe2c7
Alias module names
haxxpop May 19, 2021
c741a54
Implement popup header
haxxpop May 20, 2021
cbd360b
Consolidate all the colors into one file
haxxpop May 20, 2021
1275bc3
Body tag must not have a margin
haxxpop May 20, 2021
1ab911d
Implement PassButton component
haxxpop May 20, 2021
b4859d6
Implement Button component
haxxpop May 20, 2021
0f2c45e
Make all the private scss variables private
haxxpop May 20, 2021
316a041
Add README file
haxxpop Jun 3, 2021
c55b355
Listen on tab events and update the Tab objects
haxxpop Jun 7, 2021
c641cd2
Change the context of the tab upon the response
haxxpop Jun 7, 2021
1526419
Integrate the legacy crypto code
haxxpop Jun 8, 2021
2551004
Send Cloudflare issuance requests when appropriate
haxxpop Jun 9, 2021
36832d1
Explain the improvements to the previous version
haxxpop Jun 10, 2021
47fceb1
Download Cloudflare commitments
haxxpop Jul 19, 2021
1acf186
Verify DLEQ proof
haxxpop Jul 26, 2021
9987d48
Unblind issued tokens
haxxpop Jul 26, 2021
4b1db28
Store tokens in the local storage
haxxpop Jul 27, 2021
fb19958
Change TypeScript configuration
haxxpop Aug 6, 2021
4281edf
Configure a Jest testing framework
haxxpop Aug 10, 2021
e02f64e
Add TODO comments
haxxpop Aug 10, 2021
356948c
Use npm instead of yarn
haxxpop Aug 11, 2021
3632921
Refactor getting/storing tokens in the storage
haxxpop Aug 3, 2021
31a561a
Change when to clear the context
haxxpop Aug 3, 2021
1bc08b6
Cloudflare token redemption
haxxpop Aug 3, 2021
6115d58
Show the number of tokens in the popup
haxxpop Aug 11, 2021
b140627
RTG-1182: Enabling ES modules and refactoring
armfazh Aug 12, 2021
eee6c4c
Add missing listeners
haxxpop Sep 20, 2021
0533e08
Update the README file
haxxpop Sep 20, 2021
8d3518f
RTG-1316: Split webpack configuration for popup and background.
armfazh Sep 27, 2021
af89cc1
Implement the provider button logic
haxxpop Sep 27, 2021
3179516
Remove unused variables
haxxpop Sep 30, 2021
69ce6a0
Implement the logic for clearing pass button
haxxpop Oct 6, 2021
c930b10
Fix the typo on the provider name
haxxpop Oct 6, 2021
a6fe56d
Implement the Github link button
haxxpop Oct 8, 2021
531d387
Clear cookies for captcha.website after issuance
haxxpop Oct 8, 2021
c304106
Reload the tab after issuance
haxxpop Oct 11, 2021
2e8daa7
Update v3 README.md file
haxxpop Oct 14, 2021
5b312fd
Create Storage class
haxxpop Oct 18, 2021
8e1279b
Use Redux to share states
haxxpop Oct 18, 2021
3bb9971
Update installation instructions
haxxpop Oct 19, 2021
35339e9
Removes vulnerable dependencies reported by npm.
armfazh Oct 18, 2021
79b23dd
Updating dependencies and running linter.
armfazh Oct 18, 2021
c78a7bb
Add CI for v3-rc and run linter.
armfazh Oct 20, 2021
0d53361
Use callbacks instead of events
haxxpop Oct 25, 2021
8feb9b4
Add Storage interface
haxxpop Nov 3, 2021
23c42b3
Add tests for Cloudflare provider
haxxpop Oct 26, 2021
46d08af
Remove unused permission webNavigation
haxxpop Nov 9, 2021
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
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

26 changes: 0 additions & 26 deletions .circleci/config.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

161 changes: 33 additions & 128 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,140 +1,45 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script"
},
"extends": ["eslint:recommended", "google"],
"globals": {
"activeConfig": true,
"assert": true,
"ASN1": true,
"attemptRedeem": true,
"beforeRequest": true,
"beforeSendHeaders": true,
"blindPoint": true,
"browser": true,
"Buffer": true,
"BuildRedeemHeader": true,
"cachedCommitmentsKey": true,
"CF_CONFIG_ID": true,
"checkCookies": true,
"CHL_BYPASS_RESPONSE": true,
"CHL_BYPASS_SUPPORT": true,
"chlCaptchaDomain": true,
"chlClearanceCookie": true,
"chrome": true,
"clearCachedCommitments": true,
"clear": true,
"commitmentsKey": true,
"committedNavigation": true,
"CONFIG_ID": true,
"CONFIGURATION_URL": true,
"countStoredTokens": true,
"createShake256": true,
"dev": true,
"extVersion": true,
"futureReload": true,
"GenerateNewTokens": true,
"getActiveECSettings": true,
"getBigNumFromBytes": true,
"getVerificationKey": true,
"getConfigForId": true,
"getConfigId": true,
"getConfigName": true,
"getCurvePoints": true,
"getSpendFlag": true,
"getTabId": true,
"getTarget": true,
"get": true,
"h2cParams": true,
"h2Curve": true,
"handleCompletion": true,
"handleMessage": true,
"HC_CONFIG_ID": true,
"initECSettings": true,
"isErrorPage": true,
"isFaviconUrl": true,
"issueActionUrls": true,
"LISTENER_URLS": true,
"loadTokens": true,
"maxTokens": true,
"newRandomPoint": true,
"parseKeys": true,
"patternToRegExp": true,
"PEM": true,
"PPConfigs": true,
"processConfigPatches": true,
"processHeaders": true,
"processRedirect": true,
"redeemMethod": true,
"reloadBrowserTab": true,
"reloadOnSign": true,
"reloadTabForCookie": true,
"requestIdentifiers": true,
"resetSpendVars": true,
"retrieveConfiguration": true,
"sec1DecodeFromBase64": true,
"sec1DecodeFromBytes": true,
"sec1EncodeToBase64": true,
"sec1Encode": true,
"sendH2CParams": true,
"sendXhrSignReq": true,
"sentTokens": true,
"setFutureReload": true,
"setSpendFlag": true,
"set": true,
"signReqCF": true,
"signReqHC": true,
"signResponseFMT": true,
"spentTab": true,
"storageKeyCount": true,
"storageKeyTokens": true,
"storedCommitments": true,
"storeNewTokens": true,
"storeTokens": true,
"timeSinceLastResp": true,
"tokensPerRequest": true,
"unblindPoint": true,
"updateBrowserTab": true,
"UpdateCallback": true,
"updateIcon": true,
"validConfigIds": true,
"validRedemptionMethods": true,
"verifyConfiguration": true,
"verifyProof": true,
"xhrDone": true,
"xhrGoodStatus": true
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint",
"security",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended",
"plugin:prettier/recommended",
"prettier"
],
"rules": {
"new-cap": 0,
"no-trailing-spaces": "error",
"linebreak-style": [
"error",
"unix"
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-namespace": [
"warn"
],
"quotes": [
"@typescript-eslint/no-unused-vars": [
"error",
"double",
{ "allowTemplateLiterals": true }
],
"no-unused-vars": [
"error", {
"args": "none"
{
"argsIgnorePattern": "^_"
}
],
"no-case-declarations": 0,
"no-console": [
"error", {
"allow": ["error", "warn"]
"error",
{
"allow": [
"warn",
"error"
]
}
],
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": 0,
"no-redeclare": 0,
"prefer-const": 0
]
}
}
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/new-bug.md

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: PrivacyPass Challenge Extension

on:
push:
branches: [ master ]
branches: [ v3-rc ]
pull_request:
branches: [ master ]
branches: [ v3-rc ]

jobs:
testing:
Expand All @@ -21,10 +21,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Installing
run: make install
run: npm ci
- name: Linting
run: make lint
run: npm run lint
- name: Building
run: make build
run: npm run build
- name: Testing
run: make test-all
run: npm test
16 changes: 4 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
.DS_Store
.*.sw?
.sw?
node_modules/
yarn-error.log
coverage-final.json
lcov.info
coverage/
dist/
*.zip
build.js
test.js
*.swp
/node_modules
/dist
/lib
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all",
"printWidth": 100
}
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Contribution Guidelines

### Code Style

Code is written in TypeScript and is automatically formatted with prettier.

```
$ npm run lint
```

### Naming convention

It is recommended to follow style guide for [TypeScript](https://google.github.io/styleguide/tsguide.html).
26 changes: 0 additions & 26 deletions LICENSE

This file was deleted.

Loading