Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
7eaa190c
Unverified
Commit
7eaa190c
authored
Sep 15, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import vue as any other library
parent
918284ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
47 deletions
+30
-47
app.js
public/js/app.js
+29
-46
app.js
resources/assets/js/app.js
+1
-1
No files found.
public/js/app.js
View file @
7eaa190c
...
...
@@ -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
});
...
...
@@ -73545,31 +73547,12 @@ 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;
...
...
@@ -73577,14 +73560,14 @@ 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
...
...
@@ -73592,7 +73575,7 @@ var locales = window.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
resources/assets/js/app.js
View file @
7eaa190c
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
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment