はじまりの大地

このコミットが含まれているのは:
2024-07-15 09:14:04 +09:00
コミット 6632905f32
3501個のファイルの変更1439465行の追加0行の削除
+46
ファイルの表示
@@ -0,0 +1,46 @@
async function register ({
videoCategoryManager,
videoLicenceManager,
videoLanguageManager,
videoPrivacyManager,
playlistPrivacyManager,
getRouter
}) {
videoLanguageManager.addConstant('al_bhed', 'Al Bhed')
videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2')
videoLanguageManager.addConstant('al_bhed3', 'Al Bhed 3')
videoLanguageManager.deleteConstant('en')
videoLanguageManager.deleteLanguage('fr')
videoLanguageManager.deleteConstant('al_bhed3')
videoCategoryManager.addCategory(42, 'Best category')
videoCategoryManager.addConstant(43, 'High best category')
videoCategoryManager.deleteConstant(1) // Music
videoCategoryManager.deleteCategory(2) // Films
videoLicenceManager.addLicence(42, 'Best licence')
videoLicenceManager.addConstant(43, 'High best licence')
videoLicenceManager.deleteConstant(1) // Attribution
videoLicenceManager.deleteConstant(7) // Public domain
videoPrivacyManager.deleteConstant(2)
videoPrivacyManager.deletePrivacy(2)
playlistPrivacyManager.deleteConstant(3)
playlistPrivacyManager.deletePlaylistPrivacy(3)
{
const router = getRouter()
router.get('/reset-categories', (req, res) => {
videoCategoryManager.resetConstants()
res.sendStatus(204)
})
}
}
async function unregister () {}
module.exports = {
register,
unregister
}
+20
ファイルの表示
@@ -0,0 +1,20 @@
{
"name": "peertube-plugin-test-video-constants",
"version": "0.0.1",
"description": "Plugin test video constants",
"engine": {
"peertube": ">=1.3.0"
},
"keywords": [
"peertube",
"plugin"
],
"homepage": "https://github.com/Chocobozzz/PeerTube",
"author": "Chocobozzz",
"bugs": "https://github.com/Chocobozzz/PeerTube/issues",
"library": "./main.js",
"staticDirs": {},
"css": [],
"clientScripts": [],
"translations": {}
}