Add PWA info
This commit is contained in:
parent
db60640c5b
commit
bbf2e3f445
2 changed files with 13 additions and 9 deletions
|
@ -313,7 +313,7 @@
|
||||||
loginMethod: "password",
|
loginMethod: "password",
|
||||||
logo: "/static/logo.svg",
|
logo: "/static/logo.svg",
|
||||||
logoMargin: ".1em",
|
logoMargin: ".1em",
|
||||||
logoMask: true,
|
logoMask: false,
|
||||||
noAttachmentLinks: false,
|
noAttachmentLinks: false,
|
||||||
nsfwCensorImage: "",
|
nsfwCensorImage: "",
|
||||||
postContentType: "text/plain",
|
postContentType: "text/plain",
|
||||||
|
@ -346,12 +346,6 @@
|
||||||
default_mascot: :pleroma_fox_tan
|
default_mascot: :pleroma_fox_tan
|
||||||
|
|
||||||
config :pleroma, :manifest,
|
config :pleroma, :manifest,
|
||||||
icons: [
|
|
||||||
%{
|
|
||||||
src: "/static/logo.svg",
|
|
||||||
type: "image/svg+xml"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
theme_color: "#282c37",
|
theme_color: "#282c37",
|
||||||
background_color: "#191b22"
|
background_color: "#191b22"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,17 @@ def render("manifest.json", _params) do
|
||||||
%{
|
%{
|
||||||
name: Config.get([:instance, :name]),
|
name: Config.get([:instance, :name]),
|
||||||
description: Config.get([:instance, :description]),
|
description: Config.get([:instance, :description]),
|
||||||
icons: Config.get([:manifest, :icons]),
|
icons: [
|
||||||
|
%{
|
||||||
|
src: "/static/logo.svg",
|
||||||
|
type: "image/svg+xml"
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
src: "/static/logo-512.png",
|
||||||
|
sizes: "512x512",
|
||||||
|
type: "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
theme_color: Config.get([:manifest, :theme_color]),
|
theme_color: Config.get([:manifest, :theme_color]),
|
||||||
background_color: Config.get([:manifest, :background_color]),
|
background_color: Config.get([:manifest, :background_color]),
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
|
@ -21,7 +31,7 @@ def render("manifest.json", _params) do
|
||||||
"social"
|
"social"
|
||||||
],
|
],
|
||||||
serviceworker: %{
|
serviceworker: %{
|
||||||
src: "/sw.js"
|
src: "/sw-pleroma.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue