Skip to content

Commit 7849d3b

Browse files
committed
Updates
0 parents  commit 7849d3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+281
-0
lines changed

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/apps/admin"
5+
schedule:
6+
interval: "weekly"
7+
8+
- package-ecosystem: "npm"
9+
directory: "/apps/web"
10+
schedule:
11+
interval: "weekly"
12+
13+
- package-ecosystem: "npm"
14+
directory: "/apps/api"
15+
schedule:
16+
interval: "weekly"
17+
18+
- package-ecosystem: "npm"
19+
directory: "/"
20+
schedule:
21+
interval: "weekly"

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Tests at Web and Api
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
Tests:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v1
18+
with:
19+
bun-version: 'latest'
20+
21+
22+
- name: Install dependencies
23+
run: bun install
24+
25+
- name: Run tests
26+
run: bun test

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
**/node_modules
12+
13+
dist
14+
dist-ssr
15+
*.local
16+
17+
# Editor directories and files
18+
.vscode/*
19+
.vs
20+
!.vscode/extensions.json
21+
.idea
22+
.DS_Store
23+
*.suo
24+
*.ntvs*
25+
*.njsproj
26+
*.sln
27+
*.sw?
28+
29+
**/.env
30+
**/.env.production
31+
32+
*-*.key
33+
34+
.env
35+
.env.production
36+
/build.zip
37+
38+
coverage
39+
40+
# Added by cargo
41+
42+
/target
43+
/Cargo.lock
44+
/apps/web/build.zip

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bun test && bun run checkAll

apps/api/.env.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# .env создавать в корне
2+
3+
# Адрес сервера дневника
4+
SERVER_URL='https://poo.tomedu.ru'
5+
6+
# Порт этого сервера
7+
#PORT=3003 # по умолчанию 3003
8+
9+
# База данных
10+
DATABASE_HOST='youHost'
11+
DATABASE_PORT=5432
12+
DATABASE_NAME='databaseName'
13+
DATABASE_USERNAME='user'
14+
DATABASE_PASSWORD='password'
15+
ENCRYPT_KEY='MySuperPassword!MySuperPassword!'
16+
17+
POSTGRES_USER=postgres
18+
POSTGRES_PW=postgres
19+
POSTGRES_DB=diary

apps/api/.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
/dist
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# env files
29+
.env
30+
.env.local
31+
.env.development.local
32+
.env.test.local
33+
.env.production.local
34+
35+
# vercel
36+
.vercel
37+
38+
**/*.trace
39+
**/*.zip
40+
**/*.tar.gz
41+
**/*.tgz
42+
**/*.log
43+
package-lock.json
44+
**/*.bun
45+
46+
# IDE files
47+
/.idea
48+

apps/web/.env.development

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
VITE_SERVER_URLS=http://localhost:3003,http://127.0.0.1:3003
2+
VITE_SERVER_URL=http://localhost:3003
3+
# http://localhost:3003,http://127.0.0.1:3003,
4+
VITE_MODE=dev
5+
VITE_NODE_ENV=development
6+
NODE_ENV=development
7+
8+
VITE_ADMIN_PAGE_URL=http://localhost:5174/
9+
10+
VITE_BETA_VERSION=3.0.0
11+
# main 51740302
12+
# test 51723411

apps/web/.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
VITE_SERVER_URLS=http://localhost:3003,http://127.0.0.1:3003
2+
VITE_SERVER_URL=http://localhost:3003
3+
4+
VITE_MODE=dev
5+
VITE_NODE_ENV=development
6+
NODE_ENV=development
7+
8+
VITE_ADMIN_PAGE_URL=http://localhost:5174/
9+
10+
VITE_BETA_VERSION=3.0.0

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<!-- <script type="module" src="src/main.tsx"></script>-->
5+
<meta charset="UTF-8" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
9+
/>
10+
<title>Дневник</title>
11+
<script defer src="/static/js/lib-react.2151567b.js"></script><script defer src="/static/js/lib-router.47cf0d09.js"></script><script defer src="/static/js/544.5d28b867.js"></script><script defer src="/static/js/index.13cf1ab5.js"></script><link href="/static/css/544.bbab68e2.css" rel="stylesheet"><link href="/static/css/index.56c6c750.css" rel="stylesheet"></head>
12+
<body>
13+
<div id="app"></div>
14+
</body>
15+
</html>

static/css/544.bbab68e2.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/async/274.5b6998a2.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/async/402.30c233fb.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/async/5.7fc6f03e.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/async/657.7fd03af8.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/async/92.8c9a24db.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.footer{justify-content:center;align-items:center;display:flex}.footerSubheader{margin-right:5px}

static/css/index.56c6c750.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/image/diary-ava.0a24d51d.png

91 KB
Loading

static/image/winx48.a28f6aa3.webp

10.2 KB
Binary file not shown.

static/js/544.5d28b867.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/async/274.2b664c51.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)