NetSuite Suitelet/RESTlet to display VueJS app - vue.js

I am attempting to build a popup Suitlete that displays a Vue app. It needs to have the ability to pass data back and forth into the transaction that opened it.
Has anyone done this in the past and if so what did the setup for the Vue files and the Suitelet/RESTlet look like? Can't seem to find examples.

You can find projects on GitHub that have great Vue/NetSuite project file setups, ones where you can use Vue CLI to work locally that still work with RESTlets. Here's one https://github.com/michoelchaikin/netsuite-mapreduce-util

Related

Share storybook project accross several Vuejs project

I want to start to use Storybook on my vueJS application. Since the stories seem to be "attached" to the project, I was wondering if I could use them for other app without duplicating them.
Like, can I have a repository with just stories ? How could it work to import them ?
Thanks.

Nuxt PWA with themes based on api informations

As part of an agency project, we are working on a PWA that needs to be able to change its theme if an api tells it to.
The pwa already builds its manifest.json from the information returned by our api (via a nuxt plugin executed before rendering).
For theming we have several tracks but this deposit seems to be a good example of what is feasible : https://github.com/adrianjost/nuxtjs-theming
Is it possible via a nuxt plugin (or a module via hooks) to modify the currently selected theme? (i.e. to tell our PWA to get its views first in the selected theme folder) ?
As of right now, it looks like this is not doable with #nuxtjs/pwa module, but you can maybe get some inspiration to make your own solution.
Give a read to this answer and the thread overall: https://github.com/nuxt-community/pwa-module/issues/225#issuecomment-769880254
Having to manually handle workbox may be a solution: https://github.com/nuxt-community/pwa-module/issues/459 or use a totally hand-made solution of course.

How do I check for vue js compilation errors before trying to serve it?

I've just lost a frustrating amount of time trying to work out why npm run serve was hanging when attempting to run my vue js app. Eventually, I tracked it down to one error in a vue file I made, it took me a long time to work this out since the issue manifests itself in a way that the console window just hangs.
Is there some other way developers can get a more descriptive error list from vue js prior to attempting to run/build?
Personally, I find the most useful and essential tools to be (I use VS Code as "IDE")
Vetur: includes syntax-highlighting, snippets, linter (error checking), auto completition, etc.
Vue.js devtools (for chrome): Not sure about other browsers, but this is incredibly useful for chrome. Let's you see what's really going on with vue.js' components, the store, etc (screenshot from the chrome store page).
Hope this helps!

Trying to create an embed able Vue Component bundled with Laravel Mix

I have created a SPA dashboard using Vue.JS and Laravel, and now would like to create a script that I can use in other sites I manage to just display the event data I am creating in the dashboard via the APIs I have made. I am using Laravel's webpack.mix to do my bundling. Thus far, I haven't really found anything for this situation that explains what I need to do. Any pointers would be helpful, and I can post my code, if I knew what code would be helpful. :)
I didn't entirely understand what you want to do but maybe this project will help. It's a Vue Component bundled using Laravel Mix and deployed to npm: https://github.com/niiknow/vue-datatables-net

Is there any component or possibility to create charts/diagrams/plots in NativeBase?

I have huge problem. I'm complitly new to ReactNative, and I am forced to transfer entire project to NativeBase (Because company bought a layout, and they HAVE TO used it...), and I'm fine with it, it looks really good so far. But, there is a but. Application which I'm currently developing needs to contains chars, like this:
And my probles is that template which I've got, doesn't want to install victory-native.
I've got errors like "This is related to npm not able to find a file" Some delegates file inside node_module directory.
There is any way to get charts with using nativeBase components?
Sorry if this is trivial question, but I couldn't find anything connected to this matter in google.
Thanks for your help.
And last question, Is that true that templates bought with nativeBase are open only do developers on Mac's and Linux? Why not windows?
So, I we manage to add Victory-charts library to the project, after "npm install sqlite3#3.1.8" and then npm install victory-chart. I don't know why this issue existed, but maybe it would be usefull for someone in future.