Remove legacy mobile web-capable

This commit is contained in:
flaburgan 2019-04-27 13:46:33 +02:00 committed by Benjamin Neff
parent d443401361
commit 5b6cef0679
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
6 changed files with 24 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View file

@ -0,0 +1,22 @@
# frozen_string_literal: true
class ManifestController < ApplicationController
def show
render json: '{
"short_name": "diaspora*",
"name": "diaspora*",
"description": "diaspora* is a free, decentralized and privacy respectful social network",
"icons": [
{
"src": "/icon.png",
"type": "image/png",
"sizes": "192x192"
}
],
"start_url": "/",
"background_color": "#000000",
"display": "standalone",
"theme_color": "#000000"
}'
end
end

View file

@ -4,8 +4,6 @@
%meta{charset: "utf-8"}/ %meta{charset: "utf-8"}/
= content_for?(:meta_data) ? yield(:meta_data) : metas_tags = content_for?(:meta_data) ? yield(:meta_data) : metas_tags
%meta{content: "yes", name: "mobile-web-app-capable"}/
/ favicon / favicon
/ For Apple devices / For Apple devices
%link{rel: "apple-touch-icon", href: image_path("apple-touch-icon.png")} %link{rel: "apple-touch-icon", href: image_path("apple-touch-icon.png")}

View file

@ -12,7 +12,7 @@
= load_javascript_locales = load_javascript_locales
= include_color_theme = include_color_theme
= render "head" = render "layouts/head"
= translation_missing_warnings = translation_missing_warnings
%body{class: "page-#{controller_name} action-#{action_name}"} %body{class: "page-#{controller_name} action-#{action_name}"}

View file

@ -17,11 +17,6 @@
%meta{name: "MobileOptimized", content: "320"}/ %meta{name: "MobileOptimized", content: "320"}/
%meta{"http-equiv" => "cleartype", :content => "on"}/ %meta{"http-equiv" => "cleartype", :content => "on"}/
/ iOS mobile web app indicator
/ NOTE(we will enable these once we don't have to rely on back/forward buttons anymore)
/%meta{:name => "apple-mobile-web-app-capable", :content => "yes"}
/%link{:rel => "apple-touch-startup-image", :href => "/images/apple-splash.png"}
%body %body
#app #app
= render "layouts/header" = render "layouts/header"

View file

@ -239,4 +239,5 @@ Rails.application.routes.draw do
end end
get ".well-known/openid-configuration", to: "api/openid_connect/discovery#configuration" get ".well-known/openid-configuration", to: "api/openid_connect/discovery#configuration"
get "manifest.json", to: "manifest#show"
end end