-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(delete): delete some files and unused components * fix(glyphicon): size alert, badge, modal * doc(contributing): update file, delete demo info * build(copyicon): update path copyicon * build(contributors): add gulp task * build(githubinfo): add gulp task * build(pug): update gulp task * feat(index): add general styles and headerlinks instance * feat(home): update pug * feat(images): add all images * feat(layout): update common layout pug * feat(style): update common style * feat(buttonlink): update buttonlink * feat(cards): update cards * feat(contributors): update contributors * feat(footer): update footer * feat(demo): update demo * feat(header): update header * feat(menu): update menu * feat(headerlinks): add headerlinks * feat(encart): update encart * feat(component): update content, img, introheader, logo, page, pagelinks, tabs * feat(data): update data menu * build(gitignore): update pug icone ignore * build(style): delete old * feat(badge): update badge page * feat(button): update button page * feat(drawer): update drawer page * feat(list): update list page * feat(loader): update loader page * feat(popover): update popover page * feat(slider): update slider page * feat(title): update title page * feat(components): add components page * feat(conduct): add code of conduct page * feat(status): add component status page * feat(contributors): add contributors page * feat(changelog): add changelog page * feat(issue): add issue page * feat(howto): add howto page * feat(github): add github page * feat(getstarted): add getstarted page * feat(access): add accessibility page * feat(anim): add anim page * feat(color): add color page * feat(content): add content page * feat(content): add grid page * feat(icones): add icones page * feat(spaces): add spaces page * feat(typo): add typo page * feat(guidelines): add guidelines page * feat(home): update home page * feat(alert): update alert page * feat(footer): update footer page * feat(checkbox): update checkbox page * feat(datepicker): update datepicker page * feat(file): update formfile page * feat(pass): update pass page * feat(radio): update radio page * feat(radioswitch): update radio switch page * feat(select): update select page * feat(textinpu): update textinput page * feat(textarea): update textarea page * feat(nav): update nav page * feat(pager): update pager page * feat(step): update step page * feat(stepnew): update step new page * feat(table): update table page * feat(tabs): update tabs page * feat(titlebar): update titlebar page * feat(accordion): update accordion page * feat(footerclient): update footer-client page * feat(form): update form page * feat(formcard): update formcard page * feat(formfilter): update formfilter page * feat(formfilterinline): update formfilterinline page * feat(header): update header page * feat(modal): update modal page * feat(paging): update paging page * feat(panel): update panel page * feat(restit): update restit page * feat(fullform): update full form page * feat(fulltable): update full table page * feat(disabled): update disabled page * feat(loading): add loading page * feat(overtaking): add overtaking page * feat(progress): add progress page * feat(regress): add regress page * feat(pattern): add pattern page * build(ingore): contributors generate pug * feat(home): update content * doc(contributing): update docs * ci(contributing): delete old css task npm Co-authored-by: Samuel Gomez <contact@samuelgomez.fr>
- Loading branch information
1 parent
6621823
commit 20d6c95
Showing
468 changed files
with
13,216 additions
and
2,474 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 |
---|---|---|
|
@@ -86,6 +86,7 @@ $typesLite: ( | |
top: 50%; | ||
margin-top: -50%; | ||
display: block; | ||
width: 22px; | ||
} | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -22,5 +22,8 @@ $types: ( | |
display: inline-block; | ||
min-width: 38px; | ||
padding-top: 0.4rem; | ||
.glyphicon { | ||
width: 22px; | ||
} | ||
} | ||
} |
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
48 changes: 48 additions & 0 deletions
48
storybook/design-system/gulpfile.babel.js/generateContributors.js
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,48 @@ | ||
/* eslint-disable arrow-parens */ | ||
import path from 'path'; | ||
import fs from 'fs'; | ||
import config from './config'; | ||
|
||
const { pathSrc } = config; | ||
|
||
const pathContributorsPugTemplate = path.join( | ||
`${pathSrc}/pages/get-started/contributors/`, | ||
'templates', | ||
); | ||
|
||
const getContributors = async () => { | ||
const response = await fetch( | ||
'https://api.github.com/repos/AxaGuilDEv/react-toolkit/stats/contributors', | ||
); | ||
const responseJson = await response.json(); | ||
return responseJson; | ||
}; | ||
|
||
const generateContributors = async () => { | ||
const contributors = await getContributors(); | ||
const reservedContributors = contributors.reverse(); | ||
let contentFile = '.tk-contributors\n'; | ||
|
||
reservedContributors.forEach((contributor, index) => { | ||
const { author, total, weeks } = contributor; | ||
const { avatar_url: avatarUrl, html_url: htmlUrl, login } = author; | ||
const additions = weeks.map(({ a }) => a).reduce((acc, curr) => acc + curr); | ||
const deletions = weeks.map(({ d }) => d).reduce((acc, curr) => acc + curr); | ||
|
||
contentFile += ' .tk-contributor\n'; | ||
contentFile += ` a.tk-contributor__link(href="${htmlUrl}" title="${login}") ${login}\n`; | ||
contentFile += ` img.tk-contributor__avatar(src="${avatarUrl}" loading="lazy")\n`; | ||
contentFile += ` span.tk-contributor__badge #${index + 1}\n`; | ||
contentFile += ` span.tk-contributor__commits Commits : ${total}\n`; | ||
contentFile += ` span.tk-contributor__additions Additions : ${additions} ++\n`; | ||
contentFile += ` span.tk-contributor__deletions Deletions : ${deletions} --\n`; | ||
}); | ||
|
||
if (!fs.existsSync(pathContributorsPugTemplate)) { | ||
fs.mkdirSync(pathContributorsPugTemplate, { recursive: true }); | ||
} | ||
|
||
fs.writeFileSync(`${pathContributorsPugTemplate}/contributors-page.pug`, contentFile); | ||
}; | ||
|
||
export default generateContributors; |
20 changes: 20 additions & 0 deletions
20
storybook/design-system/gulpfile.babel.js/generateGithubInfos.js
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,20 @@ | ||
/* eslint-disable arrow-parens */ | ||
import fs from 'fs'; | ||
import config from './config'; | ||
|
||
const { pathSrc } = config; | ||
|
||
const files = ['CHANGELOG', 'CONTRIBUTING', 'CODE_OF_CONDUCT']; | ||
const components = ['changelog', 'how-to-contribute', 'code-of-conduct']; | ||
|
||
const generateGithubInfos = async () => { | ||
files.forEach((file, index) => { | ||
const content = fs.readFileSync(`../../${file}.md`, 'utf8'); | ||
fs.writeFileSync( | ||
`${pathSrc}/pages/get-started/${components[index]}/markdown/content.md`, | ||
content, | ||
); | ||
}); | ||
}; | ||
|
||
export default generateGithubInfos; |
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
Binary file added
BIN
+208 KB
storybook/design-system/src/assets/images/accessibility/accessibilite-irritant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+178 KB
storybook/design-system/src/assets/images/accessibility/daltoniens.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.