misc folder and date on /video

This commit is contained in:
Pablo Ferreiro 2022-11-18 16:48:51 +01:00
parent 94da0e46ac
commit b138f4bccc
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
11 changed files with 49 additions and 32 deletions

View file

@ -1 +1 @@
web: vendor/bin/heroku-php-nginx -C setup/heroku/nginx.conf web: vendor/bin/heroku-php-nginx -C misc/setup/heroku/nginx.conf

View file

@ -1,7 +1,7 @@
{ {
"name": "pablouser1/proxitok", "name": "pablouser1/proxitok",
"description": "An alternative frontend for TikTok", "description": "An alternative frontend for TikTok",
"version": "2.4.3.0", "version": "2.4.3.1",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"type": "project", "type": "project",
"authors": [ "authors": [

30
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "7dc0bdf9fcecc4c3a73fb2fb1eece6f4", "content-hash": "3e8c7455c52a55b2b83c691e2e040468",
"packages": [ "packages": [
{ {
"name": "bramus/router", "name": "bramus/router",
@ -406,16 +406,16 @@
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.26.0", "version": "v1.27.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -430,7 +430,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "1.26-dev" "dev-main": "1.27-dev"
}, },
"thanks": { "thanks": {
"name": "symfony/polyfill", "name": "symfony/polyfill",
@ -469,7 +469,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
}, },
"funding": [ "funding": [
{ {
@ -485,20 +485,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-05-24T11:49:31+00:00" "time": "2022-11-03T14:55:06+00:00"
}, },
{ {
"name": "symfony/polyfill-php80", "name": "symfony/polyfill-php80",
"version": "v1.26.0", "version": "v1.27.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php80.git", "url": "https://github.com/symfony/polyfill-php80.git",
"reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
"reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -507,7 +507,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "1.26-dev" "dev-main": "1.27-dev"
}, },
"thanks": { "thanks": {
"name": "symfony/polyfill", "name": "symfony/polyfill",
@ -552,7 +552,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0"
}, },
"funding": [ "funding": [
{ {
@ -568,7 +568,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-05-10T07:21:04+00:00" "time": "2022-11-03T14:55:06+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/process",

View file

@ -2,8 +2,8 @@
"name": "proxitok-scss", "name": "proxitok-scss",
"private": true, "private": true,
"scripts": { "scripts": {
"bulma": "sass --style=compressed bulma.scss ../styles/vendor/bulma.min.css", "bulma": "sass --style=compressed bulma.scss ../../styles/vendor/bulma.min.css",
"cssgg": "sass --style=compressed cssgg.scss ../styles/vendor/cssgg.min.css" "cssgg": "sass --style=compressed cssgg.scss ../../styles/vendor/cssgg.min.css"
}, },
"dependencies": { "dependencies": {
"bulma": "^0.9.3", "bulma": "^0.9.3",

View file

@ -9,7 +9,7 @@
{include '../components/navbar.latte'} {include '../components/navbar.latte'}
</div> </div>
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container">
{block content}{/block} {block content}{/block}
</div> </div>
</div> </div>

View file

@ -1,24 +1,41 @@
{layout "../layouts/{$layout}.latte"} {layout "../layouts/{$layout}.latte"}
{block content} {block content}
<div class="columns has-text-centered is-centered is-vcentered is-gapless"> <div class="columns is-centered is-vcentered is-gapless">
<div class="column"> <div class="column has-text-centered">
<video controls autoplay poster="{url_stream($item->video->originCover)}"> <video controls autoplay poster="{url_stream($item->video->originCover)}">
<source src="{url_stream($item->video->playAddr)}" type="video/mp4" /> <source src="{url_stream($item->video->playAddr)}" type="video/mp4" />
</video> </video>
</div> </div>
<div class="column"> <div class="column">
<div class="box"> <div class="box">
<p class="title">Video by <a href="{url_user($detail->uniqueId)}">{$detail->uniqueId}</a></p> <article class="media">
<p class="subtitle">{$item->desc}</p> <figure class="media-left">
{include '../components/themes/common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount} <p class="image is-64x64">
<div class="container mt-4"> <img src="{url_stream($detail->avatarThumb)}" />
<p>{include '../components/icon.latte', icon: 'music', text: $item->music->title}</p> </p>
<audio src="{url_stream($item->music->playUrl)}" controls preload="none"></audio> </figure>
</div> <div class="media-content">
<hr /> <p>
{include '../components/themes/common/share.latte', uniqueId: $detail->uniqueId, id: $item->id} <strong>{$detail->nickname}</strong>
{include '../components/themes/common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $detail->uniqueId} <small>
<a href="{url_user($detail->uniqueId)}">@{$detail->uniqueId}</a>
</small>
<small title="{date('M d, Y H:i:s e', $item->createTime)}">{date('M d, Y', $item->createTime)}</small>
</p>
{if !empty($item->challenges)}
<p>{include '../components/themes/common/tags.latte', challenges: $item->challenges}</p>
{/if}
<div class="content">
<p n:ifcontent>{$item->desc}</p>
{include '../components/themes/common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
<div class="has-text-centered">
{include '../components/themes/common/share.latte', uniqueId: $detail->uniqueId, id: $item->id}
{include '../components/themes/common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $detail->uniqueId}
</div>
</div>
</div>
</article>
</div> </div>
</div> </div>
</div> </div>