From ea228ec662400341fe49ad700b7df3fc067d5b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Thu, 25 Jan 2018 21:51:55 +0900 Subject: [PATCH] Make variable passing happen. --- app/Http/Controllers/FileController.php | 2 +- public/js/app.js | 832 +++++++++++++++++------- resources/assets/js/app.js | 8 +- resources/views/entry.blade.php | 2 +- 4 files changed, 598 insertions(+), 246 deletions(-) diff --git a/app/Http/Controllers/FileController.php b/app/Http/Controllers/FileController.php index aa311f1..c7ce72b 100644 --- a/app/Http/Controllers/FileController.php +++ b/app/Http/Controllers/FileController.php @@ -95,6 +95,6 @@ class FileController extends Controller { } public function entry($file_id) { // /entry/file_id - return view('entry'); + return view('entry', compact('file_id')); } } diff --git a/public/js/app.js b/public/js/app.js index 744383d..c79a450 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -5028,33 +5028,6 @@ module.exports = function normalizeComponent ( /* 3 */ /***/ (function(module, exports) { -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1,eval)("this"); -} catch(e) { - // This works if the window reference is available - if(typeof window === "object") - g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra @@ -5134,7 +5107,7 @@ function toComment(sourceMap) { /***/ }), -/* 5 */ +/* 4 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -5361,6 +5334,33 @@ function applyToTag (styleElement, obj) { } +/***/ }), +/* 5 */ +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || Function("return this")() || (1,eval)("this"); +} catch(e) { + // This works if the window reference is available + if(typeof window === "object") + g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { @@ -17613,7 +17613,7 @@ return zhTw; /***/ (function(module, exports, __webpack_require__) { __webpack_require__(134); -module.exports = __webpack_require__(186); +module.exports = __webpack_require__(191); /***/ }), @@ -17644,9 +17644,10 @@ Vue.component('new-items', __webpack_require__(161)); Vue.component('hot-items', __webpack_require__(168)); // Entry page. -Vue.component('entry-description', __webpack_require__(196)); +Vue.component('entry-title', __webpack_require__(214)); +Vue.component('entry-description', __webpack_require__(206)); Vue.component('entry-changelog', __webpack_require__(201)); -Vue.component('entry-screenshots', __webpack_require__(206)); +Vue.component('entry-screenshots', __webpack_require__(211)); new Vue({ el: '#app' @@ -34798,7 +34799,7 @@ window.Echo = new Echo({ } }.call(this)); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(7)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5), __webpack_require__(7)(module))) /***/ }), /* 137 */ @@ -59259,7 +59260,7 @@ Vue$3.compile = compileToFunctions; module.exports = Vue$3; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(159).setImmediate)) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5), __webpack_require__(159).setImmediate)) /***/ }), /* 159 */ @@ -59322,7 +59323,7 @@ __webpack_require__(160); exports.setImmediate = self && self.setImmediate || global && global.setImmediate || this && this.setImmediate; exports.clearImmediate = self && self.clearImmediate || global && global.clearImmediate || this && this.clearImmediate; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) /***/ }), /* 160 */ @@ -59515,7 +59516,7 @@ exports.clearImmediate = self && self.clearImmediate || global && global.clearIm attachTo.clearImmediate = clearImmediate; }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self)); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(9))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5), __webpack_require__(9))) /***/ }), /* 161 */ @@ -59579,7 +59580,7 @@ var content = __webpack_require__(163); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM -var update = __webpack_require__(5)("54efa112", content, false, null); +var update = __webpack_require__(4)("54efa112", content, false, null); // Hot Module Replacement if(false) { // When the styles change, update the