mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 07:27:47 +01:00
rename all 'writer' to 'photos'
This commit is contained in:
@@ -15,10 +15,10 @@
|
|||||||
"server": "db",
|
"server": "db",
|
||||||
"driver": "MySQL",
|
"driver": "MySQL",
|
||||||
"port": 3306,
|
"port": 3306,
|
||||||
"database": "writer",
|
"database": "photos",
|
||||||
"username": "writer",
|
"username": "photos",
|
||||||
"askForPassword": false,
|
"askForPassword": false,
|
||||||
"password": "writer",
|
"password": "photos",
|
||||||
"connectionTimeout": 15
|
"connectionTimeout": 15
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -26,10 +26,10 @@
|
|||||||
"server": "dbtest",
|
"server": "dbtest",
|
||||||
"driver": "MySQL",
|
"driver": "MySQL",
|
||||||
"port": 3306,
|
"port": 3306,
|
||||||
"database": "writer_test",
|
"database": "photos_test",
|
||||||
"username": "writer",
|
"username": "photos",
|
||||||
"askForPassword": false,
|
"askForPassword": false,
|
||||||
"password": "writer",
|
"password": "photos",
|
||||||
"connectionTimeout": 15
|
"connectionTimeout": 15
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -42,7 +42,10 @@
|
|||||||
"ms-vscode.vscode-typescript-tslint-plugin"
|
"ms-vscode.vscode-typescript-tslint-plugin"
|
||||||
],
|
],
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
"forwardPorts": [1234, 3000],
|
"forwardPorts": [
|
||||||
|
1234,
|
||||||
|
3000
|
||||||
|
],
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"postCreateCommand": "npm config set unsafe-perm=true && npm i && cd frontend && npm i",
|
"postCreateCommand": "npm config set unsafe-perm=true && npm i && cd frontend && npm i",
|
||||||
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- mariadb-data:/var/lib/mysql
|
- mariadb-data:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: writer
|
MYSQL_DATABASE: photos
|
||||||
MYSQL_USER: writer
|
MYSQL_USER: photos
|
||||||
MYSQL_PASSWORD: writer
|
MYSQL_PASSWORD: photos
|
||||||
MYSQL_ROOT_PASSWORD: writer
|
MYSQL_ROOT_PASSWORD: photos
|
||||||
|
|
||||||
dbtest:
|
dbtest:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
@@ -44,10 +44,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- mariadbtest-data:/var/lib/mysql
|
- mariadbtest-data:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: writer_test
|
MYSQL_DATABASE: photos_test
|
||||||
MYSQL_USER: writer
|
MYSQL_USER: photos
|
||||||
MYSQL_PASSWORD: writer
|
MYSQL_PASSWORD: photos
|
||||||
MYSQL_ROOT_PASSWORD: writer
|
MYSQL_ROOT_PASSWORD: photos
|
||||||
|
|
||||||
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward MongoDB locally.
|
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward MongoDB locally.
|
||||||
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { AuthScreen } from "~Auth/AuthScreen";
|
|||||||
import { requireAuth } from "~Auth/AuthWrapper";
|
import { requireAuth } from "~Auth/AuthWrapper";
|
||||||
import { Home } from "~Home/Home";
|
import { Home } from "~Home/Home";
|
||||||
|
|
||||||
export function AppComponent(props: RouteComponentProps) {
|
export const AppComponent: React.FunctionComponent<RouteComponentProps> = () => {
|
||||||
return (
|
return (
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/signup" component={AuthScreen} />,
|
<Route path="/signup" component={AuthScreen} />,
|
||||||
@@ -12,6 +12,6 @@ export function AppComponent(props: RouteComponentProps) {
|
|||||||
<Route path="/" component={requireAuth(Home)} />,
|
<Route path="/" component={requireAuth(Home)} />,
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export const App = withRouter(AppComponent);
|
export const App = withRouter(AppComponent);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export const AppToaster = Toaster.create({
|
|||||||
position: Position.TOP,
|
position: Position.TOP,
|
||||||
});
|
});
|
||||||
|
|
||||||
export function showPasswordSavedToast() {
|
export function showPasswordSavedToast(): void {
|
||||||
AppToaster.show({
|
AppToaster.show({
|
||||||
message: "Password saved!",
|
message: "Password saved!",
|
||||||
intent: "success",
|
intent: "success",
|
||||||
@@ -13,7 +13,7 @@ export function showPasswordSavedToast() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function showPasswordNotSavedToast(error: string) {
|
export function showPasswordNotSavedToast(error: string): void {
|
||||||
AppToaster.show({
|
AppToaster.show({
|
||||||
message: "Password not saved! " + error,
|
message: "Password not saved! " + error,
|
||||||
intent: "danger",
|
intent: "danger",
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
|
|||||||
minimal={true}
|
minimal={true}
|
||||||
onClick={() => this.props.history.push("/")}
|
onClick={() => this.props.history.push("/")}
|
||||||
>
|
>
|
||||||
Writer
|
Photos
|
||||||
</Button>
|
</Button>
|
||||||
<Navbar.Divider />
|
<Navbar.Divider />
|
||||||
</Navbar.Group>
|
</Navbar.Group>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export function LandingComponent(props: RouteComponentProps) {
|
|||||||
<>
|
<>
|
||||||
<Navbar>
|
<Navbar>
|
||||||
<Navbar.Group align={Alignment.LEFT}>
|
<Navbar.Group align={Alignment.LEFT}>
|
||||||
<Navbar.Heading>Writer</Navbar.Heading>
|
<Navbar.Heading>Photos</Navbar.Heading>
|
||||||
<Navbar.Divider />
|
<Navbar.Divider />
|
||||||
</Navbar.Group>
|
</Navbar.Group>
|
||||||
<Navbar.Group align={Alignment.RIGHT}>
|
<Navbar.Group align={Alignment.RIGHT}>
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
||||||
|
|
||||||
<link
|
<head>
|
||||||
href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext"
|
<meta charset="UTF-8" />
|
||||||
rel="stylesheet"
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
/>
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
|
|
||||||
<title>Writer</title>
|
<link
|
||||||
</head>
|
href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext"
|
||||||
|
rel="stylesheet" />
|
||||||
|
|
||||||
<body>
|
<title>Photos</title>
|
||||||
<div id="body"></div>
|
</head>
|
||||||
<script src="./index.tsx"></script>
|
|
||||||
</body>
|
<body>
|
||||||
</html>
|
<div id="body"></div>
|
||||||
|
<script src="./index.tsx"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
export function flushPromises() {
|
export function flushPromises(): Promise<unknown> {
|
||||||
return new Promise(setImmediate);
|
return new Promise(setImmediate);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
"lint-frontend-fix": "cd frontend && npm run lint-fix",
|
"lint-frontend-fix": "cd frontend && npm run lint-fix",
|
||||||
"lint-all": "npm run lint && npm run lint-frontend",
|
"lint-all": "npm run lint && npm run lint-frontend",
|
||||||
"lint-all-fix": "npm run lint-fix && npm run lint-frontend-fix",
|
"lint-all-fix": "npm run lint-fix && npm run lint-frontend-fix",
|
||||||
"prettier-check": "prettier src/** --check && prettier frontend/src/** --check",
|
"prettier-check": "prettier src/**/*.ts frontend/src/**/*.ts frontend/src/**/*.tsx --check",
|
||||||
"prettify": "prettier src/** --write && prettier frontend/src/** --write"
|
"prettify": "prettier src/**/*.ts frontend/src/**/*.ts frontend/src/**/*.tsx --write"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user