-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from sahrohit/develop
build(blog): ✨ added blog site
- Loading branch information
Showing
77 changed files
with
7,388 additions
and
898 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"apps/**/*.{ts,tsx,js,jsx}": ["eslint --fix"], | ||
"packages/**/*.{ts,tsx,js,jsx}": ["eslint --fix"], | ||
"apps/**/*.{ts,tsx,js,jsx,astro}": ["eslint --fix"], | ||
"packages/**/*.{ts,tsx,js,jsx,astro}": ["eslint --fix"], | ||
"**/*.{md,mdx,yml,json,babelrc,eslintrc,prettierrc}": ["prettier --write"] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
auto-install-peers=true | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import withProtected from "@/routes/withProtected"; | ||
|
||
const OrdersPage = () => <div>OrdersPage</div>; | ||
|
||
export default withProtected(OrdersPage); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import withProtected from "@/routes/withProtected"; | ||
|
||
const ProductsPage = () => <div>ProductsPage</div>; | ||
|
||
export default withProtected(ProductsPage); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import withProtected from "@/routes/withProtected"; | ||
|
||
const TicketsPage = () => <div>TicketsPage</div>; | ||
|
||
export default TicketsPage; | ||
export default withProtected(TicketsPage); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
const Home = () => <>Hello</>; | ||
import UserProfile from "@/components/shared/sidebar/UserProfile"; | ||
import withProtected from "@/routes/withProtected"; | ||
import { Button, HStack, Heading, SimpleGrid, VStack } from "@chakra-ui/react"; | ||
import { useRouter } from "next/router"; | ||
|
||
export default Home; | ||
const HomePage = () => { | ||
const router = useRouter(); | ||
|
||
return ( | ||
<SimpleGrid height="100vh" width="100%" placeItems="center"> | ||
<Heading>Welcome Admin!</Heading> | ||
<Button | ||
colorScheme="primary" | ||
onClick={() => { | ||
router.push("/dashboard"); | ||
}} | ||
> | ||
Go to Dashboard | ||
</Button> | ||
<VStack> | ||
<HStack gap={4}> | ||
<Button | ||
colorScheme="secondary" | ||
onClick={() => { | ||
router.push("/auth/login"); | ||
}} | ||
> | ||
Login | ||
</Button> | ||
|
||
<Button | ||
colorScheme="secondary" | ||
onClick={() => { | ||
router.push("/auth/register"); | ||
}} | ||
> | ||
Register | ||
</Button> | ||
</HStack> | ||
<UserProfile /> | ||
</VStack> | ||
</SimpleGrid> | ||
); | ||
}; | ||
|
||
export default withProtected(HomePage); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.husky | ||
.vscode | ||
node_modules | ||
public | ||
dist | ||
.yarn |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["custom/astro"], | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: "./tsconfig.json", | ||
extraFileExtensions: [".astro"], | ||
}, | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# build output | ||
dist/ | ||
.output/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
# ignore .astro directory | ||
.astro | ||
|
||
# ignore Jampack cache files | ||
.jampack/ | ||
|
||
# yarn | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
.pnp.* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"MD033": false, | ||
"MD013": false | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> The idea of developing a ecommerce application has crossed every developer mind once in their lifetime but we went a little further. This project started as on of those sites and grew to become this. | ||
This is just a sample blog. But stay tuned, we'll be posting about our challenges we face as well as what's changed and everything that we publish here in these blog posts. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { defineConfig } from "astro/config"; | ||
import tailwind from "@astrojs/tailwind"; | ||
import react from "@astrojs/react"; | ||
import remarkToc from "remark-toc"; | ||
import remarkCollapse from "remark-collapse"; | ||
import sitemap from "@astrojs/sitemap"; | ||
import { SITE } from "./src/config"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: SITE.website, | ||
integrations: [ | ||
tailwind({ | ||
applyBaseStyles: false, | ||
}), | ||
react(), | ||
sitemap(), | ||
], | ||
markdown: { | ||
remarkPlugins: [ | ||
remarkToc, | ||
[ | ||
remarkCollapse, | ||
{ | ||
test: "Table of contents", | ||
}, | ||
], | ||
], | ||
shikiConfig: { | ||
theme: "one-dark-pro", | ||
wrap: true, | ||
}, | ||
}, | ||
vite: { | ||
optimizeDeps: { | ||
exclude: ["@resvg/resvg-js"], | ||
}, | ||
ssr: { | ||
noExternal: [ | ||
"astro", | ||
"@astrojs/react", | ||
"@astrojs/check", | ||
"@astrojs/rss", | ||
"@astrojs/tailwind", | ||
], | ||
}, | ||
}, | ||
scopedStyleStrategy: "where", | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "blog", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro build && jampack ./dist", | ||
"preview": "astro preview", | ||
"sync": "astro sync", | ||
"astro": "astro", | ||
"format:check": "prettier --plugin-search-dir=. --check .", | ||
"format": "prettier --plugin-search-dir=. --write .", | ||
"lint:check": "eslint .", | ||
"lint:fix": "eslint --fix ." | ||
}, | ||
"dependencies": { | ||
"@astrojs/check": "^0.3.0", | ||
"@astrojs/rss": "^3.0.0", | ||
"@resvg/resvg-js": "^2.6.0", | ||
"astro": "^3.4.0", | ||
"fuse.js": "^7.0.0", | ||
"github-slugger": "^2.0.0", | ||
"remark-collapse": "^0.1.2", | ||
"remark-toc": "^9.0.0", | ||
"satori": "^0.10.9", | ||
"tailwindcss": "^3.3.5", | ||
"typescript": "^5.2.2" | ||
}, | ||
"devDependencies": { | ||
"@astrojs/react": "^3.0.4", | ||
"@astrojs/sitemap": "^3.0.2", | ||
"@astrojs/tailwind": "^5.0.2", | ||
"@divriots/jampack": "^0.21.1", | ||
"@tailwindcss/typography": "^0.5.10", | ||
"@types/react": "^18.2.33", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"eslint-config-custom": "workspace:*", | ||
"tsconfig": "workspace:*" | ||
} | ||
} |
Oops, something went wrong.
4122c86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ecommerce-admin-client – ./apps/admin
ecommerce-admin-client-git-main-sahrohit.vercel.app
ecommerce-admin-client-sahrohit.vercel.app
adminpasal.vercel.app
admin.rudejellyfish.live
4122c86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ecommerce-storefront-client – ./apps/storefront
ecommerce-storefront-client-sahrohit.vercel.app
rudejellyfish.live
ecommerce-storefront-client-git-main-sahrohit.vercel.app
hamropasal.vercel.app
www.rudejellyfish.live
burger.rudejellyfish.live
*.rudejellyfish.live
lipsy.rudejellyfish.live