Commit Graph

46 Commits (c77fdc605b3ccc1ab6890f889d8200fbe9372949)

Author SHA1 Message Date
Chocobozzz 38d69d6501
Update torrents info name on video update 2021-12-08 16:12:49 +01:00
Chocobozzz 0bc53e2029
Add ability to redirect users on external auth 2021-12-03 17:04:47 +01:00
Chocobozzz 9df52d660f
Migrate client to eslint 2021-08-18 08:35:06 +02:00
Chocobozzz 98fb490eb6
Fix signup button display 2021-07-20 13:49:46 +02:00
Chocobozzz 27bc958674
Bidi support 2021-06-07 18:14:05 +02:00
Chocobozzz 8beea2d37d
Add ability to filter menu links 2021-06-07 13:20:08 +02:00
Chocobozzz 2989628b79
Use HTML config when possible 2021-06-04 15:45:44 +02:00
Chocobozzz 2539932e16
Instance homepage support (#4007)
* Prepare homepage parsers

* Add ability to update instance hompage

* Add ability to set homepage as landing page

* Add homepage preview in admin

* Dynamically update left menu for homepage

* Inject home content in homepage

* Add videos list and channel miniature custom markup

* Remove unused elements in markup service
2021-05-27 15:59:55 +02:00
Chocobozzz 27f4a1ecbc
Fix menu dropdown overflow
Weird issue conflicting with the dropdown config from the menu component
2021-04-26 15:56:49 +02:00
aschaap 43a3d281fe
Minimal PeertubeModalService to open settings from "can be redefined..." (#3923)
* Minimal PeertubeModalService to open settings from "can be redefined..."

* Linter changes

* Removed unused parameter, made Subject type reflect this, and formatting
2021-04-06 08:57:30 +02:00
Rigel Kent 56f0876184
fix undefined dropdown on user logout 2021-01-14 15:35:03 +01:00
Kimsible 51a8397006
User dropdown and notifications popover improvements (#3344)
* hove user dropdown on avatar and username
* rename avatar-notification to notification component
* use a link on mobile for notification component
* add profile user dropdown and mobile notifications link as reusable active link
* replace markAllAsRead inbox glyphicon to ok in notification popover
* remove keyboard shortcuts from user dropdown on mobile
* use common bell icon instead of inbox-full for notifications
* remove duplicated notification in user dropdown since the bell appears on the right
* adjust sensitive icon in user dropdown
* align vertically user buttons popover and dropdown
* adjust ellipsis on user display name and username in menu
* adjust notification bell for mobile in menu
* display background of user dropdown avatar and username for touchscreens
* add right arrow indicator on mobile

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
2020-12-13 14:54:12 +01:00
Chocobozzz 68f6c87a27
Various front optimizations 2020-11-27 15:46:49 +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 17119e4a54 Reorganize left menu and account menu
Add my-settings and my-library in left menu
Move administration below my-library
Split account menu: my-setting and my library
2020-11-13 12:02:21 +01: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
Kim dfe3f7b72e
Add alert and hide upload view when no upload is possible (#2966)
* Add alert and hide upload view when no upload is possible

* Add about instance link to alert

* Hide videos and imports links when no upload is possible

* Correct curly spacing lint

* Put logic canUpload to User model + add isHidden param to to-menu-dropdown

* Use canSeeVideoLinks from user model

* Rename and change logic canUpload to isUploadDisabled

* Use isDisplayed() method intead of isHidden value

* Refactor client and check videos count using quota

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Co-authored-by: Chocobozzz <me@florianbigard.com>
2020-07-28 15:18:38 +02:00
Chocobozzz d95d155988 Use 3 tables to represent abuses 2020-07-10 14:02:41 +02:00
Chocobozzz 67ed6552b8 Reorganize client shared modules 2020-06-23 16:00:49 +02:00
Rigel Kent 3487330d30
preserve original variable names server-side 2020-06-10 21:12:09 +02:00
Rigel Kent 5baee5fca4
rename blacklist to block/blocklist, merge block and auto-block views
- also replace whitelist with allowlist
- add advanced filters for video-block-list view
- move icons in video-block-list and video-abuse-list to left side
for visibility
- add robot icon to depict automated nature of a block in
video-block-list

resolves #2790
2020-06-10 21:12:05 +02:00
Kim ca4b1594a7
Fix dropdown-user placement and menu-left scroll on touchscreens (#2706) 2020-05-01 20:05:19 +02:00
Chocobozzz bb3933ef37
Fix unknown video language label 2020-04-16 17:04:02 +02:00
Chocobozzz 111fdc267b
Handle overview pagination in client 2020-03-11 16:45:09 +01:00
Chocobozzz 8ada87ac50
Fix lint 2020-02-28 13:54:31 +01:00
Rigel Kent d3217560a6
Add visitor settings, rework logged-in dropdown (#2514)
* Add visitor settings, rework logged-in dropdown

* Make user dropdown P2P switch functional

* Fix lint

* Fix unnecessary notification when user logs out

* Simplify visitor settings code and remove unnecessary icons

* Catch parsing errors and reindent menu styles
2020-02-28 13:52:21 +01:00
Rigel Kent 000eb0e40d
Add informational message at login for visitors coming from upload button
resolves #1880
2020-01-10 14:01:23 +01:00
Chocobozzz ba430d7516
Lazy load static objects 2019-12-18 15:40:59 +01:00
Chocobozzz f36da21e40
Update angular 2019-07-25 11:00:43 +02:00
Chocobozzz ffb321bedc WIP plugins: load theme on client side 2019-07-24 10:58:16 +02:00
Chocobozzz c199c427d4
Better typings 2018-10-18 14:35:31 +02:00
BO41 244b4ae397 NoImplicitAny flag true (#1157)
this enables the `noImplicitAny` flag in the Typescript compiler

> When the noImplicitAny flag is true and the TypeScript compiler cannot infer the type, it still generates the JavaScript files, but it also reports an error. Many seasoned developers prefer this stricter setting because type checking catches more unintentional errors at compile time.

closes: #1131
replaces #1137
2018-10-18 09:08:59 +02:00
Chocobozzz cc68049424
Fix video import of some youtube videos 2018-09-26 15:55:45 +02:00
Rigel Kent 4a216666e7
add shortcuts icon in menu 2018-09-26 14:23:19 +02:00
Chocobozzz ad76628b17
Fix admin access to moderators 2018-09-19 09:54:38 +02:00
Rigel Kent 1a00c5619f
refactor theme toggle into a service 2018-09-06 12:00:53 +02:00
Rigel Kent 8c985ef5ce hotkey to toggle dark theme 2018-09-04 23:24:34 +02:00
Rigel Kent 9a0fc8409c add theming via css custom properties
and a bonus dark color theme toggle
2018-09-04 23:24:34 +02:00
Chocobozzz 8afc19a612
Add ability to choose the language 2018-06-28 15:53:12 +02:00
Chocobozzz b1d40cff89
Add i18n attributes 2018-06-05 08:43:01 +02:00
Rigel Kent ff2c1fe813 feature: IP filtering on signup page
disable registration form on IP not in range
checking the CIDR list before filtering with it
placing the cidr filters as an attribute object in the config
2018-05-22 19:44:34 +02:00
Chocobozzz d3e91a5f72
Add video channel account list 2018-04-25 15:43:19 +02:00
Chocobozzz c5911fd347
Begin to add avatar to actors 2017-12-29 19:10:13 +01:00
Chocobozzz 2295ce6c4e
Add account avatar 2017-12-04 10:34:40 +01:00
Chocobozzz b33f657c30
Begin new menu design 2017-12-01 10:55:56 +01:00