How to use @wailsapp/runtime - 8 common examples

To help you get started, we’ve selected a few @wailsapp/runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wailsapp / wails / cmd / templates / vuetify-basic / frontend / src / main.js View on Github external
import Vue from 'vue';

// Setup Vuetify
import Vuetify from 'vuetify';
Vue.use(Vuetify);
import 'vuetify/dist/vuetify.min.css';
import 'material-design-icons-iconfont';

import App from './App.vue';

Vue.config.productionTip = false;
Vue.config.devtools = true;

import * as Wails from '@wailsapp/runtime';

Wails.Init(() => {
	new Vue({
		render: h => h(App)
	}).$mount('#app');
});
github wailsapp / wails / cmd / templates / angular-template / frontend / src / main.ts View on Github external
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

import 'zone.js'

import * as Wails from '@wailsapp/runtime';

if (environment.production) {
  enableProdMode();
}

Wails.Init(() => {
  platformBrowserDynamic().bootstrapModule(AppModule)
    .catch(err => console.error(err));
});
github rule110-io / surge / frontend / src / main.js View on Github external
import { store } from "./store/store.js";

import * as Wails from "@wailsapp/runtime";

Vue.config.productionTip = false;
Vue.config.devtools = true;

Vue.use(VueFeather);
Vue.use(vueFilterPrettyBytes);
Vue.use(VueMoment);
Vue.use(VueLodash, { lodash: lodash });
Vue.use(VueTour);
Vue.use(VTooltip);
Vue.use(VueClipboard);

Wails.Init(() => {
  new Vue({
    router,
    store,
    render: (h) => h(App),
    mounted() {
      this.$router.replace("/").catch(() => {});
    },
  }).$mount("#app");
});
github wailsapp / wails / cmd / templates / vuebasic / frontend / src / main.js View on Github external
import Vue from 'vue';
import App from './App.vue';

Vue.config.productionTip = false;
Vue.config.devtools = true;

import * as Wails from '@wailsapp/runtime';

Wails.Init(() => {
	new Vue({
		render: h => h(App)
	}).$mount('#app');
});
github wailsapp / wails / cmd / templates / create-react-app / frontend / src / index.js View on Github external
import React from 'react';
import ReactDOM from 'react-dom';
import 'core-js/stable';
import './index.css';
import App from './App';

import * as Wails from '@wailsapp/runtime';

Wails.Init(() => {
  ReactDOM.render(, document.getElementById('app'));
});
github Lyimmi / laradock-manager / frontend / src / main.js View on Github external
Vue.use(VueRouter);
const router = new VueRouter({
  mode: "history",
  routes
});
router.replace({ path: "*", redirect: "/" });

Vue.config.productionTip = false;
Vue.config.devtools = true;
Vue.prototype.$config = config;
Vue.prototype.$ticker = new Ticker(250);

import Wails from '@wailsapp/runtime';

Wails.Init(() => {
  new Vue({
    preset,
    store,
    vuetify,
    router,
    render: h => h(App)
  }).$mount("#app");
});
github wailsapp / wails / cmd / templates / vuetify2-basic / frontend / src / main.js View on Github external
import 'regenerator-runtime/runtime';
import '@mdi/font/css/materialdesignicons.css';
import Vue from 'vue';
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';

Vue.use(Vuetify);

import App from './App.vue';

Vue.config.productionTip = false;
Vue.config.devtools = true;

import Wails from '@wailsapp/runtime';

Wails.Init(() => {
	new Vue({
		vuetify: new Vuetify({
			icons: {
				iconfont: 'mdi'
			},
			theme: {
				dark: true
			}
		}),
		render: h => h(App)
	}).$mount('#app');
});
github rule110-io / surge / frontend / src / layout / Dashboard / Dashboard.vue View on Github external
enableClientStatusUpdate() {
      const clientsStore = runtime.Store.New("numClients");
      clientsStore.subscribe(({ Online }) => {
        this.$store.commit("clientStatus/addClientStatus", {
          online: Online,
        });
      });
    },
  },

@wailsapp/runtime

Wails Javascript runtime library

MIT
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis

Popular @wailsapp/runtime functions