Skip to content

Commit

Permalink
Import vue as any other library
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 15, 2017
1 parent 918284e commit 7eaa190
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 47 deletions.
75 changes: 29 additions & 46 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14135,43 +14135,45 @@ module.exports = __webpack_require__(37);

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_router__ = __webpack_require__(132);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_element_ui__ = __webpack_require__(60);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_element_ui___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_element_ui__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_data_tables__ = __webpack_require__(101);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_data_tables___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vue_data_tables__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui_lib_theme_default_index_css__ = __webpack_require__(102);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui_lib_theme_default_index_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_element_ui_lib_theme_default_index_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en__ = __webpack_require__(108);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modules_Page_Assets_js_PageRoutes__ = __webpack_require__(136);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue_router__ = __webpack_require__(132);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_element_ui__ = __webpack_require__(60);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_element_ui___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_element_ui__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vue_data_tables__ = __webpack_require__(101);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vue_data_tables___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_vue_data_tables__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_theme_default_index_css__ = __webpack_require__(102);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_theme_default_index_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_element_ui_lib_theme_default_index_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_element_ui_lib_locale_lang_en__ = __webpack_require__(108);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_element_ui_lib_locale_lang_en___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_element_ui_lib_locale_lang_en__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Modules_Page_Assets_js_PageRoutes__ = __webpack_require__(136);
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

__webpack_require__(38);

window.Vue = __webpack_require__(3);






Vue.use(__WEBPACK_IMPORTED_MODULE_1_element_ui___default.a, { locale: __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en___default.a });
Vue.use(__WEBPACK_IMPORTED_MODULE_2_vue_data_tables___default.a, { locale: __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en___default.a });
Vue.use(__WEBPACK_IMPORTED_MODULE_0_vue_router__["a" /* default */]);

Vue.component('ckeditor', __webpack_require__(109));
Vue.component('DeleteButton', __webpack_require__(116));
Vue.component('TagsInput', __webpack_require__(119));
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_2_element_ui___default.a, { locale: __WEBPACK_IMPORTED_MODULE_5_element_ui_lib_locale_lang_en___default.a });
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_3_vue_data_tables___default.a, { locale: __WEBPACK_IMPORTED_MODULE_5_element_ui_lib_locale_lang_en___default.a });
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_1_vue_router__["a" /* default */]);

__WEBPACK_IMPORTED_MODULE_0_vue___default.a.component('ckeditor', __webpack_require__(109));
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.component('DeleteButton', __webpack_require__(116));
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.component('TagsInput', __webpack_require__(119));

var router = new __WEBPACK_IMPORTED_MODULE_0_vue_router__["a" /* default */]({

var router = new __WEBPACK_IMPORTED_MODULE_1_vue_router__["a" /* default */]({
mode: 'history',
base: currentLocale + '/backend',
routes: [].concat(_toConsumableArray(__WEBPACK_IMPORTED_MODULE_5__Modules_Page_Assets_js_PageRoutes__["a" /* default */]))
routes: [].concat(_toConsumableArray(__WEBPACK_IMPORTED_MODULE_6__Modules_Page_Assets_js_PageRoutes__["a" /* default */]))
});

var app = new Vue({
var app = new __WEBPACK_IMPORTED_MODULE_0_vue___default.a({
el: '#app',
router: router
});
Expand Down Expand Up @@ -73545,54 +73547,35 @@ if (inBrowser && window.Vue) {
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_router__ = __webpack_require__(132);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_element_ui__ = __webpack_require__(60);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_element_ui___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_element_ui__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_data_tables__ = __webpack_require__(101);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_data_tables___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vue_data_tables__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui_lib_theme_default_index_css__ = __webpack_require__(102);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui_lib_theme_default_index_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_element_ui_lib_theme_default_index_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en__ = __webpack_require__(108);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en__);
window.Vue = __webpack_require__(3);






Vue.use(__WEBPACK_IMPORTED_MODULE_1_element_ui___default.a, { locale: __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en___default.a });
Vue.use(__WEBPACK_IMPORTED_MODULE_2_vue_data_tables___default.a, { locale: __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_locale_lang_en___default.a });
Vue.use(__WEBPACK_IMPORTED_MODULE_0_vue_router__["a" /* default */]);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_PageTable_vue__ = __webpack_require__(122);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_PageTable_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__components_PageTable_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_PageForm_vue__ = __webpack_require__(125);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_PageForm_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_PageForm_vue__);

var PageTable = __webpack_require__(122);
Vue.component('PageTable', PageTable);

var PageForm = __webpack_require__(125);
Vue.component('PageForm', PageForm);

var translations = window.translations;
var locales = window.locales;

/* harmony default export */ __webpack_exports__["a"] = ([{
path: '/page/pages',
name: 'admin.page.page.index',
component: PageTable,
component: __WEBPACK_IMPORTED_MODULE_0__components_PageTable_vue___default.a,
props: {
translations: translations
}
}, {
path: '/page/pages/create',
name: 'admin.page.page.create',
component: PageForm,
component: __WEBPACK_IMPORTED_MODULE_1__components_PageForm_vue___default.a,
props: {
translations: translations,
locales: locales
}
}, {
path: '/page/pages/:pageId/edit',
name: 'admin.page.page.edit',
component: PageForm,
component: __WEBPACK_IMPORTED_MODULE_1__components_PageForm_vue___default.a,
props: {
translations: translations,
locales: locales
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require('./bootstrap');

window.Vue = require('vue');
import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
import DataTables from 'vue-data-tables'
Expand Down

0 comments on commit 7eaa190

Please sign in to comment.