Skip to content

Commit

Permalink
Merge pull request #28 from vsolskyyy/f24
Browse files Browse the repository at this point in the history
Adding button to insert video link to "Create Topic Page"
  • Loading branch information
vsolskyyy authored Sep 24, 2024
2 parents 73b0844 + 97797d4 commit eba3d89
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/language/en-GB/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
"composer.toggle-dropdown": "Toggle Dropdown",
"composer.uploading": "Uploading %1",
"composer.formatting.bold": "Bold",
"composer.formatting.italic": "Italic",
"composer.formatting.heading": "Heading",
"composer.formatting.heading1": "Heading 1",
"composer.formatting.heading2": "Heading 2",
Expand All @@ -99,10 +98,11 @@
"composer.formatting.list": "List",
"composer.formatting.strikethrough": "Strikethrough",
"composer.formatting.code": "Code",
"composer.formatting.italic": "Italic",
"composer.formatting.link": "Link",
"composer.formatting.picture": "Image Link",
"composer.upload-picture": "Upload Image",
"composer.upload-file": "Upload File",
"composer.upload-file": "Upload File",
"composer.zen-mode": "Zen Mode",
"composer.select-category": "Select a category",
"composer.textarea.placeholder": "Enter your post content here, drag and drop images",
Expand Down
2 changes: 1 addition & 1 deletion src/groups/cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const image = require('../image');
const file = require('../file');

module.exports = function (Groups) {
const allowedTypes = ['image/png', 'image/jpeg', 'image/bmp'];
const allowedTypes = ['image/png', 'image/jpeg', 'image/bmp', 'video/mp4', 'video/webm', 'video/mov'];
Groups.updateCoverPosition = async function (groupName, position) {
if (!groupName) {
throw new Error('[[error:invalid-data]]');
Expand Down
17 changes: 17 additions & 0 deletions src/views/modals/upload-video-from-url.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div id="upload-video-from-url-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="upload-video-url" aria-hidden="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="upload-video-url">[[user:upload-video]]</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="false"></button>
</div>
<div class="modal-body">
<input id="uploadFromUrl" class="form-control" type="text" placeholder="Enter video URL"/>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" data-bs-dismiss="modal" aria-hidden="false">[[global:close]]</button>
<button class="btn btn-primary upload-btn">[[user:upload-video]]</button>
</div>
</div>
</div>
</div>

0 comments on commit eba3d89

Please sign in to comment.