Update home page footer version colour.
This commit is contained in:
parent
41e8ef0a73
commit
8c11a2ac4d
@ -12,7 +12,7 @@ connect(process.env.MONGO_URI, {
|
||||
useFindAndModify: false,
|
||||
useCreateIndex: true,
|
||||
serverSelectionTimeoutMS: 0,
|
||||
}).catch(error => log.error(error.message ?? 'Unable to connect to db', { uri: process.env.MONGO_URI }))
|
||||
}).catch(error => log.error(error.message || 'Unable to connect to db', { uri: process.env.MONGO_URI }))
|
||||
.then(async (con) => {
|
||||
log.info(`Connected to database.`, { uri: process.env.MONGO_URI });
|
||||
await User.updateMany({ $set: { status: 'OFFLINE' } })
|
||||
|
@ -14,7 +14,7 @@ addColors({
|
||||
verbose: 'bold grey',
|
||||
silly: 'bold magenta',
|
||||
});
|
||||
|
||||
|
||||
const logger = createLogger({
|
||||
level: 'silly',
|
||||
defaultMeta: {},
|
||||
|
@ -37,15 +37,15 @@ function setupMulter(app: Application) {
|
||||
if (!allowedTypes.includes(ext))
|
||||
return callback(new Error('This image file type is not allowed'));
|
||||
|
||||
const maxSize = 1024 * 1024;
|
||||
if (file.size > maxSize)
|
||||
return callback(new Error('File size not supported'));
|
||||
|
||||
callback(null, true);
|
||||
},
|
||||
limits: { fileSize: 1024 * 1024 },
|
||||
});
|
||||
|
||||
app.post('/v2/upload', updateUser, validateUser, extraRateLimit(10), async (req, res) => {
|
||||
res.status(400).json({ message: "Image uploads are temporarily disabled." })
|
||||
return;
|
||||
|
||||
app.post('/v2/upload', updateUser, validateUser, extraRateLimit(10), upload.single('file'), async (req, res) => {
|
||||
const file = req.file!;
|
||||
|
||||
const buffer = await readFileAsync(file.path);
|
||||
|
4
frontend/env/.env.dev
vendored
4
frontend/env/.env.dev
vendored
@ -2,7 +2,7 @@ PORT=4200
|
||||
REACT_APP_API_URL="http://localhost:3000/v2"
|
||||
REACT_APP_CDN_URL="http://localhost:3000/assets"
|
||||
REACT_APP_WEBSITE_URL="http://localhost:4200"
|
||||
REACT_APP_REPO_URL="https://github.com/acrdapp/app"
|
||||
REACT_APP_REPO_URL="https://github.com/theadamjr/acrd.app"
|
||||
REACT_APP_VERSION_NAME="Cyan"
|
||||
REACT_APP_VERSION_NUMBER="0.6.0-pre-release"
|
||||
REACT_APP_VERSION_NUMBER="0.6.0-dev-release"
|
||||
REACT_APP_ROOT_API_URL="http://localhost:3000"
|
4
frontend/env/.env.prod
vendored
4
frontend/env/.env.prod
vendored
@ -2,7 +2,7 @@ PORT=4200
|
||||
REACT_APP_API_URL="https://api.acrd.app/v2"
|
||||
REACT_APP_CDN_URL="https://api.acrd.app/assets"
|
||||
REACT_APP_WEBSITE_URL="https://acrd.app"
|
||||
REACT_APP_REPO_URL="https://github.com/acrdapp/app"
|
||||
REACT_APP_REPO_URL="https://github.com/theadamjr/acrd.app"
|
||||
REACT_APP_VERSION_NAME="Cyan"
|
||||
REACT_APP_VERSION_NUMBER="0.6.0-pre-release"
|
||||
REACT_APP_VERSION_NUMBER="0.6.0-dev-release"
|
||||
REACT_APP_ROOT_API_URL="https://api.acrd.app"
|
@ -56,6 +56,7 @@
|
||||
"start": "npm run start:dev",
|
||||
"start:dev": "dotenv -e env/.env.dev craco start",
|
||||
"start:prod": "dotenv -e env/.env.prod craco start",
|
||||
"build": "npm run build:prod",
|
||||
"build:dev": "dotenv -e env/.env.dev craco build",
|
||||
"build:prod": "dotenv -e env/.env.prod craco build && cp build/index.html build/404.html",
|
||||
"predeploy": "npm run build:prod",
|
||||
|
@ -2,6 +2,8 @@
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<script>var exports = {};</script>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
@ -99,9 +99,9 @@ const HomePage: React.FunctionComponent = () => {
|
||||
<a href={`${process.env.REACT_APP_REPO_URL}/blob/dev/CHANGELOG.md`}
|
||||
className="float-right p-2"
|
||||
target="none">
|
||||
<strong className="primary">{process.env.REACT_APP_VERSION_NAME}</strong>
|
||||
<strong className="heading">{process.env.REACT_APP_VERSION_NAME}</strong>
|
||||
<span> </span>
|
||||
<span className="secondary">{process.env.REACT_APP_VERSION_NUMBER}</span>
|
||||
<span className="primary">{process.env.REACT_APP_VERSION_NUMBER}</span>
|
||||
</a>
|
||||
</footer>
|
||||
</PageWrapper>
|
||||
|
Loading…
x
Reference in New Issue
Block a user