tonyspiro Github contribution chart
tonyspiro Github Stats
tonyspiro Most Used Languages

Activity

29 Sep 2022

Issue Comment

Tonyspiro

Cosmic CMS updates

Updates

  • Update packages
  • Convert to TypeScript

Forked On 29 Sep 2022 at 10:52:13

Tonyspiro

Hi @tonyspiro, it seems like your branch does not allow our bot (or me) to merge this PR. Can you make sure you allow contributors to edit so we can merge it?

I just added you to the repo. Please let me know if you need anything else.

Commented On 29 Sep 2022 at 10:52:13

Tonyspiro

edit: footer links

Pushed On 29 Sep 2022 at 10:47:34

Tonyspiro

Author section

Added a dynamic Author section at the bottom of the articles

Merged On 20 Sep 2022 at 02:47:20

Tonyspiro

LGTM!

Commented On 20 Sep 2022 at 02:47:20
Issue Comment

Tonyspiro

Cannot read properties of undefined (reading 'COSMIC_API_URL')

Hello, I'm using Nuxt 3 (SSR) with Cosmic.JS and getting the following error:

Here is my plugin I created unter plugins/cosmic.ts:

import Cosmic from 'cosmicjs'

const api = Cosmic();
const bucket = api.bucket({
  slug: process.env.COSMIC_JS_BUCKET_SLUG,
  read_key: process.env.COSMIC_JS_READ_KEY,
});

export default defineNuxtPlugin(() => ({
  provide: {
    cosmic: bucket
  }
})); 

Maybe it's necessary to check if "process.env" is existing?

Forked On 13 Sep 2022 at 09:29:58

Tonyspiro

Great to hear @AlexBa I'll go ahead and close this issue.

Commented On 13 Sep 2022 at 09:29:58

Tonyspiro

Add banner link to source code
Merged On 12 Sep 2022 at 11:13:57

Tonyspiro

LGTM

Commented On 12 Sep 2022 at 11:13:57

Tonyspiro

started

Started On 12 Sep 2022 at 10:47:11
Create Branch

Tonyspiro

A simple astro blog powered by the Cosmic CMS

On 12 Sep 2022 at 09:12:45

Tonyspiro

Cosmic chaining methods

  • Update Cosmic > 4.2.10
  • Update Cosmic functions to use chaining methods (4.2.10)
  • Use try/catch pattern in Cosmic functions

Merged On 08 Sep 2022 at 10:02:36

Tonyspiro

LGTM!

Commented On 08 Sep 2022 at 10:02:36

Tonyspiro

Update README.md

Pushed On 08 Sep 2022 at 07:45:22

Tonyspiro

edit: rm term Jamstack

Pushed On 08 Sep 2022 at 07:44:26
Issue Comment

Tonyspiro

Cannot read properties of undefined (reading 'COSMIC_API_URL')

Hello, I'm using Nuxt 3 (SSR) with Cosmic.JS and getting the following error:

Here is my plugin I created unter plugins/cosmic.ts:

import Cosmic from 'cosmicjs'

const api = Cosmic();
const bucket = api.bucket({
  slug: process.env.COSMIC_JS_BUCKET_SLUG,
  read_key: process.env.COSMIC_JS_READ_KEY,
});

export default defineNuxtPlugin(() => ({
  provide: {
    cosmic: bucket
  }
})); 

Maybe it's necessary to check if "process.env" is existing?

Forked On 06 Sep 2022 at 10:23:26

Tonyspiro

Hey @AlexBa I'm not super familiar with Nuxt 3. Tagging @jazibsawar to see if he can offer advice. Thanks 🙌🏻

Commented On 06 Sep 2022 at 10:23:26

Tonyspiro

Add FindChaining class

Created On 05 Sep 2022 at 06:54:26

Tonyspiro

add: FindChaining class for get objects

Pushed On 05 Sep 2022 at 06:54:26

Tonyspiro

fix: linting errors

Pushed On 05 Sep 2022 at 06:54:26

Tonyspiro

add: build files

Pushed On 05 Sep 2022 at 06:54:26

Tonyspiro

Merge pull request #71 from cosmicjs/refactoring

Add FindChaining class

Pushed On 05 Sep 2022 at 06:54:26

Tonyspiro

Default to all categories

Created On 05 Sep 2022 at 06:39:02

Tonyspiro

edit: rm ACTIVE_INDEX

Pushed On 05 Sep 2022 at 06:38:54
Create Branch

Tonyspiro

Description not entered by the user.

On 05 Sep 2022 at 06:36:30

Tonyspiro

change cosmic.js methods

Pushed On 05 Sep 2022 at 06:15:22

Tonyspiro

upload image

Pushed On 05 Sep 2022 at 06:15:22

Tonyspiro

update cosmic npm

Pushed On 05 Sep 2022 at 06:15:22

Tonyspiro

remove slug to create method

Pushed On 05 Sep 2022 at 06:15:22

Tonyspiro

edit: update cosmic@refactoring

Pushed On 05 Sep 2022 at 06:15:22

Tonyspiro

Merge pull request #13 from cosmicjs/update-cosmic-module

Update cosmic module

Pushed On 05 Sep 2022 at 06:15:22

Tonyspiro

Update cosmic module

Created On 05 Sep 2022 at 06:15:22

Tonyspiro

Add FindChaining class
Merged On 05 Sep 2022 at 06:14:50

Tonyspiro

LGTM!

Commented On 05 Sep 2022 at 06:14:50

Tonyspiro

edit: update cosmic@refactoring

Pushed On 05 Sep 2022 at 06:04:10

Tonyspiro

Update cosmic module
Merged On 02 Sep 2022 at 08:42:24

Tonyspiro

I think the only issue is with the categories fetching using Promise.all

Change it to this and it should work:

 let categoriesData = []
  for (const categoryType of categoryTypes) {
    categoriesData.push(await getDataByCategory(categoryType?.id))
  } 

cc @jazibsawar

Commented On 02 Sep 2022 at 08:42:24

Tonyspiro

Update cosmic module
Merged On 02 Sep 2022 at 08:41:57

Tonyspiro

I think the only issue is with the categories fetching using Promise.all

Change it to this and it should work:

 let categoriesData = []
  for (const categoryType of categoryTypes) {
    categoriesData.push(await getDataByCategory(categoryType?.id))
  } 

Commented On 02 Sep 2022 at 08:41:57

Tonyspiro

started

Started On 01 Sep 2022 at 10:14:17