MastoFE: Add PWA manifest.
This commit is contained in:
parent
fd6d05dc45
commit
638457ba94
6 changed files with 85 additions and 1 deletions
|
|
@ -322,6 +322,16 @@ config :pleroma, :assets,
|
|||
],
|
||||
default_mascot: :pleroma_fox_tan
|
||||
|
||||
config :pleroma, :manifest,
|
||||
icons: [
|
||||
%{
|
||||
src: "/static/logo.png",
|
||||
type: "image/png"
|
||||
}
|
||||
],
|
||||
theme_color: "#282c37",
|
||||
background_color: "#191b22"
|
||||
|
||||
config :pleroma, :activitypub,
|
||||
unfollow_blocked: true,
|
||||
outgoing_blocks: true,
|
||||
|
|
|
|||
|
|
@ -1098,6 +1098,45 @@ config :pleroma, :config_description, [
|
|||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
group: :pleroma,
|
||||
key: :manifest,
|
||||
type: :group,
|
||||
description:
|
||||
"This section describe PWA manifest instance-specific values. Currently this option relate only for MastoFE",
|
||||
children: [
|
||||
%{
|
||||
key: :icons,
|
||||
type: {:list, :map},
|
||||
description: "Describe the icons of the app",
|
||||
suggestion: [
|
||||
%{
|
||||
src: "/static/logo.png"
|
||||
},
|
||||
%{
|
||||
src: "/static/icon.png",
|
||||
type: "image/png"
|
||||
},
|
||||
%{
|
||||
src: "/static/icon.ico",
|
||||
sizes: "72x72 96x96 128x128 256x256"
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
key: :theme_color,
|
||||
type: :string,
|
||||
description: "Describe the theme color of the app",
|
||||
suggestions: ["#282c37", "mediumpurple"]
|
||||
},
|
||||
%{
|
||||
key: :background_color,
|
||||
type: :string,
|
||||
description: "Describe the background color of the app",
|
||||
suggestions: ["#191b22", "aliceblue"]
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
group: :pleroma,
|
||||
key: :mrf_simple,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue