This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from mapachurro/termsv1-1
Updated terms
- Loading branch information
Showing
125 changed files
with
52,157 additions
and
3,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["@babel/preset-env", "@babel/preset-react"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VITE_API_URL=http://localhost:5173 | ||
VITE_BASE_URL=/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest", | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
node_modules | ||
build/ | ||
.module-cache | ||
*.log* | ||
*.log* | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
^v21.1.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// This script is used to sort terms.json in alphabetical order. | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const filePath = path.join(__dirname, 'terms.json'); | ||
|
||
// Read the JSON file | ||
fs.readFile(filePath, 'utf8', (err, data) => { | ||
if (err) { | ||
console.error('Error reading the file:', err); | ||
return; | ||
} | ||
|
||
// Parse the JSON data | ||
let termsData = JSON.parse(data); | ||
|
||
// Extract terms object | ||
let terms = termsData[0].terms; | ||
|
||
// Sort the terms alphabetically by the term key | ||
let sortedTerms = Object.keys(terms).sort().reduce((acc, key) => { | ||
acc[key] = terms[key]; | ||
return acc; | ||
}, {}); | ||
|
||
// Update the terms data with the sorted terms | ||
termsData[0].terms = sortedTerms; | ||
|
||
// Write the sorted JSON back to the file | ||
fs.writeFile(filePath, JSON.stringify(termsData, null, 2), 'utf8', (err) => { | ||
if (err) { | ||
console.error('Error writing the file:', err); | ||
return; | ||
} | ||
console.log('Terms sorted and saved successfully.'); | ||
}); | ||
}); |
Oops, something went wrong.