Skip to content

Commit

Permalink
feat(frontend): add optimized avatars directly; further cleanup and u…
Browse files Browse the repository at this point in the history
…pdates
  • Loading branch information
dr460nf1r3 committed Jan 3, 2025
1 parent 0644b49 commit 95f9be4
Show file tree
Hide file tree
Showing 21 changed files with 282 additions and 389 deletions.
16 changes: 3 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
# Compiled output
dist
tmp
**.js
out-tsc

# dependencies
# Dependencies
node_modules

# IDEs and editors
Expand All @@ -16,7 +16,6 @@ node_modules
.c9/
*.launch
.settings
*.sublime-workspace

# IDE - VSCode
.vscode/*
Expand All @@ -25,23 +24,15 @@ node_modules
!.vscode/launch.json
!.vscode/extensions.json

# misc
# Misc
.angular
.direnv
.github
.nx
.vscode
.sass-cache
connect.lock
coverage
libpeerconnection.log
typings
core
db
npm-debug.log
repos
testem.log
yarn-error.log

# System Files
.DS_Store
Expand All @@ -55,4 +46,3 @@ Thumbs.db
.env
.pre-commit-config.yaml
.wrangler
tdlib
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Monorepo for all Java-/Typescript projects of Chaotic-AUR. Includes:
- Part of repository management (.so lib bumps, up-to-date in-depth package data, etc..)
- Router stats
- Package, Router, Metrics API
- Extracting messages from a Telegram news channel to display on the website
- Chaotic-AURs website
- Smaller helper functions / API

Expand Down Expand Up @@ -45,13 +44,12 @@ This will allow using the production API without CORS issues.

## Tech Stack

- Angular
- Angular (PrimeNG, GarudaNG)
- NestJs (Fastify, Passport, TypeORM, Swagger)
- Nx (Monorepo management)
- Postgresql
- Redis
- TailwindCSS
- Telegram API
- TypeORM
- Typescript

Expand All @@ -63,9 +61,7 @@ This will allow using the production API without CORS issues.
- AUTH0_CLIENT_ID: Auth0 client id
- AUTH0_CLIENT_SECRET: Auth0 client secret
- AUTH0_DOMAIN: Auth0 domain
- CAUR_DEPLOY_LOG_ID: Telegram chat id for deploy logs
- CAUR_JWT_SECRET: JWT secret for the backend
- CAUR_NEWS_ID: Telegram chat id for news
- CAUR_TRUST_PROXY: IP address of the proxy, if any
- CAUR_USERS: JSON object with user ids and roles
- NODE_ENV: "production" / any other for dev (will enable TypeORM sync mode)
Expand All @@ -76,9 +72,6 @@ This will allow using the production API without CORS issues.
- REDIS_PASSWORD: Redis password to connect with the Chaotic Manager (Moleculer microservice)
- REDIS_SSH_HOST: Host of the Redis server, used for SSH port forwarding the Redis instance
- REDIS_SSH_USER: User to use for SSH port forwarding the Redis instance
- TELEGRAM_API_HASH: Telegram API hash
- TELEGRAM_API_ID: Telegram API id
- TELEGRAM_DB_ENCRYPTION_KEY: Encryption key for the Telegram database

## Database structure (as of November 2024)

Expand Down
7 changes: 0 additions & 7 deletions backend/src/config/telegram.config.ts

This file was deleted.

Binary file added frontend/public/assets/avatars/IslandC0der.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/JustTNE.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/PedroHLC.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/RustemB.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/SolarAquarion.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/alexjp.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/dr460nf1r3.webp
Binary file not shown.
Binary file not shown.
Binary file added frontend/public/assets/avatars/technetium1.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/thotypous.webp
Binary file not shown.
Binary file added frontend/public/assets/avatars/xiota.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/src/app/about/about.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Card } from 'primeng/card';
import { Accordion, AccordionContent, AccordionHeader, AccordionPanel } from 'primeng/accordion';
import { BreakpointObserver } from '@angular/cdk/layout';
import { TitleComponent } from '../title/title.component';
import { Meta, Title } from '@angular/platform-browser';
import { Meta } from '@angular/platform-browser';
import { Router } from '@angular/router';
import { updateSeoTags } from '../functions';

Expand Down Expand Up @@ -94,7 +94,7 @@ export class AboutComponent implements OnInit {
constructor() {
// Construct avatar URLs
for (const member of this.team) {
member.avatarUrl = `https://github.com/${member.github}.png`;
member.avatarUrl = `/assets/avatars/${member.github}.webp`;
}
}

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/environments/environment.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ export const environment: EnvironmentModel = {
mapUrl: 'https://status.chaotic.cx/map',
metricsUrl: 'https://metrics.chaotic.cx/',
mirrorsUrl: 'http://localhost:4200/router/mirrors.json',
newsId: '-1001293714071',
pkgUrl: 'https://cdn-mirror.chaotic.cx/chaotic-aur/x86_64/',
primaryKey: '3056513887B78AEB',
repoApiUrl: 'https://gitlab.com/api/v4/projects/54867625',
repoUrl: 'https://gitlab.com/chaotic-aur/pkgbuilds/-/tree/main/',
repoUrlGaruda: 'https://gitlab.com/garuda-linux/pkgbuilds/-/tree/main/',
tgApiUrl: 'http://localhost:4200/backend/telegram',
};
2 changes: 0 additions & 2 deletions frontend/src/environments/environment.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ export interface EnvironmentModel {
mapUrl: string;
metricsUrl: string;
mirrorsUrl: string;
newsId: string;
pkgUrl: string;
primaryKey: string;
repoApiUrl: string;
repoUrl: string;
repoUrlGaruda: string;
tgApiUrl: string;
}
2 changes: 0 additions & 2 deletions frontend/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ export const environment: EnvironmentModel = {
mapUrl: 'https://status.chaotic.cx/map',
metricsUrl: 'https://metrics.chaotic.cx/',
mirrorsUrl: 'https://status.chaotic.cx/mirrors.json',
newsId: '-1001293714071',
pkgUrl: 'https://cdn-mirror.chaotic.cx/chaotic-aur/x86_64/',
primaryKey: '3056513887B78AEB',
repoApiUrl: 'https://gitlab.com/api/v4/projects/54867625',
repoUrl: 'https://gitlab.com/chaotic-aur/pkgbuilds/-/tree/main/',
repoUrlGaruda: 'https://gitlab.com/garuda-linux/pkgbuilds/-/tree/main/',
tgApiUrl: 'https://builds.garudalinux.org/backend/telegram',
};
3 changes: 3 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const nxPreset = require('@nx/jest/preset').default;

module.exports = { ...nxPreset };
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"@fastify/helmet": "^11.1.1",
"@fastify/static": "^7.0.4",
"@garudalinux/core": "^0.2.0",
"@gitbeaker/core": "^41.3.0",
"@gitbeaker/rest": "^41.3.0",
"@gitbeaker/core": "^42.0.2",
"@gitbeaker/rest": "^42.0.2",
"@nestjs/axios": "^3.1.3",
"@nestjs/cache-manager": "^2.3.0",
"@nestjs/common": "^10.4.15",
Expand Down Expand Up @@ -128,12 +128,12 @@
"@types/cors": "^2.8.17",
"@types/crypto-js": "^4.2.2",
"@types/jest": "29.5.14",
"@types/node": "22.10.2",
"@types/node": "22.10.5",
"@types/passport-jwt": "^4.0.1",
"@types/passport-local": "^1.0.38",
"@typescript-eslint/eslint-plugin": "8.18.2",
"@typescript-eslint/parser": "8.18.2",
"@typescript-eslint/utils": "8.18.2",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"@typescript-eslint/utils": "^8.19.0",
"autoprefixer": "^10.4.20",
"esbuild": "^0.24.2",
"eslint": "^9.17.0",
Expand Down
Loading

0 comments on commit 95f9be4

Please sign in to comment.