Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wrong target branch] #70

Closed
wants to merge 57 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
802d5bb
fix: warning on start
sahithyandev Aug 6, 2023
b930abe
fix: style issue in navbar
sahithyandev Aug 6, 2023
8c368b7
fix: theming issue
sahithyandev Aug 7, 2023
0c90bbc
feat: add /extension-installed page
sahithyandev Aug 7, 2023
b042c63
fix: hide nav bar on /extension-installed page
sahithyandev Aug 7, 2023
3b92d97
feat: open /extension-installed for users on install
sahithyandev Aug 7, 2023
c630e04
fix: discord invite link
sahithyandev Aug 7, 2023
b488c48
chore: extract domainInfo route handler
sahithyandev Aug 9, 2023
0ff6f6e
chore: extract /contract-info route handler
sahithyandev Aug 9, 2023
242cc34
chore: extract submitContractReport route handler
sahithyandev Aug 9, 2023
5827f62
feat: add /event endpoint
sahithyandev Aug 11, 2023
c433c45
chore: minor issues in background.js
sahithyandev Aug 11, 2023
88a59c0
feat: turn on pageview tracking
sahithyandev Aug 11, 2023
bd2aae5
feat: send events from extension
sahithyandev Aug 11, 2023
2616a86
fix: set max age for user id cookie
sahithyandev Aug 11, 2023
7fdcce8
fix: send event on /domain-info fetched
sahithyandev Aug 11, 2023
ade65f8
Merge pull request #50 from sahithyandev/add-socials
VenkatTeja Aug 13, 2023
0094a67
merged
VenkatTeja Aug 13, 2023
89efa4c
merge event improvements
VenkatTeja Aug 13, 2023
2060601
warn when MIXPANEL_TOKEN is undefined
sahithyandev Aug 14, 2023
5d14bb8
fix: user id changing everytime for /event (#53)
sahithyandev Aug 14, 2023
53bc450
fix: missing telegram token killing server
sahithyandev Aug 14, 2023
0a63522
minor changes
sahithyandev Aug 14, 2023
e2af41d
fix: bug wiht financial alert
sahithyandev Aug 15, 2023
b3837c7
feat: include user id for mixpanel.track events in content.js
sahithyandev Aug 15, 2023
ff57bf1
fix: minor typescript errors in content.js
sahithyandev Aug 16, 2023
195bf02
feat: track financial-alert action
sahithyandev Aug 16, 2023
b881a05
feat: track domain alert action
sahithyandev Aug 16, 2023
56ae72d
feat: track domain alert shown
sahithyandev Aug 16, 2023
9488cec
feat: track contract alert shown
sahithyandev Aug 16, 2023
cb8654d
chore: minor refactor
sahithyandev Aug 16, 2023
017f6fb
feat: track contract alert risks expanded
sahithyandev Aug 16, 2023
0d6607e
Merge pull request #56 from Vigilance-DAO/improve-events
VenkatTeja Aug 16, 2023
22aa8dc
fix: events not being sent
sahithyandev Aug 17, 2023
f387e9b
fix: close alert if no data is available
sahithyandev Aug 17, 2023
456c071
fix: /contract-info fetched twice as much
sahithyandev Aug 18, 2023
9cb1056
chore: improve styles for /privacy-policy
sahithyandev Aug 19, 2023
f3ad269
chore: improve styles for /extension-installed
sahithyandev Aug 19, 2023
2b43523
chore: enable typing for telegramBot.js
sahithyandev Aug 19, 2023
3f79c1b
extract utility functions from background.js
sahithyandev Aug 20, 2023
dcec0b0
fix: wrong event name for update
sahithyandev Aug 20, 2023
2e1641f
fix: cant store Date object in storage
sahithyandev Aug 20, 2023
95ab5a2
chore: remove old items on update to avoid issues
sahithyandev Aug 20, 2023
8924b39
chore: improve logs
sahithyandev Aug 20, 2023
b8a743e
fix event userid empty logic
VenkatTeja Aug 23, 2023
166cb49
chore: remove prebuild script after running
sahithyandev Aug 25, 2023
696b183
chore: minor changes
sahithyandev Aug 26, 2023
dfb8953
merged
VenkatTeja Aug 28, 2023
1c62f53
deploy staging API and fix events API
VenkatTeja Aug 28, 2023
d7fd899
feat: add tooltip for Verified Alert
sahithyandev Aug 29, 2023
ed769e7
fix: contract alert risk expanded event missed
sahithyandev Aug 29, 2023
204e923
feat: add contract alert report button clicked event
sahithyandev Aug 29, 2023
257dc8b
remove credentials
VenkatTeja Aug 29, 2023
e5bf66a
Merge branch 'dev' of github.com:Vigilance-DAO/VigilanceDAO into dev
VenkatTeja Aug 29, 2023
9d29d92
v0.3.1
VenkatTeja Aug 29, 2023
2ab3ed1
first draft
sahithyandev Sep 1, 2023
730520d
add images
sahithyandev Sep 3, 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
7 changes: 6 additions & 1 deletion chrome-extension/bundle-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const prebuildOptions = {
}) || ""
)
.replace("\\", "/");
console.log(prebuildOutputScript);
console.log("Transpiled prebuild script", prebuildOutputScript);

if (prebuildOutputScript == "./") {
throw new Error("Prebuild script is not found");
Expand All @@ -164,6 +164,11 @@ const prebuildOptions = {
console.error(err);
}
console.log("Generating prebuilt html done");

// remove prebuild script
await rm(prebuildOutputScript).then(() => {
console.log("Removed", prebuildOutputScript);
}).catch(console.error);
});

build.onDispose(async () => {
Expand Down
22 changes: 20 additions & 2 deletions chrome-extension/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,24 @@ const abi = [

const address = "0x68Db62ADCaADdb21cB000841f1F347A6d8bEED9b"

// for production
// const API_ENDPOINT = "https://api.vigilancedao.org"
// const DOMAIN = 'https://vigilancedao.org'

// for staging
const API_ENDPOINT = 'https://i4jz77p469.execute-api.ap-northeast-1.amazonaws.com/staging';
const DOMAIN = 'https://vigilancedao.org'

// for development
// const API_ENDPOINT = "http://localhost:4000";
// const DOMAIN = "http://localhost:3000";

const USER_ID_KEY = "user-id";

module.exports = {
abi, address
}
abi,
address,
API_ENDPOINT,
DOMAIN,
USER_ID_KEY,
};
9 changes: 5 additions & 4 deletions chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"dev:other": "node bundle-config.mjs --watch",
"build": "concurrently npm:build:content npm:build:other npm:build:inject",
"dev": "concurrently npm:dev:other npm:dev:content npm:dev:inject",
"build:content": "browserify src/content.js -o build/content.js",
"dev:content": "nodemon --exec \"browserify src/content.js -o build/content.js\" --watch src/content.js",
"build:inject": "browserify src/inject.js -o build/inject.js",
"dev:inject": "nodemon --exec \"browserify src/inject.js -o build/inject.js\" --watch src/inject.js",
"build:content": "browserify -p esmify src/content.js -o build/content.js",
"dev:content": "nodemon --exec \"browserify -p esmify src/content.js -o build/content.js\" --watch src/content.js",
"build:inject": "browserify -p esmify src/inject.js -o build/inject.js",
"dev:inject": "nodemon --exec \"browserify -p esmify src/inject.js -o build/inject.js\" --watch src/inject.js",
"copy:assets": "cp -r assets/ build/static/",
"release": "yarn build && yarn build:content && yarn build:inject && yarn copy:assets"
},
Expand Down Expand Up @@ -58,6 +58,7 @@
"@types/mixpanel-browser": "^2.47.0",
"concurrently": "^8.2.0",
"esbuild-envfile-plugin": "^1.0.5",
"esmify": "^2.1.1",
"mkdirp": "^3.0.0",
"nodemon": "^2.0.22"
}
Expand Down
2 changes: 1 addition & 1 deletion chrome-extension/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Web3 Vigilance - Browser security",
"description": "Protect yourself from new websites against potential scams, frauds & phishing sites. Maintained by a blockchain org 'Vigilance DAO'",
"version": "0.3.0",
"version": "0.3.1",
"icons": {
"16": "images/icon16.png",
"32": "images/icon32.png",
Expand Down
Loading