You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like add some Vue components to VitePress documentation, which would use some JSON data, downloaded periodically.
Where do I register a JS file, containing the JSON data, .vitepress/theme/index.ts, or .vitepress/config.ts?
Is it better to store data in some dictionary in the window object or some internal Vue store?
How do I wrap this code?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I'd like add some Vue components to VitePress documentation, which would use some JSON data, downloaded periodically.
Where do I register a JS file, containing the JSON data,
.vitepress/theme/index.ts
, or.vitepress/config.ts
?Is it better to store data in some dictionary in the
window
object or some internal Vue store?How do I wrap this code?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions