mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Change to declarative API for plugins
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import LikeButton from './containers/LikeButton';
|
||||
|
||||
import translations from './translations.json';
|
||||
import {loadTranslations} from '/coral-framework/services/i18n';
|
||||
|
||||
loadTranslations(translations);
|
||||
|
||||
export default {
|
||||
translations,
|
||||
slots: {
|
||||
commentReactions: [LikeButton]
|
||||
}
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import LoveButton from './LoveButton';
|
||||
|
||||
import translations from './translations.json';
|
||||
import {loadTranslations} from '/coral-framework/services/i18n';
|
||||
|
||||
loadTranslations(translations);
|
||||
|
||||
export default {
|
||||
translations,
|
||||
slots: {
|
||||
commentReactions: [LoveButton]
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import OffTopicCheckbox from './components/OffTopicCheckbox';
|
||||
import OffTopicTag from './components/OffTopicTag';
|
||||
import translations from './translations.json';
|
||||
import {loadTranslations} from 'coral-framework/services/i18n';
|
||||
|
||||
loadTranslations(translations);
|
||||
|
||||
export default {
|
||||
translations,
|
||||
slots: {
|
||||
commentInputDetailArea: [OffTopicCheckbox],
|
||||
commentInfoBar: [OffTopicTag]
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import RespectButton from './containers/RespectButton';
|
||||
|
||||
import translations from './translations.json';
|
||||
import {loadTranslations} from 'coral-framework/services/i18n';
|
||||
|
||||
loadTranslations(translations);
|
||||
|
||||
export default {
|
||||
translations,
|
||||
slots: {
|
||||
commentActions: [RespectButton],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user