Skip to content
This repository has been archived by the owner. It is now read-only.

Support custom vue content by plugins to be sent to the client #50

Closed
vainamov opened this Issue Mar 6, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@vainamov
Copy link
Member

vainamov commented Mar 6, 2019

No description provided.

@SniperGER

This comment has been minimized.

Copy link

SniperGER commented Mar 8, 2019

Let's start by adding a basic plugin folder structure:

.
└── plugins
    └── ml.festival.example
        └── resources
        │   └── test.txt
        └── plugin.dll

(Depicted file structure may not represent actual file structure)

plugin.dll basically loads test.txt as a byte array using File.readAllBytes(String path), hands it over to the WebSocket, which then sends it to the client. Since the client is based on node, it should be possible to convert the byte array back to text.

Next would be handling .vue-Files, which could work with either new Vue() or somehow using render(h)

@SniperGER

This comment has been minimized.

Copy link

SniperGER commented Mar 9, 2019

Client is unable to correctly initialize Vue-based plugin resources.

Current idea is to hardcode plugins (private messages, surveys)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.