aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-31 11:01:42 +0200
committerChocobozzz <me@florianbigard.com>2021-05-31 11:01:42 +0200
commit15f35256af15b97d2298cc44e76ffcafe73a1c88 (patch)
treec90887f52c56d4107d956396ab19aafe04e700e6 /client/src/app/shared
parent462271edd693cffb9242ca1e33d64cb0423e4b29 (diff)
downloadPeerTube-15f35256af15b97d2298cc44e76ffcafe73a1c88.tar.gz
PeerTube-15f35256af15b97d2298cc44e76ffcafe73a1c88.tar.zst
PeerTube-15f35256af15b97d2298cc44e76ffcafe73a1c88.zip
Add help to custom markdown textarea
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-custom-markup/custom-markup-help.component.html3
-rw-r--r--client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts8
-rw-r--r--client/src/app/shared/shared-custom-markup/index.ts1
-rw-r--r--client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts8
4 files changed, 17 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-custom-markup/custom-markup-help.component.html b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.html
new file mode 100644
index 000000000..dd7a56d7d
--- /dev/null
+++ b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.html
@@ -0,0 +1,3 @@
1<ng-container i18n>
2 <a href="https://en.wikipedia.org/wiki/Markdown#Example" target="_blank" rel="noreferer noopener">Markdown compatible</a> that also supports <a href="https://docs.joinpeertube.org/api-custom-client-markup" target="_blank" rel="noreferer noopener">custom PeerTube HTML tags</a>
3</ng-container>
diff --git a/client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts
new file mode 100644
index 000000000..0a5a67794
--- /dev/null
+++ b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts
@@ -0,0 +1,8 @@
1import { Component } from '@angular/core'
2
3@Component({
4 selector: 'my-custom-markup-help',
5 templateUrl: './custom-markup-help.component.html'
6})
7export class CustomMarkupHelpComponent {
8}
diff --git a/client/src/app/shared/shared-custom-markup/index.ts b/client/src/app/shared/shared-custom-markup/index.ts
index 14bde3ea9..a9ac2516c 100644
--- a/client/src/app/shared/shared-custom-markup/index.ts
+++ b/client/src/app/shared/shared-custom-markup/index.ts
@@ -1,3 +1,4 @@
1export * from './custom-markup.service' 1export * from './custom-markup.service'
2export * from './dynamic-element.service' 2export * from './dynamic-element.service'
3export * from './custom-markup-help.component'
3export * from './shared-custom-markup.module' 4export * from './shared-custom-markup.module'
diff --git a/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts b/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts
index d03aa856f..66f6b98f6 100644
--- a/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts
+++ b/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts
@@ -1,4 +1,3 @@
1
2import { CommonModule } from '@angular/common' 1import { CommonModule } from '@angular/common'
3import { NgModule } from '@angular/core' 2import { NgModule } from '@angular/core'
4import { SharedActorImageModule } from '../shared-actor-image/shared-actor-image.module' 3import { SharedActorImageModule } from '../shared-actor-image/shared-actor-image.module'
@@ -8,6 +7,7 @@ import { SharedVideoMiniatureModule } from '../shared-video-miniature'
8import { SharedVideoPlaylistModule } from '../shared-video-playlist' 7import { SharedVideoPlaylistModule } from '../shared-video-playlist'
9import { ButtonMarkupComponent } from './button-markup.component' 8import { ButtonMarkupComponent } from './button-markup.component'
10import { ChannelMiniatureMarkupComponent } from './channel-miniature-markup.component' 9import { ChannelMiniatureMarkupComponent } from './channel-miniature-markup.component'
10import { CustomMarkupHelpComponent } from './custom-markup-help.component'
11import { CustomMarkupService } from './custom-markup.service' 11import { CustomMarkupService } from './custom-markup.service'
12import { DynamicElementService } from './dynamic-element.service' 12import { DynamicElementService } from './dynamic-element.service'
13import { EmbedMarkupComponent } from './embed-markup.component' 13import { EmbedMarkupComponent } from './embed-markup.component'
@@ -32,7 +32,8 @@ import { VideosListMarkupComponent } from './videos-list-markup.component'
32 ChannelMiniatureMarkupComponent, 32 ChannelMiniatureMarkupComponent,
33 EmbedMarkupComponent, 33 EmbedMarkupComponent,
34 VideosListMarkupComponent, 34 VideosListMarkupComponent,
35 ButtonMarkupComponent 35 ButtonMarkupComponent,
36 CustomMarkupHelpComponent
36 ], 37 ],
37 38
38 exports: [ 39 exports: [
@@ -41,7 +42,8 @@ import { VideosListMarkupComponent } from './videos-list-markup.component'
41 ChannelMiniatureMarkupComponent, 42 ChannelMiniatureMarkupComponent,
42 VideosListMarkupComponent, 43 VideosListMarkupComponent,
43 EmbedMarkupComponent, 44 EmbedMarkupComponent,
44 ButtonMarkupComponent 45 ButtonMarkupComponent,
46 CustomMarkupHelpComponent
45 ], 47 ],
46 48
47 providers: [ 49 providers: [