openvibers/openvibe.search Commits

Search: an OpenVibe.Food card (checked recipes, through the owner API) (#67)

OP OpenVibers committed 28 days ago · d5682568ca · 2 files, +4 −3

Changes

ddiff --git a/server/config.js b/server/config.js
iindex 39530ee..7b26cd7 100644
---- a/server/config.js
++++ b/server/config.js
@@@ -47,9 +47,9 @@ const DEFAULT_EVENT_OWNERS = ['wiki', 'blog', 'news', 'reviews', 'deals', 'coupo
// Record products (openvibe-publishing/search-feed, contracts 0.128.0): job listings, rental listings, help
// articles, item definitions and quests; the hosting catalog's plans and providers (contracts 0.145.0).
'work', 'rent', 'help', 'inventory', 'quest', 'host',
-- // OpenVibe.Video's uploads (MediaHub, service id media-hub) come through the owner API, not Events (an event
-- // type has no hyphen); listed so its front-page card and ?owner= filter exist.
-- 'media-hub'];
++ // Owner-API writers listed so their front-page card and ?owner= filter exist: OpenVibe.Video's uploads (MediaHub,
++ // service id media-hub; an event type has no hyphen) and OpenVibe.Food's checked recipes.
++ 'media-hub', 'food'];
function load(env = process.env) {
const nodeEnv = env.NODE_ENV || 'development';
ddiff --git a/server/web/page.js b/server/web/page.js
iindex aa51d08..266371d 100644
---- a/server/web/page.js
++++ b/server/web/page.js
@@@ -206,6 +206,7 @@ const SOURCES = {
quest: ['OpenVibe.Quest', 'Quests across the network and the badges they give.'],
host: ['OpenVibe.Host', 'Hosting plans and offers, compared by price.'],
'media-hub': ['OpenVibe.Video', 'Videos people upload and record, with AI captions.'],
++ food: ['OpenVibe.Food', 'Budget recipes, costed from the food list.'],
};
const ICON_OF = { sources: 'docs', 'media-hub': 'video' };
// The front page's kit sections sit in this page's 760 px column, which already has its gutter.