no lbry.tv share domain
This commit is contained in:
parent
19b86a46fa
commit
b5994d6ff2
4 changed files with 11 additions and 10 deletions
|
@ -26,14 +26,15 @@ MATOMO_URL=https://analytics.lbry.com/
|
||||||
MATOMO_ID=4
|
MATOMO_ID=4
|
||||||
|
|
||||||
# OG
|
# OG
|
||||||
OG_TITLE_SUFFIX=| lbry.tv
|
OG_TITLE_SUFFIX=| LBRY
|
||||||
OG_HOMEPAGE_TITLE=lbry.tv
|
OG_HOMEPAGE_TITLE=LBRY
|
||||||
OG_IMAGE_URL=
|
OG_IMAGE_URL=
|
||||||
SITE_CANONICAL_URL=https://lbry.tv
|
#SITE_CANONICAL_URL=
|
||||||
|
|
||||||
# UI
|
# UI
|
||||||
## Custom Site info
|
## Custom Site info
|
||||||
DOMAIN=lbry.tv
|
DOMAIN=lbry.tv
|
||||||
|
SHARE_DOMAIN_URL=odysee.com
|
||||||
URL=https://lbry.tv
|
URL=https://lbry.tv
|
||||||
SITE_TITLE=LBRY
|
SITE_TITLE=LBRY
|
||||||
SITE_NAME=LBRY
|
SITE_NAME=LBRY
|
||||||
|
@ -43,7 +44,7 @@ LOGO_TITLE=LBRY
|
||||||
CLOUD_CONNECT_SITE_NAME=Odysee
|
CLOUD_CONNECT_SITE_NAME=Odysee
|
||||||
## Social media
|
## Social media
|
||||||
TWITTER_ACCOUNT=LBRYcom
|
TWITTER_ACCOUNT=LBRYcom
|
||||||
BRANDED_SITE=odysee
|
#BRANDED_SITE=
|
||||||
|
|
||||||
## IMAGE ASSETS
|
## IMAGE ASSETS
|
||||||
YRBL_HAPPY_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a
|
YRBL_HAPPY_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
import { URL, SHARE_DOMAIN_URL } from 'config';
|
import { SHARE_DOMAIN_URL } from 'config';
|
||||||
import * as ICONS from 'constants/icons';
|
import * as ICONS from 'constants/icons';
|
||||||
import * as PAGES from 'constants/pages';
|
import * as PAGES from 'constants/pages';
|
||||||
import * as MODALS from 'constants/modal_types';
|
import * as MODALS from 'constants/modal_types';
|
||||||
|
@ -18,7 +18,7 @@ import {
|
||||||
import { useHistory } from 'react-router';
|
import { useHistory } from 'react-router';
|
||||||
import { buildURI, parseURI } from 'util/lbryURI';
|
import { buildURI, parseURI } from 'util/lbryURI';
|
||||||
|
|
||||||
const SHARE_DOMAIN = SHARE_DOMAIN_URL || URL;
|
const SHARE_DOMAIN = SHARE_DOMAIN_URL;
|
||||||
const PAGE_VIEW_QUERY = 'view';
|
const PAGE_VIEW_QUERY = 'view';
|
||||||
const EDIT_PAGE = 'edit';
|
const EDIT_PAGE = 'edit';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
import { SHARE_DOMAIN_URL, URL } from 'config';
|
import { SHARE_DOMAIN_URL } from 'config';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormField } from 'component/common/form';
|
import { FormField } from 'component/common/form';
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ function SettingShareUrl(props: Props) {
|
||||||
<FormField
|
<FormField
|
||||||
type="radio"
|
type="radio"
|
||||||
name="use_default_share_url"
|
name="use_default_share_url"
|
||||||
label={__('Default share url (%name%)', { name: SHARE_DOMAIN_URL || URL })}
|
label={__('Default share url (%name%)', { name: SHARE_DOMAIN_URL })}
|
||||||
checked={!customShareUrlEnabled}
|
checked={!customShareUrlEnabled}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import { useIsMobile } from 'effects/use-screensize';
|
||||||
import { FormField } from 'component/common/form';
|
import { FormField } from 'component/common/form';
|
||||||
import { hmsToSeconds, secondsToHms } from 'util/time';
|
import { hmsToSeconds, secondsToHms } from 'util/time';
|
||||||
import { generateLbryContentUrl, generateLbryWebUrl, generateEncodedLbryURL, generateShareUrl } from 'util/url';
|
import { generateLbryContentUrl, generateLbryWebUrl, generateEncodedLbryURL, generateShareUrl } from 'util/url';
|
||||||
import { URL, TWITTER_ACCOUNT, SHARE_DOMAIN_URL } from 'config';
|
import { TWITTER_ACCOUNT, SHARE_DOMAIN_URL } from 'config';
|
||||||
|
|
||||||
const SHARE_DOMAIN = SHARE_DOMAIN_URL || URL;
|
const SHARE_DOMAIN = SHARE_DOMAIN_URL;
|
||||||
const IOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
|
const IOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
|
||||||
const SUPPORTS_SHARE_API = typeof navigator.share !== 'undefined';
|
const SUPPORTS_SHARE_API = typeof navigator.share !== 'undefined';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue