Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #397

Merged
merged 38 commits into from
Oct 12, 2024
Merged

Dev #397

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
30d700e
service_worker_update
Lungsangg Oct 8, 2024
17a1394
service_worker_update (#379)
Lungsangg Oct 8, 2024
b586dc5
service_worker_path_update_to_root
Lungsangg Oct 8, 2024
0bfd140
service_worker_path_update_to_root (#380)
Lungsangg Oct 8, 2024
b693175
service_worker_path_syntax_update
Lungsangg Oct 8, 2024
6786866
service_worker_path_syntax_update (#381)
Lungsangg Oct 8, 2024
9c893c8
serviceworker_update
Lungsangg Oct 9, 2024
9b00b30
serviceworker_update (#382)
Lungsangg Oct 9, 2024
fb51d38
service_worker_path_updated_to_static
Lungsangg Oct 9, 2024
a2dec16
service_worker_path_updated_to_static (#383)
Lungsangg Oct 9, 2024
4fc6d9b
service_worker_position_update
Lungsangg Oct 9, 2024
497f4ac
service_worker_position_update (#384)
Lungsangg Oct 9, 2024
d100f84
service_worker_scope_update
Lungsangg Oct 9, 2024
67e83c9
service_worker_scope_update (#385)
Lungsangg Oct 9, 2024
64f4b82
service_worker_update
Lungsangg Oct 9, 2024
4937666
pwa_update_in_base_html
Lungsangg Oct 9, 2024
2e50be7
Chore/pecha pwa (#386)
Lungsangg Oct 9, 2024
4f541e0
pwa_update
Lungsangg Oct 9, 2024
2e312ab
pwa_update (#387)
Lungsangg Oct 9, 2024
e95d627
manifest_update
Lungsangg Oct 9, 2024
feba388
manifest_update (#388)
Lungsangg Oct 9, 2024
ecc832b
pwa_installer_button_added
Lungsangg Oct 9, 2024
b54bb93
pwa_installer_button_added (#389)
Lungsangg Oct 9, 2024
e05d8ef
pwa_button_design_update
Lungsangg Oct 9, 2024
437e91f
pwa_button_design_update (#390)
Lungsangg Oct 9, 2024
e43c5ce
mobile_homepage_update_pwa
Lungsangg Oct 9, 2024
52175c5
mobile_homepage_update_pwa (#391)
Lungsangg Oct 9, 2024
93142bc
mobile_homepage_dimension_update
Lungsangg Oct 9, 2024
bf2d899
mobile_homepage_dimension_update (#392)
Lungsangg Oct 9, 2024
df63730
pwa_fix
Lungsangg Oct 9, 2024
4212e64
pwa_fix (#393)
Lungsangg Oct 9, 2024
3b7b20c
manifest_pwa_update
Lungsangg Oct 9, 2024
b3daed5
manifest_pwa_update (#394)
Lungsangg Oct 9, 2024
8e345f2
pwa_button_update
Lungsangg Oct 10, 2024
35b7f1c
pwa_button_update (#395)
Lungsangg Oct 10, 2024
5f327f2
po_file_update
Lungsangg Oct 12, 2024
4056a92
translation_description_update
Lungsangg Oct 12, 2024
eea6e46
Chore/pecha pwa (#396)
Lungsangg Oct 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified locale/en/LC_MESSAGES/django.mo
Binary file not shown.
12 changes: 9 additions & 3 deletions locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1048,9 +1048,15 @@ msgstr ""
msgid "Older Activity"
msgstr ""

#: templates/elements/login_prompt.html:6
#: templates/registration/register.html:13
msgid "Sign_Up_Title"
msgstr "Sign Up"

#: templates/registration/register.html:22
msgid "Sign_Up_Button"
msgstr "Sign Up"

#: templates/elements/login_prompt.html:6
msgid "Sign Up"
msgstr ""

Expand Down Expand Up @@ -1448,8 +1454,8 @@ msgstr ""
"other Pecha users."

#: templates/registration/login.html:14 templates/registration/login.html:15
msgid "You are already logged in as"
msgstr ""
msgid "login_success_message"
msgstr "You are already logged in as {{ user.email }}."

#: templates/registration/login.html:18 templates/registration/login.html:19
msgid "Logout."
Expand Down
Binary file modified locale/he/LC_MESSAGES/django.mo
Binary file not shown.
115 changes: 89 additions & 26 deletions locale/he/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-25 11:21+0530\n"
"POT-Creation-Date: 2024-10-10 17:28+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -243,7 +243,7 @@ msgstr ""
msgid "Sheet ID to delete"
msgstr ""

#: sefaria/forms.py:41 sefaria/forms.py:47 sefaria/forms.py:152
#: sefaria/forms.py:41 sefaria/forms.py:47 sefaria/forms.py:153
#: templates/messages/2022-01-09-user-testing-modal.html:86
#: templates/static/aramaic-translation-contest.html:140
#: templates/static/home.html:362 templates/static/newsletter.html:24
Expand All @@ -268,7 +268,7 @@ msgstr "ཡིག་ཆ་ཞིག་འདེམས།"

#: sefaria/forms.py:56
msgid "Monastic"
msgstr "དགོན་སྡེ།"
msgstr "གྲྭ་བཙུན།"

#: sefaria/forms.py:57
msgid "Teacher"
Expand All @@ -280,37 +280,33 @@ msgstr "སློབ་མ།"

#: sefaria/forms.py:59
msgid "Educated* /Dr / Prof"
msgstr "ཤེས་ལྡན།"
msgstr "བསླབ་པ་མཐར་སོན།"

#: sefaria/forms.py:60
msgid "regular user"
msgstr "སྤྱིར་བཏང་སྤྱོད་མཁན།"
msgstr "དཀྱུས་མ།"

#: sefaria/forms.py:66
msgid "Select an Option"
msgstr "ཡིག་ཆ་ཞིག་འདེམ།"

#: sefaria/forms.py:95
#: sefaria/forms.py:96
msgid "A user with that email already exists."
msgstr ""

#: sefaria/forms.py:143
#: sefaria/forms.py:144
msgid "Incorrect mobile_app_key provided"
msgstr ""

#: sefaria/forms.py:157
#: sefaria/forms.py:158
msgid "New password"
msgstr ""

#: sefaria/forms.py:158
#: sefaria/forms.py:159
msgid "Enter New Password"
msgstr "གསང་ཚིག་གསར་པ།"

#: sefaria/forms.py:163
#: sefaria/forms.py:164
msgid "New password confirmation"
msgstr ""

#: sefaria/forms.py:165
#: sefaria/forms.py:166
msgid "Repeat New Password"
msgstr "ཡང་བསྐྱར།"

Expand Down Expand Up @@ -1066,8 +1062,6 @@ msgid "Older Activity"
msgstr ""

#: templates/elements/login_prompt.html:6
#: templates/registration/register.html:13
#: templates/registration/register.html:22
msgid "Sign Up"
msgstr "ཐོ་འགོད།"

Expand Down Expand Up @@ -1425,7 +1419,7 @@ msgstr ""
msgid "Log back in"
msgstr ""

#: templates/registration/login.html:4 templates/registration/login.html:31
#: templates/registration/login.html:4 templates/registration/login.html:29
msgid "Log in to Pecha"
msgstr "ནང་དུ་འཛུལ་ས།"

Expand All @@ -1435,27 +1429,27 @@ msgid ""
"other Pecha users."
msgstr ""

#: templates/registration/login.html:14 templates/registration/login.html:15
#: templates/registration/login.html:14
msgid "You are already logged in as"
msgstr ""

#: templates/registration/login.html:18 templates/registration/login.html:19
#: templates/registration/login.html:17
msgid "Logout."
msgstr ""

#: templates/registration/login.html:35
#: templates/registration/login.html:33
msgid "Your username and password didn't match. Please try again."
msgstr ""

#: templates/registration/login.html:52 templates/sheets.html:497
#: templates/registration/login.html:50 templates/sheets.html:497
msgid "Login"
msgstr "ནང་འཛུལ་གྱིས།"

#: templates/registration/login.html:55
#: templates/registration/login.html:53
msgid "Forgot your password?"
msgstr "གསང་ཚིག་བརྗེད་སོང་ན། འདིར་སྣུན།"

#: templates/registration/login.html:60
#: templates/registration/login.html:58
msgid "Create a new account"
msgstr "ཁ་བྱང་གསར་པ་ཞིག་བཟོས།"

Expand Down Expand Up @@ -1496,7 +1490,7 @@ msgstr ""
#: templates/registration/password_reset_done.html:10
#: templates/registration/password_reset_done.html:11
msgid "An email has been sent with a link to reset your password."
msgstr ""
msgstr "ཁྱེད་ཀྱི་གློག་འཕྲིན་ནང་། གསང་ཚིག་བསྐྱར་སྒྲིག་གི་དྲ་ཐག་བསྐུར་ཡོད།"

#: templates/registration/password_reset_email.html:4
#: templates/registration/password_reset_email.txt:3
Expand Down Expand Up @@ -1547,7 +1541,15 @@ msgid ""
"other people."
msgstr ""

#: templates/registration/register.html:26
#: templates/registration/register.html:13
msgid "Sign_Up_Title"
msgstr "ཐོ་འགོད་བྱེད་ས།"

#: templates/registration/register.html:25
msgid "Sign_Up_Button"
msgstr "ཐོ་འགོད་གྱིས།"

#: templates/registration/register.html:29
msgid "Already have an account? Log in"
msgstr "ཁ་བྱང་བཟོས་ཡོད་ན། ནང་འཛུལ་བྱེད་ས་འདིར་སྣུན།"

Expand Down Expand Up @@ -2445,5 +2447,66 @@ msgid ""
"verse in his commentary on another."
msgstr ""

#, fuzzy
#~| msgid "Education"
#~ msgid "Syndication"
#~ msgstr "ཤེས་ཚད།"

#, fuzzy
#~| msgid "Education"
#~ msgid "Duration"
#~ msgstr "ཤེས་ཚད།"

#, fuzzy
#~| msgid "Email Address"
#~ msgid "Email address"
#~ msgstr "གློག་འཕྲིན།"

#, fuzzy
#~| msgid "File"
#~ msgid "File path"
#~ msgstr "ཡིག་ཆ།"

#, fuzzy
#~| msgid "Email Address"
#~ msgid "IP address"
#~ msgstr "གློག་འཕྲིན།"

#, fuzzy
#~| msgid "Delete Sheet"
#~ msgid "Delete"
#~ msgstr "ཟིན་བྲིས་འདི་བསུབ།"

#, fuzzy
#~| msgid "Change Email"
#~ msgid "Change"
#~ msgstr "གློག་འཕྲིན་གཞན་པ་བེད་སྤྱོད་བྱེད།"

#, fuzzy
#~| msgid "Student"
#~ msgid "Sun"
#~ msgstr "སློབ་མ།"

#, fuzzy
#~| msgid "Version"
#~ msgid "Permissions"
#~ msgstr "ཐོན་རིམ།"

#, fuzzy
#~| msgid "Password"
#~ msgid "Password:"
#~ msgstr "གསང་ཚིག"

#, fuzzy
#~| msgid "Forgot your password?"
#~ msgid "Forgotten your password or username?"
#~ msgstr "གསང་ཚིག་བརྗེད་སོང་ན། འདིར་སྣུན།"

#~ msgid "Select an Option"
#~ msgstr "ཡིག་ཆ་ཞིག་འདེམ།"

#~ msgid "login_success_message"
#~ msgstr "གློག་འཕྲིན་འདི། {{ user.email }} དཔེ་ཆ་དྲ་བ་ལ་སྤྱོད་བཞིན་འདུག།"

#~ msgid "Select an option..."
#~ msgstr "ཡིག་ཆ་ཞིག་འདེམ།"
44 changes: 44 additions & 0 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -11034,6 +11034,50 @@ body #keyboardInputMaster tbody tr td table tbody tr td.pressed {
font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
}

.pwa-install-button {
padding: 2px 10px;
font-size: 16px;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
background-color: #b84045;
color: white;
border: var(--talmud-gold) 1px solid;
border-radius: 5px;
cursor: pointer;
position: fixed; /* Fix the position of the button */
left: 50%; /* Center horizontally */
transform: translateX(-50%); /* Adjust to center it exactly */
bottom: 15px; /* Position near the bottom */
transition: background-color 0.3s ease; /* Smooth background change */
display: none; /* Initially hidden */
}

/* Slide-in animation */
.pwa-install-button.show {
display: inline-block;
animation: slide-in 0.10s forwards; /* Trigger the slide-in animation */
}

/* Keyframes for sliding in the button from the right */
@keyframes slide-in {
from {
transform: translateX(100px); /* Start off-screen */
}
to {
transform: translateX(-50%); /* Slide in to the centered position */
}
}

.pwa-install-button:hover {
background-color: #a7353b;
transform: translateX(-50%) scale(1.05); /* Keep centering and enlarge the button on hover */
}

.pwa-install-button:active {
background-color: #8b2c30;
transform: translateX(-50%) scale(0.98); /* Keep centering on active state */
}


#footer .section {
display: inline-block;
vertical-align: top;
Expand Down
5 changes: 5 additions & 0 deletions static/js/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ class Footer extends Component {
trackLanguageClick(language){
Sefaria.track.setInterfaceLanguage('interface language footer', language);
}

render() {
if (!Sefaria._siteSettings.TORAH_SPECIFIC) { return null; }

return (
<div id='version_number'>
<InterfaceText>Version: 1.3.0</InterfaceText>
{/* Install PWA Button */}
<button id="install-pwa-button" className="pwa-install-button" style={{ marginLeft: "10px", display: 'none' }}>
Install pecha App
</button>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions static/js/TranslationsBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ const TranslationsHeader = () => (
<h3>
<InterfaceText>connection_pannel.translations</InterfaceText>
</h3>
<div className="translationsDesc sans-serif">
{/* <div className="translationsDesc sans-serif">
<InterfaceText>connection_pannel.translation.description</InterfaceText>
<a href="/sheets/36" target="_blank" className="inTextLink">
<InterfaceText>common.learn_more</InterfaceText>
</a>
</div>
</div> */}
</div>
);

Expand Down
Loading
Loading