Allow upload of video
This commit is contained in:
@@ -11,7 +11,7 @@ module Adamantium
|
||||
include Deps["settings"]
|
||||
include Dry::Monads[:result]
|
||||
|
||||
VALID_UPLOAD_TYPES = %i[jpeg jpg png gif]
|
||||
VALID_UPLOAD_TYPES = %i[jpeg jpg png gif mp4]
|
||||
|
||||
def call(file:)
|
||||
mime = FileMagic.new
|
||||
|
@@ -26,7 +26,7 @@ module Adamantium
|
||||
end
|
||||
|
||||
def prefix_emoji
|
||||
name ? "📝" : "📯"
|
||||
name ? "" : "📯"
|
||||
end
|
||||
|
||||
def display_title
|
||||
|
@@ -2,7 +2,7 @@ div class="mb-8 h-entry"
|
||||
h3 class="text-xl font-semibold text-blue-600 mb-2"
|
||||
a class="u-url border-b-2 border-transparent hover:border-blue-600 hover:border-b-2" href="/post/#{post.slug}"
|
||||
= post.display_title
|
||||
div class="e-content p-name text-base text-gray-800 dark:text-gray-200"
|
||||
div class="e-content p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200"
|
||||
== post.excerpt
|
||||
== render :tags, tags: post.tags
|
||||
|
||||
|
@@ -11,7 +11,7 @@ module Adamantium
|
||||
end
|
||||
|
||||
expose :posts do
|
||||
post_repo.post_listing(limit: 10).map do |post|
|
||||
post_repo.post_listing(limit: 5).map do |post|
|
||||
Decorators::Posts::Decorator.new(post)
|
||||
end
|
||||
end
|
||||
|
@@ -1520,6 +1520,22 @@ h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
|
||||
color: rgb(219 234 254 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.prose-ul\:ml-0 :is(:where(ul):not(:where([class~="not-prose"] *))) {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.prose-ul\:list-none :is(:where(ul):not(:where([class~="not-prose"] *))) {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.prose-ul\:pl-0 :is(:where(ul):not(:where([class~="not-prose"] *))) {
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.prose-li\:pl-0 :is(:where(li):not(:where([class~="not-prose"] *))) {
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.prose-img\:rounded :is(:where(img):not(:where([class~="not-prose"] *))) {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
Reference in New Issue
Block a user