Make variable passing happen.
このコミットが含まれているのは:
コミット
ea228ec662
|
@ -95,6 +95,6 @@ class FileController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function entry($file_id) { // /entry/file_id
|
public function entry($file_id) { // /entry/file_id
|
||||||
return view('entry');
|
return view('entry', compact('file_id'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
ファイル差分が大きすぎるため省略します
差分を読み込み
|
@ -22,10 +22,10 @@ Vue.component('new-items', require('./components/NewEntries.vue'));
|
||||||
Vue.component('hot-items', require('./components/HotEntries.vue'));
|
Vue.component('hot-items', require('./components/HotEntries.vue'));
|
||||||
|
|
||||||
// Entry page.
|
// Entry page.
|
||||||
Vue.component('entry-title', require('./components/Entry/EntryTitle.vue'));
|
Vue.component('entry-title', require('./components/Entry/Title.vue'));
|
||||||
Vue.component('entry-description', require('./components/Entry/EntryDescription.vue'));
|
Vue.component('entry-description', require('./components/Entry/Description.vue'));
|
||||||
Vue.component('entry-changelog', require('./components/Entry/EntryChangelog.vue'));
|
Vue.component('entry-changelog', require('./components/Entry/Changelog.vue'));
|
||||||
Vue.component('entry-screenshots', require('./components/Entry/EntryScreenshots.vue'));
|
Vue.component('entry-screenshots', require('./components/Entry/Screenshots.vue'));
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#app'
|
el: '#app'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<entry-title />
|
<entry-title fid="{{ $file_id }}" />
|
||||||
<entry-screenshots />
|
<entry-screenshots />
|
||||||
<entry-description />
|
<entry-description />
|
||||||
<entry-changelog />
|
<entry-changelog />
|
||||||
|
|
新しいイシューから参照