-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from klntsky/vishtar/features
Rate notifications, postgresql in a docker container
- Loading branch information
Showing
142 changed files
with
18,761 additions
and
5,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
env_file: | ||
- .env | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- ./data/postgres:/var/lib/postgresql/data/ | ||
|
||
rabbitmq: | ||
image: rabbitmq:3 | ||
hostname: rabbitmq | ||
container_name: ton2x-rabbitmq | ||
restart: unless-stopped | ||
ports: | ||
- 5673:5673 | ||
environment: | ||
- RABBITMQ_NODE_PORT=5673 | ||
volumes: | ||
- ./data/rabbitmq:/var/lib/rabbitmq/mnesia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import process from 'process'; | ||
import 'dotenv/config' | ||
import { defineConfig } from 'drizzle-kit'; | ||
|
||
export default defineConfig({ | ||
schema: './src/db/schema/index.ts', | ||
out: './src/db/migrations', | ||
dialect: 'postgresql', | ||
dbCredentials: { | ||
url: 'file://data/postgresql', | ||
host: process.env.POSTGRES_HOST, | ||
port: Number(process.env.POSTGRES_PORT), | ||
user: process.env.POSTGRES_USER, | ||
password: process.env.POSTGRES_PASSWORD, | ||
database: process.env.POSTGRES_DATABASE!, | ||
}, | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ButtonHTMLAttributes } from 'react' | ||
import s from './style.module.css' | ||
|
||
export const Button = (props: ButtonHTMLAttributes<HTMLButtonElement>) => { | ||
return ( | ||
<button | ||
{...props} | ||
className={[s.primaryButton, s.className].join(' ')} | ||
></button> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.primaryButton { | ||
background-color: #0093ff; | ||
border: none; | ||
border-radius: 20px; | ||
color: white; | ||
padding: 10px 20px; | ||
font-size: 16px; | ||
cursor: pointer; | ||
transition: background-color 0.3s; | ||
font-weight: 520; | ||
width: fit-content; | ||
height: fit-content; | ||
} | ||
|
||
.primaryButton:hover { | ||
background-color: #007acc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.charts { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import s from './styles.module.css' | ||
|
||
export const Loader = () => { | ||
return <div className={s.loader}></div> | ||
return ( | ||
<div className={s.loader}> | ||
<img src={'./logo_80x80.png'} alt="Logo" className={s.logo} /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
.loader { | ||
width: 45px; | ||
aspect-ratio: 0.75; | ||
--c: no-repeat linear-gradient(#2c2594 0 0); | ||
background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%; | ||
background-size: 20% 50%; | ||
animation: l6 1s infinite linear; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 80px; | ||
overflow: hidden; | ||
position: relative; | ||
} | ||
@keyframes l6 { | ||
20% { | ||
background-position: 0% 0%, 50% 50%, 100% 50%; | ||
} | ||
40% { | ||
background-position: 0% 100%, 50% 0%, 100% 50%; | ||
} | ||
60% { | ||
background-position: 0% 50%, 50% 100%, 100% 0%; | ||
|
||
.logo { | ||
width: 100%; | ||
height: auto; | ||
animation: pulse 1.5s infinite ease-in-out; | ||
} | ||
|
||
@keyframes pulse { | ||
0%, 100% { | ||
opacity: 1; | ||
transform: scale(0.9); | ||
} | ||
80% { | ||
background-position: 0% 50%, 50% 50%, 100% 100%; | ||
50% { | ||
opacity: 0.5; | ||
transform: scale(1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { Button } from './Button' | ||
export { Charts } from './Charts' | ||
export { Loader } from './Loader' |
Oops, something went wrong.