aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/client-html.ts
Commit message (Collapse)AuthorAgeFilesLines
* Add Podcast RSS feeds (#5487)Alecks Gates2023-05-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Add correct feed image to RSS channel * Prefer HLS videos for podcast RSS Remove video/stream titles, add optional height attribute to podcast RSS * Prefix podcast RSS images with root server URL * Add optional video query support to include captions * Add transcripts & person images to podcast RSS feed * Prefer webseed/webtorrent files over HLS fragmented mp4s * Experimentally adding podcast fields to basic config page * Add validation for new basic config fields * Don't include "content" in podcast feed, use full description for "description" * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Add correct feed image to RSS channel * Prefer HLS videos for podcast RSS Remove video/stream titles, add optional height attribute to podcast RSS * Prefix podcast RSS images with root server URL * Add optional video query support to include captions * Add transcripts & person images to podcast RSS feed * Prefer webseed/webtorrent files over HLS fragmented mp4s * Experimentally adding podcast fields to basic config page * Add validation for new basic config fields * Don't include "content" in podcast feed, use full description for "description" * Add medium/socialInteract to podcast RSS feeds. Use HTML for description * Change base production image to bullseye, install prosody in image * Add liveItem and trackers to Podcast RSS feeds Remove height from alternateEnclosure, replaced with title. * Clear Podcast RSS feed cache when live streams start/end * Upgrade to Node 16 * Refactor clearCacheRoute to use ApiCache * Remove unnecessary type hint * Update dockerfile to node 16, install python-is-python2 * Use new file paths for captions/playlists * Fix legacy videos in RSS after migration to object storage * Improve method of identifying non-fragmented mp4s in podcast RSS feeds * Don't include fragmented MP4s in podcast RSS feeds * Add experimental support for podcast:categories on the podcast RSS item * Fix undefined category when no videos exist Allows for empty feeds to exist (important for feeds that might only go live) * Add support for podcast:locked -- user has to opt in to show their email * Use comma for podcast:categories delimiter * Make cache clearing async * Fix merge, temporarily test with pfeed-podcast * Syntax changes * Add EXT_MIMETYPE constants for captions * Update & fix tests, fix enclosure mimetypes, remove admin email * Add test for podacst:socialInteract * Add filters hooks for podcast customTags * Remove showdown, updated to pfeed-podcast 6.1.2 * Add 'action:api.live-video.state.updated' hook * Avoid assigning undefined category to podcast feeds * Remove nvmrc * Remove comment * Remove unused podcast config * Remove more unused podcast config * Fix MChannelAccountDefault type hint missed in merge * Remove extra line * Re-add newline in config * Fix lint errors for isEmailPublic * Fix thumbnails in podcast feeds * Requested changes based on review * Provide podcast rss 2.0 only on video channels * Misc cleanup for a less messy PR * Lint fixes * Remove pfeed-podcast * Add peertube version to new hooks * Don't use query include, remove TODO * Remove film medium hack * Clear podcast rss cache before video/channel update hooks * Clear podcast rss cache before video uploaded/deleted hooks * Refactor podcast feed cache clearing * Set correct person name from video channel * Styling * Fix tests --------- Co-authored-by: Chocobozzz <me@florianbigard.com>
* Fix #5744: Missing plugins-global.css + missing async (#5746)John Livingston2023-05-101-2/+15
| | | | | | | | | | | * Fix #5744: Missing plugins-global.css + missing async * Modifications required by Chocobozzz. * Styling --------- Co-authored-by: Chocobozzz <me@florianbigard.com>
* Remove invalid jsonld propertyChocobozzz2023-04-111-1/+0
|
* Add filter:html.client.json-ld.result hookChocobozzz2023-03-241-11/+17
|
* Fix incorrect error logsChocobozzz2022-07-181-1/+1
|
* /!\ Use a dedicated config file for developmentChocobozzz2022-07-061-2/+2
| | | | | It means you have to replace NODE_ENV=test to NODE_ENV=dev if you use it npm run dev:* commands are already updated
* Add live autostart/messages in embedChocobozzz2022-05-311-1/+5
|
* Support video views/viewers stats in serverChocobozzz2022-04-151-1/+1
| | | | | | | | | | * Add "currentTime" and "event" body params to view endpoint * Merge watching and view endpoints * Introduce WatchAction AP activity * Add tables to store viewer information of local videos * Add endpoints to fetch video views/viewers stats of local videos * Refactor views/viewers handlers * Support "views" and "viewers" counters for both VOD and live videos
* Disallow unlisted video indexationChocobozzz2022-04-081-0/+2
|
* Fix client html cache on theme updateChocobozzz2022-03-171-3/+2
|
* Remove uneeded memoizeChocobozzz2022-03-081-12/+4
|
* Fix client html performance regressionChocobozzz2022-02-281-3/+11
|
* Implement avatar miniatures (#4639)kontrollanten2022-02-281-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * client: remove unused file * refactor(client/my-actor-avatar): size from input Read size from component input instead of scss, to make it possible to use smaller avatar images when implemented. * implement avatar miniatures close #4560 * fix(test): max file size * fix(search-index): normalize res acc to avatarMini * refactor avatars to an array * client/search: resize channel avatar to 120 * refactor(client/videos): remove unused function * client(actor-avatar): set default size * fix tests and avatars full result When findOne is used only an array containting one avatar is returned. * update migration version and version notations * server/search: harmonize normalizing * Cleanup avatar miniature PR Co-authored-by: Chocobozzz <me@florianbigard.com>
* Fix plaintext markdown converterChocobozzz2022-02-041-4/+4
|
* Stop using tsconfig registerChocobozzz2022-01-061-2/+3
| | | | Prefer to replace paths at compile time
* Fix buildChocobozzz2021-12-171-1/+1
|
* Move test functions outside extra-utilsChocobozzz2021-12-171-1/+1
|
* chore(refactor): remove shared folder dependencies to the serverlutangar2021-12-161-1/+2
| | | | | | | | | | | Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
* Remove uneeded functionChocobozzz2021-12-031-4/+0
|
* Add header Vary Accept-Language (#4588)kontrollanten2021-12-021-2/+6
| | | | | | | | | | | | | | | * nginx: add header Vary Accept-Language solves #3647 * Revert "nginx: add header Vary Accept-Language" This reverts commit 90dccf53247882ad30904e4c950b745c4e859e01. * add resp header Vary Accept-Language solves #3647 * don't add vary header to embed page
* Correctly escape meta tagsChocobozzz2021-11-301-51/+54
|
* Fix E2E testsChocobozzz2021-11-241-0/+5
|
* Remove uneeded language injectionChocobozzz2021-10-111-3/+1
| | | | It's already handled by angular build
* Fix config injection with custom HTML/CSSChocobozzz2021-09-091-2/+3
|
* esModuleInterop to trueChocobozzz2021-08-271-1/+1
|
* Do not index remote actorsChocobozzz2021-08-051-2/+9
|
* Fix oembed for playlistsChocobozzz2021-07-271-1/+1
|
* Fix buildChocobozzz2021-07-261-1/+1
|
* Refactor requestsChocobozzz2021-07-201-1/+1
|
* Support short uuid for GET video/playlistChocobozzz2021-06-291-2/+7
|
* Refactor video query builderChocobozzz2021-06-101-1/+1
|
* refactor API errors to standard error formatRigel Kent2021-06-021-2/+2
|
* CleanupChocobozzz2021-05-281-7/+5
| | | | | We must not expose private actor objects to clients Just make 2 GET requests on channel/accounts instead
* Merge branch 'develop' into shorter-URLs-channels-accountsChocobozzz2021-05-271-2/+16
|\
| * Instance homepage support (#4007)Chocobozzz2021-05-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Inject server config in HTMLChocobozzz2021-05-141-2/+16
| |
* | Add shorter URLs for accounts and channels server-sideKimsible2021-05-051-2/+15
|/
* modify tests to support current behaviour regarding plaintext descriptionRigel Kent2021-04-131-13/+9
|
* render markdown and plainify descriptions on previewsRigel Kent2021-04-131-6/+11
|
* Add banners supportChocobozzz2021-04-081-3/+3
|
* fix missing title attribute on <iframe> tag suggested for embedding (#3901)Thavarasa Prasanth2021-03-311-1/+2
| | | | | | | | | | | | | * title attribute is missing on <iframe> tag suggested for embedding #3861 * fix #3901 * fix: escapeHTML #3901 * fix: playlist title instead of video title #3901 * fix #3901 * assign title directly #3901
* video embed: use instance name as html titlekontrollanten2020-12-141-0/+1
|
* video-embed: inject custom CSSkontrollanten2020-12-141-0/+1
| | | | closes #3420
* Upgrade sequelize to v6Chocobozzz2020-12-091-16/+15
|
* emit more specific status codes on video upload (#3423)Rigel Kent2020-12-081-3/+39
| | | | | - reduce http status codes list to potentially useful codes - convert more codes to typed ones - factorize html generator for error responses
* Refactor a little bit client canonical URLChocobozzz2020-12-081-4/+33
|
* Set canonical link to original video/playlist urlThomas Citharel2020-12-081-5/+13
| | | | | | The local URL was used instead of the original url Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-071-5/+6
|
* Hide dock if there are no title/descriptionChocobozzz2020-11-101-3/+3
|
* Add site_name to opengraph tagsChocobozzz2020-09-041-3/+8
|