setup maintenance container. improve pushman ui

This commit is contained in:
Dobromir Popov
2024-05-08 16:08:14 +03:00
parent 71b5f198ed
commit 4021279fb8
4 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,11 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}

View File

@ -5,6 +5,7 @@ services:
image: nginx:latest
volumes:
- /mnt/docker_volumes/maintenance:/usr/share/nginx/html
- /mnt/docker_volumes/maintenance/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "3010:80"
environment:

View File

@ -117,12 +117,13 @@ function PwaManagerNotifications() {
<button
onClick={isPermissionGranted ? undefined : requestNotificationPermission}
className={`text-xs py-1 px-2 rounded-full focus:outline-none transition duration-150 ease-in-out
${isPermissionGranted ? 'bg-blue-400 text-white'
: 'border border-blue-300 text-blue-300 bg-transparent hover:bg-blue-100'
${isPermissionGranted ?
'border border-blue-300 text-blue-300 bg-transparent hover:bg-blue-100'
: 'bg-blue-400 text-white'
}`}
disabled={isPermissionGranted}
>
{!isSupported() ? "не поддъжа известия" : (isPermissionGranted ? 'Известията включени' : 'Включи известията')}
{!isSupported() ? "не поддъжа известия" : (isPermissionGranted && subscription ? 'Известията включени' : 'Включи известията')}
</button>
</div >
);