mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
[nextgen/cardstack] add BUTTON_GENERATOR
- support dynamic button resolving - update all commands using dynstack to latest api - add supplemental to wolfram
This commit is contained in:
parent
3a016dde3d
commit
ecaaba9d3c
10 changed files with 356 additions and 176 deletions
|
@ -2,7 +2,7 @@ const { anime, animeSupplemental} = require('#api');
|
|||
const { PERMISSION_GROUPS, OMNI_ANIME_FORMAT_TYPES, COLORS_HEX} = require('#constants');
|
||||
|
||||
const { createDynamicCardStack } = require("#cardstack/index");
|
||||
const { ResolveCallbackTypes } = require("#cardstack/constants");
|
||||
const { ResolveCallbackTypes, InteractiveComponentTypes} = require("#cardstack/constants");
|
||||
|
||||
const { hexToDecimalColor } = require("#utils/color");
|
||||
const { createEmbed, page } = require('#utils/embed');
|
||||
|
@ -121,6 +121,7 @@ module.exports = {
|
|||
cards: pages,
|
||||
interactive: {
|
||||
episodes_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Episodes",
|
||||
inline: false,
|
||||
visible: true,
|
||||
|
@ -176,6 +177,7 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
characters_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Characters",
|
||||
inline: false,
|
||||
visible: true,
|
||||
|
@ -217,6 +219,7 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
related_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Related",
|
||||
inline: false,
|
||||
visible: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue