adjust native

This commit is contained in:
Pete Matsyburka committed 2026-09-23 11:00:17 +03:00
1 parent 6f31bd7af8
commit 66758d45bc
21 files changed
+379 -64

No files matched your search

+1
View File
@@ -4,4 +4,5 @@
<%= render 'shared/meta' %>
<% if turbo_native_app? %>
<meta name="turbo-cache-control" content="no-preview">
<style>native-action { display: none !important; }</style>
<% end %>
@@ -0,0 +1,93 @@
{
"settings": {
"strings": {
"search": <%== t('search').to_json %>,
"create": <%== t('create').to_json %>,
"documents": <%== t('documents').to_json %>,
"fields": <%== t('fields').to_json %>,
"more": <%== t('more').to_json %>,
"close": <%== t('close').to_json %>,
"cancel": <%== t('cancel').to_json %>,
"ok": <%== t('ok').to_json %>,
"failed_to_download_files": <%== t('failed_to_download_files').to_json %>,
"failed_to_upload_files": <%== t('failed_to_upload_files').to_json %>,
"failed_to_save_the_scan": <%== t('failed_to_save_the_scan').to_json %>,
"failed_to_scan_the_document": <%== t('failed_to_scan_the_document').to_json %>,
"document_scanning_is_not_available_on_this_device": <%== t('document_scanning_is_not_available_on_this_device').to_json %>
}
},
"rules": [
{
"patterns": [".*"],
"properties": {
"query_string_presentation": "replace"
}
},
{
"patterns": ["^/search($|\\?)"],
"properties": {
"pull_to_refresh_enabled": false
}
},
{
"patterns": ["^/settings", "^/reports"],
"properties": {
"large_title": true
}
},
{
"patterns": ["^/settings$", "^/settings/personalization$"],
"properties": {
"large_title": false
}
},
{
"patterns": ["^/templates($|\\?)"],
"properties": {
"native_tab_bar": true,
"tab_title": <%== t('templates').to_json %>
}
},
{
"patterns": ["^/submissions($|\\?)"],
"properties": {
"native_tab_bar": true,
"tab_title": <%== t('submissions').to_json %>
}
},
{
"patterns": ["^/folders/\\d+"],
"properties": {
"native_actions": ["menu"],
"native_tab_bar": true
}
},
{
"patterns": ["^/templates/archived($|\\?)", "^/templates/shared($|\\?)", "^/submissions/archived($|\\?)"],
"properties": {
"native_tab_bar": true
}
},
{
"patterns": ["^/templates/\\d+(/archived)?($|\\?)"],
"properties": {
"native_actions": ["menu"],
"large_title": true,
"native_tab_bar": true
}
},
{
"patterns": ["^/templates/\\d+/edit"],
"properties": {
"native_actions": ["check", "menu"]
}
},
{
"patterns": ["^/submissions/\\d+($|\\?)"],
"properties": {
"native_actions": ["menu"],
"native_tabs": <%== [t('document'), t('recipients')].to_json %>
}
}
]
}
+3 -1
View File
@@ -28,7 +28,9 @@
<open-modal src="<%= url_for(**url_params, params: modal_uri.query_values) %>"></open-modal>
<% end %>
<% end %>
<turbo-frame id="modal"></turbo-frame>
<% unless content_for?(:native_modal) %>
<turbo-frame id="modal"></turbo-frame>
<% end %>
<turbo-frame id="drawer"></turbo-frame>
<%= render turbo_native_app? ? 'shared/native_navbar' : 'shared/navbar' %>
<% if flash.present? %><%= render 'shared/flash' %><% end %>