Data sample for body. The main idea is to send a post from my gatsby app, using a gatsby-plugin
based on the initial work of @codingdefined.
Programming as many other things we can do, allows us to create. The feeling about creating something is amazing. Makes you feel great. -
@theghost1980.
So far I have been able to fetch the data without using the plugin itself, first phase. Also in order to not crash the app, on the building time, I have used dummy data that match the data that comes from the api. So the initial render functions do not break.
Are you mad? Are you testing directly to the mainnet? Under another account which is yours also????....???
I know, I know this is a big risk. Maybe I will get a downvote by doing this. But as I cannot set up a testnet right, I prefer to take that risk. :D
I have tried to use the gatsby-remote-plugin in order to pull the json_metadata.images array into a new object node. The problems I have found are:
Well first of all I have many ideas but so far:
-After digging into Hive repository I could notice they are using the following npm packages to format correctly the pseudo markdown used in the posts.
By using those 2 the body data can be easily formatted as they do and cleaned from any error on typying also.
I haven't uploaded the code on my github account yet. As soon as I get a decent product, I will publish some date and make it public. Stay tuned.
Please feel free to see @codingdefined repository right here.
In deed yes. I will work on constructing the post's data. Specifically the fields: json_metadata, so it can respect the initial form as used in hive.
This is a test coming from Gatsby client.
It is a lot of work getting all the necessary to implement a crypto-social network.
Single line of code
let gatsbyJS = document.getAllByName("all");
Multiline of code
const imageNode = {
id: createNodeId(`${firstImage}`),
imageUrl: `${firstImage}`,
internal: {
type: `CoverImage`,
description: `dummy`,
contentDigest: createContentDigest({}),
}
}
Lists ul & ol
Finally more Images:
Posted using my wannabe gatsby-plugin from saturnoman.com