Skip to content

Commit a3ef8e3

Browse files
feat: update environment variables and improve Twitter component logic
1 parent 5f2011c commit a3ef8e3

7 files changed

Lines changed: 2626 additions & 2481 deletions

File tree

env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ USE_GITHUB_DATA = "true"
1111
// Set to your username in order to fetch blog data from Medium (otherwise, hardcoded values from Blogs.js are used)
1212
MEDIUM_USERNAME = "YOU MEDIUM USERNAME HERE"
1313
//sentry
14-
SENTRY_DSN = ""
14+
SENTRY_DSN = ""
15+
HASHNODE_USERNAME = ""

package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
"version": "0.1.0",
55
"private": true,
66
"dependencies": {
7-
"@calcom/embed-react": "^1.3.0",
8-
"@emotion/react": "^11.11.1",
9-
"@sentry/react": "^7.65.0",
10-
"@sentry/tracing": "^7.65.0",
11-
"@types/jest": "^29.5.4",
12-
"@types/node": "^20.5.7",
13-
"@types/react": "^18.2.21",
14-
"@types/react-dom": "^18.2.7",
15-
"axios": "^1.5.0",
16-
"colorthief": "^2.3.0",
7+
"@calcom/embed-react": "^1.5.2",
8+
"@emotion/react": "^11.14.0",
9+
"@sentry/react": "^9.2.0",
10+
"@sentry/tracing": "^7.120.3",
11+
"@types/jest": "^29.5.14",
12+
"@types/node": "^22.13.5",
13+
"@types/react": "^19.0.10",
14+
"@types/react-dom": "^19.0.4",
15+
"axios": "^1.8.1",
16+
"colorthief": "^2.6.0",
1717
"crypto-js": "^4.0.0",
18-
"gh-pages": "^6.0.0",
19-
"graphql": "^16.8.0",
20-
"react": "^18.2.0",
21-
"react-awesome-reveal": "^4.2.5",
22-
"react-dom": "^18.2.0",
18+
"gh-pages": "^6.3.0",
19+
"graphql": "^16.10.0",
20+
"react": "^19.0.0",
21+
"react-awesome-reveal": "^4.3.1",
22+
"react-dom": "^19.0.0",
2323
"react-easy-emoji": "^1.8.1",
2424
"react-headroom": "^3.2.1",
25-
"react-lottie": "^1.2.3",
25+
"react-lottie": "^1.2.10",
2626
"react-scripts": "5.0.1",
2727
"react-twitter-embed": "4.0.4",
28-
"sass": "^1.66.1",
29-
"typescript": "^5.2.2"
28+
"sass": "^1.85.1",
29+
"typescript": "^5.7.3"
3030
},
3131
"scripts": {
3232
"predeploy": "yarn build",
@@ -63,8 +63,9 @@
6363
]
6464
},
6565
"devDependencies": {
66-
"dotenv": "^16.3.1",
67-
"prettier": "^3.0.2",
66+
"dotenv": "^16.4.7",
67+
"prettier": "^3.5.2",
6868
"source-map-explorer": "^2.5.3"
69-
}
69+
},
70+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
7071
}

public/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,5 @@
7171
-->
7272
</body>
7373
<footer>
74-
<a href="https://www.iubenda.com/privacy-policy/91149329"
75-
class="iubenda-white iubenda-noiframe iubenda-embed iubenda-noiframe " title="Privacy Policy ">Privacy Policy</a>
76-
<script
77-
type="text/javascript">(function (w, d) { var loader = function () { var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src = "https://cdn.iubenda.com/iubenda.js"; tag.parentNode.insertBefore(s, tag); }; if (w.addEventListener) { w.addEventListener("load", loader, false); } else if (w.attachEvent) { w.attachEvent("onload", loader); } else { w.onload = loader; } })(window, document);</script>
78-
</footer>
79-
74+
<a href="https://www.iubenda.com/privacy-policy/91149329" class="iubenda-white iubenda-noiframe iubenda-embed iubenda-noiframe " title="Privacy Policy ">Privacy Policy</a><script type="text/javascript">(function (w,d) {var loader = function () {var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src="https://cdn.iubenda.com/iubenda.js"; tag.parentNode.insertBefore(s,tag);}; if(w.addEventListener){w.addEventListener("load", loader, false);}else if(w.attachEvent){w.attachEvent("onload", loader);}else{w.onload = loader;}})(window, document);</script>
8075
</html>

src/containers/twitter-embed/twitter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var widthScreen = window.screen.width;
2222
export default function Twitter() {
2323
const {isDark} = useContext<any>(StyleContext);
2424

25-
if (twitterDetails.userName) {
25+
if (twitterDetails.display) {
2626
return (
2727
<Suspense fallback={renderLoader()}>
2828
<div className="tw-main-div" id="twitter">

src/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ import "./index.css";
33
import App from "./App";
44
import * as serviceWorker from "./serviceWorker";
55
import * as Sentry from "@sentry/react";
6-
import {BrowserTracing} from "@sentry/browser";
76
import {createRoot} from "react-dom/client";
87

98
Sentry.init({
10-
dsn: "https://5dd57f3c6d084c2087beb45a916f4d7b@o4504497555963904.ingest.sentry.io/4504497557143552",
11-
integrations: [new BrowserTracing()],
9+
dsn: process.env.SENTRY_DSN,
10+
integrations: [Sentry.browserTracingIntegration()],
1211

1312
// Set tracesSampleRate to 1.0 to capture 100%
1413
// of transactions for performance monitoring.

0 commit comments

Comments
 (0)