mirror of https://github.com/Chocobozzz/PeerTube
Add server config helper in plugin guide
parent
7bd455cb7f
commit
ec99e8486a
|
@ -22,6 +22,7 @@
|
||||||
- [Custom Modal](#custom-modal)
|
- [Custom Modal](#custom-modal)
|
||||||
- [Translate](#translate)
|
- [Translate](#translate)
|
||||||
- [Get public settings](#get-public-settings)
|
- [Get public settings](#get-public-settings)
|
||||||
|
- [Get server config](#get-server-config)
|
||||||
- [Add custom fields to video form](#add-custom-fields-to-video-form)
|
- [Add custom fields to video form](#add-custom-fields-to-video-form)
|
||||||
- [Publishing](#publishing)
|
- [Publishing](#publishing)
|
||||||
- [Write a plugin/theme](#write-a-plugintheme)
|
- [Write a plugin/theme](#write-a-plugintheme)
|
||||||
|
@ -470,6 +471,15 @@ peertubeHelpers.getSettings()
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Get server config
|
||||||
|
|
||||||
|
```js
|
||||||
|
peertubeHelpers.getServerConfig()
|
||||||
|
.then(config => {
|
||||||
|
console.log('Fetched server config.', config)
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
#### Add custom fields to video form
|
#### Add custom fields to video form
|
||||||
|
|
||||||
To add custom fields in the video form (in *Plugin settings* tab):
|
To add custom fields in the video form (in *Plugin settings* tab):
|
||||||
|
|
Loading…
Reference in New Issue