Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: npm audit --audit-level=high

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarcloud-github-action@v3
with:
projectBaseDir: frontend
env:
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mp.messaging.incoming.contact-in.dead-letter-queue.topic=contact-messages-dlq

# -------------> CONFIGURAÇÕES HTTP / CORS <-------------
quarkus.http.cors.enabled=true
quarkus.http.cors.origins=http://localhost:5173/, https://flima.dev/
quarkus.http.cors.origins=http://localhost:5173,https://flima.dev
quarkus.http.cors.methods=GET,PUT,POST,DELETE
quarkus.http.cors.headers=accept, authorization, content-type, x-requested-with
quarkus.http.cors.access-control-max-age=24h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ CREATE TYPE role_enum AS ENUM ('OWNER');
CREATE TABLE contents (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
section_type section_type_enum NOT NULL,
title VARCHAR(255) NOT NULL CHECK (trim(title) <> ''),
subtitle VARCHAR(255) NOT NULL CHECK (trim(title) <> '')
title VARCHAR(255) NOT NULL CHECK (length(trim(title)) > 0),
subtitle VARCHAR(255) NOT NULL CHECK (length(trim(subtitle)) > 0)
);

CREATE TABLE educations (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
education_type education_type_enum NOT NULL,
degree VARCHAR(255) NOT NULL CHECK (trim(degree) <> ''),
title VARCHAR(255) NOT NULL CHECK (trim(title) <> ''),
institution VARCHAR(255) NOT NULL CHECK (trim(institution) <> ''),
period VARCHAR(100) NOT NULL CHECK (trim(period) <> ''),
specialization VARCHAR(255) NOT NULL CHECK (trim(specialization) <> '')
degree VARCHAR(255) NOT NULL CHECK (length(trim(degree)) > 0),
title VARCHAR(255) NOT NULL CHECK (length(trim(title)) > 0),
institution VARCHAR(255) NOT NULL CHECK (length(trim(institution)) > 0),
period VARCHAR(100) NOT NULL CHECK (length(trim(period)) > 0),
specialization VARCHAR(255) NOT NULL CHECK (length(trim(specialization)) > 0)
);

CREATE TABLE education_skills (
education_id UUID NOT NULL,
skill VARCHAR(150) NOT NULL CHECK (trim(skill) <> ''),
skill VARCHAR(150) NOT NULL CHECK (length(trim(skill)) > 0),

PRIMARY KEY (education_id, skill),

Expand All @@ -38,7 +38,7 @@ CREATE TABLE education_skills (

CREATE TABLE education_architectures (
education_id UUID NOT NULL,
architecture VARCHAR(150) NOT NULL CHECK (trim(architecture) <> ''),
architecture VARCHAR(150) NOT NULL CHECK (length(trim(architecture)) > 0),

PRIMARY KEY (education_id, architecture),

Expand All @@ -50,15 +50,15 @@ CREATE TABLE education_architectures (

CREATE TABLE experiences (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
title VARCHAR(255) NOT NULL CHECK (trim(title) <> ''),
company VARCHAR(255) NOT NULL CHECK (trim(company) <> ''),
period VARCHAR(100) NOT NULL CHECK (trim(period) <> ''),
icon VARCHAR(50) NOT NULL CHECK (trim(icon) <> '')
title VARCHAR(255) NOT NULL CHECK (length(trim(title)) > 0),
company VARCHAR(255) NOT NULL CHECK (length(trim(company)) > 0),
period VARCHAR(100) NOT NULL CHECK (length(trim(period)) > 0),
icon VARCHAR(50) NOT NULL CHECK (length(trim(icon)) > 0)
);

CREATE TABLE experience_bullets (
experience_id UUID NOT NULL,
bullet VARCHAR(150) NOT NULL CHECK (trim(bullet) <> ''),
bullet VARCHAR(150) NOT NULL CHECK (length(trim(bullet)) > 0),

PRIMARY KEY (experience_id, bullet),

Expand All @@ -70,7 +70,7 @@ CREATE TABLE experience_bullets (

CREATE TABLE experience_technologies (
experience_id UUID NOT NULL,
technology VARCHAR(150) NOT NULL CHECK (trim(technology) <> ''),
technology VARCHAR(150) NOT NULL CHECK (length(trim(technology)) > 0),

PRIMARY KEY (experience_id, technology),

Expand All @@ -82,26 +82,26 @@ CREATE TABLE experience_technologies (

CREATE TABLE messages (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
username VARCHAR(150) NOT NULL CHECK (trim(username) <> ''),
email VARCHAR(255) NOT NULL CHECK (trim(email) <> '') CHECK (position('@' in email) > 1),
subject VARCHAR(255) NOT NULL CHECK (trim(subject) <> ''),
message TEXT NOT NULL CHECK (trim(message) <> ''),
username VARCHAR(150) NOT NULL CHECK (length(trim(username)) > 0),
email VARCHAR(255) NOT NULL CHECK (length(trim(email)) > 0) CHECK (position('@' in email) > 1),
subject VARCHAR(255) NOT NULL CHECK (length(trim(subject)) > 0),
message TEXT NOT NULL CHECK (length(trim(message)) > 0),
timestamp TIMESTAMP NOT NULL,
status_message status_message_enum NOT NULL
);

CREATE TABLE projects (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
title VARCHAR(255) NOT NULL CHECK (trim(title) <> ''),
subtitle VARCHAR(255) NOT NULL CHECK (trim(subtitle) <> ''),
description VARCHAR(255) NOT NULL CHECK (trim(description) <> ''),
title VARCHAR(255) NOT NULL CHECK (length(trim(title)) > 0),
subtitle VARCHAR(255) NOT NULL CHECK (length(trim(subtitle)) > 0),
description VARCHAR(255) NOT NULL CHECK (length(trim(description)) > 0),
codeSnippet VARCHAR(200),
icon VARCHAR(50)
);

CREATE TABLE project_technologies (
project_id UUID NOT NULL,
technology VARCHAR(150) NOT NULL CHECK (trim(technology) <> ''),
technology VARCHAR(150) NOT NULL CHECK (length(trim(technology)) > 0),

PRIMARY KEY (project_id, technology),

Expand All @@ -118,7 +118,7 @@ CREATE TABLE stacks (

CREATE TABLE stack_technologies (
stack_id UUID NOT NULL,
technology VARCHAR(150) NOT NULL CHECK (trim(technology) <> ''),
technology VARCHAR(150) NOT NULL CHECK (length(trim(technology)) > 0),

PRIMARY KEY (stack_id, technology),

Expand All @@ -130,22 +130,22 @@ CREATE TABLE stack_technologies (

CREATE TABLE stats (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
yearsExperience VARCHAR(10) NOT NULL CHECK (trim(yearsExperience) <> ''),
systemDeployed VARCHAR(10) NOT NULL CHECK (trim(systemDeployed) <> ''),
uptimeSLA VARCHAR(15) NOT NULL CHECK (trim(uptimeSLA) <> ''),
commitsLogged VARCHAR(10) NOT NULL CHECK (trim(commitsLogged) <> ''),
status VARCHAR(10) NOT NULL CHECK (trim(status) <> ''),
objective VARCHAR(10) NOT NULL CHECK (trim(objective) <> '')
yearsExperience VARCHAR(10) NOT NULL CHECK (length(trim(yearsExperience)) > 0),
systemDeployed VARCHAR(10) NOT NULL CHECK (length(trim(systemDeployed)) > 0),
uptimeSLA VARCHAR(15) NOT NULL CHECK (length(trim(uptimeSLA)) > 0),
commitsLogged VARCHAR(10) NOT NULL CHECK (length(trim(commitsLogged)) > 0),
status VARCHAR(10) NOT NULL CHECK (length(trim(status)) > 0),
objective VARCHAR(10) NOT NULL CHECK (length(trim(objective)) > 0)
);

CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
username VARCHAR(15) UNIQUE NOT NULL CHECK (trim(username) <> ''),
name VARCHAR(15) NOT NULL CHECK (trim(name) <> ''),
last_name VARCHAR(15) NOT NULL CHECK (trim(last_name) <> ''),
email VARCHAR(255) UNIQUE NOT NULL CHECK (trim(email) <> '') CHECK (position('@' in email) > 1),
username VARCHAR(15) UNIQUE NOT NULL CHECK (length(trim(username)) > 0),
name VARCHAR(15) NOT NULL CHECK (length(trim(name)) > 0),
last_name VARCHAR(15) NOT NULL CHECK (length(trim(last_name)) > 0),
email VARCHAR(255) UNIQUE NOT NULL CHECK (length(trim(email)) > 0) CHECK (position('@' in email) > 1),
role role_enum NOT NULL,
password VARCHAR(255) NOT NULL CHECK (trim(password) <> '')
password VARCHAR(255) NOT NULL CHECK (length(trim(password)) > 0)
);

-- Índices
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>tmp-app</title>
<title>flima.dev</title>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tmp-app",
"name": "flima.dev",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
3 changes: 3 additions & 0 deletions frontend/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 4 additions & 7 deletions frontend/src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ export default function Footer() {
</div>
<div className="flex gap-6 font-mono text-[10px] uppercase tracking-widest text-slate-600">
<a className="hover:text-white transition-opacity duration-300 relative group" href="https://github.com/devflima" target="_blank" rel="noopener noreferrer">
GitHub
<span className="absolute -top-6 left-0 hidden group-hover:block bg-surface border border-outline-variant px-2 py-1 text-primary-container">git: [devflima]</span>
<span>GitHub</span><span className="absolute -top-6 left-0 hidden group-hover:block bg-surface border border-outline-variant px-2 py-1 text-primary-container">git: [devflima]</span>
</a>
<a className="hover:text-white transition-opacity duration-300 relative group" href="https://www.linkedin.com/in/felipe-lima-19873a14b/" target="_blank" rel="noopener noreferrer">
LinkedIn
<span className="absolute -top-6 left-0 hidden group-hover:block bg-surface border border-outline-variant px-2 py-1 text-primary-container">in: [felipe-lima]</span>
<span>LinkedIn</span><span className="absolute -top-6 left-0 hidden group-hover:block bg-surface border border-outline-variant px-2 py-1 text-primary-container">in: [felipe-lima]</span>
</a>
<a className="hover:text-white transition-opacity duration-300 relative group" href="mailto:contato@flima.dev">
Email
<span className="absolute -top-6 left-0 hidden group-hover:block bg-surface border border-outline-variant px-2 py-1 text-primary-container">mail: [contato]</span>
<span>Email</span><span className="absolute -top-6 left-0 hidden group-hover:block bg-surface border border-outline-variant px-2 py-1 text-primary-container">mail: [contato]</span>
</a>
<span className="hover:text-white transition-opacity duration-300 border-l border-slate-800 pl-6 flex items-center gap-2">
<div className="w-1.5 h-1.5 rounded-full bg-[#00FF41]"></div>
Status: Operational
<span>Status: Operational</span>
</span>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Link, useLocation } from 'react-router-dom';
import logo from '../assets/logo.svg';

export default function Navbar() {
const location = useLocation();
Expand All @@ -18,7 +17,7 @@ export default function Navbar() {
<div className="flex justify-between items-center px-12 h-16 w-full max-w-[1440px] mx-auto">
<div className="text-xl font-black text-[#00FF41] tracking-widest font-mono">
<Link to="/">
<img src={logo} alt="logo" className="h-8 w-auto" />
<img src="/logo.svg" alt="logo" className="h-8 w-auto" />
</Link>
</div>
<div className="hidden md:flex gap-8 items-center font-mono uppercase tracking-tighter text-sm">
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const API_URL = import.meta.env.VITE_API_URL
? import.meta.env.VITE_API_URL
: (import.meta.env.MODE === 'test' ? 'http://localhost:8080' : '');
const envApiUrl = import.meta.env.VITE_API_URL;
const isTestMode = import.meta.env.MODE === 'test';

export const API_URL = envApiUrl || (isTestMode ? 'http://localhost:8080' : 'http://localhost:8080');

Check warning on line 4 in frontend/src/config.js

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This conditional operation returns the same value whether the condition is "true" or "false".

See more on https://sonarcloud.io/project/issues?id=devflima_flima.dev_frontend&issues=AZ3_0-n5HqY3wMsHg7vk&open=AZ3_0-n5HqY3wMsHg7vk&pullRequest=18
2 changes: 1 addition & 1 deletion frontend/src/pages/Admin/AdminLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function AdminLayout() {
<div className="bg-surface-container border border-surface-container-highest p-6 sticky top-32">
<div className="font-label-mono text-primary-container border-b border-surface-container-highest pb-4 mb-6 flex items-center gap-2">
<span className="material-symbols-outlined text-[18px]">admin_panel_settings</span>
ADMIN_CONSOLE
<span>ADMIN_CONSOLE</span>
</div>
<nav className="flex flex-col gap-2">
{adminLinks.map((link) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Admin/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Dashboard() {
<div className="space-y-8">
<h2 className="font-headline-md text-headline-md text-on-surface mb-6 border-b border-surface-container-highest pb-2 flex items-center gap-2">
<span className="material-symbols-outlined text-primary-container">dashboard</span>
System Telemetry
<span>System Telemetry</span>
</h2>

{/* Stats Cards */}
Expand Down
Loading
Loading