From a975e2486b9a20ee7c5ff335be8118964de2fcb2 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Thu, 16 Jan 2025 07:41:05 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20Mudando=20nome=20do=20app=20de=20Hist?= =?UTF-8?q?=C3=B3rias=20M=C3=A1gicas=20para=20Leiturama?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/docker-build.yml | 8 ++++---- docker-compose.yml | 12 ++++++------ package.json | 4 ++-- portainer-stack.yml | 12 ++++++------ src/pages/landing/EducationalForParents.tsx | 8 ++++---- src/services/email.ts | 4 ++-- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 67485ca..1a35a4e 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -18,7 +18,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: seu-registry.com/historias-magicas + images: seu-registry.com/leiturama tags: | type=ref,event=branch type=ref,event=pr @@ -43,8 +43,8 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=seu-registry.com/historias-magicas:buildcache - cache-to: type=registry,ref=seu-registry.com/historias-magicas:buildcache,mode=max + cache-from: type=registry,ref=seu-registry.com/leiturama:buildcache + cache-to: type=registry,ref=seu-registry.com/leiturama:buildcache,mode=max - name: Update Portainer stack if: github.ref == 'refs/heads/main' @@ -55,4 +55,4 @@ jobs: key: ${{ secrets.DEPLOY_KEY }} script: | cd /opt/portainer - docker stack deploy -c portainer-stack.yml historias-magicas \ No newline at end of file + docker stack deploy -c portainer-stack.yml leiturama \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 189a24c..16cb573 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,8 @@ version: '3.8' services: - historias-magicas: - image: ${REGISTRY}/historias-magicas:${TAG} + leiturama: + image: ${REGISTRY}/leiturama:${TAG} environment: - NODE_ENV=production - NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL} @@ -14,10 +14,10 @@ services: deploy: labels: - "traefik.enable=true" - - "traefik.http.routers.historias-magicas.rule=Host(`${DOMAIN}`)" - - "traefik.http.routers.historias-magicas.entrypoints=websecure" - - "traefik.http.routers.historias-magicas.tls.certresolver=letsencrypt" - - "traefik.http.services.historias-magicas.loadbalancer.server.port=3000" + - "traefik.http.routers.leiturama.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.leiturama.entrypoints=websecure" + - "traefik.http.routers.leiturama.tls.certresolver=letsencrypt" + - "traefik.http.services.leiturama.loadbalancer.server.port=3000" - "traefik.docker.network=traefik-public" replicas: 1 update_config: diff --git a/package.json b/package.json index abda08d..7a09e34 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "typecheck": "tsc --noEmit", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "format": "prettier --write \"src/**/*.{ts,tsx}\"", - "docker:build": "docker build -t historias-magicas .", - "docker:run": "docker run -p 3000:3000 historias-magicas", + "docker:build": "docker build -t leiturama .", + "docker:run": "docker run -p 3000:3000 leiturama", "deploy:prod": "docker-compose up -d --build" }, "dependencies": { diff --git a/portainer-stack.yml b/portainer-stack.yml index 253a9c6..ea3e06d 100644 --- a/portainer-stack.yml +++ b/portainer-stack.yml @@ -1,8 +1,8 @@ version: '3.8' services: - historias-magicas: - image: ${REGISTRY}/historias-magicas:${TAG} + leiturama: + image: ${REGISTRY}/leiturama:${TAG} environment: - NODE_ENV=production - NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL} @@ -15,10 +15,10 @@ services: deploy: labels: - "traefik.enable=true" - - "traefik.http.routers.historias-magicas.rule=Host(`${DOMAIN}`)" - - "traefik.http.routers.historias-magicas.entrypoints=websecure" - - "traefik.http.routers.historias-magicas.tls.certresolver=letsencrypt" - - "traefik.http.services.historias-magicas.loadbalancer.server.port=3000" + - "traefik.http.routers.leiturama.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.leiturama.entrypoints=websecure" + - "traefik.http.routers.leiturama.tls.certresolver=letsencrypt" + - "traefik.http.services.leiturama.loadbalancer.server.port=3000" - "traefik.docker.network=traefik-public" replicas: 2 update_config: diff --git a/src/pages/landing/EducationalForParents.tsx b/src/pages/landing/EducationalForParents.tsx index 15d555b..f32fc60 100644 --- a/src/pages/landing/EducationalForParents.tsx +++ b/src/pages/landing/EducationalForParents.tsx @@ -488,10 +488,10 @@ const footerLinks = [ ]; const socialLinks = [ - { icon: Facebook, href: "https://facebook.com/historias-magicas" }, - { icon: Instagram, href: "https://instagram.com/historias-magicas" }, - { icon: Twitter, href: "https://twitter.com/historias-magicas" }, - { icon: Youtube, href: "https://youtube.com/historias-magicas" } + { icon: Facebook, href: "https://facebook.com/leiturama.ai" }, + { icon: Instagram, href: "https://instagram.com/leiturama.ai" }, + { icon: Twitter, href: "https://twitter.com/leiturama.ai" }, + { icon: Youtube, href: "https://youtube.com/leiturama.ai" } ]; const paymentMethods = [ diff --git a/src/services/email.ts b/src/services/email.ts index 736c00a..84eafba 100644 --- a/src/services/email.ts +++ b/src/services/email.ts @@ -20,7 +20,7 @@ export async function sendStudentCredentialsEmail({ try { // Email para o aluno await resend.emails.send({ - from: 'Leiturama ', + from: 'Leiturama ', to: studentEmail, subject: 'Bem-vindo ao Leiturama!', html: ` @@ -47,7 +47,7 @@ export async function sendStudentCredentialsEmail({ // Email para o responsável await resend.emails.send({ - from: 'Leiturama ', + from: 'Leiturama ', to: guardianEmail, subject: `Conta do ${studentName} criada no Leiturama`, html: `