-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement PWA for mobile experience (#282)
- Loading branch information
1 parent
2b5f6f8
commit 4a7aad9
Showing
26 changed files
with
78 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.2.3 |
Binary file removed
BIN
-904 Bytes
app/assets/images/apple_touch_icons/logo_apple-touch-icon-120x120.png
Binary file not shown.
Binary file removed
BIN
-1.05 KB
app/assets/images/apple_touch_icons/logo_apple-touch-icon-152x152.png
Binary file not shown.
Binary file removed
BIN
-1.19 KB
app/assets/images/apple_touch_icons/logo_apple-touch-icon-167x167.png
Binary file not shown.
Binary file removed
BIN
-1.21 KB
app/assets/images/apple_touch_icons/logo_apple-touch-icon-180x180.png
Binary file not shown.
Binary file removed
BIN
-659 Bytes
app/assets/images/apple_touch_icons/logo_apple-touch-icon-76x76.png
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
<head> | ||
<title>HostedGPT</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<%= charset_tag('utf-8') %> | ||
<%= viewport_tag('width=device-width,initial-scale=1') %> | ||
|
||
<title><%= yield(:title) %></title> | ||
|
||
<%= capybara_lockstep if defined?(Capybara::Lockstep) %> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
|
@@ -11,9 +14,18 @@ | |
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> | ||
<%= javascript_importmap_tags %> | ||
<%= turbo_refreshes_with method: :morph, scroll: :preserve %> | ||
<%= favicon_link_tag asset_path("favicon.png") %> | ||
<% %w(76 120 152 167 180).each do |size| %> | ||
<%= favicon_link_tag asset_path("apple_touch_icons/logo_apple-touch-icon-#{size}x#{size}.png"), rel: 'apple-touch-icon', type: 'image/png', sizes: "#{size}x#{size}" %> | ||
|
||
<!-- PWA --> | ||
<link rel="manifest" href="/manifest.json"> | ||
<!-- ios-pwa-splash screen: from https://github.com/avadhesh18/iosPWASplash --> | ||
<%= javascript_include_tag "https://unpkg.com/[email protected]/cdn.min.js" %> | ||
<%= javascript_tag do %> | ||
iosPWASplash('/apple-touch-icon.png', '#ffffff') | ||
<% end %> | ||
<!-- /ios-pwa-splash screen--> | ||
<!-- /PWA --> | ||
|
||
<%= render 'application/head/favicons' %> | ||
<%= render 'application/head/meta_tags' %> | ||
<%= content_for :head %> | ||
</head> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<%= favicon_link_tag "/favicon.svg", rel: 'icon', type: 'image/svg+xml' %> | ||
<%= favicon_link_tag "/favicon.png", rel: 'icon', type: 'image/png' %> | ||
<%= favicon_link_tag "/apple-touch-icon.png", rel: 'apple-touch-icon' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% content_for :meta_tags do %> | ||
<%= charset_tag('utf-8') %> | ||
<%= meta_tag('mobile-web-app-capable','yes') %> | ||
<%= meta_tag('apple-mobile-web-app-capable','yes') %> | ||
<%= meta_tag('apple-mobile-web-app-status-bar-style','default') %> | ||
<%= meta_tag('apple-touch-fullscreen','yes') %> | ||
<% end %> | ||
<%= yield :meta_tags %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<% mobile = false %> | ||
<% content_for :title, "HostedGPT" %> | ||
<!DOCTYPE html> | ||
<html> | ||
<%= render "head" %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "HostedGPT", | ||
"short_name": "HostedGPT", | ||
"start_url": "/", | ||
"display": "standalone", | ||
"background_color": "#fff", | ||
"theme_color": "#fff", | ||
"icons": [ | ||
{ | ||
"src": "/apple-touch-icon.png", | ||
"type": "image/png", | ||
"sizes": "180x180" | ||
}, | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.