Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx committed Nov 13, 2023
1 parent cc3962b commit 240cc25
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 34 deletions.
12 changes: 0 additions & 12 deletions 404.html

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function Comments() {
repoId="R_kgDOKrn4Tw"
category="Comments"
categoryId="DIC_kwDOKrn4T84Ca5ph"
mapping="pathname"
mapping="url"
term="Welcome to GPTHub!"
reactionsEnabled="1"
emitMetadata="0"
Expand Down
12 changes: 0 additions & 12 deletions src/layouts/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ export default function BaseLayout() {
const [isDark, setDark] = useState(false);
const navigate = useNavigate();

// useEffect(() => {
// if (window.location.search) {
// const params = new URLSearchParams(window.location.search);
// const uri = params.get('uri');
// if (uri) {
// const url = decodeURIComponent(encodeURIComponent(uri));
// navigate(new URL(url)?.pathname);
// }
// }
// // eslint-disable-next-line react-hooks/exhaustive-deps
// }, [window.location.search]);

useEffect(() => {
const theme = localStorage.getItem('theme');
const isDark2 = theme === 'dracula';
Expand Down
9 changes: 0 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ import { defineConfig, splitVendorChunkPlugin } from 'vite';
// import { VitePWA } from 'vite-plugin-pwa';
import react from '@vitejs/plugin-react-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
import { resolve } from 'path';

// https://vitejs.dev/config/
export default defineConfig({
base: '/',
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
404: resolve(__dirname, '404.html'),
},
},
},
plugins: [
tsconfigPaths(),
react(),
Expand Down

0 comments on commit 240cc25

Please sign in to comment.