Fixs Broken Stats page for evt(commit msg)
This commit is contained in:
parent
97191c197b
commit
18c784bb2d
|
@ -24,7 +24,7 @@ export default function Buymeacoffee() {
|
|||
script.setAttribute("data-y_margin", "18");
|
||||
|
||||
script.onload = function () {
|
||||
var evt = document.createEvent("Event");
|
||||
let evt = document.createEvent("Event");
|
||||
evt.initEvent("DOMContentLoaded", false, false);
|
||||
window.dispatchEvent(evt);
|
||||
};
|
||||
|
|
|
@ -298,8 +298,7 @@ export default function DiscordActivity() {
|
|||
</DicordActivityStyle>
|
||||
);
|
||||
} else {
|
||||
// console.log(status);
|
||||
var restData = {
|
||||
let restData = {
|
||||
username: "Bravo68-DF_Techs",
|
||||
public_flags: 64,
|
||||
id: "457039372009865226",
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
import SkillCard from "../skillCard";
|
||||
|
||||
function GitHubUserEvtSkillCard({ title, image, evt1, evt2, evt3, url }) {
|
||||
var ghLogo = "/images/github_events/GitIcon.png";
|
||||
let ghLogo = "/images/github_events/GitIcon.png";
|
||||
// Evt1
|
||||
if (evt1.type === "PushEvent") {
|
||||
evt1.entTypeLogo = "/images/github_events/github_push_event_logo.png";
|
||||
|
@ -121,7 +121,7 @@ function GitHubUserEvtSkillCard({ title, image, evt1, evt2, evt3, url }) {
|
|||
<br />
|
||||
{evt1.repo.name}
|
||||
</div>
|
||||
<div className="description commit-msg">{evt1?.commitMsg.slice(0,50)}</div>
|
||||
<div className="description commit-msg">{evt1?.commitMsg?.slice(0,50)}</div>
|
||||
{/* <div className="description">{evt1?.created_at}</div> */}
|
||||
</div>
|
||||
<br />
|
||||
|
@ -132,7 +132,7 @@ function GitHubUserEvtSkillCard({ title, image, evt1, evt2, evt3, url }) {
|
|||
<br />
|
||||
{evt2.repo.name}
|
||||
</div>
|
||||
<div className="description commit-msg">{evt2?.commitMsg.slice(0,50)}</div>
|
||||
<div className="description commit-msg">{evt2?.commitMsg?.slice(0,50)}</div>
|
||||
{/* <div className="description">{evt2?.created_at}</div> */}
|
||||
</div>
|
||||
<br />
|
||||
|
@ -143,7 +143,7 @@ function GitHubUserEvtSkillCard({ title, image, evt1, evt2, evt3, url }) {
|
|||
<br />
|
||||
{evt3.repo.name}
|
||||
</div>
|
||||
<div className="description commit-msg">{evt3?.commitMsg.slice(0,50)}</div>
|
||||
<div className="description commit-msg">{evt3?.commitMsg?.slice(0,50)}</div>
|
||||
{/* <div className="description">{evt3?.created_at}</div> */}
|
||||
</div>
|
||||
</SkillCard>
|
||||
|
|
|
@ -819,7 +819,7 @@ babel-plugin-macros@^3.1.0:
|
|||
cosmiconfig "^7.0.0"
|
||||
resolve "^1.19.0"
|
||||
|
||||
"babel-plugin-styled-components@>= 1.12.0", babel-plugin-styled-components@^2.0.7:
|
||||
"babel-plugin-styled-components@>= 1.12.0":
|
||||
version "2.0.7"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-2.0.7.tgz#c81ef34b713f9da2b7d3f5550df0d1e19e798086"
|
||||
integrity sha512-i7YhvPgVqRKfoQ66toiZ06jPNA3p6ierpfUuEWxNF+fV27Uv5gxBkf8KZLHUCc1nFA9j6+80pYoIpqCeyW3/bA==
|
||||
|
|
Loading…
Reference in New Issue