Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ba4c2ab
fix linter
andrey57x Dec 3, 2025
ad4b419
fix config
andrey57x Dec 3, 2025
ea88bce
remove second /api from path
andrey57x Dec 3, 2025
18eef5c
another remove
andrey57x Dec 3, 2025
ea718b9
minor fix
andrey57x Dec 3, 2025
a8bd88e
enable HTTPS
andrey57x Dec 3, 2025
240dc94
image optimization
andrey57x Dec 3, 2025
3b58c53
add missing dependancies
andrey57x Dec 3, 2025
82fde70
minio path fix
andrey57x Dec 3, 2025
d57b51a
another minio fix
andrey57x Dec 3, 2025
bcc582a
final minio fix
andrey57x Dec 3, 2025
a9bb0bd
nginx ip resolve fix
andrey57x Dec 14, 2025
60ca0bf
hotfix
andrey57x Dec 14, 2025
01e7c21
fix linter errors
Diwix6 Dec 14, 2025
bfb34a8
hide not working elements
Diwix6 Dec 14, 2025
84f69cd
Add PostCSS + serviceworker + small CSS fixes
Diwix6 Dec 15, 2025
57571a7
add service worker + PWA
Diwix6 Dec 15, 2025
c3b558d
after commit
andrey57x Dec 15, 2025
0040859
fix url to exportPDF
Diwix6 Dec 15, 2025
8c956f5
fix closing choose icon windows
Diwix6 Dec 15, 2025
bbc6fb5
fix icons
andrey57x Dec 15, 2025
bb595bd
file limit set
andrey57x Dec 15, 2025
3a619db
many icons fix
andrey57x Dec 15, 2025
5918e51
fix button "удалить"
Diwix6 Dec 15, 2025
2c2774b
Merge branch 'rk4' of github.com:frontend-park-mail-ru/2025_2_FiveCod…
Diwix6 Dec 15, 2025
f7099b7
fixes
andrey57x Dec 16, 2025
2bcd82e
lintex fix
andrey57x Dec 16, 2025
bade6bd
ws fix
andrey57x Dec 17, 2025
87b99a0
dark style fix
andrey57x Dec 17, 2025
c196d99
fix triangle angle
Diwix6 Dec 17, 2025
350436a
registration validation fix
andrey57x Dec 17, 2025
42053cd
Merge branch 'rk4' of github.com:frontend-park-mail-ru/2025_2_FiveCod…
andrey57x Dec 17, 2025
2998908
left menu fixes
andrey57x Dec 18, 2025
f7c67a4
image upload extend
andrey57x Dec 18, 2025
d2fdc60
add note cover
Diwix6 Dec 18, 2025
5b2fef5
Merge branch 'rk4' of github.com:frontend-park-mail-ru/2025_2_FiveCod…
Diwix6 Dec 18, 2025
1ce643f
fix sw. CAUTION: if you have loop refershing try to delete old cache.
Diwix6 Dec 18, 2025
5e8dc3b
add offline mode. Now user can read notes in offline mode from cache
Diwix6 Dec 19, 2025
f0a5b4c
add noteHeader. + start to refactor note page
Diwix6 Dec 19, 2025
fe4d2d4
finished note header
Diwix6 Dec 19, 2025
04eb62e
Fix header + sum small fixes
Diwix6 Dec 20, 2025
1b76498
add semicolon om apiclient
Diwix6 Dec 20, 2025
20c2f84
small fixes + add copy button
Diwix6 Dec 20, 2025
40a62ae
fix header
Diwix6 Dec 20, 2025
47e3b9a
small css fixes
Diwix6 Dec 20, 2025
d077a15
header possible fix
andrey57x Dec 20, 2025
512f0f9
lint fix
andrey57x Dec 20, 2025
6cb50e3
notes container margin fix
andrey57x Dec 20, 2025
f06de6b
link home fix
andrey57x Dec 20, 2025
12d2686
fix mobile version
Diwix6 Dec 20, 2025
918a3a8
favorite css fix
Diwix6 Dec 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"env": { "browser": true, "es2021": true },
"extends": "eslint:recommended",
"extends": ["eslint:recommended",
"plugin:@typescript-eslint/recommended"],
"parserOptions": { "ecmaVersion": 12, "sourceType": "module" },
"rules": {
"no-unused-vars": ["warn"],
"no-console": ["off"],
"semi": ["error","always"]
}
"semi": ["error","always"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-case-declarations": "off" }
}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM node:22-alpine AS builder

WORKDIR /app

RUN apk add --no-cache autoconf automake libtool make tiff jpeg zlib zlib-dev pkgconf nasm file gcc musl-dev

COPY package.json package-lock.json ./
RUN npm ci

Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#3399FF">

</head>
<body>
Expand Down
88 changes: 84 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,94 @@
server {
listen 80;
server_name goose-notes.duckdns.org;
# return 301 https://$host$request_uri;

location /.well-known/acme-challenge/ {
root /var/www/certbot;
}

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl http2;
server_name goose-notes.duckdns.org;

client_max_body_size 55M;

ssl_certificate /etc/letsencrypt/live/goose-notes.duckdns.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/goose-notes.duckdns.org/privkey.pem;

resolver 127.0.0.11 valid=30s;

ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;

gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;

root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;

location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, no-transform";
}

location /api/ws/ {
set $upstream_gateway http://gateway:8080;
proxy_pass $upstream_gateway;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_read_timeout 86400s;
proxy_send_timeout 86400s;

expires 1y;
add_header Cache-Control "public, no-transform";
}

location ^~ /storage/ {
set $upstream_minio http://minio:9000;
rewrite ^/storage/(.*) /$1 break;
proxy_pass $upstream_minio;

proxy_set_header Host minio:9000;

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_http_version 1.1;
proxy_set_header Connection "";
}

location /api/ {
proxy_pass http://gateway:8080;
set $upstream_gateway http://gateway:8080;
proxy_pass $upstream_gateway;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

location / {
try_files $uri $uri/ /index.html;
}
}
Loading