Skip to content

Instantly share code, notes, and snippets.

@Korver2017
Korver2017 / conventional-commits.md
Created February 20, 2022 15:11 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change in API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
if (req.method === 'OPTIONS') {
// CORS Preflight
res.send();
} else {
// var targetURL = req.header('Target-URL');
var targetURL = req.header('Target-Endpoint');
if (!targetURL) {
res.send(500, { error: 'There is no Target-Endpoint header in the request' });
return;
let data = 'http://localhost:3000/shibes';
let xhr = new XMLHttpRequest ();
xhr.open ('get', data, true);
xhr.setRequestHeader ('Target-URL', 'http://shibe.online/api');
xhr.send ();
xhr.onload = () => {
let json = JSON.parse (xhr.responseText);
console.log (json);
let image = document.querySelector ('img');
<!-- 父層元件 -->
<timer :startTime="systemTime"></timer>
<!-- Timer Component -->
<template>
<span>{{ timer }}</span>
</template>
<script>
props: {
startTime: {
type: String,
<template>
<span>{{ timer }}</span>
</template>
<script>
data () {
return {
now: '',
}
<template>
<span>{{ timer }}</span>
</template>
<script>
data () {
return {
now: Date.now (),
}