openvibers/openvibe.host Commits
The bar: the main places with icons (the phone app bar), the rest under More, Search is the magnifier (#178)
Changes
@@@ -14,7 +14,16 @@ const frame = require('openvibe-shared/frame');const shell = require('openvibe-shared/shell');const NETWORK_URL = 'https://openvibe.network';--const NAV_LINKS = () => [{ label: 'Compare', href: '/catalog' }, { label: 'Console', href: '/console' }, { label: 'Domains', href: '/catalog/domains' }, { label: 'Benchmarks', href: '/catalog/benchmarks' }, { label: 'Offers', href: '/catalog/offers' }, { label: 'Promotions', href: '/catalog/promos' }];++// The product's own places: the main ones carry an icon (phones get them as the bottom tab bar), the rest fold++// into the navbar's More (Shared 4.22). Search is the navbar's magnifier; What shipped is the footer's.++const NAV_LINKS = () => [++ { label: 'Compare', href: '/catalog', icon: 'fa-chart-line' },++ { label: 'Domains', href: '/catalog/domains', icon: 'fa-globe' },++ { label: 'Offers', href: '/catalog/offers', icon: 'fa-tag' },++ { label: 'Console', href: '/console', icon: 'fa-gauge-high' },++ { label: 'Benchmarks', href: '/catalog/benchmarks', icon: 'fa-gauge-high', more: true },++ { label: 'Promotions', href: '/catalog/promos', icon: 'fa-ticket', more: true },++];const DESCRIPTION = 'OpenVibe.Host: hosting plans compared, every price dated and sourced.';const SITE_NAME = 'OpenVibe.Host';const PUBLIC_DIR = path.join(__dirname, '..', '..', 'public');@@@ -45,6 +54,7 @@ function renderPage(o) {service: 'host',apiBase: NETWORK_URL,links: NAV_LINKS(signedIn),++ appBar: true, // phones: the places with icons as the bottom tab bar (Shared 4.20)history: { type: 'page', title: o.title || SITE_NAME },silentLogin: `${o.config.baseUrl}/auth/login?silent=1&next={url}`,sessionUrl: '/auth/me',
@@ -14,7 +14,16 @@ const frame = require('openvibe-shared/frame');
@@ -14,7 +14,16 @@ const frame = require('openvibe-shared/frame');
const shell = require('openvibe-shared/shell');
const shell = require('openvibe-shared/shell');
const NETWORK_URL = 'https://openvibe.network';
const NETWORK_URL = 'https://openvibe.network';
-const NAV_LINKS = () => [{ label: 'Compare', href: '/catalog' }, { label: 'Console', href: '/console' }, { label: 'Domains', href: '/catalog/domains' }, { label: 'Benchmarks', href: '/catalog/benchmarks' }, { label: 'Offers', href: '/catalog/offers' }, { label: 'Promotions', href: '/catalog/promos' }];
+// The product's own places: the main ones carry an icon (phones get them as the bottom tab bar), the rest fold
+// into the navbar's More (Shared 4.22). Search is the navbar's magnifier; What shipped is the footer's.
+const NAV_LINKS = () => [
+ { label: 'Compare', href: '/catalog', icon: 'fa-chart-line' },
+ { label: 'Domains', href: '/catalog/domains', icon: 'fa-globe' },
+ { label: 'Offers', href: '/catalog/offers', icon: 'fa-tag' },
+ { label: 'Console', href: '/console', icon: 'fa-gauge-high' },
+ { label: 'Benchmarks', href: '/catalog/benchmarks', icon: 'fa-gauge-high', more: true },
+ { label: 'Promotions', href: '/catalog/promos', icon: 'fa-ticket', more: true },
+];
const DESCRIPTION = 'OpenVibe.Host: hosting plans compared, every price dated and sourced.';
const DESCRIPTION = 'OpenVibe.Host: hosting plans compared, every price dated and sourced.';
const SITE_NAME = 'OpenVibe.Host';
const SITE_NAME = 'OpenVibe.Host';
const PUBLIC_DIR = path.join(__dirname, '..', '..', 'public');
const PUBLIC_DIR = path.join(__dirname, '..', '..', 'public');
@@ -45,6 +54,7 @@ function renderPage(o) {
@@ -45,6 +54,7 @@ function renderPage(o) {
service: 'host',
service: 'host',
apiBase: NETWORK_URL,
apiBase: NETWORK_URL,
links: NAV_LINKS(signedIn),
links: NAV_LINKS(signedIn),
+ appBar: true, // phones: the places with icons as the bottom tab bar (Shared 4.20)
history: { type: 'page', title: o.title || SITE_NAME },
history: { type: 'page', title: o.title || SITE_NAME },
silentLogin: `${o.config.baseUrl}/auth/login?silent=1&next={url}`,
silentLogin: `${o.config.baseUrl}/auth/login?silent=1&next={url}`,
sessionUrl: '/auth/me',
sessionUrl: '/auth/me',