マンコチンポ
このコミットが含まれているのは:
コミット
6aa0687108
|
@ -13,15 +13,16 @@ class Account extends Common {
|
||||||
$this->common = new Common;
|
$this->common = new Common;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index ($id) {
|
public function index ($id, $cat='video-channels') {
|
||||||
$res = [];
|
$res = [];
|
||||||
$res['page'] = 'account';
|
$res['page'] = 'account';
|
||||||
|
$res['cat'] = $cat;
|
||||||
$res['owner'] = $this->getOwner($id);
|
$res['owner'] = $this->getOwner($id);
|
||||||
if (!empty($res['owner'])) $res['owner']->totalVideo = 0;
|
if (!empty($res['owner'])) $res['owner']->totalVideo = 0;
|
||||||
$res['channel'] = $this->getChannel($id);
|
$res['channel'] = $this->getChannel($id);
|
||||||
if (!empty($res['owner'])) {
|
if (!empty($res['owner'])) {
|
||||||
foreach ($res['channel']->data as $k => $v) {
|
foreach ($res['channel']->data as $k => $v) {
|
||||||
$res['channel']->data[$k]->video = $this->getVideo($v->name);
|
$res['channel']->data[$k]->video = $this->getVideo($v->name.'@'.$v->host);
|
||||||
$res['owner']->totalVideo += $res['channel']->data[$k]->video->total;
|
$res['owner']->totalVideo += $res['channel']->data[$k]->video->total;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
<div class="followers">{{ $ch->followersCount }}人登録者</div>・<span class="videos-count ng-star-inserted"> {{ $ch->video->total }}枚動画 </span>
|
<div class="followers">{{ $ch->followersCount }}人登録者</div>・<span class="videos-count ng-star-inserted"> {{ $ch->video->total }}枚動画 </span>
|
||||||
</div>
|
</div>
|
||||||
<div class="description-html">
|
<div class="description-html">
|
||||||
<p>ダンスパフォーマンスユニット「{{ $ch->displayName }}」の非公式チャンネルです。</p>
|
<p>
|
||||||
|
<?php echo $ch->description; ?>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -1,3 +1,5 @@
|
||||||
<div class="banner ng-star-inserted">
|
@if (!is_null($res['channel']->banner))
|
||||||
<img alt="Channel banner" src="https://video.076.ne.jp{{ $res['channel']->banner->path }}">
|
<div class="banner ng-star-inserted">
|
||||||
</div>
|
<img alt="Channel banner" src="https://video.076.ne.jp{{ $res['channel']->banner->path }}">
|
||||||
|
</div>
|
||||||
|
@endif
|
|
@ -11,7 +11,7 @@
|
||||||
<h1 title="Channel created on {{ date('Y/m/d', strtotime($res['channel']->createdAt)) }}">{{ $res['channel']->displayName }}</h1>
|
<h1 title="Channel created on {{ date('Y/m/d', strtotime($res['channel']->createdAt)) }}">{{ $res['channel']->displayName }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="actor-handle">
|
<div class="actor-handle">
|
||||||
<span>@worldorder</span>
|
<span>{{ '@'.$res['channel']->name }}{{ $res['channel']->host != 'video.076.ne.jp' ? '@'.$res['channel']->host : '' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="actor-counters">
|
<div class="actor-counters">
|
||||||
<span>{{ $res['channel']->followersCount }}人登録者</span>
|
<span>{{ $res['channel']->followersCount }}人登録者</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
Route::group(['prefix' => 'peertube'], function () {
|
Route::group(['prefix' => 'peertube'], function () {
|
||||||
Route::any('/a/{id}', 'Peertube\Account@index');
|
Route::any('/a/{id}/{cat?}', 'Peertube\Account@index');
|
||||||
Route::any('/c/{id}/{cat?}/{page?}', 'Peertube\Channel@index');
|
Route::any('/c/{id}/{cat?}/{page?}', 'Peertube\Channel@index');
|
||||||
Route::any('/w/{id}', 'Peertube\Watch@index');
|
Route::any('/w/{id}', 'Peertube\Watch@index');
|
||||||
});
|
});
|
||||||
|
|
新しいイシューから参照