. ├── components │ ├── Banner.js │ ├── Footer.js │ ├── Header.js │ ├── ItemPost.js │ ├── Pagnation.js │ ├── Post.js │ └── Sidebar.js ├── config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // pages/api/auth/[...nextauth].js | |
| import NextAuth from "next-auth" | |
| import GithubProvider from "next-auth/providers/github" | |
| export const authOptions = { | |
| providers: [ | |
| GithubProvider({ | |
| clientId: process.env.GITHUB_ID, | |
| clientSecret: process.env.GITHUB_SECRET, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import '../styles/globals.css' | |
| import Head from "next/head"; | |
| import Header from "../components/Header"; | |
| import Footer from "../components/Footer"; | |
| import { DefaultSeo } from 'next-seo'; | |
| import SEO from '../next-seo.config'; | |
| import { SessionProvider } from "next-auth/react" | |
| // for error handing | |
| import ErrorBoundary from '../components/ErrorBoundary'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Content Manager</title> | |
| <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> | |
| </head> | |
| <body> | |
| <!-- Include the script that builds the page and powers Netlify CMS --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backend: | |
| name: git-gateway | |
| branch: main | |
| media_folder: "public/images" # Media files will be stored in the repo under static/images/uploads | |
| public_folder: "/images" # The src attribute for uploaded media will begin with /images/uploads | |
| collections: | |
| - name: "blog" # Used in routes, e.g., /admin/collections/blog | |
| label: "Blog" # Used in the UI | |
| folder: "posts" # The path to the folder where the documents are stored | |
| create: true # Allow users to create new documents in this collection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // _document.js | |
| import Document, { Html, Head, Main, NextScript } from 'next/document' | |
| class MyDocument extends Document { | |
| static async getInitialProps(ctx) { | |
| const initalProps = await Document.getInitialProps(ctx) | |
| return initalProps | |
| } | |
| render() { | |
| return ( | |
| <Html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createContext } from 'react' | |
| import { createStore } from 'zustand' | |
| // create store | |
| const store = createStore() | |
| // create contact with react api | |
| const StoreContext = createContext() |
rajdeepsingh@officialrajdeepsingh:~/working/bun-next$ curl -sS https://starship.rs/install.sh | sh
Configuration
Bin directory: /usr/local/bin Platform: unknown-linux-musl Arch: x86_64
Tarball URL: https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-musl.tar.gz ? Install Starship latest to /usr/local/bin? [y/N] y ! Escalated permissions are required to install to /usr/local/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import Head from 'next/head'; | |
| import { ThemeProvider } from '@mui/material/styles'; | |
| import CssBaseline from '@mui/material/CssBaseline'; | |
| import { CacheProvider } from '@emotion/react'; | |
| import theme from '../config/theme'; | |
| import createEmotionCache from '../config/createEmotionCache'; | |
| // Client-side cache, shared for the whole session of the user in the browser. | |
| const clientSideEmotionCache = createEmotionCache(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import Head from 'next/head'; | |
| import { AppProps } from 'next/app'; | |
| import { ThemeProvider } from '@mui/material/styles'; | |
| import CssBaseline from '@mui/material/CssBaseline'; | |
| import { CacheProvider, EmotionCache } from '@emotion/react'; | |
| import theme from '../config/theme'; | |
| import createEmotionCache from '../config/createEmotionCache'; | |