Skip to content

Export comments js as dedicated @nextcloud/comments lib #27054

Open
@skjnldsv

Description

public function load(): void {
$this->initialStateService->provideInitialState(Application::APP_ID, 'max-message-length', IComment::MAX_MESSAGE_LENGTH);
Util::addScript(Application::APP_ID, 'comments-app');
}

import CommentsInstance from './services/CommentsInstance'

Announcement center is using it, so is deck.
It make sense to have this as a dedicated lib so people can import it directly as a vue component

https://github.com/nextcloud/announcementcenter/blob/0a2058157f8382dd1fb7c562a1c15c2323e127f4/src/App.vue#L139

cc @juliushaertl @nickvergessen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions