Commit Graph

114 Commits (ef62d58674a23ecee2dafef3b42e2bb771c9e6f6)

Author SHA1 Message Date
Chocobozzz 6b88559bab
Fix local e2e tests 2020-11-30 09:11:12 +01:00
Chocobozzz 68f6c87a27
Various front optimizations 2020-11-27 15:46:49 +01:00
Chocobozzz 4f926722ea
Upgrade client dependencies
Migrate removed primeng theme to custom CSS
2020-11-19 15:25:41 +01:00
Kimsible f3081d6401
small refactor + clipboard copy on anchor click in instance page (#3318)
* Refacto scrollTo top and anchors

* Add on click clipboard copy and notifier to anchors about/instance page

* Fix margin top anchor middle title about page

* Use viewportscroller for scrolltoanchor

* Add  to Link copied notification on instance page

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-11-17 14:04:44 +01:00
Chocobozzz 1bfc7b7379
Some code style fixes 2020-08-17 10:19:53 +02:00
Kim 245b9d27bc
On touchscreens add content overlay for opened menu (#3088)
* Overflow:hidden on touchscreen when modal-open

* Do not display menu by default on touchscreens

* Add content overlay on touchscreens when menu is opened

* Fix zIndex overlay for search infos

* On touchscreens close menu on swipe left

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-08-17 10:17:54 +02:00
Kim 30d55e75ca
Add restore scroll position on user-dropdown anchors links and scroll to top on active sub-menu links (#3066)
* Add restore scroll position on router same url

* Remove settings top anchor

* Add scrollToTop on active links fixed sub-menu

* Add restore scroll position on notification avatar links

* Toggle menu and close pophover when click on active dropdown menu-left link

* Add onSameUrlRestoreScrollPosition on user dropdown channels link

* Same behavior scrollTop and scroll to anchor everywhere

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-08-17 10:13:31 +02:00
Chocobozzz 66357162f8
Migrate to $localize
* Remove i18n polyfill to translate things in components
 * Reduce bundle sizes
 * Improve runtime perf
 * Reduce a lot the time to make a full client build
 * Reduce client build complexity
 * We don't need a service to translate things anymore (so we will be able to translate title pages etc)

Unfortunately we may loose some translations in the migration process.
I'll put a message on weblate to notify translators
2020-08-14 10:28:30 +02:00
kimsible 7034b3c908 Refactor - improve offset content handling with fixed sub-menu and broadcast-message 2020-08-11 08:03:28 +02:00
Kim 4a53fc8204
Add new anchors in my-settings and handle offset sub-menu height (#3032)
* Add anchors setting and handle offset with sub-meu

* Use PeerTube scroll logic

* Add anchor for top my-settings

* Improve scroller with smooth behavior and css offset

* Fix anchor position when using history navigation

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-08-10 15:57:37 +02:00
Chocobozzz bd45d503e5 Reorganize shared models 2020-08-07 08:28:14 +02:00
Rigel Kent 4504f09f6e deal with refresh token in embed 2020-08-06 15:08:58 +02:00
Chocobozzz 67ed6552b8 Reorganize client shared modules 2020-06-23 16:00:49 +02:00
Chocobozzz 5c20a45518
Fix anonymous nsfw policy 2020-06-16 11:26:46 +02:00
Chocobozzz 64e0f8cf12
Fix scrolling with hash in url 2020-06-16 11:26:46 +02:00
Rigel Kent 81fe3c67c5 fix duplicate id in svg, empty alt in base email 2020-06-04 09:05:44 +02:00
Rigel Kent 140ea386de inject lang in document to match current locale 2020-06-04 09:05:44 +02:00
Chocobozzz 72c33e716f Support broadcast messages 2020-05-29 09:32:12 +02:00
Kim 437e8e06eb
Add custom modal to plugin helpers (#2631)
* Add custom modal component

* Add custom modal to app and plugins helpers

* Fixes custom modal component

* Add doc for custom modal

* Fix newline end of file html and scss files

* Move my-custom-modal component outside component for UserLoggedIn modals

* Move initializeCustomModal to ngAfterViewInit()

* Wrap events and conditionnals

* Replace ng-show with ngIf*

* Add modalRef to open only one modal + onCloseClick

* Refacto + Fix access methods of custom modal

* Fix methods names custom-modal.component

* Fix implement AfterViewInit & no default boolean

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-04-15 15:35:41 +02:00
Rigel Kent 9b3078581f
Replace helpers with descriptions in admin configuration 2020-03-10 21:46:19 +01:00
Rigel Kent 3b20bdd6dc Servicify menu, close menu on admin for small and medium screens 2020-03-10 16:22:52 +01:00
Chocobozzz 2f5d2ec5ea Update to angular 9 2020-02-10 16:39:28 +01:00
Rigel Kent 9b82d49da8 Add action dropdown descriptions 2020-01-21 11:59:41 +01:00
Chocobozzz 0a9131f961
Remove peertube version of footer 2019-12-27 12:35:42 +01:00
Chocobozzz ba430d7516
Lazy load static objects 2019-12-18 15:40:59 +01:00
Chocobozzz dbdf2d51c6
Add peertube version in features table 2019-12-13 10:19:41 +01:00
Chocobozzz 414131338d
Fix welcome modal when saving config 2019-11-27 10:29:29 +01:00
Chocobozzz a2ffd046d6
Speedup theme injection 2019-10-25 10:57:23 +02:00
Chocobozzz 589d9f55f6 Add config instance warning modal 2019-09-05 10:17:02 +02:00
Chocobozzz 43d0ea7f4b Add welcome modal 2019-09-05 10:17:02 +02:00
Chocobozzz 60c2bc80b8
Go back when cancel NSFW modal
Instead of redirecting on the homepage
2019-08-22 17:14:44 +02:00
Chocobozzz 4334445d04
Dismiss modals on pop state 2019-08-22 16:13:26 +02:00
Chocobozzz 79a899410f
Cleanup SASS imports 2019-08-22 10:02:32 +02:00
Chocobozzz 6e44fb3763
Replace "overview" by "discover" in client titles 2019-08-22 09:49:22 +02:00
Chocobozzz 23bdacf8ec
Add setting helper to client plugins 2019-07-26 15:18:28 +02:00
Chocobozzz c9e3eeedad Lazy load client script scopes 2019-07-24 10:58:16 +02:00
Chocobozzz 93cae47925 Add client hooks 2019-07-24 10:58:16 +02:00
Chocobozzz ffb321bedc WIP plugins: load theme on client side 2019-07-24 10:58:16 +02:00
Chocobozzz 18a6f04c07 WIP plugins: hook on client side 2019-07-24 10:58:16 +02:00
Chocobozzz 722bca907b
Fix component reuse on channel/account videos 2019-05-13 10:37:55 +02:00
Chocobozzz 489290b8b1
Restore videos list components 2019-04-02 11:45:02 +02:00
Chocobozzz 830b4faff1 Add/update/delete/list my playlists 2019-03-18 11:17:59 +01:00
Chocobozzz f8b2c1b4f5
Refractor notification service
Shorter name and use primeng component
2018-12-19 17:26:52 +01:00
BO41 a585824160 add resize listener (#1182)
* add resize listener

* respect user decision

* change listener to rxjs

* review changes
2018-10-05 11:22:24 +02:00
Chocobozzz e33f888b86
Fix hotkey translations 2018-10-03 10:11:26 +02:00
Rigel Kent abb2c7927c show last commit hash alongside server version in footer 2018-10-01 14:31:01 +02:00
Rigel Kent c13e2bf340
update hotkeys to include user-specific routes
also fix left-menu width
2018-09-11 22:02:58 +02:00
Rigel Kent a157b3a322
specify shift in keyboard shortcuts cheatsheet 2018-09-11 14:18:59 +02:00
Rigel Kent 1a00c5619f
refactor theme toggle into a service 2018-09-06 12:00:53 +02:00
Rigel Kent 8542dc33e3 add a hotkey for menu toggling and a secondary hotkey to search 2018-09-03 08:49:29 +02:00