Skip to content

Commit 7cbee12

Browse files
committed
first commit
0 parents  commit 7cbee12

18 files changed

+10813
-0
lines changed

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@sanity/eslint-config-studio"
3+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.npmignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Logs
2+
/logs
3+
*.log
4+
5+
# Coverage directory used by tools like istanbul
6+
/coverage
7+
8+
# Dependency directories
9+
node_modules
10+
11+
# Compiled sanity studio
12+
/dist

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Sanity Clean Content Studio
2+
3+
Congratulations, you have now installed the Sanity Content Studio, an open source real-time content editing environment connected to the Sanity backend.
4+
5+
Now you can do the following things:
6+
7+
- [Read “getting started” in the docs](https://www.sanity.io/docs/introduction/getting-started?utm_source=readme)
8+
- [Join the community Slack](https://slack.sanity.io/?utm_source=readme)
9+
- [Extend and build plugins](https://www.sanity.io/docs/content-studio/extending?utm_source=readme)

config/.checksums

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"#": "Used by Sanity to keep track of configuration file checksums, do not delete or modify!",
3+
"@sanity/default-layout": "bb034f391ba508a6ca8cd971967cbedeb131c4d19b17b28a0895f32db5d568ea",
4+
"@sanity/default-login": "e2ed4e51e97331c0699ba7cf9f67cbf76f1c6a5f806d6eabf8259b2bcb5f1002",
5+
"@sanity/form-builder": "b38478227ba5e22c91981da4b53436df22e48ff25238a55a973ed620be5068aa",
6+
"@sanity/data-aspects": "d199e2c199b3e26cd28b68dc84d7fc01c9186bf5089580f2e2446994d36b3cb6",
7+
"@sanity/vision": "da5b6ed712703ecd04bf4df560570c668aa95252c6bc1c41d6df1bda9b8b8f60"
8+
}

config/@sanity/data-aspects.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"listOptions": {}
3+
}

config/@sanity/default-layout.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"toolSwitcher": {
3+
"order": [],
4+
"hidden": []
5+
}
6+
}

config/@sanity/default-login.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"providers": {
3+
"mode": "append",
4+
"redirectOnSingle": false,
5+
"entries": []
6+
},
7+
"loginMethod": "dual"
8+
}

config/@sanity/form-builder.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"images": {
3+
"directUploads": true
4+
}
5+
}

config/@sanity/vision.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"defaultApiVersion": "2021-10-21"
3+
}

package.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "nextjs-sanityio",
3+
"private": true,
4+
"version": "1.0.0",
5+
"description": "",
6+
"main": "package.json",
7+
"author": "Catalin George Festila <[email protected]>",
8+
"license": "UNLICENSED",
9+
"scripts": {
10+
"start": "sanity start",
11+
"build": "sanity build"
12+
},
13+
"keywords": [
14+
"sanity"
15+
],
16+
"dependencies": {
17+
"@sanity/base": "^2.30.0",
18+
"@sanity/core": "^2.30.0",
19+
"@sanity/default-layout": "^2.30.0",
20+
"@sanity/default-login": "^2.30.0",
21+
"@sanity/desk-tool": "^2.30.0",
22+
"@sanity/eslint-config-studio": "^2.0.0",
23+
"@sanity/vision": "^2.30.0",
24+
"eslint": "^8.6.0",
25+
"prop-types": "^15.7",
26+
"react": "^17.0",
27+
"react-dom": "^17.0",
28+
"styled-components": "^5.2.0"
29+
},
30+
"devDependencies": {}
31+
}

plugins/.gitkeep

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
User-specific packages can be placed here

sanity.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"root": true,
3+
"project": {
4+
"name": "nextjs-sanity_io"
5+
},
6+
"api": {
7+
"projectId": "9vb0o7gj",
8+
"dataset": "production"
9+
},
10+
"plugins": [
11+
"@sanity/base",
12+
"@sanity/default-layout",
13+
"@sanity/default-login",
14+
"@sanity/desk-tool"
15+
],
16+
"env": {
17+
"development": {
18+
"plugins": [
19+
"@sanity/vision"
20+
]
21+
}
22+
},
23+
"parts": [
24+
{
25+
"name": "part:@sanity/base/schema",
26+
"path": "./schemas/schema"
27+
}
28+
]
29+
}

schemas/schema.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// First, we must import the schema creator
2+
import createSchema from 'part:@sanity/base/schema-creator'
3+
4+
// Then import schema types from any plugins that might expose them
5+
import schemaTypes from 'all:part:@sanity/base/schema-type'
6+
7+
// Then we give our schema to the builder and provide the result to Sanity
8+
export default createSchema({
9+
// We name our schema
10+
name: 'default',
11+
// Then proceed to concatenate our document type
12+
// to the ones provided by any plugins that are installed
13+
types: schemaTypes.concat([
14+
/* Your types here! */
15+
]),
16+
})

static/.gitkeep

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Files placed here will be served by the Sanity server under the `/static`-prefix

static/favicon.ico

1.12 KB
Binary file not shown.

tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
// Note: This config is only used to help editors like VS Code understand/resolve
3+
// parts, the actual transpilation is done by babel. Any compiler configuration in
4+
// here will be ignored.
5+
"include": ["./node_modules/@sanity/base/types/**/*.ts", "./**/*.ts", "./**/*.tsx"]
6+
}

0 commit comments

Comments
 (0)