From 92f96b902dad4ff0b1ca513d3de408caf0d5eca2 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Mon, 29 Dec 2025 22:15:59 +0100 Subject: [PATCH] 'GitHub Trends' -> 'GitHub Stats Extended', clean up unused code --- frontend/frontend/.gitignore | 3 - frontend/frontend/package.json | 5 +- frontend/frontend/public/index.html | 45 +++++++++++ frontend/frontend/public/manifest.json | 8 +- frontend/frontend/public/trends.html | 77 ------------------- frontend/frontend/src/api/index.js | 9 +-- frontend/frontend/src/api/user.js | 19 +---- frontend/frontend/src/constants.js | 12 +-- frontend/frontend/src/index.js | 17 ++-- frontend/frontend/src/pages/App/AppTrends.js | 2 +- frontend/frontend/src/pages/App/Header.js | 19 +---- frontend/frontend/src/pages/Home/Home.js | 8 +- .../frontend/src/pages/Home/stages/Login.js | 6 +- 13 files changed, 73 insertions(+), 157 deletions(-) create mode 100644 frontend/frontend/public/index.html delete mode 100644 frontend/frontend/public/trends.html diff --git a/frontend/frontend/.gitignore b/frontend/frontend/.gitignore index 1130e8b8..4d29575d 100644 --- a/frontend/frontend/.gitignore +++ b/frontend/frontend/.gitignore @@ -21,6 +21,3 @@ npm-debug.log* yarn-debug.log* yarn-error.log* - -# custom -public/index.html \ No newline at end of file diff --git a/frontend/frontend/package.json b/frontend/frontend/package.json index cf74821b..2f27613e 100644 --- a/frontend/frontend/package.json +++ b/frontend/frontend/package.json @@ -56,9 +56,8 @@ "webpack-dev-server": "^5.2.2" }, "scripts": { - "setup-trends": "cp ./public/trends.html ./public/index.html", - "start-trends": "yarn setup-trends && REACT_APP_MODE=trends craco start", - "build-trends": "yarn setup-trends && REACT_APP_MODE=trends craco build", + "start-trends": "craco start", + "build-trends": "craco build", "test": "craco test", "eject": "react-scripts eject" }, diff --git a/frontend/frontend/public/index.html b/frontend/frontend/public/index.html new file mode 100644 index 00000000..eca8d8f5 --- /dev/null +++ b/frontend/frontend/public/index.html @@ -0,0 +1,45 @@ + + +
+ + + + + + + + + + + + + + + + + + +{privateAccess ? ( <> - You granted GitHub Trends access to both your{' '} + You granted GitHub-Stats-Extended access to both your{' '} public and private contributions. > ) : ( <> - You granted GitHub Trends access to your public{' '} - contributions. + You granted GitHub-Stats-Extended access to your{' '} + public contributions. > )}
diff --git a/frontend/frontend/src/pages/Home/stages/Login.js b/frontend/frontend/src/pages/Home/stages/Login.js index 4b49ada5..723be850 100644 --- a/frontend/frontend/src/pages/Home/stages/Login.js +++ b/frontend/frontend/src/pages/Home/stages/Login.js @@ -157,7 +157,7 @@ const LoginStage = ({ setCurrItem }) => {- This will delete your GitHub Trends account and then + This will delete your GitHub-Stats-Extended account and then redirect you to a GitHub screen where you can revoke your access token.
@@ -172,7 +172,7 @@ const LoginStage = ({ setCurrItem }) => { Log Out- Log out from GitHub Trends. + Log out from GitHub-Stats-Extended.
- Try out Github Trends with data from an example + Try out GitHub-Stats-Extended with data from an example user/repository.