-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: save window settings popin d'accueil #27
- Loading branch information
Showing
12 changed files
with
232 additions
and
168 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
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 |
---|---|---|
@@ -1,47 +1,8 @@ | ||
// /** | ||
// * TODO: Method to clean returned log from sh files | ||
// * @param stout any | ||
// * @returns any | ||
// */ | ||
// export const cleanLogString = (stout: any) => { | ||
// if (typeof stout !== 'string') return stout | ||
// // eslint-disable-next-line no-control-regex, no-useless-escape | ||
// const gm = new RegExp(']2;(.*)]1; ?(\n?)', 'gm') | ||
// if (stout.match(gm)) return stout.replace(gm, '') | ||
// else return stout | ||
// } | ||
|
||
// /** | ||
// * ISimpleUrlInput[] -> string[] | ||
// * @param jsonDatas with urls ISimpleUrlInput[] | ||
// */ | ||
// export const convertJSONDatasFromISimpleUrlInput = ( | ||
// jsonDatas: IJsonMesureData | ||
// ): IJsonMesureData => { | ||
// const output = jsonDatas | ||
// jsonDatas.courses.forEach((course, index) => { | ||
// const urls: string[] = course.urls.map((url: any) => url.value) | ||
// jsonDatas.courses[index].urls = urls | ||
// }) | ||
// return output | ||
// } | ||
|
||
// /** | ||
// * string[] -> ISimpleUrlInput[] | ||
// * @param jsonDatas with urls string[] | ||
// */ | ||
// export const convertJSONDatasFromString = ( | ||
// jsonDatas: IJsonMesureData | ||
// ): IJsonMesureData => { | ||
// const output = jsonDatas | ||
// jsonDatas.courses.forEach((course, index) => { | ||
// const urls: ISimpleUrlInput[] = course.urls.map((url: any) => { | ||
// return { | ||
// value: url, | ||
// } | ||
// }) | ||
// jsonDatas.courses[index].urls = urls | ||
// }) | ||
// // console.log(`_convertJSONDatasFromString`, output) | ||
// return output | ||
// } | ||
/** | ||
* Convert Version to string | ||
* @param version string | ||
* @returns string | ||
*/ | ||
export const convertVersion = (version: string) => { | ||
return version.replace(/\./gm, '_').replace(/-/gm, '_') | ||
} |
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.