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
|
image: nginx:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/docker_volumes/maintenance:/usr/share/nginx/html
|
- /mnt/docker_volumes/maintenance:/usr/share/nginx/html
|
||||||
|
- /mnt/docker_volumes/maintenance/default.conf:/etc/nginx/conf.d/default.conf
|
||||||
ports:
|
ports:
|
||||||
- "3010:80"
|
- "3010:80"
|
||||||
environment:
|
environment:
|
@ -117,12 +117,13 @@ function PwaManagerNotifications() {
|
|||||||
<button
|
<button
|
||||||
onClick={isPermissionGranted ? undefined : requestNotificationPermission}
|
onClick={isPermissionGranted ? undefined : requestNotificationPermission}
|
||||||
className={`text-xs py-1 px-2 rounded-full focus:outline-none transition duration-150 ease-in-out
|
className={`text-xs py-1 px-2 rounded-full focus:outline-none transition duration-150 ease-in-out
|
||||||
${isPermissionGranted ? 'bg-blue-400 text-white'
|
${isPermissionGranted ?
|
||||||
: 'border border-blue-300 text-blue-300 bg-transparent hover:bg-blue-100'
|
'border border-blue-300 text-blue-300 bg-transparent hover:bg-blue-100'
|
||||||
|
: 'bg-blue-400 text-white'
|
||||||
}`}
|
}`}
|
||||||
disabled={isPermissionGranted}
|
disabled={isPermissionGranted}
|
||||||
>
|
>
|
||||||
{!isSupported() ? "не поддъжа известия" : (isPermissionGranted ? 'Известията включени' : 'Включи известията')}
|
{!isSupported() ? "не поддъжа известия" : (isPermissionGranted && subscription ? 'Известията включени' : 'Включи известията')}
|
||||||
</button>
|
</button>
|
||||||
</div >
|
</div >
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user