diff --git a/content/posts/2019-07-18-the-commons-marketplace-in-pacific-network/index.md b/content/posts/2019-07-18-the-commons-marketplace-in-pacific-network/index.md index cfb1f895..9339fcb0 100644 --- a/content/posts/2019-07-18-the-commons-marketplace-in-pacific-network/index.md +++ b/content/posts/2019-07-18-the-commons-marketplace-in-pacific-network/index.md @@ -40,7 +40,7 @@ It is still not as fast as we would like it to be, and we will continue to make ## 🔥 Burner Wallets: Commons Without Any Setup -Since the launch of Commons, a Web3-capable browser with a wallet setup was required before full functionality became available. Without a wallet, and without a Web3-capable browser, the search feature *was *possible, but publishing or downloading data sets were not, because those processes require a cryptographic signing process — something which can only be done with a Web3 wallet. +Since the launch of Commons, a Web3-capable browser with a wallet setup was required before full functionality became available. Without a wallet, and without a Web3-capable browser, the search feature _was_ possible, but publishing or downloading data sets were not, because those processes require a cryptographic signing process — something which can only be done with a Web3 wallet. We found this to be one of the main pain points users had when interacting with a marketplace providing free and publicly available data. Using the right browser, relying on a browser plugin, setting up a wallet, possibly managing crypto tokens, and connecting to the right network proved to be tricky for the target groups we’d like to have using Ocean. diff --git a/gatsby/createPages.js b/gatsby/createPages.js index 9b240019..9cd350e6 100644 --- a/gatsby/createPages.js +++ b/gatsby/createPages.js @@ -27,7 +27,7 @@ exports.generatePostPages = (createPage, posts) => { const postTemplate = path.resolve('src/components/templates/Post/index.tsx') // Create Post pages - posts.forEach(post => { + posts.forEach((post) => { createPage({ path: `${post.node.fields.slug}`, component: postTemplate, @@ -103,7 +103,7 @@ exports.generateTagPages = (createPage, tags) => { }) } -exports.generateRedirectPages = createRedirect => { +exports.generateRedirectPages = (createRedirect) => { redirects.forEach(({ f, t }) => { createRedirect({ fromPath: f, diff --git a/gatsby/feeds.js b/gatsby/feeds.js index 633587ee..d9ac24c5 100644 --- a/gatsby/feeds.js +++ b/gatsby/feeds.js @@ -4,7 +4,7 @@ const path = require('path') const { siteUrl, siteTitle, siteDescription, author } = require('../config') const writeFile = util.promisify(fs.writeFile) -const feedContent = edge => { +const feedContent = (edge) => { const { image } = edge.node.frontmatter const { html } = edge.node const footer = @@ -16,7 +16,7 @@ const feedContent = edge => { } async function jsonItems(posts) { - return await posts.map(edge => { + return await posts.map((edge) => { const { frontmatter, fields, excerpt } = edge.node const { slug, date } = fields @@ -35,7 +35,7 @@ async function jsonItems(posts) { }) } -const createJsonFeed = posts => ({ +const createJsonFeed = (posts) => ({ version: 'https://jsonfeed.org/version/1', title: siteTitle, description: siteDescription, @@ -52,12 +52,12 @@ const createJsonFeed = posts => ({ items: jsonItems(posts) }) -const generateJsonFeed = async posts => { +const generateJsonFeed = async (posts) => { await writeFile( path.join('./public', 'feed.json'), JSON.stringify(createJsonFeed(posts)), 'utf8' - ).catch(err => { + ).catch((err) => { throw Error('\nFailed to write JSON Feed file: ', err) }) diff --git a/package.json b/package.json index 447f159c..d59d755c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.ts,.tsx .", "lint:css": "stylelint 'src/**/*.{css,scss}'", "lint:md": "markdownlint './**/*.{md,markdown}' --ignore './{node_modules,public,.cache,.git,coverage}/**/*'", - "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,md,json,css,scss}'", + "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,md,json,css,scss}'", "tsc": "tsc --noEmit", "deploy": "./scripts/deploy.sh", "new": "babel-node ./scripts/new.js" diff --git a/scripts/new.js b/scripts/new.js index 93d74401..565eecfd 100644 --- a/scripts/new.js +++ b/scripts/new.js @@ -80,12 +80,12 @@ async function createPhotoPost() { .join(description) // copy photo file in place - fs.copyFile(photo, `${photosPath}/${fileName}.jpg`, err => { + fs.copyFile(photo, `${photosPath}/${fileName}.jpg`, (err) => { if (err) spinner.fail(`Error copying photo file: ${err}`) }) // create photo post file - fs.appendFile(postPhoto, newContentsPhoto, err => { + fs.appendFile(postPhoto, newContentsPhoto, (err) => { if (err) spinner.fail(`Error creating photo post: ${err}`) spinner.succeed(`New photo post '${title}' as '${fileName}.md' created.`) }) @@ -115,5 +115,5 @@ if (isPhoto) { fs.outputFile(file, newContents) .then(() => fs.readFile(file, 'utf8')) .then(() => spinner.succeed(`New post '${title}' created.`)) - .catch(err => spinner.fail(`Error creating post: ${err}`)) + .catch((err) => spinner.fail(`Error creating post: ${err}`)) }