refactor: remove Playwright dependencies and configuration, update test cases, and clean up code formatting
- Removed Playwright test dependencies from package.json and deleted playwright.config.ts. - Updated LoginForm component and its tests for improved readability and consistency. - Cleaned up App.vue and PublicLayout.vue by adjusting import formatting. - Fixed missing newlines in CSS and other files for better formatting. - Updated userStore to ensure proper object syntax. - Refactored LoginView to enhance code clarity and maintainability.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /repo
|
||||
|
||||
COPY Directory.Build.props .
|
||||
COPY global.json .
|
||||
COPY src/Directory.Build.props src/
|
||||
COPY src/Directory.Packages.props src/
|
||||
|
||||
COPY src/FiscalOS.Core/FiscalOS.Core.csproj src/FiscalOS.Core/
|
||||
COPY src/FiscalOS.Infra/FiscalOS.Infra.csproj src/FiscalOS.Infra/
|
||||
COPY src/FiscalOS.ServiceDefaults/FiscalOS.ServiceDefaults.csproj src/FiscalOS.ServiceDefaults/
|
||||
COPY src/FiscalOS.API/FiscalOS.API.csproj src/FiscalOS.API/
|
||||
COPY src/FiscalOS.AdminCLI/FiscalOS.AdminCLI.csproj src/FiscalOS.AdminCLI/
|
||||
|
||||
RUN dotnet restore src/FiscalOS.API/FiscalOS.API.csproj && \
|
||||
dotnet restore src/FiscalOS.AdminCLI/FiscalOS.AdminCLI.csproj
|
||||
|
||||
COPY src/ src/
|
||||
|
||||
RUN dotnet publish src/FiscalOS.API/FiscalOS.API.csproj \
|
||||
-c Release \
|
||||
-o /publish/api \
|
||||
--no-restore && \
|
||||
dotnet publish src/FiscalOS.AdminCLI/FiscalOS.AdminCLI.csproj \
|
||||
-c Release \
|
||||
-o /publish/admincli \
|
||||
--no-restore
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /publish/api .
|
||||
COPY --from=build /publish/admincli /usr/local/lib/admincli
|
||||
|
||||
ENV PATH="/usr/local/lib/admincli:${PATH}"
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["dotnet", "FiscalOS.API.dll"]
|
||||
@@ -0,0 +1,13 @@
|
||||
FROM node:24-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY src/FiscalOS.Web/package.json src/FiscalOS.Web/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY src/FiscalOS.Web/ .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine AS final
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
web:
|
||||
image: ${DOCKERHUB_USERNAME}/fiscalos-web:${IMAGE_TAG:-latest}
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- api
|
||||
restart: unless-stopped
|
||||
|
||||
api:
|
||||
image: ${DOCKERHUB_USERNAME}/fiscalos-api:${IMAGE_TAG:-latest}
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- AppDbContextOptions__DatabaseFilePath=/data/fiscalos.db
|
||||
- JwtOptions__Audience=${JWT_AUDIENCE}
|
||||
- JwtOptions__Issuer=${JWT_ISSUER}
|
||||
- JwtOptions__Secret=${JWT_SECRET}
|
||||
- JwtOptions__ExpiryInMinutes=${JWT_EXPIRY_IN_MINUTES}
|
||||
- FileKeyRingOptions__KeysDirectoryPath=/keys
|
||||
- FileKeyRingOptions__PrimaryKeyId=${FILE_KEY_RING_PRIMARY_KEY_ID}
|
||||
- PlaidClientOptions__ClientId=${PLAID_CLIENT_ID}
|
||||
- PlaidClientOptions__Secret=${PLAID_SECRET}
|
||||
- PlaidClientOptions__Webhook=${PLAID_WEBHOOK}
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./keys:/keys
|
||||
restart: unless-stopped
|
||||
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.web
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- api
|
||||
restart: unless-stopped
|
||||
|
||||
api:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.api
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- AppDbContextOptions__DatabaseFilePath=/data/fiscalos.db
|
||||
- JwtOptions__Audience=${JWT_AUDIENCE}
|
||||
- JwtOptions__Issuer=${JWT_ISSUER}
|
||||
- JwtOptions__Secret=${JWT_SECRET}
|
||||
- JwtOptions__ExpiryInMinutes=${JWT_EXPIRY_IN_MINUTES}
|
||||
- FileKeyRingOptions__KeysDirectoryPath=/keys
|
||||
- FileKeyRingOptions__PrimaryKeyId=${FILE_KEY_RING_PRIMARY_KEY_ID}
|
||||
- PlaidClientOptions__ClientId=${PLAID_CLIENT_ID}
|
||||
- PlaidClientOptions__Secret=${PLAID_SECRET}
|
||||
- PlaidClientOptions__Webhook=${PLAID_WEBHOOK}
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./keys:/keys
|
||||
restart: unless-stopped
|
||||
@@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://api:8080/;
|
||||
proxy_http_version 1.1;
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user