mirror of https://github.com/docusealco/docuseal
Compare commits
43 Commits
7ce6c29f4d
...
a2d8b85549
| Author | SHA1 | Date |
|---|---|---|
|
|
a2d8b85549 | 19 hours ago |
|
|
4d68783b82 | 22 hours ago |
|
|
b05c3b2030 | 23 hours ago |
|
|
784ae9aa4b | 24 hours ago |
|
|
03b5956cbc | 1 day ago |
|
|
2876c9a18e | 3 days ago |
|
|
c4b7be3925 | 4 days ago |
|
|
e2ffbdac1d | 4 days ago |
|
|
0d197bb2eb | 4 days ago |
|
|
55089bee7f | 4 days ago |
|
|
b96fe74db1 | 4 days ago |
|
|
2fc1ba3037 | 4 days ago |
|
|
c67d37207e | 4 days ago |
|
|
dba50cd1bf | 4 days ago |
|
|
edf2c0d9ed | 5 days ago |
|
|
35f7c36f28 | 5 days ago |
|
|
3a24ecac63 | 5 days ago |
|
|
50ec7682b5 | 5 days ago |
|
|
3667993caf | 5 days ago |
|
|
68e8cd1188 | 5 days ago |
|
|
3eebf6d2cf | 5 days ago |
|
|
34d0e00910 | 5 days ago |
|
|
b8ab7190d2 | 5 days ago |
|
|
59fe8a7917 | 5 days ago |
|
|
d56070827b | 5 days ago |
|
|
74dbd4bed3 | 5 days ago |
|
|
807e82b21e | 5 days ago |
|
|
66862e93c8 | 5 days ago |
|
|
270461ad3b | 5 days ago |
|
|
3edd1ab32d | 5 days ago |
|
|
e77998e53c | 5 days ago |
|
|
1421bc2bce | 5 days ago |
|
|
cbbbfdda80 | 5 days ago |
|
|
2d510081be | 5 days ago |
|
|
704893ee1d | 5 days ago |
|
|
88612913a6 | 5 days ago |
|
|
ce6823ed38 | 5 days ago |
|
|
9074d23b3c | 5 days ago |
|
|
76d0e76fd5 | 5 days ago |
|
|
5ec8e4ccc7 | 5 days ago |
|
|
b8c29324b8 | 5 days ago |
|
|
972f38242e | 5 days ago |
|
|
2c6ddd7f90 | 1 week ago |
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SettingsController < ApplicationController
|
||||
skip_authorization_check
|
||||
|
||||
def index; end
|
||||
end
|
||||
@ -0,0 +1,15 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.addEventListener('click', this.onClick)
|
||||
}
|
||||
|
||||
disconnectedCallback () {
|
||||
this.removeEventListener('click', this.onClick)
|
||||
}
|
||||
|
||||
onClick = (e) => {
|
||||
e.preventDefault()
|
||||
|
||||
window.history.back()
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
if (this.dataset.disabled === 'true') return
|
||||
if (!this.isMobile()) return
|
||||
if (window.innerWidth >= 768) return
|
||||
|
||||
this.querySelectorAll('a[data-turbo-frame]').forEach((link) => {
|
||||
link.dataset.turboFrame = '_top'
|
||||
})
|
||||
}
|
||||
|
||||
isMobile () {
|
||||
const isTouchWebkit = 'ontouchstart' in window && navigator.maxTouchPoints > 0 && /AppleWebKit|android/i.test(navigator.userAgent)
|
||||
|
||||
return isTouchWebkit || /iPhone|iPad|iPod/i.test(navigator.userAgent)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.addEventListener('scroll', this.updateFade, { passive: true })
|
||||
window.addEventListener('resize', this.updateFade)
|
||||
|
||||
this.updateFade()
|
||||
}
|
||||
|
||||
disconnectedCallback () {
|
||||
window.removeEventListener('resize', this.updateFade)
|
||||
}
|
||||
|
||||
updateFade = () => {
|
||||
const maxScroll = this.scrollWidth - this.clientWidth
|
||||
const fadeGradient = {
|
||||
right: 'linear-gradient(to right, black calc(100% - 24px), transparent)',
|
||||
left: 'linear-gradient(to right, transparent, black 24px)',
|
||||
both: 'linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent)'
|
||||
}
|
||||
|
||||
let state = 'none'
|
||||
|
||||
if (maxScroll > 4) {
|
||||
if (this.scrollLeft <= 4) {
|
||||
state = 'right'
|
||||
} else if (this.scrollLeft >= maxScroll - 4) {
|
||||
state = 'left'
|
||||
} else {
|
||||
state = 'both'
|
||||
}
|
||||
}
|
||||
|
||||
this.applyFade(fadeGradient[state] || '')
|
||||
}
|
||||
|
||||
applyFade (gradient) {
|
||||
this.style.maskImage = gradient
|
||||
this.style.webkitMaskImage = gradient
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
<div class="form-control">
|
||||
<%= label_tag 'user[otp_attempt]', t('two_factor_code_from_authenticator_app'), class: 'label' %>
|
||||
<%= text_field_tag 'user[otp_attempt]', nil, autofocus: true, autocomplete: 'off', placeholder: 'XXX-XXX', required: true, class: 'base-input' %>
|
||||
<%= text_field_tag 'user[otp_attempt]', nil, autofocus: true, autocomplete: 'off', inputmode: 'numeric', placeholder: 'XXXXXX', required: true, class: 'base-input' %>
|
||||
</div>
|
||||
|
||||
|
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 381 B |
|
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 447 B |
@ -0,0 +1,7 @@
|
||||
<div class="mb-2 w-full">
|
||||
<a href="<%= root_path %>" class="flex items-center space-x-0.5 font-medium">
|
||||
<%= svg_icon('arrow_left', class: 'w-4 h-4 stroke-2') %>
|
||||
<span><%= t('back') %></span>
|
||||
</a>
|
||||
</div>
|
||||
<%= render 'shared/settings_nav', expanded: true %>
|
||||
@ -1 +1 @@
|
||||
<% 'stats stat stat-figure stat-title stat-value text-accent w-fit hover:bg-white dropdown-open border-base-content/30 before:border-base-content/30' %>
|
||||
<% 'stats stat stat-figure stat-title stat-value text-accent w-fit hover:bg-white dropdown-open border-base-content/30 before:border-base-content/30 order-1 order-2 order-3 order-4 order-5 lg:inline lg:hidden' %>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<div class="mt-2 mb-1">
|
||||
<div class="tooltip w-full" data-tip="<%= t('unlock_with_docuseal_pro') %>">
|
||||
<div class="tooltip tooltip-no-touch w-full" data-tip="<%= t('unlock_with_docuseal_pro') %>">
|
||||
<%= link_to submitter.sent_at? ? t('re_send_sms') : t('send_sms'), Docuseal.multitenant? ? console_redirect_index_path(redir: "#{Docuseal::CONSOLE_URL}/plans") : "#{Docuseal::CLOUD_URL}/sign_up?#{{ redir: "#{Docuseal::CONSOLE_URL}/on_premises" }.to_query}", class: 'btn btn-sm btn-primary text-gray-400 w-full' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in new issue