Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33095648
manifest_view.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
794 B
Referenced Files
None
Subscribers
None
manifest_view.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.ManifestView
do
use
Pleroma.Web
,
:view
alias
Pleroma.Config
alias
Pleroma.Web.Endpoint
def
render
(
"manifest.json"
,
_params
)
do
%{
name
:
Config
.
get
([
:instance
,
:name
]),
description
:
Config
.
get
([
:instance
,
:description
]),
icons
:
Config
.
get
([
:manifest
,
:icons
]),
theme_color
:
Config
.
get
([
:manifest
,
:theme_color
]),
background_color
:
Config
.
get
([
:manifest
,
:background_color
]),
display
:
"standalone"
,
scope
:
Endpoint
.
url
(),
start_url
:
"/"
,
categories
:
[
"social"
],
serviceworker
:
%{
src
:
"/sw.js"
}
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 9:25 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
932157
Default Alt Text
manifest_view.ex (794 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment