Skip to content

Commit

Permalink
feat: Add Sanity CMS (#125)
Browse files Browse the repository at this point in the history
* feat (wip): setup basic sanity

* feat: add custom input for links

* feat: integrate sanity

* fix: cleanup

* feat: extract logic to hook

* feat: actually extract hooks

* fix: eslint

* fix: correct useEffect dep

* feat: add props to custom input, cleanup misc.

* feat: move pages to dev
  • Loading branch information
KevinWu098 authored Jul 22, 2024
1 parent 299f2a1 commit 4564bb5
Show file tree
Hide file tree
Showing 25 changed files with 16,630 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"useTabs": true,
"tabWidth": 4,
"semi": true,
"singleQuote": false
"singleQuote": false,
"printWidth": 80
}
174 changes: 171 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.1",
"private": true,
"dependencies": {
"@sanity/client": "^6.21.1",
"@testing-library/user-event": "^12.8.3",
"animejs": "^3.2.2",
"clsx": "^1.1.1",
Expand Down
3 changes: 3 additions & 0 deletions sanity-dauci/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@sanity/eslint-config-studio"
}
29 changes: 29 additions & 0 deletions sanity-dauci/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
/node_modules
/.pnp
.pnp.js

# Compiled Sanity Studio
/dist

# Temporary Sanity runtime, generated by the CLI on every dev server start
/.sanity

# Logs
/logs
*.log

# Coverage directory used by testing tools
/coverage

# Misc
.DS_Store
*.pem

# Typescript
*.tsbuildinfo

# Dotenv and similar local-only files
*.local
11 changes: 11 additions & 0 deletions sanity-dauci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Sanity Blogging Content Studio

Congratulations, you have now installed the Sanity Content Studio, an open-source real-time content editing environment connected to the Sanity backend.

Now you can do the following things:

- [Read “getting started” in the docs](https://www.sanity.io/docs/introduction/getting-started?utm_source=readme)
- Check out the example frontend: [React/Next.js](https://github.com/sanity-io/tutorial-sanity-blog-react-next)
- [Read the blog post about this template](https://www.sanity.io/blog/build-your-own-blog-with-sanity-and-next-js?utm_source=readme)
- [Join the community Slack](https://slack.sanity.io/?utm_source=readme)
- [Extend and build plugins](https://www.sanity.io/docs/content-studio/extending?utm_source=readme)
Loading

0 comments on commit 4564bb5

Please sign in to comment.