391 Commits (c0a75d735b139dd034f8ce2085a5df6310ff2261)

Author SHA1 Message Date
Baris Usakli c343b93a37 optimize ajaxify
- do not call $.timeago twice on topic load and for widgets
- do not use toLocaleString for each timeago string, use a single
Intl.DateTimeFormat instance instead
- do not call format for empty timeago strings, ie a post that isnt
edited doesnt have a timeago string
- do not call isTouchDevice for every element
- remove app.replaceSelfLinks, this is superceded with /me route
- store references to jquery objects in navigator instead of creating
them on every scroll
6 years ago
Barış Soner Uşaklı 4293403451 #6535, use templateToRender clientside if its avaiable 7 years ago
Julian Lam a3e724e134 resolve window opener being set if ajaxify overrides on external link 7 years ago
Barış Soner Uşaklı d60d03d00f closes #6542 7 years ago
Barış Soner Uşaklı d5e85c2eb3 closes #6476, closes #6546 7 years ago
Barış Soner Uşaklı 6940612688 closes #6410 7 years ago
Barış Soner Uşaklı 8ed86aaf13 closes #6476 7 years ago
Julian Lam 877b45ab00 adding old path to uploads as well, to ajaxify shirt-circuit 7 years ago
Julian Lam bdbdf510e0 closes #6462 7 years ago
Barış Soner Uşaklı 802ec0e384 remove reduntant code 7 years ago
Barış Soner Uşaklı 76e8bcd80b closes #6167 7 years ago
Julian Lam 94e8b2b38d Added ajaxify.isCold()
And used it in app.js, so window.scrollTo(0, 0); is not called
on cold load (since you're already at the top). Useful in low-
bandwidth modes since you might accidentally get kicked to the
top of the page due to a slow connection and delayed .init().

Slightly related to testing in #6150
7 years ago
Barış Soner Uşaklı cb4930dac8 remove version and environment from config 7 years ago
Barış Soner Uşaklı b74fe98dc4 closes #6031 7 years ago
Peter Jaszkowiak dc87d7fc0f Use .js instead of .jst
Fix #5934
7 years ago
Peter Jaszkowiak dc3f89a505 ajaxify t.js usage to Benchpress 8 years ago
Peter Jaszkowiak abffc29128 Use Benchpress (#5901)
* Use Benchpress

* Use Benchpress.compileParse

* Error for template load failure

* Use benchpressjs package

* Compile templates on demand

* Fix user settings page

* Fix admin search to exclude `.jst` files

* Fix 500-embed

So ajaxify can still show an error if the server goes down
8 years ago
Barış Soner Uşaklı 923bd86662 Widgets refactor (#5817)
* widgets refactor

render widgets server side
widgets can use all the data the template can use

* fix tests
8 years ago
Baris Usakli e0de922ede Revert "widgets refactor"
This reverts commit 9e94edb5aa.
8 years ago
Baris Usakli 9e94edb5aa widgets refactor
render widgets server side
widgets can use all the data the template can use
8 years ago
Peter Jaszkowiak 6cb8440715 Fix #5793
Use a custom header instead
8 years ago
psychobunny 179b11b7d2 ACP allow ctrl-click to open new in new tab when settings are unsaved 8 years ago
barisusakli bb146e049c fix lint 8 years ago
psychobunny f2eb4b8083 closes #5439 8 years ago
barisusakli 8a123f7c1c closes #5509 8 years ago
barisusakli 69c6ee5834 closes #5483 8 years ago
Peter Jaszkowiak b227297ef3 ESlint no-use-before-define 8 years ago
Peter Jaszkowiak c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs 8 years ago
Peter Jaszkowiak 144fa8698c Eslint no-lonely-if 8 years ago
Peter Jaszkowiak 09e868ce5f ESlint no-useless-escape, no-else-return 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak feb8405f95 ESlint eol-last 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak 3d6bfa47c5 ESlint no-useless-return 8 years ago
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
Peter Jaszkowiak 8f27d7810b Ajaxify improvement, `/assets/uploads` 8 years ago
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts 8 years ago
Peter Jaszkowiak bc9fa0a990 Remove requests to nonexistent language files 8 years ago
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
8 years ago
Julian Lam c99321a518 always setting app.previousUrl now, and passing cid into filter:category.topics.get hook 8 years ago
Julian Lam 2ab2486d3b if require call on page script fails, remove from scripts array 8 years ago
Julian Lam 6a591069c5 fixes issue with ajaxify.end not firing 8 years ago
Julian Lam 64e4ef042b allowing plugins to subscribe to action:script.load and pass in function references 8 years ago
Peter Jaszkowiak 460b830a96 Fix ajaxify loading default language translations 8 years ago
Mathias Schreck b1a48981ef Check if href exists before accessing it (#5281)
I got a lot of errors in Firefox 50 `TypeError: $(...).attr(...) is undefined  nodebb.min.js:25167:24` which points exactly to that line I’ve changed.
Since HTML5 `href` is not a required attribute of an `a` tag. We have a couple of links without `href` and every time you click it you will get this error.
8 years ago
Julian Lam 0590a4f2cf closes #5156 8 years ago