UNPKG

nodebb-plugin-ns-embed

Version:

Embed media and rich content in posts: youtube, vimeo, twitch etc. All embeds are based on the rules. You are encouraged to build your own rules to embed everything what is embeddable.

29 lines (25 loc) 655 B
import * as ActionTypes from './action-types'; export function newRule(state, action) { switch (action.type) { case ActionTypes.NEW_RULE_DID_CHANGE: return action.payload; default: return state; } } export function rules(state, action) { switch (action.type) { case ActionTypes.RULES_DID_CHANGE: return action.payload; default: return state; } } export function selectedRule(state, action) { switch (action.type) { case ActionTypes.SELECTED_RULE_DID_CHANGE: return action.payload; default: return state; } }