mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add commitRef for netlify to all views
This commit is contained in:
@@ -10,6 +10,7 @@ import useAnonModeStore from '../../hooks/stores/useAnonModeStore';
|
|||||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const SettingsModal = ({ isOpen, closeModal }) => {
|
const SettingsModal = ({ isOpen, closeModal }) => {
|
||||||
@@ -423,7 +424,7 @@ const SettingsModal = ({ isOpen, closeModal }) => {
|
|||||||
<div className="panel">
|
<div className="panel">
|
||||||
<div className="panel-header">
|
<div className="panel-header">
|
||||||
<span id="version">
|
<span id="version">
|
||||||
v{version} -
|
v{version}{commitRef} -
|
||||||
{window.electron && window.electron.isElectron ? (
|
{window.electron && window.electron.isElectron ? (
|
||||||
<Link className="all-button" id="node-stats" to="http://localhost:5001/webui/" target="_blank" rel="noreferrer">
|
<Link className="all-button" id="node-stats" to="http://localhost:5001/webui/" target="_blank" rel="noreferrer">
|
||||||
full node
|
full node
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
let lastVirtuosoStates = {};
|
let lastVirtuosoStates = {};
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const All = () => {
|
const All = () => {
|
||||||
@@ -2540,7 +2541,7 @@ const All = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
let lastVirtuosoStates = {};
|
let lastVirtuosoStates = {};
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const CatalogPost = ({post}) => {
|
const CatalogPost = ({post}) => {
|
||||||
@@ -972,7 +973,7 @@ const AllCatalog = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
let lastVirtuosoStates = {};
|
let lastVirtuosoStates = {};
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const Board = () => {
|
const Board = () => {
|
||||||
@@ -3219,7 +3220,7 @@ const Board = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import useWindowWidth from '../../hooks/useWindowWidth';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
let lastVirtuosoStates = {};
|
let lastVirtuosoStates = {};
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const CatalogPost = ({post}) => {
|
const CatalogPost = ({post}) => {
|
||||||
@@ -1630,7 +1631,7 @@ const Catalog = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ 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';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const Description = () => {
|
const Description = () => {
|
||||||
@@ -511,7 +512,7 @@ const Description = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
import { Tooltip } from 'react-tooltip';
|
import { Tooltip } from 'react-tooltip';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
// show commit ref on netlify to know which commit is being served for debugging
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : ''
|
|
||||||
|
|
||||||
|
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
|
|||||||
import { Container, Header, Logo, Page, Boards, BoardsTitle } from '../styled/views/Home.styled';
|
import { Container, Header, Logo, Page, Boards, BoardsTitle } from '../styled/views/Home.styled';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const NotFound = () => {
|
const NotFound = () => {
|
||||||
@@ -61,7 +62,7 @@ const NotFound = () => {
|
|||||||
fontSize: "11px",
|
fontSize: "11px",
|
||||||
marginTop: "2em",
|
marginTop: "2em",
|
||||||
}}>
|
}}>
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import useError from '../../hooks/useError';
|
|||||||
import useStateString from '../../hooks/useStateString';
|
import useStateString from '../../hooks/useStateString';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const Pending = () => {
|
const Pending = () => {
|
||||||
@@ -601,7 +602,7 @@ const Pending = () => {
|
|||||||
marginTop: "2em",
|
marginTop: "2em",
|
||||||
marginBottom: "2em",
|
marginBottom: "2em",
|
||||||
}}>
|
}}>
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ 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';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const Rules = () => {
|
const Rules = () => {
|
||||||
@@ -509,7 +510,7 @@ const Rules = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ import useAnonModeStore from '../../hooks/stores/useAnonModeStore';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
let lastVirtuosoStates = {};
|
let lastVirtuosoStates = {};
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const Subscriptions = () => {
|
const Subscriptions = () => {
|
||||||
@@ -2547,7 +2548,7 @@ const Subscriptions = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import useWindowWidth from '../../hooks/useWindowWidth';
|
|||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
let lastVirtuosoStates = {};
|
let lastVirtuosoStates = {};
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const CatalogPost = ({post}) => {
|
const CatalogPost = ({post}) => {
|
||||||
@@ -982,7 +983,7 @@ const SubscriptionsCatalog = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ import useAnonModeStore from '../../hooks/stores/useAnonModeStore';
|
|||||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
const {version} = packageJson;
|
const {version} = packageJson;
|
||||||
|
const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : '';
|
||||||
|
|
||||||
|
|
||||||
const Thread = () => {
|
const Thread = () => {
|
||||||
@@ -2459,7 +2460,7 @@ const Thread = () => {
|
|||||||
</>
|
</>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
<div id="version">
|
<div id="version">
|
||||||
plebchan v{version}. GPL-2.0
|
plebchan v{version}{commitRef}. GPL-2.0
|
||||||
</div>
|
</div>
|
||||||
<div className="footer-links"
|
<div className="footer-links"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user