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