43個のファイルの変更、1247行の追加、110行の削除
@ -0,0 +1,28 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class About extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,34 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Admin; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Users extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
if ($this->common->user->me->adminFlags != 1) { |
||||
return redirect('/peertube/videos/local'); |
||||
} |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,28 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Home extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Login extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (isset($this->common->user->me) && !is_null($this->common->user->me)) { |
||||
return redirect('/peertube/videos/local'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Logout extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Myaccount extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Mylibrary extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Mylibrary\History; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Videos extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/users/me/history/videos?start=0&count=5 |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Mylibrary; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Subscriptions extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/users/me/subscriptions?start=0&count=10 |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Mylibrary; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Videochannels extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/accounts/techsuwako/video-channels?start=0&count=20&sort=-updatedAt&withStats=true |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Mylibrary; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Videoplaylists extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/users/me/subscriptions/videos?start=0&count=25&sort=-publishedAt&skipCount=true |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Mylibrary; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Videos extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/users/me/videos?start=0&count=10&sort=-publishedAt |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Notification extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Signup extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (isset($this->common->user->me) && !is_null($this->common->user->me)) { |
||||
return redirect('/peertube/videos/local'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,29 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Videos; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Local extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'videoslist', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
$res['video'] = $this->getVideo(); |
||||
return view('pages.peertube.videos.local', ['res' => $res]); |
||||
} |
||||
|
||||
function getVideo () { |
||||
$get = $this->ptapi_get('/api/v1/videos/?start=0&count=50&sort=-publishedAt&filter=local&skipCount=true&nsfw=both'); |
||||
return $this->vidlist($get); |
||||
} |
||||
} |
@ -0,0 +1,29 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Videos; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Overview extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/overviews/videos?page=1 |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,29 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Videos; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Recentlyadded extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'videoslist', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
$res['video'] = $this->getVideo(); |
||||
return view('pages.peertube.videos.recentlyadded', ['res' => $res]); |
||||
} |
||||
|
||||
function getVideo () { |
||||
$get = $this->ptapi_get('/api/v1/videos/?start=0&count=25&sort=-publishedAt&skipCount=true&nsfw=both'); |
||||
return $this->vidlist($get); |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Videos; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Subscriptions extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
if (!isset($this->common->user->me) || is_null($this->common->user->me)) { |
||||
return redirect('/peertube/login'); |
||||
} |
||||
|
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/users/me/subscriptions/videos?start=0&count=25&sort=-publishedAt&skipCount=true |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,29 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Videos; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Trending extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
//https://video.076.ne.jp/api/v1/videos/?start=0&count=25&sort=-trending&skipCount=true&nsfw=both |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,28 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Peertube\Videos; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Http\Request; |
||||
use App\Http\Controllers\Peertube\Common; |
||||
// use Illuminate\Support\Facades\Log; |
||||
|
||||
class Upload extends Common { |
||||
private $common; |
||||
|
||||
public function __construct () { |
||||
$this->common = new Common; |
||||
} |
||||
|
||||
public function index () { |
||||
$res = [ |
||||
'page' => 'dummy', |
||||
'userinfo' => $this->common->user, |
||||
]; |
||||
// $res['owner'] = $this->getOwner($id); |
||||
return view('pages.peertube.notyet', ['res' => $res]); |
||||
} |
||||
|
||||
function getOwner ($id) { |
||||
return $this->ptapi_get('/api/v1/accounts/'.$id); |
||||
} |
||||
} |
@ -0,0 +1,83 @@
|
||||
.margin-content { |
||||
margin-inline-end: var(--gridVideosMiniatureMargins)!important; |
||||
} |
||||
|
||||
.margin-content { |
||||
margin-inline-start: var(--gridVideosMiniatureMargins)!important; |
||||
} |
||||
|
||||
.margin-content { |
||||
--gridVideosMiniatureMargins: var(--videosHorizontalMarginContent); |
||||
} |
||||
|
||||
.main-col .margin-content { |
||||
margin: 0 var(--horizontalMarginContent); |
||||
flex-grow: 1; |
||||
} |
||||
|
||||
.videos-header { |
||||
display: grid; |
||||
grid-template-columns: auto 1fr auto; |
||||
margin-bottom: 30px; |
||||
} |
||||
|
||||
.videos-header .title { |
||||
font-size: 18px; |
||||
color: var(--mainForegroundColor); |
||||
display: inline-block; |
||||
font-weight: 600; |
||||
margin-top: 30px; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
.videos-header .title, .videos-header .title-subscription { |
||||
grid-column: 1; |
||||
} |
||||
|
||||
.videos-header .title-subscription { |
||||
grid-row: 2; |
||||
font-size: 14px; |
||||
color: var(--greyForegroundColor); |
||||
} |
||||
|
||||
.videos-header .title, .videos-header .title-subscription { |
||||
grid-column: 1; |
||||
} |
||||
|
||||
.videos-header my-feed { |
||||
margin-inline-start: 5px; |
||||
} |
||||
|
||||
.videos-header my-feed { |
||||
display: inline-block; |
||||
width: 16px; |
||||
color: var(--mainColor); |
||||
position: relative; |
||||
top: -2px; |
||||
} |
||||
|
||||
.feed { |
||||
width: 100%; |
||||
} |
||||
|
||||
my-global-icon { |
||||
cursor: pointer; |
||||
width: 100%; |
||||
} |
||||
|
||||
[role=button] { |
||||
cursor: pointer; |
||||
} |
||||
|
||||
.date-title:not(:first-child) { |
||||
margin-top: .5rem; |
||||
padding-top: 20px; |
||||
border-top: 1px solid rgba(0,0,0,.1); |
||||
} |
||||
|
||||
.date-title { |
||||
font-size: 16px; |
||||
font-weight: 600; |
||||
margin-bottom: 20px; |
||||
grid-column: 1/-1; |
||||
} |
@ -0,0 +1,7 @@
|
||||
@extends('theme.'.env('THEME').'.peertube') |
||||
|
||||
@section('content') |
||||
<div id="content" tabindex="-1" class="main-col"> |
||||
開発中 |
||||
</div> |
||||
@endsection |
@ -0,0 +1,5 @@
|
||||
@extends('theme.'.env('THEME').'.peertube') |
||||
|
||||
@section('content') |
||||
@include('theme.'.env('THEME').'.component.peertube.videos.local') |
||||
@endsection |
@ -0,0 +1,5 @@
|
||||
@extends('theme.'.env('THEME').'.peertube') |
||||
|
||||
@section('content') |
||||
@include('theme.'.env('THEME').'.component.peertube.videos.recentlyadded') |
||||
@endsection |
@ -0,0 +1,60 @@
|
||||
<div class="video-wrapper ng-star-inserted"> |
||||
<my-video-miniature> |
||||
<div class="video-miniature"> |
||||
<my-video-thumbnail> |
||||
<a class="video-thumbnail ng-star-inserted" href="/peertube/w/{{ $v->shortUUID }}"> |
||||
<img alt="" aria-label="{{ $v->name }}" src="https://video.076.ne.jp{{ $v->thumbnailPath }}" class="ng-star-inserted"> |
||||
<div class="video-thumbnail-actions-overlay ng-star-inserted"> |
||||
<div placement="left" container="body" class="video-thumbnail-watch-later-overlay ng-star-inserted"> |
||||
<my-global-icon iconname="clock" role="button" aria-label="「後で見る」に追加する"> |
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-clock"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg> |
||||
</my-global-icon> |
||||
</div> |
||||
</div> |
||||
<div class="video-thumbnail-label-overlay warning ng-star-inserted"></div> |
||||
<div class="video-thumbnail-label-overlay danger ng-star-inserted"></div> |
||||
@php |
||||
$seconds = $v->duration; |
||||
$hours = floor($seconds / 3600); |
||||
$seconds -= $hours * 3600; |
||||
$minutes = floor($seconds / 60); |
||||
$seconds -= $minutes * 60; |
||||
@endphp |
||||
<div class="video-thumbnail-duration-overlay ng-star-inserted">{{ $hours != 0 ? $hours.':' : '' }}{{ $minutes != 0 ? $minutes.':' : '0:' }}{{ $seconds }}</div> |
||||
<div class="play-overlay ng-star-inserted"> |
||||
<div class="icon"></div> |
||||
</div> |
||||
<div class="progress-bar ng-star-inserted"> |
||||
<div style="width: 100%;"></div> |
||||
</div> |
||||
</a> |
||||
</my-video-thumbnail> |
||||
<div class="video-bottom"> |
||||
<div class="video-miniature-information"> |
||||
<div class="d-flex video-miniature-meta"> |
||||
<div class="w-100 d-flex flex-column"> |
||||
<my-link tabindex="-1" class="video-miniature-name" style="max-height: 3em;"> |
||||
<a tabindex="-1" title="{{ $v->name }}" href="/peertube/w/{{ $v->shortUUID }}" class="ng-star-inserted"> {{ $v->name }} </a> |
||||
</my-link> |
||||
<span class="video-miniature-created-at-views"> |
||||
<my-date-toggle class="ng-star-inserted"> |
||||
<span class="date-toggle" title="{{ date('Y/m/d', strtotime($v->createdAt)) }}"> {{ date('Y年m月d日 H:i:s T', strtotime($v->createdAt)) }} </span> |
||||
</my-date-toggle> |
||||
<span class="views" title=""> • |
||||
<my-video-views-counter class="ng-star-inserted"> |
||||
<span title=""> {{ $v->views }} 回視聴 </span> |
||||
</my-video-views-counter> |
||||
</span> |
||||
</span> |
||||
@if ($res['page'] != 'channel') |
||||
<a tabindex="-1" class="video-miniature-channel ng-star-inserted" href="/peertube/c/{{ $v->channel->name }}{{ $v->channel->host != 'video.076.ne.jp' ? '@'.$v->channel->host : '' }}"> {{ $v->channel->name }}{{ $v->channel->host != 'video.076.ne.jp' ? '@'.$v->channel->host : '' }} </a> |
||||
@endif |
||||
<div class="video-info-privacy"></div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="video-actions"></div> |
||||
</div> |
||||
</div> |
||||
</my-video-miniature> |
||||
</div> |
@ -0,0 +1,43 @@
|
||||
<div _ngcontent-jba-c163="" class="videos"> |
||||
@if (!empty($res['video']['today'])) |
||||
<h2 _ngcontent-jba-c163="" class="date-title ng-star-inserted"> 今日 </h2> |
||||
@foreach ($res['video']['today'] as $v) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.common.videominature') |
||||
@endforeach |
||||
@endif |
||||
|
||||
@if (!empty($res['video']['yesterday'])) |
||||
<h2 _ngcontent-jba-c163="" class="date-title ng-star-inserted"> 今日 </h2> |
||||
@foreach ($res['video']['today'] as $v) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.common.videominature') |
||||
@endforeach |
||||
@endif |
||||
|
||||
@if (!empty($res['video']['week'])) |
||||
<h2 _ngcontent-jba-c163="" class="date-title ng-star-inserted"> 今週 </h2> |
||||
@foreach ($res['video']['week'] as $v) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.common.videominature') |
||||
@endforeach |
||||
@endif |
||||
|
||||
@if (!empty($res['video']['month'])) |
||||
<h2 _ngcontent-jba-c163="" class="date-title ng-star-inserted"> 今月 </h2> |
||||
@foreach ($res['video']['month'] as $v) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.common.videominature') |
||||
@endforeach |
||||
@endif |
||||
|
||||
@if (!empty($res['video']['lastmonth'])) |
||||
<h2 _ngcontent-jba-c163="" class="date-title ng-star-inserted"> 先月 </h2> |
||||
@foreach ($res['video']['lastmonth'] as $v) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.common.videominature') |
||||
@endforeach |
||||
@endif |
||||
|
||||
@if (!empty($res['video']['moreearly'])) |
||||
<h2 _ngcontent-jba-c163="" class="date-title ng-star-inserted"> もっと前 </h2> |
||||
@foreach ($res['video']['moreearly'] as $v) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.common.videominature') |
||||
@endforeach |
||||
@endif |
||||
</div> |
@ -1,5 +1,9 @@
|
||||
<div class="top-menu"> |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.loggedin') |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.inmylibrary') |
||||
@if (!is_null($res['userinfo']) && (isset($res['userinfo']->me) && !is_null($res['userinfo']->me))) |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.loggedin') |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.inmylibrary') |
||||
@else |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.loginmenu') |
||||
@endif |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.oninstance') |
||||
</div> |
@ -1,45 +1,51 @@
|
||||
<div class="logged-in-block ng-star-inserted"> |
||||
<div> |
||||
<div placement="bottom-left auto" autoclose="outside" class="logged-in-more dropdown"> |
||||
<div class="dropdown-toggle" aria-expanded="false"> |
||||
<my-actor-avatar size="34"> |
||||
<img class="account avatar avatar-34 ng-star-inserted" src="https://video.076.ne.jp/lazy-static/avatars/aa9883c7-d4d0-48c3-8e3a-72a9f2d96784.png" alt="アカウントのアバター"> |
||||
</my-actor-avatar> |
||||
<div class="logged-in-info"> |
||||
<div class="logged-in-display-name">テクニカル諏訪子</div> |
||||
<div class="logged-in-username">@techsuwako</div> |
||||
<a href="/peertube/a/techsuwako"> |
||||
<div class="dropdown-toggle" aria-expanded="false"> |
||||
<my-actor-avatar size="34"> |
||||
<img class="account avatar avatar-34 ng-star-inserted" src="https://video.076.ne.jp/lazy-static/avatars/aa9883c7-d4d0-48c3-8e3a-72a9f2d96784.png" alt="アカウントのアバター"> |
||||
</my-actor-avatar> |
||||
<div class="logged-in-info"> |
||||
<div class="logged-in-display-name">テクニカル諏訪子</div> |
||||
<div class="logged-in-username">@techsuwako</div> |
||||
</div> |
||||
<div class="dropdown-toggle-indicator"> |
||||
<span class="glyphicon glyphicon-chevron-down"></span> |
||||
</div> |
||||
</div> |
||||
<div class="dropdown-toggle-indicator"> |
||||
<span class="glyphicon glyphicon-chevron-down"></span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</div> |
||||
@include('theme.'.env('THEME').'.component.peertube.parts.menu.top.notification') |
||||
</div> |
||||
<div class="logged-in-menu"> |
||||
<a routerlink="/my-account" routerlinkactive="active" class="menu-link" href="/my-account"> |
||||
<a routerlink="/my-account" routerlinkactive="active" class="menu-link" href="/peertube/my-account"> |
||||
<my-global-icon iconname="user" aria-hidden="true"> |
||||