setup maintenance container. improve pushman ui
This commit is contained in:
11
_deploy/maintenance/default.conf
Normal file
11
_deploy/maintenance/default.conf
Normal 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;
|
||||
}
|
||||
}
|
@ -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:
|
@ -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 >
|
||||
);
|
||||
|
Reference in New Issue
Block a user