Skip to content

Commit

Permalink
feat: up recommended size to 512x512 + ACP labels for PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Sep 29, 2020
1 parent 6478b32 commit 9c5b690
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions public/language/en-GB/admin/settings/general.json
Expand Up @@ -27,10 +27,12 @@
"log.alt-text-placeholder": "Alternative text for accessibility",
"favicon": "Favicon",
"favicon.upload": "Upload",
"touch-icon": "Homescreen/Touch Icon",
"pwa": "Progressive Web App",
"touch-icon": "Touch Icon",
"touch-icon.upload": "Upload",
"touch-icon.help": "Recommended size and format: 512x512, PNG format only. If no touch icon is specified, NodeBB will fall back to using the favicon.",
"maskable-icon.help": "Recommended size and format: 512x512, PNG format only. If no maskable icon is specified, NodeBB will fall back to the Touch Icon",
"maskable-icon": "Maskable (Homescreen) Icon",
"maskable-icon.help": "Recommended size and format: 512x512, PNG format only. If no maskable icon is specified, NodeBB will fall back to the Touch Icon.",
"outgoing-links": "Outgoing Links",
"outgoing-links.warning-page": "Use Outgoing Links Warning Page",
"search-default-sort-by": "Search default sort by",
Expand Down
4 changes: 3 additions & 1 deletion src/views/admin/settings/general.tpl
Expand Up @@ -102,10 +102,11 @@

<div class="row">
<div class="col-sm-2 col-xs-12 settings-header">
[[admin/settings/general:touch-icon]]
[[admin/settings/general:pwa]]
</div>
<div class="col-sm-10 col-xs-12">
<div class="form-group">
<label for="touchIconUrl">[[admin/settings/general:touch-icon]]</label>
<div class="input-group">
<input id="touchIconUrl" type="text" class="form-control" data-field="brand:touchIcon" data-action="upload" data-target="touchIconUrl" data-route="{config.relative_path}/api/admin/uploadTouchIcon" readonly />
<span class="input-group-btn">
Expand All @@ -119,6 +120,7 @@
</div>

<div class="form-group">
<label for="touchIconUrl">[[admin/settings/general:maskable-icon]]</label>
<div class="input-group">
<input id="maskableIconUrl" type="text" class="form-control" data-field="brand:maskableIcon" data-action="upload" data-target="maskableIconUrl" data-route="{config.relative_path}/api/admin/uploadMaskableIcon" readonly />
<span class="input-group-btn">
Expand Down

0 comments on commit 9c5b690

Please sign in to comment.