mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update rules and description, remove share board
This commit is contained in:
@@ -1030,12 +1030,6 @@ const Board = () => {
|
|||||||
style={{ display: openMenuCid === "rules" ? 'block' : 'none' }}
|
style={{ display: openMenuCid === "rules" ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
<ul className="post-menu-catalog">
|
<ul className="post-menu-catalog">
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("rules");
|
|
||||||
handleShareClick(selectedAddress, "rules");
|
|
||||||
}}>
|
|
||||||
Share board
|
|
||||||
</li>
|
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
change rules
|
change rules
|
||||||
@@ -1111,10 +1105,6 @@ const Board = () => {
|
|||||||
top: mobileMenuPosition.top + 20,
|
top: mobileMenuPosition.top + 20,
|
||||||
left: mobileMenuPosition.left}}>
|
left: mobileMenuPosition.left}}>
|
||||||
<ul className={`post-menu-mobile-thread-${"rules"}`}>
|
<ul className={`post-menu-mobile-thread-${"rules"}`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleMobileOptionClick("rules");
|
|
||||||
handleShareClick(selectedAddress, "rules")
|
|
||||||
}}>Share board</li>
|
|
||||||
<a style={{color: 'inherit', textDecoration: 'none'}}
|
<a style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
||||||
target="_blank" rel="noreferrer">
|
target="_blank" rel="noreferrer">
|
||||||
@@ -1231,10 +1221,6 @@ const Board = () => {
|
|||||||
style={{ display: openMenuCid === "rules" ? 'block' : 'none' }}
|
style={{ display: openMenuCid === "rules" ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
<ul className="post-menu-catalog">
|
<ul className="post-menu-catalog">
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("rules");
|
|
||||||
handleShareClick(selectedAddress, "rules");
|
|
||||||
}}>Share board</li>
|
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
change rules
|
change rules
|
||||||
@@ -1310,10 +1296,6 @@ const Board = () => {
|
|||||||
top: mobileMenuPosition.top + 20,
|
top: mobileMenuPosition.top + 20,
|
||||||
left: mobileMenuPosition.left}}>
|
left: mobileMenuPosition.left}}>
|
||||||
<ul className={`post-menu-mobile-thread-${"rules"}`}>
|
<ul className={`post-menu-mobile-thread-${"rules"}`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleMobileOptionClick("rules");
|
|
||||||
handleShareClick(selectedAddress, "rules")
|
|
||||||
}}>Share board</li>
|
|
||||||
<a style={{color: 'inherit', textDecoration: 'none'}}
|
<a style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
||||||
target="_blank" rel="noreferrer">
|
target="_blank" rel="noreferrer">
|
||||||
@@ -1452,10 +1434,6 @@ const Board = () => {
|
|||||||
style={{ display: openMenuCid === subplebbit.pubsubTopic ? 'block' : 'none' }}
|
style={{ display: openMenuCid === subplebbit.pubsubTopic ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
<ul className="post-menu-catalog">
|
<ul className="post-menu-catalog">
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("description");
|
|
||||||
handleShareClick(selectedAddress, "description");
|
|
||||||
}}>Share board</li>
|
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
change description
|
change description
|
||||||
@@ -1558,10 +1536,6 @@ const Board = () => {
|
|||||||
top: mobileMenuPosition.top + 20,
|
top: mobileMenuPosition.top + 20,
|
||||||
left: mobileMenuPosition.left}}>
|
left: mobileMenuPosition.left}}>
|
||||||
<ul className={`post-menu-mobile-thread-description`}>
|
<ul className={`post-menu-mobile-thread-description`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleMobileOptionClick("description");
|
|
||||||
handleShareClick(selectedAddress, "description")
|
|
||||||
}}>Share board</li>
|
|
||||||
{subplebbit.suggested?.avatarUrl ? (
|
{subplebbit.suggested?.avatarUrl ? (
|
||||||
<>
|
<>
|
||||||
<a style={{ color: 'inherit', textDecoration: 'none' }}
|
<a style={{ color: 'inherit', textDecoration: 'none' }}
|
||||||
|
|||||||
@@ -435,9 +435,6 @@ const CatalogPost = ({post}) => {
|
|||||||
<a target="_blank" rel="noreferrer"
|
<a target="_blank" rel="noreferrer"
|
||||||
style={{color: 'inherit', textDecoration: 'none'}}
|
style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
href={`https://pleb.bz/p/${selectedAddress}/?redirect=plebchan.eth.limo`}>
|
href={`https://pleb.bz/p/${selectedAddress}/?redirect=plebchan.eth.limo`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("rules");
|
|
||||||
}}>Share board</li>
|
|
||||||
</a>
|
</a>
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
@@ -582,9 +579,6 @@ const CatalogPost = ({post}) => {
|
|||||||
<a target="_blank" rel="noreferrer"
|
<a target="_blank" rel="noreferrer"
|
||||||
style={{color: 'inherit', textDecoration: 'none'}}
|
style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
href={`https://pleb.bz/p/${selectedAddress}/?redirect=plebchan.eth.limo`}>
|
href={`https://pleb.bz/p/${selectedAddress}/?redirect=plebchan.eth.limo`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("description");
|
|
||||||
}}>Share board</li>
|
|
||||||
</a>
|
</a>
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import OfflineIndicator from '../OfflineIndicator';
|
|||||||
import SettingsModal from '../modals/SettingsModal';
|
import SettingsModal from '../modals/SettingsModal';
|
||||||
import getDate from '../../utils/getDate';
|
import getDate from '../../utils/getDate';
|
||||||
import handleImageClick from '../../utils/handleImageClick';
|
import handleImageClick from '../../utils/handleImageClick';
|
||||||
import handleShareClick from '../../utils/handleShareClick';
|
|
||||||
import handleStyleChange from '../../utils/handleStyleChange';
|
import handleStyleChange from '../../utils/handleStyleChange';
|
||||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
@@ -396,10 +395,6 @@ const Description = () => {
|
|||||||
style={{ display: openMenuCid === subplebbit.pubsubTopic ? 'block' : 'none' }}
|
style={{ display: openMenuCid === subplebbit.pubsubTopic ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
<ul className="post-menu-catalog">
|
<ul className="post-menu-catalog">
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("description");
|
|
||||||
handleShareClick(selectedAddress, "description");
|
|
||||||
}}>Share board</li>
|
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
change description
|
change description
|
||||||
@@ -499,10 +494,6 @@ const Description = () => {
|
|||||||
top: mobileMenuPosition.top + 20,
|
top: mobileMenuPosition.top + 20,
|
||||||
left: mobileMenuPosition.left}}>
|
left: mobileMenuPosition.left}}>
|
||||||
<ul className={`post-menu-mobile-thread-description`}>
|
<ul className={`post-menu-mobile-thread-description`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleMobileOptionClick("description");
|
|
||||||
handleShareClick(selectedAddress, "description")
|
|
||||||
}}>Share board</li>
|
|
||||||
{subplebbit.suggested?.avatarUrl ? (
|
{subplebbit.suggested?.avatarUrl ? (
|
||||||
<>
|
<>
|
||||||
<li onClick={() => handleMobileOptionClick("description")}>
|
<li onClick={() => handleMobileOptionClick("description")}>
|
||||||
@@ -526,6 +517,20 @@ const Description = () => {
|
|||||||
</>
|
</>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
|
<a style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
|
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
||||||
|
target="_blank" rel="noreferrer">
|
||||||
|
<li onClick={() => handleMobileOptionClick("description")}>
|
||||||
|
View on plebbit
|
||||||
|
</li>
|
||||||
|
</a>
|
||||||
|
<a style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
|
href={`https://plebones.netlify.app/#/p/${selectedAddress}`}
|
||||||
|
target="_blank" rel="noreferrer">
|
||||||
|
<li onClick={() => handleMobileOptionClick("description")}>
|
||||||
|
View on plebones
|
||||||
|
</li>
|
||||||
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
</PostMenuMobile>, document.body
|
</PostMenuMobile>, document.body
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import AdminListModal from '../modals/AdminListModal';
|
|||||||
import OfflineIndicator from '../OfflineIndicator';
|
import OfflineIndicator from '../OfflineIndicator';
|
||||||
import SettingsModal from '../modals/SettingsModal';
|
import SettingsModal from '../modals/SettingsModal';
|
||||||
import getDate from '../../utils/getDate';
|
import getDate from '../../utils/getDate';
|
||||||
import handleShareClick from '../../utils/handleShareClick';
|
|
||||||
import handleStyleChange from '../../utils/handleStyleChange';
|
import handleStyleChange from '../../utils/handleStyleChange';
|
||||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
@@ -376,10 +375,6 @@ const Rules = () => {
|
|||||||
style={{ display: openMenuCid === "rules" ? 'block' : 'none' }}
|
style={{ display: openMenuCid === "rules" ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
<ul className="post-menu-catalog">
|
<ul className="post-menu-catalog">
|
||||||
<li onClick={() => {
|
|
||||||
handleOptionClick("rules");
|
|
||||||
handleShareClick(selectedAddress, "rules");
|
|
||||||
}}>Share board</li>
|
|
||||||
{/* {isModerator ? (
|
{/* {isModerator ? (
|
||||||
<>
|
<>
|
||||||
change rules
|
change rules
|
||||||
@@ -465,21 +460,17 @@ const Rules = () => {
|
|||||||
top: mobileMenuPosition.top + 20,
|
top: mobileMenuPosition.top + 20,
|
||||||
left: mobileMenuPosition.left}}>
|
left: mobileMenuPosition.left}}>
|
||||||
<ul className={`post-menu-mobile-thread-description`}>
|
<ul className={`post-menu-mobile-thread-description`}>
|
||||||
<li onClick={() => {
|
|
||||||
handleMobileOptionClick("rules");
|
|
||||||
handleShareClick(selectedAddress, "rules")
|
|
||||||
}}>Share board</li>
|
|
||||||
<a style={{color: 'inherit', textDecoration: 'none'}}
|
<a style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
href={`https://plebbitapp.eth.limo/#/p/${selectedAddress}`}
|
||||||
target="_blank" rel="noreferrer">
|
target="_blank" rel="noreferrer">
|
||||||
<li onClick={() => handleOptionClick("rules")}>
|
<li onClick={() => handleMobileOptionClick("rules")}>
|
||||||
View on plebbit
|
View on plebbit
|
||||||
</li>
|
</li>
|
||||||
</a>
|
</a>
|
||||||
<a style={{color: 'inherit', textDecoration: 'none'}}
|
<a style={{color: 'inherit', textDecoration: 'none'}}
|
||||||
href={`https://plebones.netlify.app/#/p/${selectedAddress}`}
|
href={`https://plebones.netlify.app/#/p/${selectedAddress}`}
|
||||||
target="_blank" rel="noreferrer">
|
target="_blank" rel="noreferrer">
|
||||||
<li onClick={() => handleOptionClick("rules")}>
|
<li onClick={() => handleMobileOptionClick("rules")}>
|
||||||
View on plebones
|
View on plebones
|
||||||
</li>
|
</li>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user