unstorage
unstorage copied to clipboard
Add driver for myjson.online
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?
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)
},
})
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