Commit 0558141
Remove most unused JavaScript, modernized it and add Alpinejs (hestiacp#3096)
* Start removing jQuery
* Cleanup app.js a bit
* Start shortcuts refactor
* Fix tableHeader sticky
* Wrap shortcuts in IIFE
* Rename randomString2 to randomString
Reorg templates
Reorg events
* Remove floating_layer
Fix some shortcuts
Move helper function
* Turn App into a class, simpler notification toggle
* Better notification removal
* Fix status icon and no notif message
* Fix empty message
* Consolidate js into one file, and defer loading
* fix typo
* Remove i18n.js.php, move to GLOBAL obj
* Fix typos
* Add alpine.js
* Only add event listener if more than 2 notifs
* Experiment with alpinejs
* create getToken helperfunction
* Add main.js
* Load main.js first
* Fix reducer
* Rename items to notifications and use x-html
* Toggle status icon
* Better initial listing
* Remove shorthands, reorder templates
* Only fetch notifications once
* Fix delete and little cleanup
* Remove useless doSearch (form submitting works)
* Make form_changed an Alpine store
* Delete GLOBAL object
* Start removing elementHideShow, move stuff into main.js
* remove jquery.cookie and .finder
* Reorganize
* Replace shortcut and to-top code with alpine
* Fix cookie reading
* fix undefined stuff
* fix form id
* Fix icons and notifications
* move init lower to prevent flash
* Use store for shortcut toggle, link for to-top
* Actually make shortcuts work
* Move shortcuts to alpine store
maybe in the future we'll generate the list dynamically
* move App to js.php
* Remove elementHideShow,
* Make alpine local
* Replace javascript with form attr for save buttons
Replace menu opening with Alpine
Replace custom js with Alpine for bulk actions
* Fix typos
* Fix other typos
* Use x-show
* Fix menu
* Compile CSS
* Reorganize x-* properties, add x-cloak, scroll-behavior
* Use x-model for less repetition
Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
Co-authored-by: Raphael <rs@scit.ch>1 parent f332636 commit 0558141
File tree
106 files changed
+1792
-4386
lines changed- web
- css
- src
- themes
- themes
- inc
- js
- pages
- vendor
- templates
- includes
- pages
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
106 files changed
+1792
-4386
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
| |||
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
0 commit comments