Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
const groupArrayElements = ((arr, divideCnt) => { | |
const res = []; | |
const arraySize = arr.length; | |
const increment = Math.ceil(arraySize / divideCnt); | |
for (let i = 0; i < arraySize; i += increment) { | |
res.push(arr.slice(i, i + increment)); | |
} | |
return res; |
const groupArrayElements = (arr, N) => { | |
const res = []; | |
const rem = arr.length % N; | |
const cnt = parseInt(arr.length / N); | |
let temp = []; | |
let groupCnt = 0; | |
let groupPos = 0; | |
arr.forEach((element) => { |
let React = require('react'); | |
// TODO: Create the Notification Component | |
const map = { | |
success: 'success', | |
message: 'info', | |
caution: 'warning', | |
error: 'danger' | |
}; |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |