Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - `app/models/form/admin_settings.rb`: New setting added upstream. Ported it. - `app/views/statuses/_simple_status.html.haml`: Upstream removed RTL classes. Did the same. - `config/settings.yml`: New setting added upstream. Ported it.
This commit is contained in:
@@ -7,7 +7,7 @@ class ManifestSerializer < ActiveModel::Serializer
|
||||
attributes :name, :short_name, :description,
|
||||
:icons, :theme_color, :background_color,
|
||||
:display, :start_url, :scope,
|
||||
:share_target
|
||||
:share_target, :shortcuts
|
||||
|
||||
def name
|
||||
object.site_title
|
||||
@@ -64,4 +64,42 @@ class ManifestSerializer < ActiveModel::Serializer
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
def shortcuts
|
||||
[
|
||||
{
|
||||
name: 'New toot',
|
||||
url: '/web/statuses/new',
|
||||
icons: [
|
||||
{
|
||||
src: '/shortcuts/new-status.png',
|
||||
type: 'image/png',
|
||||
sizes: '192x192',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Notifications',
|
||||
url: '/web/notifications',
|
||||
icons: [
|
||||
{
|
||||
src: '/shortcuts/notifications.png',
|
||||
type: 'image/png',
|
||||
sizes: '192x192',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Direct messages',
|
||||
url: '/web/timelines/direct',
|
||||
icons: [
|
||||
{
|
||||
src: '/shortcuts/direct.png',
|
||||
type: 'image/png',
|
||||
sizes: '192x192',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user