Skip to content

Commit 9fc8c45

Browse files
committed
lint issues
1 parent 3438f93 commit 9fc8c45

File tree

5 files changed

+56
-59
lines changed

5 files changed

+56
-59
lines changed

astro.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import react from "@astrojs/react";
44
import remarkToc from "remark-toc";
55
import remarkCollapse from "remark-collapse";
66
import sitemap from "@astrojs/sitemap";
7-
import { SITE } from "./src/config";
7+
//import { SITE } from "./src/config";
88

99
import expressiveCode from "astro-expressive-code";
1010

src/components/Comments.tsx

+18-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
import Giscus, { type Theme } from "@giscus/react";
1+
//import Giscus, { type Theme } from "@giscus/react";
22
//import { GISCUS } from "@config";
3-
import { useEffect, useState } from "react";
4-
5-
interface CommentsProps {
6-
lightTheme?: Theme;
7-
darkTheme?: Theme;
8-
}
9-
10-
export default function Comments({
11-
lightTheme = "light",
12-
darkTheme = "dark",
13-
}: CommentsProps) {
14-
const [theme, setTheme] = useState(() => {
15-
const currentTheme = localStorage.getItem("theme");
16-
const browserTheme = window.matchMedia("(prefers-color-scheme: dark)")
17-
.matches
18-
? "dark"
19-
: "light";
20-
21-
return currentTheme || browserTheme;
22-
});
3+
import { useEffect } from "react";
4+
5+
// interface CommentsProps {
6+
// lightTheme?: Theme;
7+
// darkTheme?: Theme;
8+
// }
9+
10+
export default function Comments() {
11+
// const [theme, setTheme] = useState(() => {
12+
// const currentTheme = localStorage.getItem("theme");
13+
// const browserTheme = window.matchMedia("(prefers-color-scheme: dark)")
14+
// .matches
15+
// ? "dark"
16+
// : "light";
17+
18+
// return currentTheme || browserTheme;
19+
// });
2320

2421
useEffect(() => {
2522
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");

src/components/ShareLinks.astro

+35-35
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
---
2-
import LinkButton from "./LinkButton.astro";
3-
import socialIcons from "@assets/socialIcons";
2+
//import LinkButton from "./LinkButton.astro";
3+
//import socialIcons from "@assets/socialIcons";
44
5-
const URL = Astro.url;
5+
//const URL = Astro.url;
66
7-
const shareLinks = [
8-
{
9-
name: "WhatsApp",
10-
href: "https://wa.me/?text=",
11-
linkTitle: `Share this post via WhatsApp`,
12-
},
13-
{
14-
name: "Facebook",
15-
href: "https://www.facebook.com/sharer.php?u=",
16-
linkTitle: `Share this post on Facebook`,
17-
},
18-
{
19-
name: "Twitter",
20-
href: "https://twitter.com/intent/tweet?url=",
21-
linkTitle: `Tweet this post`,
22-
},
23-
{
24-
name: "Telegram",
25-
href: "https://t.me/share/url?url=",
26-
linkTitle: `Share this post via Telegram`,
27-
},
28-
{
29-
name: "Pinterest",
30-
href: "https://pinterest.com/pin/create/button/?url=",
31-
linkTitle: `Share this post on Pinterest`,
32-
},
33-
{
34-
name: "Mail",
35-
href: "mailto:?subject=See%20this%20post&body=",
36-
linkTitle: `Share this post via email`,
37-
},
38-
] as const;
7+
// const shareLinks = [
8+
// {
9+
// name: "WhatsApp",
10+
// href: "https://wa.me/?text=",
11+
// linkTitle: `Share this post via WhatsApp`,
12+
// },
13+
// {
14+
// name: "Facebook",
15+
// href: "https://www.facebook.com/sharer.php?u=",
16+
// linkTitle: `Share this post on Facebook`,
17+
// },
18+
// {
19+
// name: "Twitter",
20+
// href: "https://twitter.com/intent/tweet?url=",
21+
// linkTitle: `Tweet this post`,
22+
// },
23+
// {
24+
// name: "Telegram",
25+
// href: "https://t.me/share/url?url=",
26+
// linkTitle: `Share this post via Telegram`,
27+
// },
28+
// {
29+
// name: "Pinterest",
30+
// href: "https://pinterest.com/pin/create/button/?url=",
31+
// linkTitle: `Share this post on Pinterest`,
32+
// },
33+
// {
34+
// name: "Mail",
35+
// href: "mailto:?subject=See%20this%20post&body=",
36+
// linkTitle: `Share this post via email`,
37+
// },
38+
// ] as const;
3939
---
4040

4141
<div class={`social-icons`}>

src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Site, SocialObjects } from "./types";
2-
import type { GiscusProps } from "@giscus/react";
2+
//import type { GiscusProps } from "@giscus/react";
33

44
export const SITE: Site = {
55
website: "https://emeraldjava.github.io/", // replace this with your deployed domain

src/layouts/Layout.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const structuredData = {
6161
<script async src="https://www.googletagmanager.com/gtag/js?id=G-V66JPM85FQ"></script>
6262
<script is:inline>
6363
window.dataLayer = window.dataLayer || [];
64-
function gtag(){dataLayer.push(arguments);}
64+
function gtag(){dataLayer.push();}
6565
gtag('js', new Date());
6666
gtag('config', 'G-V66JPM85FQ');
6767
</script>

0 commit comments

Comments
 (0)