mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-16 23:33:10 -06:00
fixhtaccess
This commit is contained in:
parent
6bec5f63a8
commit
7aa5497360
|
|
@ -39,7 +39,6 @@
|
|||
<div class="sidebar-header">
|
||||
<div class="logo">
|
||||
<img src="/assets/logowhiteswift.png" alt="Logo" style="height: 28px;">
|
||||
<span id="brandName" style="margin-left: 8px;">SwiftDisplay</span>
|
||||
</div>
|
||||
<!-- #38: apply cached white-label before first paint (no ScreenTinker flash) -->
|
||||
<script src="/js/brand-prime.js"></script>
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ export async function render(container) {
|
|||
<div style="width:400px;max-width:100%">
|
||||
<div style="text-align:center;margin-bottom:32px">
|
||||
${logoHtml}
|
||||
<h1 style="font-size:24px;font-weight:700;color:var(--accent)">${brandEsc(brandName)}</h1>
|
||||
<p style="color:var(--text-secondary);font-size:13px;margin-top:4px">
|
||||
<p style="color:#ffffff;font-size:13px;margin-top:4px">
|
||||
${isSetup ? t('auth.subtitle_setup') : t('auth.subtitle_signin')}
|
||||
</p>
|
||||
${!isSetup && canRegister ? `<p style="color:var(--warning);font-size:12px;margin-top:8px">${t('auth.trial_notice')}</p>` : ''}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -21,12 +21,12 @@
|
|||
const PLATFORM_DEFAULT_ID = 'platform-default';
|
||||
|
||||
const HARDCODED_BRANDING = {
|
||||
brand_name: 'GoldenSignage',
|
||||
logo_url: '/assets/logoswift.png',
|
||||
brand_name: 'SwiftDisplay',
|
||||
logo_url: '/assets/logowhiteswift.png',
|
||||
favicon_url: '/assets/pwa-icon.png',
|
||||
primary_color: '#ff6b00',
|
||||
secondary_color: '#1E293B',
|
||||
bg_color: '#111827',
|
||||
bg_color: '#1c1c1e',
|
||||
custom_css: null,
|
||||
hide_branding: 0,
|
||||
};
|
||||
|
|
|
|||
13
server/package-lock.json
generated
13
server/package-lock.json
generated
|
|
@ -12,6 +12,7 @@
|
|||
"archiver": "^7.0.1",
|
||||
"bcryptjs": "^3.0.3",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^17.4.2",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^8.3.1",
|
||||
"google-auth-library": "^10.6.2",
|
||||
|
|
@ -1409,6 +1410,18 @@
|
|||
"integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "17.4.2",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
|
||||
"integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
|
||||
"license": "BSD-2-Clause",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://dotenvx.com"
|
||||
}
|
||||
},
|
||||
"node_modules/dunder-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
"archiver": "^7.0.1",
|
||||
"bcryptjs": "^3.0.3",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^17.4.2",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^8.3.1",
|
||||
"google-auth-library": "^10.6.2",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
require('dotenv').config();
|
||||
const express = require('express');
|
||||
const http = require('http');
|
||||
const https = require('https');
|
||||
|
|
|
|||
3
server/wipe_cache.js
Normal file
3
server/wipe_cache.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
const { db } = require('./db/database');
|
||||
db.prepare('DELETE FROM white_labels').run();
|
||||
console.log('Cache cleared');
|
||||
Loading…
Reference in a new issue