-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issues/8804/profile-update-validation' of github.com:Ja…
…vidSumra/care_fe into issues/8804/profile-update-validation
- Loading branch information
Showing
13 changed files
with
123 additions
and
174 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
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 |
---|---|---|
|
@@ -13,6 +13,8 @@ RUN npm install | |
|
||
COPY . . | ||
|
||
RUN npm run setup | ||
|
||
RUN npm run build | ||
|
||
|
||
|
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,26 +1,15 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const fs = require("fs"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const path = require("path"); | ||
|
||
const directory = "src/Locale"; | ||
|
||
fs.readdir(directory, (err, files) => { | ||
if (err) throw err; | ||
const file = "src/Locale/en.json"; | ||
|
||
files.forEach((file) => { | ||
if (file.endsWith(".json")) { | ||
const filePath = path.join(directory, file); | ||
const data = JSON.parse(fs.readFileSync(filePath, "utf8")); | ||
const data = JSON.parse(fs.readFileSync(file, "utf8")); | ||
|
||
const sortedData = Object.keys(data) | ||
.sort() | ||
.reduce((acc, key) => { | ||
acc[key] = data[key]; | ||
return acc; | ||
}, {}); | ||
const sortedData = Object.keys(data) | ||
.sort() | ||
.reduce((acc, key) => { | ||
acc[key] = data[key]; | ||
return acc; | ||
}, {}); | ||
|
||
fs.writeFileSync(filePath, JSON.stringify(sortedData, null, 2) + "\n"); | ||
} | ||
}); | ||
}); | ||
fs.writeFileSync(file, JSON.stringify(sortedData, null, 2) + "\n"); |
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
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
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
Oops, something went wrong.