-
-
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 #56 from nyomansunima/55-fix-status-blog
55 fix status blog
- Loading branch information
Showing
178 changed files
with
1,658 additions
and
1,866 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 +1,3 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['custom', '@sanity/eslint-config-studio'], | ||
extends: ['@sanity/eslint-config-studio'] | ||
} |
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
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,57 @@ | ||
import React, { FunctionComponent } from 'react' | ||
import Codepen from 'react-codepen-embed' | ||
import { defineType, PreviewProps } from 'sanity' | ||
|
||
/** | ||
* ## CodePenPreview | ||
* | ||
* preview the codepen url into a working pen | ||
* | ||
* @returns JSX.Element | ||
*/ | ||
const CodePenPreview: FunctionComponent<PreviewProps> = ( | ||
props | ||
): JSX.Element => { | ||
// const { url } = value | ||
// if (!url || url == '') { | ||
// return <div>Please add url for your codepen</div> | ||
// } | ||
// // split the url and use as another | ||
// // properties | ||
// const splittedUrl = (url as string).split('/') | ||
// const [, , , user, , hash] = splittedUrl | ||
// return <div>Hello world</div> | ||
// return <Codepen user={user} hash={hash} /> | ||
// return <p>{JSON.stringify(props)}</p> | ||
return <p></p> | ||
} | ||
|
||
/** | ||
* # codepenSchema | ||
* | ||
* use to embed the codepen code | ||
* and display in the blog | ||
*/ | ||
const codepenSchema = defineType({ | ||
title: 'Embed Codepen', | ||
name: 'codepen', | ||
type: 'object', | ||
fields: [ | ||
{ | ||
title: 'URL', | ||
description: '🧑🏿💻 Your codepen embed url', | ||
name: 'url', | ||
type: 'url' | ||
} | ||
], | ||
preview: { | ||
select: { | ||
url: 'url' | ||
} | ||
}, | ||
components: { | ||
// preview: CodePenPreview | ||
} | ||
}) | ||
|
||
export default codepenSchema |
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
Oops, something went wrong.
71391d6
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:
personal-portfolio-website-studio – ./apps/studio
personal-portfolio-website-studio.vercel.app
studio.nyomansunima.com
personal-portfolio-website-studio-git-main-nyomansunima.vercel.app
personal-portfolio-website-studio-nyomansunima.vercel.app
71391d6
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:
personal-portfolio-website-web – ./apps/web
personal-portfolio-website-frontend-nyomansunima.vercel.app
personal-portfolio-website-frontend.vercel.app
personal-portfolio-website-frontend-git-main-nyomansunima.vercel.app
nyomansunima.com