2020-12-04 01:10:23 +01:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import * as ICONS from 'constants/icons';
|
2021-02-09 17:05:56 +01:00
|
|
|
import { MINIMUM_PUBLISH_BID, INVALID_NAME_ERROR } from 'constants/claim';
|
2020-12-04 01:10:23 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { useHistory } from 'react-router';
|
|
|
|
import Card from 'component/common/card';
|
|
|
|
import Button from 'component/button';
|
2021-02-09 17:05:56 +01:00
|
|
|
import ChannelSelector from 'component/channelSelector';
|
2020-12-04 01:10:23 +01:00
|
|
|
import { FormField } from 'component/common/form';
|
|
|
|
import { parseURI, isNameValid, creditsToString, isURIValid, normalizeURI } from 'lbry-redux';
|
|
|
|
import analytics from 'analytics';
|
|
|
|
import LbcSymbol from 'component/common/lbc-symbol';
|
|
|
|
import ClaimPreview from 'component/claimPreview';
|
|
|
|
import { URL as SITE_URL, URL_LOCAL, URL_DEV } from 'config';
|
|
|
|
import HelpLink from 'component/common/help-link';
|
2021-02-09 17:05:56 +01:00
|
|
|
import WalletSpendableBalanceHelp from 'component/walletSpendableBalanceHelp';
|
|
|
|
import Spinner from 'component/spinner';
|
2020-12-04 01:10:23 +01:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
doToast: ({ message: string }) => void,
|
|
|
|
doClearRepostError: () => void,
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
doRepost: (StreamRepostOptions) => Promise<*>,
|
2020-12-16 16:28:57 +01:00
|
|
|
title: string,
|
2020-12-04 01:10:23 +01:00
|
|
|
claim?: StreamClaim,
|
|
|
|
enteredContentClaim?: StreamClaim,
|
|
|
|
balance: number,
|
|
|
|
channels: ?Array<ChannelClaim>,
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
doCheckPublishNameAvailability: (string) => Promise<*>,
|
2020-12-04 01:10:23 +01:00
|
|
|
error: ?string,
|
|
|
|
reposting: boolean,
|
|
|
|
uri: string,
|
|
|
|
name: string,
|
|
|
|
contentUri: string,
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
setRepostUri: (string) => void,
|
|
|
|
setContentUri: (string) => void,
|
2020-12-04 01:10:23 +01:00
|
|
|
doCheckPendingClaims: () => void,
|
|
|
|
redirectUri?: string,
|
|
|
|
passedRepostAmount: number,
|
|
|
|
enteredRepostAmount: number,
|
|
|
|
isResolvingPassedRepost: boolean,
|
|
|
|
isResolvingEnteredRepost: boolean,
|
2021-02-09 17:05:56 +01:00
|
|
|
activeChannelClaim: ?ChannelClaim,
|
|
|
|
fetchingMyChannels: boolean,
|
2021-03-15 04:39:26 +01:00
|
|
|
incognito: boolean,
|
2020-12-04 01:10:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
function RepostCreate(props: Props) {
|
|
|
|
const {
|
|
|
|
redirectUri,
|
|
|
|
doToast,
|
|
|
|
doClearRepostError,
|
|
|
|
doRepost,
|
|
|
|
claim,
|
|
|
|
enteredContentClaim,
|
|
|
|
balance,
|
|
|
|
reposting,
|
|
|
|
doCheckPublishNameAvailability,
|
|
|
|
uri, // ?from
|
|
|
|
name, // ?to
|
|
|
|
contentUri,
|
|
|
|
setRepostUri,
|
|
|
|
setContentUri,
|
|
|
|
doCheckPendingClaims,
|
|
|
|
enteredRepostAmount,
|
|
|
|
passedRepostAmount,
|
|
|
|
isResolvingPassedRepost,
|
|
|
|
isResolvingEnteredRepost,
|
2021-02-09 17:05:56 +01:00
|
|
|
activeChannelClaim,
|
|
|
|
fetchingMyChannels,
|
2021-03-15 04:39:26 +01:00
|
|
|
incognito,
|
2020-12-04 01:10:23 +01:00
|
|
|
} = props;
|
|
|
|
|
|
|
|
const defaultName = name || (claim && claim.name) || '';
|
|
|
|
const contentClaimId = claim && claim.claim_id;
|
|
|
|
const enteredClaimId = enteredContentClaim && enteredContentClaim.claim_id;
|
|
|
|
|
|
|
|
const [repostBid, setRepostBid] = React.useState(0.01);
|
|
|
|
const [repostBidError, setRepostBidError] = React.useState(undefined);
|
|
|
|
const [takeoverAmount, setTakeoverAmount] = React.useState(0);
|
|
|
|
const [enteredRepostName, setEnteredRepostName] = React.useState(defaultName);
|
|
|
|
const [available, setAvailable] = React.useState(true);
|
|
|
|
const [enteredContent, setEnteredContentUri] = React.useState(undefined);
|
|
|
|
const [contentError, setContentError] = React.useState('');
|
|
|
|
|
|
|
|
const { replace, goBack } = useHistory();
|
|
|
|
const resolvingRepost = isResolvingEnteredRepost || isResolvingPassedRepost;
|
2021-04-09 12:45:52 +02:00
|
|
|
const repostUrlName = `lbry://${incognito || !activeChannelClaim ? '' : `${activeChannelClaim.name}/`}`;
|
2020-12-04 01:10:23 +01:00
|
|
|
|
|
|
|
const contentFirstRender = React.useRef(true);
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
const setAutoRepostBid = (amount) => {
|
2020-12-22 16:16:39 +01:00
|
|
|
if (balance && balance > 0.02) {
|
|
|
|
if (uri) {
|
|
|
|
setRepostBid(0.01);
|
|
|
|
} else if (balance > amount) {
|
2020-12-04 01:10:23 +01:00
|
|
|
setRepostBid(Number(amount.toFixed(2)));
|
|
|
|
} else {
|
2020-12-22 16:16:39 +01:00
|
|
|
setRepostBid(0.01);
|
2020-12-04 01:10:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
function getSearchUri(value) {
|
|
|
|
const WEB_DEV_PREFIX = `${URL_DEV}/`;
|
|
|
|
const WEB_LOCAL_PREFIX = `${URL_LOCAL}/`;
|
|
|
|
const WEB_PROD_PREFIX = `${SITE_URL}/`;
|
|
|
|
const ODYSEE_PREFIX = `https://odysee.com/`;
|
|
|
|
const includesLbryTvProd = value.includes(WEB_PROD_PREFIX);
|
|
|
|
const includesOdysee = value.includes(ODYSEE_PREFIX);
|
|
|
|
const includesLbryTvLocal = value.includes(WEB_LOCAL_PREFIX);
|
|
|
|
const includesLbryTvDev = value.includes(WEB_DEV_PREFIX);
|
|
|
|
const wasCopiedFromWeb = includesLbryTvDev || includesLbryTvLocal || includesLbryTvProd || includesOdysee;
|
|
|
|
const isLbryUrl = value.startsWith('lbry://') && value !== 'lbry://';
|
|
|
|
const error = '';
|
|
|
|
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
const addLbryIfNot = (term) => {
|
2020-12-04 01:10:23 +01:00
|
|
|
return term.startsWith('lbry://') ? term : `lbry://${term}`;
|
|
|
|
};
|
|
|
|
if (wasCopiedFromWeb) {
|
|
|
|
let prefix = WEB_PROD_PREFIX;
|
|
|
|
if (includesLbryTvLocal) prefix = WEB_LOCAL_PREFIX;
|
|
|
|
if (includesLbryTvDev) prefix = WEB_DEV_PREFIX;
|
|
|
|
if (includesOdysee) prefix = ODYSEE_PREFIX;
|
|
|
|
|
|
|
|
let query = (value && value.slice(prefix.length).replace(/:/g, '#')) || '';
|
|
|
|
try {
|
|
|
|
const lbryUrl = `lbry://${query}`;
|
|
|
|
parseURI(lbryUrl);
|
|
|
|
return [lbryUrl, null];
|
|
|
|
} catch (e) {
|
|
|
|
return [query, 'error'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!isLbryUrl) {
|
|
|
|
if (value.startsWith('@')) {
|
|
|
|
if (isNameValid(value.slice(1))) {
|
|
|
|
return [value, null];
|
|
|
|
} else {
|
|
|
|
return [value, error];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return [addLbryIfNot(value), null];
|
|
|
|
} else {
|
|
|
|
try {
|
|
|
|
const isValid = isURIValid(value);
|
|
|
|
if (isValid) {
|
|
|
|
let uri;
|
|
|
|
try {
|
|
|
|
uri = normalizeURI(value);
|
|
|
|
} catch (e) {
|
|
|
|
return [value, null];
|
|
|
|
}
|
|
|
|
return [uri, null];
|
|
|
|
} else {
|
|
|
|
return [value, null];
|
|
|
|
}
|
|
|
|
} catch (e) {
|
|
|
|
return [value, 'error'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// repostName
|
|
|
|
let repostNameError;
|
|
|
|
if (!enteredRepostName) {
|
|
|
|
repostNameError = __('A name is required');
|
|
|
|
} else if (!isNameValid(enteredRepostName, false)) {
|
|
|
|
repostNameError = INVALID_NAME_ERROR;
|
|
|
|
} else if (!available) {
|
|
|
|
repostNameError = __('You already have a claim with this name.');
|
|
|
|
}
|
|
|
|
|
|
|
|
// contentName
|
|
|
|
let contentNameError;
|
|
|
|
if (!enteredContent && enteredContent !== undefined) {
|
|
|
|
contentNameError = __('A name is required');
|
|
|
|
}
|
|
|
|
|
|
|
|
React.useEffect(() => {
|
|
|
|
if (enteredRepostName && isNameValid(enteredRepostName, false)) {
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
doCheckPublishNameAvailability(enteredRepostName).then((r) => setAvailable(r));
|
2020-12-04 01:10:23 +01:00
|
|
|
}
|
|
|
|
}, [enteredRepostName, doCheckPublishNameAvailability]);
|
|
|
|
|
|
|
|
// takeover amount, bid suggestion
|
|
|
|
React.useEffect(() => {
|
|
|
|
const repostTakeoverAmount = Number(enteredRepostAmount)
|
|
|
|
? Number(enteredRepostAmount) + 0.01
|
|
|
|
: Number(passedRepostAmount) + 0.01;
|
|
|
|
|
|
|
|
if (repostTakeoverAmount) {
|
|
|
|
setTakeoverAmount(Number(repostTakeoverAmount.toFixed(2)));
|
|
|
|
setAutoRepostBid(repostTakeoverAmount);
|
|
|
|
}
|
|
|
|
}, [setTakeoverAmount, enteredRepostAmount, passedRepostAmount]);
|
|
|
|
|
|
|
|
// repost bid error
|
|
|
|
React.useEffect(() => {
|
|
|
|
let rBidError;
|
|
|
|
if (repostBid === 0) {
|
|
|
|
rBidError = __('Deposit cannot be 0');
|
|
|
|
} else if (balance === repostBid) {
|
|
|
|
rBidError = __('Please decrease your deposit to account for transaction fees');
|
|
|
|
} else if (balance < repostBid) {
|
2021-01-12 16:25:51 +01:00
|
|
|
rBidError = __('Deposit cannot be higher than your available balance');
|
2020-12-04 01:10:23 +01:00
|
|
|
} else if (repostBid < MINIMUM_PUBLISH_BID) {
|
|
|
|
rBidError = __('Your deposit must be higher');
|
|
|
|
}
|
|
|
|
setRepostBidError(rBidError);
|
|
|
|
}, [setRepostBidError, repostBidError, repostBid]);
|
|
|
|
|
|
|
|
// setContentUri given enteredUri
|
|
|
|
React.useEffect(() => {
|
|
|
|
if (!enteredContent && !contentFirstRender.current) {
|
|
|
|
setContentError(__('A name is required'));
|
|
|
|
}
|
|
|
|
if (enteredContent) {
|
|
|
|
contentFirstRender.current = false;
|
|
|
|
const [searchContent, error] = getSearchUri(enteredContent);
|
|
|
|
if (error) {
|
|
|
|
setContentError(__('Something not quite right..'));
|
|
|
|
} else {
|
|
|
|
setContentError('');
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
const { streamName, channelName, isChannel } = parseURI(searchContent);
|
|
|
|
if (!isChannel && streamName && isNameValid(streamName)) {
|
|
|
|
// contentNameValid = true;
|
|
|
|
setContentUri(searchContent);
|
|
|
|
} else if (isChannel && channelName && isNameValid(channelName)) {
|
|
|
|
// contentNameValid = true;
|
|
|
|
setContentUri(searchContent);
|
|
|
|
}
|
|
|
|
} catch (e) {
|
|
|
|
if (enteredContent !== '@') setContentError('');
|
|
|
|
setContentUri(``);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, [enteredContent, setContentUri, setContentError, parseURI, isNameValid]);
|
|
|
|
|
|
|
|
// setRepostName
|
|
|
|
React.useEffect(() => {
|
|
|
|
if (enteredRepostName) {
|
|
|
|
let isValid = false;
|
|
|
|
try {
|
|
|
|
parseURI(enteredRepostName);
|
|
|
|
isValid = true;
|
|
|
|
} catch (e) {
|
|
|
|
isValid = false;
|
|
|
|
}
|
|
|
|
if (isValid) {
|
|
|
|
setRepostUri(enteredRepostName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, [enteredRepostName, setRepostUri, parseURI]);
|
|
|
|
|
|
|
|
const repostClaimId = contentClaimId || enteredClaimId;
|
|
|
|
|
|
|
|
const getRedirect = (entered, passed, redirect) => {
|
|
|
|
if (redirect) {
|
|
|
|
return redirect;
|
|
|
|
} else if (entered) {
|
|
|
|
try {
|
|
|
|
const { claimName } = parseURI(entered);
|
|
|
|
return `/${claimName}`;
|
|
|
|
} catch (e) {
|
|
|
|
return '/';
|
|
|
|
}
|
|
|
|
} else if (passed) {
|
|
|
|
try {
|
|
|
|
const { claimName } = parseURI(passed);
|
|
|
|
return `/${claimName}`;
|
|
|
|
} catch (e) {
|
|
|
|
return '/';
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
return '/';
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
function handleSubmit() {
|
|
|
|
if (enteredRepostName && repostBid && repostClaimId) {
|
|
|
|
doRepost({
|
|
|
|
name: enteredRepostName,
|
|
|
|
bid: creditsToString(repostBid),
|
2021-03-15 04:39:26 +01:00
|
|
|
channel_id: activeChannelClaim && !incognito ? activeChannelClaim.claim_id : undefined,
|
2020-12-04 01:10:23 +01:00
|
|
|
claim_id: repostClaimId,
|
|
|
|
}).then((repostClaim: StreamClaim) => {
|
|
|
|
doCheckPendingClaims();
|
|
|
|
analytics.apiLogPublish(repostClaim);
|
|
|
|
doToast({ message: __('Woohoo! Successfully reposted this claim.') });
|
|
|
|
replace(getRedirect(contentUri, uri, redirectUri));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function cancelIt() {
|
|
|
|
doClearRepostError();
|
|
|
|
goBack();
|
|
|
|
}
|
|
|
|
|
2021-02-09 17:05:56 +01:00
|
|
|
if (fetchingMyChannels) {
|
|
|
|
return (
|
|
|
|
<div className="main--empty">
|
|
|
|
<Spinner />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-12-04 01:10:23 +01:00
|
|
|
return (
|
|
|
|
<>
|
2021-02-09 17:05:56 +01:00
|
|
|
<ChannelSelector />
|
|
|
|
|
2020-12-04 01:10:23 +01:00
|
|
|
<Card
|
|
|
|
actions={
|
|
|
|
<div>
|
|
|
|
{uri && (
|
|
|
|
<fieldset-section>
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
<ClaimPreview key={uri} uri={uri} actions={''} showNullPlaceholder />
|
2020-12-04 01:10:23 +01:00
|
|
|
</fieldset-section>
|
|
|
|
)}
|
|
|
|
{!uri && name && (
|
|
|
|
<>
|
|
|
|
<FormField
|
2020-12-21 14:02:21 +01:00
|
|
|
label={__('Content to repost')}
|
2020-12-04 01:10:23 +01:00
|
|
|
type="text"
|
|
|
|
name="content_url"
|
|
|
|
value={enteredContent}
|
|
|
|
error={contentError}
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
onChange={(event) => setEnteredContentUri(event.target.value)}
|
2020-12-04 01:10:23 +01:00
|
|
|
placeholder={__('Enter a name or %domain% URL', { domain: SITE_URL })}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
)}
|
2021-02-09 17:05:56 +01:00
|
|
|
|
2020-12-04 01:10:23 +01:00
|
|
|
{!uri && (
|
|
|
|
<fieldset-section>
|
|
|
|
<ClaimPreview key={contentUri} uri={contentUri} actions={''} type={'large'} showNullPlaceholder />
|
|
|
|
</fieldset-section>
|
|
|
|
)}
|
|
|
|
|
|
|
|
<React.Fragment>
|
|
|
|
<fieldset-section>
|
|
|
|
<fieldset-group class="fieldset-group--smushed fieldset-group--disabled-prefix">
|
|
|
|
<fieldset-section>
|
|
|
|
<label htmlFor="auth_first_channel">
|
|
|
|
{repostNameError ? (
|
|
|
|
<span className="error__text">{repostNameError}</span>
|
|
|
|
) : (
|
|
|
|
<span>
|
|
|
|
{__('Repost URL')}
|
|
|
|
<HelpLink href="https://lbry.com/faq/naming" />
|
|
|
|
</span>
|
|
|
|
)}
|
|
|
|
</label>
|
|
|
|
<div className="form-field__prefix">{repostUrlName}</div>
|
|
|
|
</fieldset-section>
|
|
|
|
<FormField
|
|
|
|
type="text"
|
|
|
|
name="repost_name"
|
|
|
|
value={enteredRepostName}
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
onChange={(event) => setEnteredRepostName(event.target.value)}
|
2020-12-21 16:36:55 +01:00
|
|
|
placeholder={__('MyFunName')}
|
2020-12-04 01:10:23 +01:00
|
|
|
/>
|
|
|
|
</fieldset-group>
|
|
|
|
</fieldset-section>
|
|
|
|
|
|
|
|
<FormField
|
|
|
|
type="number"
|
|
|
|
name="repost_bid"
|
|
|
|
min="0"
|
|
|
|
step="any"
|
|
|
|
placeholder="0.123"
|
|
|
|
className="form-field--price-amount"
|
2020-12-21 14:02:21 +01:00
|
|
|
label={<LbcSymbol postfix={__('Support --[button to support a claim]--')} size={14} />}
|
2020-12-04 01:10:23 +01:00
|
|
|
value={repostBid}
|
|
|
|
error={repostBidError}
|
2021-02-09 17:05:56 +01:00
|
|
|
helper={
|
|
|
|
<>
|
|
|
|
{__('Winning amount: %amount%', {
|
|
|
|
amount: Number(takeoverAmount).toFixed(2),
|
|
|
|
})}
|
|
|
|
<WalletSpendableBalanceHelp inline />
|
|
|
|
</>
|
|
|
|
}
|
2020-12-04 01:10:23 +01:00
|
|
|
disabled={!enteredRepostName || resolvingRepost}
|
odysee
fix replay select styling
make meme a link
Fix audio references
get newest livestream claim in livestreamLink
pin crackermilk
fix livestream banner placement
fix live page
fix rebase
fix rebase
fix error nag
fix darkmode blockquote style
break word on livestream comment text
fix dark mode snack
fix live badge
fix lint
small fixes - word wrap, live badge
wip
Fix invisible snack in Odysee Light Theme
Revert "wip"
This reverts commit d17e477fe0e6633709ea30bdc403448825db4c71.
Revert "small fixes - word wrap, live badge"
This reverts commit 0e431d4038d774079c78f0de32238aac7260e4ca.
fix blank
pinned destiny
fix badges and homepage again
only get livestreams live for less than a day
pinned hammy and olivia
multi pin
pin destiny
updated pinned videos
update tagline
Update view.jsx
pins
updated destiny's video
updated pinned videos
removed destiny, added lie likes music
pinned destiny and mason's woodshop
removed hammy and olivia
unpinned mason's woodshop
removed pins
added hammy and olivia
pinned sam seder
unpinned destiny and hammy and olivia
Fix merge on ChannelThumbnails
- sam seder, + hammy & olivia and passion for food
update tagline (#6086)
removed everyone, added kona and suba
Theme color fixes (odysee) (#6089)
* Cherry-pick master's 'base-theme.scss'
* Non-functional cleanup (remove dups, re-order, etc.)
* Dark: update positive Toast to --color-primary as well.
This follows the intention of the refactoring, which I guess was (1) reduce the number of color names (2) reduce the number of customizations needed.
The only issue I have with this is that the current Odysee primary color is pink, which can be intepreted as an error.
The original (pre-refactoring color was green).
For now, I follow the refactoring path. We can tweak this later.
* Fix text color inside '--color-card-background-highlighted'
Light: use base-theme (it was the same value anyway).
Dark: use bright text.
* Dark: add some contrast between the components
The color for the background, header, card, placeholder, etc. is almost identical -- it looks like there are all in the same component. The almost-invisible border doesn't help. One would have to crank up the monitor's contrast setting to see separation of components.
Brighten up the components a bit, somewhat following the same scale as lbry.tv's dark theme.
Overall, I still think it's too dark. The Card's background color can still be brightened up further for better contrast, but I try not to make too drastic of a change for now.
The original lbry.tv's gray theme is the most pleasant theme I've seen so far, but this is all subjective.
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
pinned sgtducky
changed pins
removed sgtducky
added hammy and olivia
added chrissie mayr
added the bite shot
changed pins
removed the bite shot
added heads of tech
changed pins
removed hammy and olivia
removed chrissie mayr
changed pins
removed heads of tech
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
added passion for food
changed pins
removed some ordinary gamers
removed passion for food
added emmy hucker
changed pins
added game knights
Update view.jsx
Force rebuild
changed pins
removed emmy hucker
changed pins
removed game knights
added crackermilk
changed pins
removed crackermilk
added some ordinary gamer
changed pins
removed some ordinary gamers
added passion for food
added green renaissance
changed pins
removed passion for food
removed green renaissance
added expand love
changed pins
removed expand love
added dr nora
change tagline (#6122)
there's so much room for activities
comment out music
changed pins
removed dr nora
added kona and suba
changed pins
removed kona and suba
added destiny
changed pins
removed destiny
added crackermilk
changed pins
removed crackermilk
added someordinarygamers
change tagline
Drake, where's the door hole?
changed pins
unpinned someordinarygamers
pinned kona and suba
Add message for mature content
changed pin
changed pins
removed creative model
changed pins
added bcpov
added krish mohan
added cigarvixen
changed pins
removed krish mohan
added adrian logan
bump
fix footer
change tagline
just like the simulations
changed pins
removed:
bcpov
cigarvixen
adrian logan
added:
someordinarygamers
quick fix for reposts
oops
fix channel tabs
changed pin
removed someordinarygamers
added kona and suba
changed pins
removed kona and suba
added dirtyworkz
added crackermilk
2021-06-11 19:47:56 +02:00
|
|
|
onChange={(event) => setRepostBid(event.target.value)}
|
|
|
|
onWheel={(e) => e.stopPropagation()}
|
2020-12-04 01:10:23 +01:00
|
|
|
/>
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
<div className="section__actions">
|
|
|
|
<Button
|
|
|
|
icon={ICONS.REPOST}
|
|
|
|
disabled={
|
|
|
|
resolvingRepost ||
|
|
|
|
reposting ||
|
|
|
|
repostBidError ||
|
|
|
|
repostNameError ||
|
|
|
|
((!uri || enteredContent) && contentNameError) ||
|
|
|
|
(!uri && !enteredContentClaim)
|
|
|
|
}
|
|
|
|
button="primary"
|
|
|
|
label={reposting ? __('Reposting') : __('Repost')}
|
|
|
|
onClick={handleSubmit}
|
|
|
|
/>
|
|
|
|
<Button button="link" label={__('Cancel')} onClick={cancelIt} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RepostCreate;
|