1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 02:18:40 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-20 21:04:16 +02:00
parent c7d1c8895e
commit 462962b8dc
3 changed files with 21 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ function hub_h(string $s): string {
</nav>
</aside>
<?php require __DIR__ . '/../crash_reporter/backend/views/partials/cookie_consent.php'; ?>
<?php require __DIR__ . '/partials/cookie_consent.php'; ?>
<?php platform_render_footer([
'use_i18n' => false,
'extra_class' => 'bottom-bar',

View File

@@ -0,0 +1,15 @@
<?php declare(strict_types=1); ?>
<div id="cookie-consent-banner" class="cookie-consent" hidden role="dialog" aria-labelledby="cookie-consent-title" aria-modal="false">
<div class="cookie-consent-inner">
<p id="cookie-consent-title" class="cookie-consent-title">Cookies on AndroidCast</p>
<p class="cookie-consent-text muted">
We use necessary session cookies to sign you in. With your consent we also load analytics to improve the service.
You can change this later in your browser by clearing site data.
</p>
<div class="cookie-consent-actions">
<button type="button" class="btn btn--primary" id="cookie-consent-all">Accept all</button>
<button type="button" class="btn" id="cookie-consent-necessary">Necessary only</button>
<button type="button" class="btn btn--ghost" id="cookie-consent-reject">Reject optional</button>
</div>
</div>
</div>

View File

@@ -41,11 +41,13 @@ sync_local() {
echo "Mount BE sshfs or pass the BE androidcast_project path as arg 1." >&2
exit 1
fi
mkdir -p "$dest/assets/i18n"
mkdir -p "$dest/assets/i18n" "$dest/partials"
for f in "${hub_files[@]}"; do
install -m 0644 "$SRC/$f" "$dest/$f"
echo " $f"
done
install -D -m 0644 "$SRC/partials/cookie_consent.php" "$dest/partials/cookie_consent.php"
echo " partials/cookie_consent.php"
for f in "${asset_files[@]}"; do
install -D -m 0644 "$SRC/$f" "$dest/$f"
echo " $f"
@@ -84,6 +86,8 @@ if [[ -n "$REMOTE" ]]; then
scp "$tmp/index.php" "$tmp/index.html" "$tmp/hub.css" "$tmp/hub-logo-layers.css" \
"$tmp/hub-landing.css" "$tmp/landing-pages.inc.php" \
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/"
scp "$SRC/partials/cookie_consent.php" \
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/partials/"
scp -r "$tmp/assets/hub-landing.js" "$tmp/assets/hub-i18n.js" "$tmp/assets/hub-globe.js" \
"$tmp/assets/analytics.config.js" "$tmp/assets/i18n" \
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/assets/"