Skip to content

Instantly share code, notes, and snippets.

View cristijora's full-sized avatar

Cristi Jora cristijora

View GitHub Profile
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.vueFormWizard = global.vueFormWizard || {})));
}(this, (function (exports) { 'use strict';
var FormWizard = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-form-wizard"},[_c('div',{staticClass:"wizard-header"},[_vm._t("title",[_c('h4',{staticClass:"wizard-title"},[_vm._v(_vm._s(_vm.title))]),_c('p',{staticClass:"category"},[_vm._v(_vm._s(_vm.subtitle))])])],2),_c('div',{staticClass:"wizard-navigation"},[_c('div',{staticClass:"wizard-progress-with-circle"},[_c('div',{staticClass:"wizard-progress-bar",style:(_vm.progressBarStyle)})]),_c('ul',{staticClass:"wizard-nav wizard-nav-pills"},_vm._l((_vm.tabs),function(tab,index){return _c('li',{class:{active:tab.active}},[_c('a',{attrs:{"href":""},on:{"click":function($event){$event.preventDefau
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.vueFormWizard = global.vueFormWizard || {})));
}(this, (function (exports) { 'use strict';
var FormWizard = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-form-wizard"},[_c('div',{staticClass:"wizard-header"},[_vm._t("title",[_c('h4',{staticClass:"wizard-title"},[_vm._v(_vm._s(_vm.title))]),_c('p',{staticClass:"category"},[_vm._v(_vm._s(_vm.subtitle))])])],2),_c('div',{staticClass:"wizard-navigation"},[_c('div',{staticClass:"wizard-progress-with-circle"},[_c('div',{staticClass:"wizard-progress-bar",style:(_vm.progressBarStyle)})]),_c('ul',{staticClass:"wizard-nav wizard-nav-pills"},_vm._l((_vm.tabs),function(tab,index){return _c('li',{class:{active:tab.active}},[_c('a',{attrs:{"href":""},on:{"click":function($event){$event.preventDefau
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueFormWizard=e():t.VueFormWizard=e()}(this,function(){return function(t){function e(a){if(i[a])return i[a].exports;var n=i[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(t,e){t.exports=function(t,e,i,a){var n,s=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(n=t,s=t.default);var o="function"==typeof s?s.options:s;if(e&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns),i&&(o._scopeId=i),a){var c=Object.create(o.computed||null);Object.keys(a).f
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.vueFormWizard = global.vueFormWizard || {})));
}(this, (function (exports) { 'use strict';
var FormWizard = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-form-wizard"},[_c('div',{staticClass:"wizard-header"},[_vm._t("title",[_c('h4',{staticClass:"wizard-title"},[_vm._v(_vm._s(_vm.title))]),_c('p',{staticClass:"category"},[_vm._v(_vm._s(_vm.subtitle))])])],2),_c('div',{staticClass:"wizard-navigation"},[_c('div',{staticClass:"wizard-progress-with-circle"},[_c('div',{staticClass:"wizard-progress-bar",style:(_vm.progressBarStyle)})]),_c('ul',{staticClass:"wizard-nav wizard-nav-pills"},_vm._l((_vm.tabs),function(tab,index){return _c('li',{class:{active:tab.active}},[_c('a',{attrs:{"href":""},on:{"click":function($event){$event.preventDefau
@cristijora
cristijora / Index.cshtml
Last active August 12, 2017 19:35
.NET MVC & Vue.js simple example
@using System.Web.Optimization
@{
ViewBag.Title = "Home Page";
}
<div id="app">
{{ message }}
</div>
@Scripts.Render("~/node_modules/vue/dist/vue.min.js")
<script>
{
"name": "vue-mvc",
"version": "1.0.0",
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --content-base ./app/webroot/app --inline --hot --port 8086",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"dependencies": {
"bootstrap": "^3.3.7",
"vue": "^2.1.6"
var path = require('path')
var webpack = require('webpack')
var fs = require('fs')
var appBasePath = './Scripts/app/'
var jsEntries = {}
// We search for index.js files inside basePath folder and make those as entries
fs.readdirSync(appBasePath).forEach(function (name) {
var indexFile = appBasePath + name + '/index.js'
var path = require('path')
var webpack = require('webpack')
var fs = require('fs')
var appBasePath = './Scripts/app/'
var jsEntries = {}
// We search for index.js files inside basePath folder and make those as entries
fs.readdirSync(appBasePath).forEach(function (name) {
var indexFile = appBasePath + name + '/index.js'
var appBasePath = './Scripts/app/'
var jsEntries = {}
// We search for index.js files inside basePath folder and make those as entries
fs.readdirSync(appBasePath).forEach(function (name) {
var indexFile = appBasePath + name + '/index.js'
if (fs.existsSync(indexFile)) {
jsEntries[name] = indexFile
}
})
entry: jsEntries,
output: {
path: path.resolve(__dirname, './Scripts/bundle/'),
publicPath: '/Scripts/bundle/',
filename: '[name].js'
},