mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Webatrice: improve prebuild steps and add .env configs (#4564)
* create .env file for server configuration * render client version * automate env file * add prestart command * create server-props.json instead of using .env * automate master proto file Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
408a13c937
commit
88b861d632
15 changed files with 119 additions and 21175 deletions
|
|
@ -12,7 +12,7 @@ import { RegistrationDialog, RequestPasswordResetDialog, ResetPasswordDialog, Ac
|
|||
import { LoginForm } from 'forms';
|
||||
import { useReduxEffect, useFireOnce } from 'hooks';
|
||||
import { Images } from 'images';
|
||||
import { HostDTO } from 'services';
|
||||
import { HostDTO, serverProps } from 'services';
|
||||
import { RouteEnum, WebSocketConnectOptions, getHostPort } from 'types';
|
||||
import { ServerSelectors, ServerTypes } from 'store';
|
||||
|
||||
|
|
@ -256,9 +256,16 @@ const Login = ({ state, description }: LoginProps) => {
|
|||
<span>Not registered yet?</span>
|
||||
<Button color="primary" onClick={openRegistrationDialog}>Create an account</Button>
|
||||
</div>
|
||||
<Typography variant="subtitle2" className="login-footer__copyright">
|
||||
<Typography variant="subtitle2">
|
||||
Cockatrice is an open source project. { new Date().getUTCFullYear() }
|
||||
</Typography>
|
||||
{
|
||||
serverProps.REACT_APP_VERSION && (
|
||||
<Typography variant="subtitle2">
|
||||
Version: { serverProps.REACT_APP_VERSION }
|
||||
</Typography>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div className="login-content__description">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue