Commit Graph

642 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
e368feef51 refactor: dont expost entire res._locals to client side 2021-11-17 22:11:24 -05:00
Barış Soner Uşaklı
231472354e perf: create user tooltips on demand 2021-11-13 20:25:09 -05:00
Barış Soner Uşaklı
7f8783555b Revert "perf: remove createUserTooltips"
This reverts commit facc10e40f.
2021-11-13 20:16:24 -05:00
Baris Usakli
facc10e40f perf: remove createUserTooltips 2021-11-12 11:18:44 -05:00
Barış Soner Uşaklı
41c3eb8298 refactor: shorter require 2021-11-09 19:38:35 -05:00
Barış Soner Uşaklı
0428912c6d refactor: deprecate app.alert functions user alerts module directly 2021-11-09 13:34:59 -05:00
Barış Soner Uşaklı
8b4510cc70 refactor: deprecate app.logout
use logout module instead
move header related code out of app.js
2021-11-08 23:28:26 -05:00
Barış Soner Uşaklı
619034484f refactor: simpler rejoin
remove pointless app.cacheBuster = null
2021-11-08 22:48:02 -05:00
Barış Soner Uşaklı
f352be63dc refactor: deprecate app.openChat/newChat
use chat.openChat/newChat instead
2021-11-08 22:20:41 -05:00
Barış Soner Uşaklı
1a9b15989b refactor: move search functions from app.js to search module
deprecate:
app.handleSearch, use search.init(options) instead
app.enableTopicSearch, use search.enableQuickSearch(options) instead
app.prepareSearch, use search.showAndFocusInput() instead
2021-11-08 21:31:49 -05:00
Barış Soner Uşaklı
666fe209f0 refactor: move session messages 2021-11-08 21:00:37 -05:00
Barış Soner Uşaklı
518552543d refactor: move warnings/messages out of app.js 2021-11-08 20:40:41 -05:00
Barış Soner Uşaklı
2e623dd271 feat: #9967, allow dropdowns in navigation 2021-11-03 16:01:32 -04:00
Barış Soner Uşaklı
8a88295d04 fix: don't highlight external nav items 2021-11-02 20:05:17 -04:00
Barış Soner Uşaklı
74aa12c95b fix: hooks is sometimes undefined 2021-10-28 21:33:21 -04:00
Julian Lam
80ea12c1c1 feat: new ACP option emailPrompt
... which allows administrators to disable the client-side prompt to
encourage users to enter or confirm their email addresses
2021-10-26 14:28:42 -04:00
Julian Lam
5a328485dd Revert "fix: only show email confirmation warning toast on pages that it applies"
This reverts commit 1bd1cc74a4.
2021-10-26 14:28:42 -04:00
Barış Soner Uşaklı
64192731a0 refactor: use search api for topic search 2021-10-25 23:12:34 -04:00
Barış Soner Uşaklı
89f5e06bbf fix: don't repeat search if on same page 2021-10-25 22:03:59 -04:00
Barış Soner Uşaklı
19ee717444 refactor: slowdown quick search 2021-10-25 21:22:44 -04:00
gasoved
b0a24d6dd5 refactor: var to const and let (#9885)
* refactor: var to const and let

* fix: missed global bootbox usage

* refactor: align with eslint expectations
2021-10-12 10:26:18 -04:00
gasoved
227456fb17 fix: no global bootbox (#9879)
* fix: require bootbox (easy ones)

* fix: require bootbox (ugly ones)

* fix(eslint): a lengthy line
2021-10-08 15:25:36 -04:00
Barış Soner Uşaklı
a7668a7fb1 refactor: use utils.debounce
fixes socket message spam in chat resize
2021-10-04 10:58:32 -04:00
Julian Lam
ca9bae3a1c fix: move app.alert back into the conditionals 2021-09-01 10:51:04 -04:00
Julian Lam
1bd1cc74a4 fix: only show email confirmation warning toast on pages that it applies 2021-09-01 10:51:04 -04:00
Barış Soner Uşaklı
794bf01b21 feat: allow changing default search in 2021-08-18 20:35:39 -04:00
Anton Grigoryev
342503e07a Feat: Client-side hooks - replace window.trigger (#9679)
* feat/clientside-hooks: replace window.trigger with hooks.fire

* feat(clientside-hooks): Move hooks require to the top

* fix: simplifying complex logical expression

* fix: client-side hook for translator - post-review fixes
2021-08-13 16:58:37 -04:00
Julian Lam
bbbacd86ab feat: updated email confirmation alert to more closely reflect email usage, remembering dismissal 2021-07-30 13:29:13 -04:00
Julian Lam
58adb76246 feat: allow requirejs modules to be awaited 2021-07-30 13:29:13 -04:00
Julian Lam
69c96dd23c refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation 2021-07-30 13:29:13 -04:00
Julian Lam
ec6d1e2321 fix: #9507 session reroll causes socket.io to become confused (#9534)
* fix: #9507 session reroll causes socket.io to become confused

* fix: added return

* fix: simpler logic for error handling

* fix: overly sensitive catch
2021-05-10 11:22:37 -04:00
gasoved
ce5fea2abd fix: do not register SW for Safari until upstream fixes #9193 2021-05-03 11:55:01 -04:00
Barış Soner Uşaklı
f32ea1737a fix: #9466, don't call leaveRoom in maintenance mode 2021-04-07 14:10:15 -04:00
Barış Soner Uşaklı
8a4c361ece fix: #9354, don't close quicksearch results if mouse is down on them 2021-03-06 15:42:04 -05:00
Julian Lam
c265016944 fix: app.parseAndTranslate to always return promise 2021-03-05 14:27:32 -05:00
Julian Lam
b5a6a3149d refactor: app.parseAndTranslate to return promise if no callback passed 2021-03-04 12:46:54 -05:00
Julian Lam
114e3a1e76 fix: use components for toggleNavbar instead 2021-02-26 15:03:24 -05:00
Peter Jaszkowiak
0d59fe3d2b fix(#9315): api v3 post, put, del JSON
also allow `app.alertError` to be called without an argument
also fix `./nodebb build --dev` to actually build in dev mode
2021-02-22 21:19:46 -05:00
Barış Soner Uşaklı
fca17cb713 fix: move service worker back to relative_path/service-worker.js 2021-02-08 12:05:57 -05:00
Opliko
2bc74cffe6 fix: #9127, scope service worker to relative_path for the forum (#9239)
Adds a `Service-Worker-Allowed` header on `assets/src/service-worker.js` URL and uses `scope` option during registration to ensure the service worker is correctly scoped to the entire forum and only the forum.
2021-02-01 19:40:14 -05:00
Julian Lam
1d77572117 feat(hooks): update action:ajaxify.end to use new hooks module 2021-01-27 12:23:02 -05:00
Barış Soner Uşaklı
3121215e87 fix: #9127, use assets path 2020-12-28 12:03:27 -05:00
psychobunny
b8d4709eec fix(pwa): #9127 service-worker.js missing on subfolder installs 2020-12-18 10:03:36 -05:00
Barış Soner Uşaklı
5080f35752 fix: #8991, logout on password reset, dont verify email if password expired
dont allow same password on reset
2020-11-29 21:55:07 -05:00
Barış Soner Uşaklı
8adbf54ae6 fix: don't show topic search if no search privilege 2020-11-29 15:50:34 -05:00
Barış Soner Uşaklı
c8554b78b9 fix: #8968, don't show topic search if search is not enabled 2020-11-27 10:30:33 -05:00
Julian Lam
d584516947 fix: #8943, session mismatch modal thrown on login (race condition) 2020-11-25 15:45:03 -05:00
Barış Soner Uşaklı
46acbfdaf1 fix: show messages after app load 2020-11-19 20:34:26 -05:00
Barış Soner Uşaklı
6ef7e8675f fix: #8915, fix queue not being cleared after firing click events
if you clicked elements early then on every ajaxify.end the same elements were getting click events @julianlam
2020-11-19 17:23:52 -05:00
Barış Soner Uşaklı
62b62821c1 fix: navigation highlight
/top was getting hightlighted in navigation if you went into a /topic
2020-11-17 21:20:20 -05:00