unstorage icon indicating copy to clipboard operation
unstorage copied to clipboard

Add driver for myjson.online

Open codemers opened this issue 1 year ago • 1 comments

Describe the feature

Would you be willing to accept a PR that adds a new driver for myJSON? myJSON is a lightweight, JSON-based storage service that allows users to store JSON data in the cloud.

Additional information

  • [X] Would you be willing to help implement this feature?

codemers avatar Oct 21 '23 18:10 codemers

Hi, thanks for the issue. It wouldn't be possible to add support for it on the first root options.

Maybe something like

const head = createHead({ 
  entry: { titleTemplate: (title) => title ? `${title} - Dashboard` : 'Dashboard' }
})

Is there a problem with doing it like this though? I'd personally prefer not to add more logic for this (adds to the package size).

initializeHybridly({
	enhanceVue: (vue) => {
		vue.use(createFlare())
        const head = createHead()
        head.push(titleTemplate: (title) => title ? `${title} - Dashboard` : 'Dashboard')
		vue.use(head)
	},
})

harlan-zw avatar Oct 06 '23 08:10 harlan-zw

Your first suggestion is fine by me

The "problem" is not an actual problem, it's just quality of life, in my list of all 10 Vue plugins, this is the only one that requires multiple lines to configure, so it kind of breaks the flow. And since @vueuse/head had the functionality, I thought we could add it back

innocenzi avatar Oct 06 '23 12:10 innocenzi