Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

add pwa files to ente auth

Abhinav942ac4a36f6d
diff --git a/apps/auth/manifest.json b/apps/auth/manifest.json
new file mode 100644
index 0000000000..fde8212b40
--- /dev/null
+++ b/apps/auth/manifest.json
@@ -0,0 +1,79 @@
+{
+ "short_name": "ente",
+ "name": "ente | encrypted photo storage",
+ "icons": [
+ {
+ "src": "/images/ente/192.png",
+ "type": "image/png",
+ "sizes": "192x192"
+ },
+ {
+ "src": "/images/ente/256.png",
+ "type": "image/png",
+ "sizes": "256x256"
+ },
+ {
+ "src": "/images/ente/512.png",
+ "type": "image/png",
+ "sizes": "512x512"
+ }
+ ],
+ "start_url": "/",
+ "background_color": "#191919",
+ "display": "standalone",
+ "scope": "/",
+ "theme_color": "#111",
+ "description": "ente provides a simple way to back up your memories.",
+ "prefer_related_applications": true,
+ "related_applications": [
+ {
+ "platform": "play",
+ "url": "https://play.google.com/store/apps/details?id=io.ente.photos",
+ "id": "io.ente.photos"
+ },
+ {
+ "platform": "itunes",
+ "url": "https://apps.apple.com/in/app/ente-photos/id1542026904"
+ }
+ ],
+ "share_target": {
+ "action": "./share-target",
+ "method": "POST",
+ "enctype": "multipart/form-data",
+ "params": {
+ "files": [
+ {
+ "name": "files",
+ "accept": ["image/*", "video/*", "application/json"]
+ }
+ ]
+ }
+ },
+ "screenshots": [
+ {
+ "src": "/pwa/slide-1.jpg",
+ "type": "image/jpeg",
+ "sizes": "417x760"
+ },
+ {
+ "src": "/pwa/slide-2.jpg",
+ "type": "image/jpeg",
+ "sizes": "378x690"
+ },
+ {
+ "src": "/pwa/slide-3.jpg",
+ "type": "image/jpeg",
+ "sizes": "378x690"
+ },
+ {
+ "src": "/pwa/slide-4.jpg",
+ "type": "image/jpeg",
+ "sizes": "378x690"
+ },
+ {
+ "src": "/pwa/slide-5.jpg",
+ "type": "image/jpeg",
+ "sizes": "378x690"
+ }
+ ]
+}
diff --git a/apps/auth/offline.html b/apps/auth/offline.html
new file mode 100644
index 0000000000..50d7ed6257
--- /dev/null
+++ b/apps/auth/offline.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>ente Auth</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <style>
+ * {
+ box-sizing: border-box;
+ }
+ body {
+ background-color: #252525;
+ padding: 0;
+ margin: 0;
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ color: #fff;
+ }
+ nav {
+ background-color: #171717;
+ height: 64px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ box-shadow: rgb(0 0 0 / 70%) 0px 0px 5px;
+ }
+
+ nav > img {
+ height: 24px;
+ padding: 3px;
+ margin: 0 auto;
+ }
+
+ body > div {
+ flex: 1;
+ padding: 10px;
+ text-align: center;
+ max-width: 1000px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+ margin: 0 auto;
+ }
+ h2 {
+ margin-top: 0;
+ }
+ </style>
+ </head>
+ <body>
+ <nav>
+ <img src="/images/ente.svg" />
+ </nav>
+ <div>
+ <h2>seems like you are offline :(</h2>
+ <span>please check your internet connection</span>
+ </div>
+ </body>
+</html>
diff --git a/apps/auth/public/images/auth/192.png b/apps/auth/public/images/auth/192.png
new file mode 100644
index 0000000000..7931c4e4e9
Binary files /dev/null and b/apps/auth/public/images/auth/192.png differ
diff --git a/apps/auth/public/images/auth/256.png b/apps/auth/public/images/auth/256.png
new file mode 100644
index 0000000000..a58c577f9d
Binary files /dev/null and b/apps/auth/public/images/auth/256.png differ
diff --git a/apps/auth/public/images/auth/512.png b/apps/auth/public/images/auth/512.png
new file mode 100644
index 0000000000..446b463274
Binary files /dev/null and b/apps/auth/public/images/auth/512.png differ
diff --git a/apps/photos/public/manifest.json b/apps/photos/public/manifest.json
index 1bb5102401..defbba0063 100644
--- a/apps/photos/public/manifest.json
+++ b/apps/photos/public/manifest.json
@@ -1,19 +1,19 @@
{
- "short_name": "ente",
+ "short_name": "ente Auth",
"name": "ente | encrypted photo storage",
"icons": [
{
- "src": "/images/ente/192.png",
+ "src": "/images/auth/192.png",
"type": "image/png",
"sizes": "192x192"
},
{
- "src": "/images/ente/256.png",
+ "src": "/images/auth/256.png",
"type": "image/png",
"sizes": "256x256"
},
{
- "src": "/images/ente/512.png",
+ "src": "/images/auth/512.png",
"type": "image/png",
"sizes": "512x512"
}
@@ -35,49 +35,5 @@
"platform": "itunes",
"url": "https://apps.apple.com/in/app/ente-photos/id1542026904"
}
- ],
- "share_target": {
- "action": "./share-target",
- "method": "POST",
- "enctype": "multipart/form-data",
- "params": {
- "files": [
- {
- "name": "files",
- "accept": [
- "image/*",
- "video/*",
- "application/json"
- ]
- }
- ]
- }
- },
- "screenshots": [
- {
- "src": "/pwa/slide-1.jpg",
- "type": "image/jpeg",
- "sizes": "417x760"
- },
- {
- "src": "/pwa/slide-2.jpg",
- "type": "image/jpeg",
- "sizes": "378x690"
- },
- {
- "src": "/pwa/slide-3.jpg",
- "type": "image/jpeg",
- "sizes": "378x690"
- },
- {
- "src": "/pwa/slide-4.jpg",
- "type": "image/jpeg",
- "sizes": "378x690"
- },
- {
- "src": "/pwa/slide-5.jpg",
- "type": "image/jpeg",
- "sizes": "378x690"
- }
]
}
\ No newline at end of file