meow
This commit is contained in:
parent
d4b8796b9f
commit
1a686a5ba6
5 changed files with 60 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -5,5 +5,3 @@ node_modules
|
||||||
out
|
out
|
||||||
dist
|
dist
|
||||||
.DS_Store
|
.DS_Store
|
||||||
config.json
|
|
||||||
*.csv
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
"prebuild": "node scripts/setup-config.js",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
|
|
|
||||||
35
scripts/setup-config.js
Normal file
35
scripts/setup-config.js
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup script: creates config.json from example if it doesn't exist.
|
||||||
|
* Runs during build phase.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const fs = require('fs')
|
||||||
|
const path = require('path')
|
||||||
|
|
||||||
|
const configPath = path.join(__dirname, 'src', 'config', 'config.json')
|
||||||
|
const examplePath = path.join(__dirname, 'src', 'config', 'config.json.example')
|
||||||
|
|
||||||
|
// Check if config.json exists
|
||||||
|
if (fs.existsSync(configPath)) {
|
||||||
|
console.log('✓ config.json found')
|
||||||
|
process.exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if example exists
|
||||||
|
if (!fs.existsSync(examplePath)) {
|
||||||
|
console.error('✗ config.json.example not found')
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy example to config.json
|
||||||
|
try {
|
||||||
|
const exampleContent = fs.readFileSync(examplePath, 'utf8')
|
||||||
|
fs.writeFileSync(configPath, exampleContent)
|
||||||
|
console.log('✓ config.json created from example')
|
||||||
|
process.exit(0)
|
||||||
|
} catch (err) {
|
||||||
|
console.error('✗ Failed to create config.json:', err.message)
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
7
src/config/config.json
Normal file
7
src/config/config.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"meetId": "m26ypege1106",
|
||||||
|
"csvFileName": "open_sandro_eusebio_2025.csv",
|
||||||
|
"authString": "apportugal2025",
|
||||||
|
"adminPassword": "admin123",
|
||||||
|
"competitionName": "Open Sandro Eusébio"
|
||||||
|
}
|
||||||
17
src/data/open_sandro_eusebio_2025.csv
Normal file
17
src/data/open_sandro_eusebio_2025.csv
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
"name","team","lot","platform","session","flight","birthDate","memberNumber","gender","rawOrEquipped","division","declaredAwardsWeightClass","bodyWeight","squatRackHeight","benchRackHeight","squat1","bench1","dead1","wasDrugTested","phoneNumber","country","streetAddress","city","state","zipCode","email","emergencyContactName","emergencyContactPhoneNumber","additionalItems"
|
||||||
|
"CATIA VINAGRE",,"1","1","1","A","08/03/1986","6","Female","Raw","Women's Raw Open","69","69.45","10","6","115","70","140","N",,,,,,,,,,""
|
||||||
|
"CATARINA BEATO",,"1","1","1","A","28/03/1978","5","Female","Raw","Women's Raw Master I","63","62","10 ","6 /","105","55","120","N",,,,,,,,,,""
|
||||||
|
"GABRIEL RODRIGUES",,"1","1","1","A","29/09/2006","10","Male","Raw","Men's Raw Junior","93","81.35","13","9","200","115","210","N",,,,,,,,,,""
|
||||||
|
"JOSE GOUVEIA",,"1","1","1","A","07/03/1976","11","Male","Raw","Men's Raw Master I","74","72.75","13","9","115","75","170","N",,,,,,,,,,""
|
||||||
|
"CASSIO GOIS",,"1","1","1","A","27/09/1995","4","Male","Raw","Men's Raw Open","120","117.95","15","6","282.5","190","270","N",,,,,,,,,,""
|
||||||
|
"RITA PE DE ARCA",,"1","1","1","A","26/10/1998","14","Female","Raw","Women's Raw Open","84","81.6","9","6","160","92.5","190","N",,,,,,,,,,""
|
||||||
|
"VIVIANA EUSEBIO",,"1","1","1","A","29/01/2002","16","Female","Raw","Women's Raw Junior","84+","96.6","13","7","135","45","135","N",,,,,,,,,,""
|
||||||
|
"EMANUEL JUSTO",,"1","1","1","A","26/09/1996","9","Male","Raw","Men's Raw Open","66","64.6","8","5","205","130","215","N",,,,,,,,,,""
|
||||||
|
"ANDREIA COSTA",,"1","1","1","A","18/12/2006","3","Female","Raw","Women's Raw Junior","84","77.15","9","5","115","70","130","N",,,,,,,,,,""
|
||||||
|
"PEDRO MOREIRA",,"1","1","1","A","29/10/1992","13","Male","Raw","Men's Raw Open","93","90.8","15","8","155","105","185","N",,,,,,,,,,""
|
||||||
|
"ANA SANTOS",,"1","1","1","A","11/11/1986","2","Female","Raw","Women's Raw Open","69","67.25","9","6","135","60","175","N",,,,,,,,,,""
|
||||||
|
"AENDERSON REIS",,"1","1","1","A","16/04/1996","1","Male","Raw","Men's Raw Open","93","85.25","14","10","147.5","82.5","195","N",,,,,,,,,,""
|
||||||
|
"DINIS CAMBAS",,"1","1","1","A","30/08/2007","8","Male","Raw","Men's Raw Sub-Junior","83","80.9","15","8","195","130","230","N",,,,,,,,,,""
|
||||||
|
"VICTOR",,"1","1","1","A","24/11/1994","15","Male","Raw","Men's Raw Open","83","74.8","11","7","190","120","210","N",,,,,,,,,,""
|
||||||
|
"DIANA TOLEBAY",,"1","1","1","A","04/03/1997","7","Female","Raw","Women's Raw Open","69","67","10","6","95","42.5","125","N",,,,,,,,,,""
|
||||||
|
"LUCIA SOLA",,"1","1","1","A","10/01/1992","12","Female","Raw","Women's Raw Open","63","61.35","11","6","117.5","77.5","125","N",,,,,,,,,,""
|
||||||
|
Loading…
Reference in a new issue