openvibers/openvibe.search Commits

Search: front-page cards for OpenVibe.Video (media-hub, through the owner API) and OpenVibe.Host; Games names its worlds (#66)

OP OpenVibers committed 28 days ago · 1c7e9a9076 · 2 files, +8 −3

Changes

ddiff --git a/server/config.js b/server/config.js
iindex a7b10bd..39530ee 100644
---- a/server/config.js
++++ b/server/config.js
@@@ -46,7 +46,10 @@ const DEFAULT_EVENT_OWNERS = ['wiki', 'blog', 'news', 'reviews', 'deals', 'coupo
'community', 'live', 'media', 'codes', 'games', 'tools', 'sources',
// 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'];
++ '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'];
function load(env = process.env) {
const nodeEnv = env.NODE_ENV || 'development';
ddiff --git a/server/web/page.js b/server/web/page.js
iindex abed42b..aa51d08 100644
---- a/server/web/page.js
++++ b/server/web/page.js
@@@ -196,7 +196,7 @@ const SOURCES = {
live: ['OpenVibe.Live', 'Channels, streams and clips.'],
media: ['OpenVibe.Media', 'Public videos, clips and files.'],
codes: ['OpenVibe.Codes', 'The developer docs and API reference.'],
-- games: ['OpenVibe.Games', 'Browser games.'],
++ games: ['OpenVibe.Games', 'Browser games and the worlds players build.'],
tools: ['OpenVibe.Tools', 'Every online tool, by what it does.'],
sources: ['OpenVibe.Sources', 'The registry of news and data sources.'],
work: ['OpenVibe.Work', 'Job listings from open boards, each linked to the original.'],
@@@ -204,8 +204,10 @@ const SOURCES = {
help: ['OpenVibe.Help', 'Answers about every OpenVibe site.'],
inventory: ['OpenVibe.Inventory', 'Items, badges and effects you can earn and wear.'],
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.'],
};
--const ICON_OF = { sources: 'docs' };
++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.
const FRONT_CSS = `<style>
main .sc-hero, main .sc-sec { padding-left: 0; padding-right: 0; }