now it is possible to publish different content based on web post created

This commit is contained in:
2022-03-12 01:44:41 +06:00
parent 369dcb12f5
commit 634d954465
5 changed files with 88 additions and 43 deletions
client/src/jsMain/kotlin/dev/inmo/postssystem/client/fsm/ui
features/content/common/src/jsMain/kotlin/dev/inmo/postssystem/features/content/common
gradle
idea/DefaultEntrance
server/src/main/resources/web

@ -0,0 +1,12 @@
package dev.inmo.postssystem.features.content.common
import dev.inmo.micro_utils.common.MPPFile
import dev.inmo.micro_utils.common.filename
import dev.inmo.postssystem.features.common.common.inputProvider
import dev.inmo.postssystem.features.common.common.mimeType
fun MPPFile.binaryContent() = BinaryContent(
filename,
mimeType,
inputProvider()
)