-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Progressive Web App support for Etherpad
- Loading branch information
1 parent
df3686d
commit fad3f3e
Showing
7 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import {ArgsExpressType} from "../../types/ArgsExpressType"; | ||
const settings = require('../../utils/Settings'); | ||
|
||
const pwa = { | ||
name: settings.title || "Etherpad", | ||
short_name: settings.title, | ||
description: "A collaborative online editor", | ||
icons: [ | ||
{ | ||
"src": "/static/skins/colibris/images/fond.jpg", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
type: "image/png" | ||
} | ||
], | ||
start_url: "/", | ||
display: "fullscreen", | ||
theme_color: "#0f775b", | ||
background_color: "#0f775b" | ||
} | ||
|
||
exports.expressCreateServer = (hookName:string, args:ArgsExpressType, cb:Function) => { | ||
args.app.get('/manifest.json', (req:any, res:any) => { | ||
res.json(pwa); | ||
}); | ||
|
||
return cb(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters