Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
5b33917
first implementation
Mar 17, 2024
e1028f8
remove env
Mar 17, 2024
34cdf85
remove env
Mar 17, 2024
d71b64b
remove providers
Mar 18, 2024
af7c650
mobile
Mar 19, 2024
b42833d
newsletter
Mar 19, 2024
061a206
fix imports
Mar 19, 2024
77c5a8b
sanity
Mar 19, 2024
ac21d54
fix errores
Mar 19, 2024
5554a12
remove legacy
Mar 19, 2024
6f2aabc
fix
Mar 19, 2024
21043a5
sitemap
Mar 19, 2024
882b2a1
sitemap fix
Mar 19, 2024
8b5d32f
sitemap generation
Mar 19, 2024
644b762
footer
Mar 20, 2024
7e03c6c
new commit
Mar 23, 2024
70ef3df
contact form
Mar 27, 2024
3b17a63
modals y contact form
Mar 28, 2024
3bce16d
improve performance
Mar 28, 2024
936e9fa
refactor slider
Mar 28, 2024
e8dd099
dynamic pages and text pages
Apr 1, 2024
85d9813
fix helper db
Apr 1, 2024
a5f5d4e
PWA
Apr 1, 2024
10cfcaf
favicon
Apr 1, 2024
4522548
remove studio
Apr 1, 2024
e83a6f6
new push
Apr 25, 2024
426e4da
remove dist
Apr 25, 2024
d1c8e37
gitignore
Apr 25, 2024
77c3051
gitignore
Apr 25, 2024
4e7e28b
sanity-plugin-tags
Apr 25, 2024
93e0515
styled components
Apr 25, 2024
c83d72e
versions
Apr 25, 2024
bfb646d
remove tags
Apr 25, 2024
98c7d34
nuevo push
May 13, 2024
76e9c59
fix contact route
danibrunat May 16, 2024
442ece9
avail pkg
danibrunat May 26, 2024
2229831
add array key
danibrunat May 26, 2024
d650269
remove localhost
danibrunat May 26, 2024
08451bc
relative url
danibrunat May 26, 2024
8058940
remover next public
danibrunat May 26, 2024
cd95bdc
fix relative urls
danibrunat May 26, 2024
8dae067
filters
danibrunat May 26, 2024
ca1d9b1
julia avail
danibrunat Jul 25, 2024
908777c
fix transform
danibrunat Jul 25, 2024
f00948d
new push
danibrunat Aug 24, 2024
351f5d1
push
danibrunat Aug 27, 2024
907753b
window location
danibrunat Aug 27, 2024
5a6516a
clientasync
danibrunat Aug 27, 2024
a199b5d
push with prices
danibrunat Sep 7, 2024
347b18f
detail
danibrunat Sep 30, 2024
09417c7
big commit2
danibrunat Oct 22, 2024
3465d79
recovery point
danibrunat Oct 23, 2024
7f1d836
new point
danibrunat Oct 29, 2024
6334743
new point 12-11-2024
danibrunat Nov 13, 2024
225a041
filters
danibrunat Nov 18, 2024
6020c6b
filters with funcionality
danibrunat Nov 18, 2024
88c4e93
key
danibrunat Nov 18, 2024
5e83cb9
remove unused directory
danibrunat Nov 18, 2024
c8fea29
remove image gallery
danibrunat Nov 18, 2024
dd29410
airlines
danibrunat Nov 27, 2024
a5408dc
months
danibrunat Nov 29, 2024
f9fea60
speed insights
danibrunat Nov 29, 2024
f3adac4
remove SI
danibrunat Nov 29, 2024
7d0893c
price order2
danibrunat Dec 1, 2024
91e1dc5
landings
danibrunat Dec 17, 2024
62bb3c5
provider packages
danibrunat Dec 28, 2024
c686cbf
tagged packages
danibrunat Dec 31, 2024
8438372
fix detail one stopover segment
danibrunat Jan 24, 2025
69a204f
add key
danibrunat Jan 24, 2025
aee8561
fix token sanity
danibrunat Jan 24, 2025
7e0876f
normalize text checkout
danibrunat Jan 28, 2025
ee19d1b
fix carousel
danibrunat Jan 30, 2025
3ca9e50
backoffice
danibrunat Feb 9, 2025
4af4c27
mobile style
danibrunat Feb 9, 2025
4e92301
sitemap and previews
danibrunat Feb 9, 2025
3da777e
again
danibrunat Feb 9, 2025
e787405
das
danibrunat Feb 9, 2025
221e829
fix providers in detail
danibrunat Feb 11, 2025
c17c55e
departure id
danibrunat Feb 14, 2025
647e287
detail
danibrunat Feb 22, 2025
4dc9729
fix detail
danibrunat Feb 24, 2025
93920ff
fix airline stops
danibrunat Feb 24, 2025
e1571c8
fix sanitized description text
danibrunat Feb 25, 2025
2853c3f
fix detial
danibrunat Mar 2, 2025
2db9a64
migration to sanity
danibrunat Mar 4, 2025
7bd9108
fully migrated
danibrunat Mar 5, 2025
2b7e166
fix ola packages images
danibrunat Mar 5, 2025
fd2b6c6
vuelos
danibrunat Mar 5, 2025
157705e
fix
danibrunat Mar 5, 2025
699e67e
ffix
danibrunat Mar 5, 2025
103895b
helpers
danibrunat Mar 5, 2025
ed7d36c
url
danibrunat Mar 5, 2025
5f47de0
das
danibrunat Mar 5, 2025
ecd4016
sitemap
danibrunat Mar 5, 2025
0f47c4d
das
danibrunat Mar 6, 2025
23738b2
das
danibrunat Mar 6, 2025
6ad01a1
das
danibrunat Mar 6, 2025
ede4b7e
fix cors
danibrunat Mar 6, 2025
b855546
url
danibrunat Mar 6, 2025
ba83760
das
danibrunat Mar 6, 2025
9d1b6bd
das
danibrunat Mar 6, 2025
8168894
das
danibrunat Mar 7, 2025
48ef25a
origins *
danibrunat Mar 7, 2025
96ca6b7
das
danibrunat Mar 7, 2025
229b100
das
danibrunat Mar 7, 2025
3c830ca
das
danibrunat Mar 7, 2025
a409ecb
das
danibrunat Mar 7, 2025
89e5ab2
das
danibrunat Mar 7, 2025
972c12a
das
danibrunat Mar 7, 2025
096b9dc
das
danibrunat Mar 7, 2025
fab764a
das
danibrunat Mar 7, 2025
949112d
das
danibrunat Mar 7, 2025
c011d4b
das
danibrunat Mar 7, 2025
e795a40
das
danibrunat Mar 7, 2025
4638d88
das
danibrunat Mar 7, 2025
bb97cc7
das
danibrunat Mar 7, 2025
5dc9fe4
das
danibrunat Mar 7, 2025
c9dda9f
das
danibrunat Mar 7, 2025
cf9c15a
das
danibrunat Mar 7, 2025
256f2a6
das
danibrunat Mar 7, 2025
26fc49f
fix landings
danibrunat Mar 7, 2025
302bf8d
dasdas
danibrunat Mar 7, 2025
85875f1
dasdas
danibrunat Mar 7, 2025
de61734
push
danibrunat Mar 7, 2025
cef4bdf
das
danibrunat Mar 8, 2025
2470c91
fix cache
danibrunat Mar 8, 2025
2d29a6b
dasdsad
danibrunat Mar 8, 2025
72ebbcd
dadssa
danibrunat Mar 8, 2025
c747c2e
remove cache
danibrunat Mar 8, 2025
2532290
<=
danibrunat Mar 9, 2025
04d5a6f
das
danibrunat Mar 9, 2025
63b8c35
das
danibrunat Mar 9, 2025
176da61
das
danibrunat Mar 10, 2025
8bddab9
das
danibrunat Mar 10, 2025
2908ba4
das
danibrunat Mar 10, 2025
4b6d27f
das
danibrunat Mar 10, 2025
cc8e975
das
danibrunat Mar 10, 2025
ba661a1
fix cache
danibrunat Mar 11, 2025
5329129
dasdas
danibrunat Mar 14, 2025
55d0d5b
landing not found
danibrunat Mar 14, 2025
fa3067f
push
danibrunat Mar 15, 2025
0c17d04
pcom
danibrunat Mar 15, 2025
1872cc1
agotado
danibrunat Mar 17, 2025
15cfdfa
das
danibrunat Mar 18, 2025
1d62203
social links
danibrunat Mar 19, 2025
06962ae
das
danibrunat Mar 19, 2025
7d9eacf
das
danibrunat Mar 22, 2025
03302e0
das
danibrunat Mar 22, 2025
cf123b0
das
danibrunat Mar 31, 2025
9852dda
das
danibrunat Mar 31, 2025
971e2a5
codemod modifications
danibrunat Apr 1, 2025
e9cf8b3
das
danibrunat Apr 1, 2025
cb039ca
fix and update dependencies
danibrunat Apr 1, 2025
a2dfff8
changes
danibrunat Apr 1, 2025
d89257b
das
danibrunat Apr 10, 2025
f3647f1
modify redis
danibrunat Apr 10, 2025
21250b3
das
danibrunat Apr 10, 2025
904ffc9
das
danibrunat Apr 10, 2025
7fe492c
sanity js project removed
danibrunat Apr 11, 2025
9ad2640
dasd
danibrunat Apr 12, 2025
0dc2038
das
danibrunat Apr 12, 2025
8b06454
maintenance
danibrunat Apr 12, 2025
dd005fe
das
danibrunat Apr 12, 2025
ec03601
maintenance
danibrunat Apr 12, 2025
8a1e7f9
test departure
danibrunat Apr 12, 2025
ed9287e
test departure
danibrunat Apr 12, 2025
a31fc41
maintenance off
danibrunat Apr 12, 2025
f1cb428
cache fix
danibrunat Apr 12, 2025
334d45f
avail key cache
danibrunat Apr 12, 2025
6fe7d60
das
danibrunat Apr 12, 2025
563e25f
das
danibrunat Apr 13, 2025
793529a
das
danibrunat Apr 13, 2025
3043b07
das
danibrunat Apr 13, 2025
37e92b7
dasdas
danibrunat Apr 13, 2025
f374806
dasdas
danibrunat Apr 14, 2025
cc6496a
fix img
danibrunat Apr 14, 2025
e0e7c1a
fix image control on tagged packages
danibrunat Apr 15, 2025
8bcb2fb
refactor providers
danibrunat Apr 15, 2025
ddeca6c
resolve missing import
danibrunat Apr 15, 2025
e9a4238
fix use cache
danibrunat Apr 15, 2025
dd26d5e
dasdas
danibrunat Apr 17, 2025
e4b6ca3
das
danibrunat Apr 17, 2025
ffb5a97
fix form labels
danibrunat Apr 19, 2025
33afcc0
screen readers links
danibrunat Apr 19, 2025
5a4bc7f
das
danibrunat Apr 19, 2025
54a17ad
das
danibrunat Apr 19, 2025
69f2667
das
danibrunat Apr 19, 2025
c00b552
Authentication system (#1)
danibrunat Jul 2, 2025
c30619f
connect -src
danibrunat Jul 3, 2025
74dc7ac
previeW
danibrunat Jul 4, 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
1 change: 0 additions & 1 deletion .env

This file was deleted.

103 changes: 103 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# ==============================================================================
# PLANTILLA DE CONFIGURACIÓN - PLUM VIAJES
# ==============================================================================
#
# Este archivo sirve como plantilla para configurar las variables de entorno.
# Copia este archivo como .env y completa los valores reales.
#

# --- URLs de la Aplicación ---
NEXT_PUBLIC_URL=http://localhost:3000
NEXT_PUBLIC_SITE_URL="https://tu-dominio.com"
NEXT_PUBLIC_BACKEND_URL="https://tu-dominio.com"
SANITY_STUDIO_URL=http://localhost:3000
SANITY_STUDIO_NEXT_BACKEND="https://tu-dominio.com"

# --- API Keys Internas ---
# Clave principal para uso interno del proyecto
NEXT_PUBLIC_API_KEY=tu_api_key_interna_aqui

# Clave para Sanity Studio
SANITY_STUDIO_NEXT_API_KEY=tu_sanity_api_key_aqui
SANITY_API_KEY=tu_sanity_api_key_aqui

# --- API Keys Externas (Para Proveedores Externos) ---
# Formato: EXTERNAL_API_KEY_[NOMBRE_PROVEEDOR]=sk_clave_segura
# Genera las claves con: node -e "console.log('sk_' + require('crypto').randomBytes(32).toString('hex'))"

# Ejemplo para partners:
EXTERNAL_API_KEY_PLUM_PARTNERS=sk_partner_clave_generada_aqui

# Agrega aquí nuevas API keys para proveedores externos:
# EXTERNAL_API_KEY_BOOKING_PARTNER=sk_booking_nueva_clave_aqui
# EXTERNAL_API_KEY_TRAVEL_AGENCY=sk_agency_nueva_clave_aqui
# EXTERNAL_API_KEY_INTEGRATION_SERVICE=sk_integration_nueva_clave_aqui

# --- API Security ---
JWT_SECRET=tu-jwt-secret-minimo-32-caracteres-aqui
API_KEYS=plum-web-client,plum-sanity-studio,plum-mobile-app

# --- Sanity CMS ---
NEXT_PUBLIC_SANITY_PROJECT_ID=tu_project_id
NEXT_PUBLIC_SANITY_DATASET=production
NEXT_PUBLIC_SANITY_API_VERSION=2024-07-15
SANITY_STUDIO_AUTH_TOKEN=tu_sanity_auth_token_aqui
NEXT_PUBLIC_SANITY_AUTH_TOKEN=tu_sanity_auth_token_aqui

# --- Redis Database ---
UPSTASH_REDIS_REST_URL=https://tu-redis-url.upstash.io
UPSTASH_REDIS_REST_TOKEN=tu_redis_token_aqui
REDIS_URL="redis://tu-url-redis-aqui"

# --- Servicios Externos ---
# reCAPTCHA
NEXT_PUBLIC_RECAPTCHA_KEY=tu_recaptcha_key_aqui

# Stripe
NEXT_PUBLIC_STRIPE_KEY=pk_test_tu_stripe_key_aqui

# MongoDB
NEXT_PUBLIC_MONGO_SRV=mongodb+srv://usuario:password@cluster.mongodb.net/database

# Resend (Email)
NEXT_PUBLIC_RESEND_API_KEY=re_tu_resend_key_aqui

# --- Configuración de Aplicación ---
# Modo mantenimiento (descomenta y ajusta si es necesario)
# NEXT_PUBLIC_MAINTENANCE_MODE=false

# --- Proveedores de Viajes ---
# Julia Tours
JULIA_TOURS_URL=http://ycixweb.juliatours.com.ar/WSJULIADEMO/WSJULIA.asmx
JULIA_TOURS_USER=tu_usuario_julia
JULIA_TOURS_PASSWORD=tu_password_julia
JULIA_TOURS_AGENCY_ID=tu_agency_id

# OLA (Online Travel Agency)
OLA_URL=https://tu-url-ola.com.ar/endpoint?wsdl
OLA_USERNAME=tu_usuario_ola
OLA_UI_PASSWORD=tu_password_ola
OLA_API_KEY=tu_ola_api_key

# OLA para Sanity Studio
SANITY_STUDIO_OLA_URL=https://tu-url-ola.com.ar/endpoint?wsdl
SANITY_STUDIO_OLA_USERNAME=tu_usuario_ola
SANITY_STUDIO_OLA_UI_PASSWORD=tu_password_ola
SANITY_STUDIO_OLA_API_KEY=tu_ola_api_key

# ==============================================================================
# INSTRUCCIONES:
#
# 1. Para agregar un nuevo proveedor externo que consuma nuestras APIs:
# - Genera una API key: node -e "console.log('sk_' + require('crypto').randomBytes(32).toString('hex'))"
# - Agrega: EXTERNAL_API_KEY_[NOMBRE_PROVEEDOR]=sk_clave_generada
# - Reinicia el servidor
# - Entrega la API key al proveedor
#
# 2. El proveedor debe usar la API key en sus requests:
# Authorization: Bearer sk_clave_generada
# o
# X-API-Key: sk_clave_generada
#
# 3. Para más información consulta: API_AUTHENTICATION.md
# ==============================================================================
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# misc
.DS_Store
*.pem
/dist

# debug
npm-debug.log*
Expand All @@ -27,6 +28,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
1 change: 0 additions & 1 deletion .vercelignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
sanity
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev"
},
{
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#1e703025",
"titleBar.activeBackground": "#1370271f",
"titleBar.activeForeground": "#FDF9FE"
}
}
Loading