From 23351f93a47893737bb10761c5a382ee715e2ddf Mon Sep 17 00:00:00 2001 From: lokesh-coder Date: Fri, 29 Apr 2022 23:20:34 +0530 Subject: [PATCH 1/4] fix: relative base url change --- gatsby-config.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index 38d9db5..180b739 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,4 +1,5 @@ module.exports = { + pathPrefix:'/blobs.app/', siteMetadata: { siteUrl: 'https://blobs.app', name: 'blobs.app', diff --git a/package.json b/package.json index b0e64b0..7ff9ffa 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ ], "license": "MIT", "scripts": { - "build": "gatsby build", + "build": "gatsby build --prefix-paths", "develop": "gatsby develop -H 0.0.0.0", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", "start": "npm run develop", From 733714c9e1568a5dcd90cc43ae6bab80ecb8f053 Mon Sep 17 00:00:00 2001 From: lokesh-coder Date: Fri, 29 Apr 2022 23:33:18 +0530 Subject: [PATCH 2/4] refactor: update repo url --- .github/workflows/ghpages.yml | 3 +-- README.md | 29 ++++++++++++++--------------- src/components/SEO.js | 10 ++++++---- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index f884225..7411185 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - node: ["12.16.0"] + node: ['12.16.0'] name: Node ${{ matrix.node }} steps: - uses: actions/checkout@v2 @@ -37,4 +37,3 @@ jobs: with: github_token: ${{ secrets.BLOBS_APP_PUBLISH_TOKEN }} publish_dir: ./public - cname: blobs.app diff --git a/README.md b/README.md index 6553b8b..8de38b3 100644 --- a/README.md +++ b/README.md @@ -14,28 +14,27 @@

Social preview

- - ### Features - - Choose any solid colors - - Set gradient colors - - Use Patterns - - Clip Image - - Outlined blob - - SVG Code - view/copy/download - - Flutter blob code - - Save and view blobs - - Tiny blob change sound - - PWA - Offline support - - Custom sharable URL - - Dark theme + +- Choose any solid colors +- Set gradient colors +- Use Patterns +- Clip Image +- Outlined blob +- SVG Code - view/copy/download +- Flutter blob code +- Save and view blobs +- Tiny blob change sound +- PWA - Offline support +- Custom sharable URL +- Dark theme ### Development diff --git a/src/components/SEO.js b/src/components/SEO.js index 1e25e67..7be1ad1 100644 --- a/src/components/SEO.js +++ b/src/components/SEO.js @@ -48,11 +48,12 @@ function SEO({ description, lang, meta, title }) { }, { property: 'og:url', - content: 'https://blobs.app/', + content: 'https://lokesh-coder.github.io/blobs.app/', }, { property: 'og:image', - content: 'https://blobs.app/blobs_app_poster.png', + content: + 'https://lokesh-coder.github.io/blobs.app/blobs_app_poster.png', }, { name: 'twitter:card', @@ -60,7 +61,7 @@ function SEO({ description, lang, meta, title }) { }, { name: 'twitter:url', - content: 'https://blobs.app/', + content: 'https://lokesh-coder.github.io/blobs.app/', }, { name: 'twitter:creator', @@ -76,7 +77,8 @@ function SEO({ description, lang, meta, title }) { }, { name: 'twitter:image', - content: 'https://blobs.app/blobs_app_poster.png', + content: + 'https://lokesh-coder.github.io/blobs.app/blobs_app_poster.png', }, ].concat(meta)} /> From df19d4ea407fb3f2fa8cf61f07da161f7ae33852 Mon Sep 17 00:00:00 2001 From: lokesh-coder Date: Fri, 29 Apr 2022 23:47:51 +0530 Subject: [PATCH 3/4] fix: save absolute url in localStorage --- src/utils/storage.utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/storage.utils.js b/src/utils/storage.utils.js index 72189f0..d766525 100644 --- a/src/utils/storage.utils.js +++ b/src/utils/storage.utils.js @@ -35,7 +35,7 @@ export const saveBlob = (store) => { id: Date.now(), name: generateName({ words: 2 }).spaced, // eslint-disable-next-line no-restricted-globals - url: `/${location.search}`, + url: location.href, }; const allBlobs = getAllBlobs(); const blobs = [...(allBlobs || []), newData]; From a2067b87537352b777200a6b7c28c4be21481424 Mon Sep 17 00:00:00 2001 From: lokesh-coder Date: Fri, 29 Apr 2022 23:57:00 +0530 Subject: [PATCH 4/4] refactor: update url --- gatsby-config.js | 4 ++-- src/components/NavLinks.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 180b739..621a03c 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,7 +1,7 @@ module.exports = { - pathPrefix:'/blobs.app/', + pathPrefix: '/blobs.app/', siteMetadata: { - siteUrl: 'https://blobs.app', + siteUrl: 'https://lokesh-coder.github.io/blobs.app', name: 'blobs.app', description: 'Generate beautiful blob shapesfor web and flutter apps', descriptionLong: diff --git a/src/components/NavLinks.js b/src/components/NavLinks.js index d7f1010..2a260a9 100644 --- a/src/components/NavLinks.js +++ b/src/components/NavLinks.js @@ -63,7 +63,7 @@ const NavLinks = ({ saveBlob }) => {