-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/guidelines ds #692
Merged
Merged
Feat/guidelines ds #692
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
ae55099
feat(delete): delete some files and unused components
samuel-gomez b16b810
fix(glyphicon): size alert, badge, modal
samuel-gomez 228ff3e
doc(contributing): update file, delete demo info
samuel-gomez 9019fa5
build(copyicon): update path copyicon
samuel-gomez 97f6f80
build(contributors): add gulp task
samuel-gomez 0510381
build(githubinfo): add gulp task
samuel-gomez 13418cf
build(pug): update gulp task
samuel-gomez d27e425
feat(index): add general styles and headerlinks instance
samuel-gomez 53ef2b5
feat(home): update pug
samuel-gomez f1d6ca4
feat(images): add all images
samuel-gomez 62dcb36
feat(layout): update common layout pug
samuel-gomez 6a46e65
feat(style): update common style
samuel-gomez 3368745
feat(buttonlink): update buttonlink
samuel-gomez dbc51cb
feat(cards): update cards
samuel-gomez 99994eb
feat(contributors): update contributors
samuel-gomez e3d8d96
feat(footer): update footer
samuel-gomez 0aed736
feat(demo): update demo
samuel-gomez e30691c
feat(header): update header
samuel-gomez a3fa249
feat(menu): update menu
samuel-gomez 42e5460
feat(headerlinks): add headerlinks
samuel-gomez c57bd2a
feat(encart): update encart
samuel-gomez 85bbd75
feat(component): update content, img, introheader, logo, page, pageli…
samuel-gomez 345a10a
feat(data): update data menu
samuel-gomez 2419b19
build(gitignore): update pug icone ignore
samuel-gomez a1d666f
build(style): delete old
samuel-gomez f4b6ae6
feat(badge): update badge page
samuel-gomez d1a9451
feat(button): update button page
samuel-gomez 66ebe44
feat(drawer): update drawer page
samuel-gomez 2c7b253
feat(list): update list page
samuel-gomez 4842b59
feat(loader): update loader page
samuel-gomez 2eab70a
feat(popover): update popover page
samuel-gomez bbaffe7
feat(slider): update slider page
samuel-gomez e25a15a
feat(title): update title page
samuel-gomez a873398
feat(components): add components page
samuel-gomez 21780af
feat(conduct): add code of conduct page
samuel-gomez f6c7bdb
feat(status): add component status page
samuel-gomez 1a139cd
feat(contributors): add contributors page
samuel-gomez c2ff711
feat(changelog): add changelog page
samuel-gomez ad7de68
feat(issue): add issue page
samuel-gomez 2db0f58
feat(howto): add howto page
samuel-gomez 40c419a
feat(github): add github page
samuel-gomez afc67cb
feat(getstarted): add getstarted page
samuel-gomez 591bd64
feat(access): add accessibility page
samuel-gomez 218283f
feat(anim): add anim page
samuel-gomez e931226
feat(color): add color page
samuel-gomez b89a817
feat(content): add content page
samuel-gomez e2c3d8e
feat(content): add grid page
samuel-gomez 6e2c29f
feat(icones): add icones page
samuel-gomez 6ee717d
feat(spaces): add spaces page
samuel-gomez de435c7
feat(typo): add typo page
samuel-gomez 3546cb7
feat(guidelines): add guidelines page
samuel-gomez d2ec5e0
feat(home): update home page
samuel-gomez 78f2d83
feat(alert): update alert page
samuel-gomez b8c644a
feat(footer): update footer page
samuel-gomez 2836b14
feat(checkbox): update checkbox page
samuel-gomez 531c53e
feat(datepicker): update datepicker page
samuel-gomez 83b83c1
feat(file): update formfile page
samuel-gomez f5f54c1
feat(pass): update pass page
samuel-gomez e281cdd
feat(radio): update radio page
samuel-gomez d44453e
feat(radioswitch): update radio switch page
samuel-gomez 63d3705
feat(select): update select page
samuel-gomez cd7a4c8
feat(textinpu): update textinput page
samuel-gomez 83abb29
feat(textarea): update textarea page
samuel-gomez c33b15f
feat(nav): update nav page
samuel-gomez 4855fa7
feat(pager): update pager page
samuel-gomez 3da4a7d
feat(step): update step page
samuel-gomez 1c15484
feat(stepnew): update step new page
samuel-gomez 304d330
feat(table): update table page
samuel-gomez 5fd0993
feat(tabs): update tabs page
samuel-gomez ab638c0
feat(titlebar): update titlebar page
samuel-gomez 1a52fd6
feat(accordion): update accordion page
samuel-gomez f7f8a35
feat(footerclient): update footer-client page
samuel-gomez 8b5df02
feat(form): update form page
samuel-gomez 5489bd0
feat(formcard): update formcard page
samuel-gomez 56f90e7
feat(formfilter): update formfilter page
samuel-gomez 55676ba
feat(formfilterinline): update formfilterinline page
samuel-gomez 76f04a5
feat(header): update header page
samuel-gomez e15af3d
feat(modal): update modal page
samuel-gomez 685f1c5
feat(paging): update paging page
samuel-gomez 18f41a5
feat(panel): update panel page
samuel-gomez 97f16c9
feat(restit): update restit page
samuel-gomez 12119a6
feat(fullform): update full form page
samuel-gomez 7ec53dd
feat(fulltable): update full table page
samuel-gomez 924d45e
feat(disabled): update disabled page
samuel-gomez a39dd34
feat(loading): add loading page
samuel-gomez 62d9321
feat(overtaking): add overtaking page
samuel-gomez 04837f6
feat(progress): add progress page
samuel-gomez d2fb509
feat(regress): add regress page
samuel-gomez 8c4018f
feat(pattern): add pattern page
samuel-gomez 5a1d221
build(ingore): contributors generate pug
samuel-gomez 22c4559
feat(home): update content
samuel-gomez 9568639
doc(contributing): update docs
samuel-gomez d10b257
ci(contributing): delete old css task npm
samuel-gomez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removed the 1st level block? I think it should be kept (MDLint fails on this). Plus, it gives the title of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just wanted to delete the node version requirement. i didn't want to delete the title. i'll fixed it, thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in last commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍