This document defines commit message conventions following the Conventional Commits specification with emoji prefixes.
<emoji> <type>[optional scope]: <description>
[optional body]
This document defines commit message conventions following the Conventional Commits specification with emoji prefixes.
<emoji> <type>[optional scope]: <description>
[optional body]
// Not good | |
const Page = () => ( | |
<main className="bg-background"> | |
<section className="p-6"> | |
<h1 className="text-2l font-bold">A page title</h1> | |
<p className="text-md text-foreground">Content...</p> | |
<ul className="list-disc"> | |
<li>List Item 1</li> | |
<li>List Item 2</li> | |
</ul> |
/* @tailwind base; */ | |
/* Aboid conflict with Mantine | |
* Default Style Sheet (modern-normalize): https://unpkg.com/[email protected]/src/css/preflight.css | |
*/ | |
/* | |
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) | |
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) | |
*/ | |
*, |
import React, { useState } from 'react'; | |
import { createPortal } from 'react-dom'; | |
import { ModalCloseButton } from '@/components/buttons/ModalCloseButton/ModalCloseButton'; | |
import { useClient } from '@/hooks/common/useClient'; | |
const ModalPortal: React.FC = ({ children }) => { | |
const isClient = useClient(); | |
return isClient ? createPortal(children, document.getElementsByTagName('body')[0]!) : <>{children}</>; | |
}; |
{ | |
"name": "sample", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"schema:update": "npx openapi2aspida -i=docs/openapi.yml", | |
"predev": "schema:update" | |
"dev": "next dev", | |
"prebuild": "schema:update", | |
"build": "next build", |
# yarn / without zero install | |
# reference: https://github.com/yarnpkg/berry/issues/454 | |
.yarn/* | |
!.yarn/plugins | |
!.yarn/releases | |
.pnp.* |
# Disable pnp to avoid conflicts with eslint / tsserver | |
nodeLinker: node-modules |
<template> | |
<transition | |
name="slide" | |
@before-enter="(el) => (el.style.height = '0')" | |
@enter="(el) => (el.style.height = el.scrollHeight + 'px')" | |
@before-leave="(el) => (el.style.height = el.scrollHeight + 'px')" | |
@leave="(el) => (el.style.height = '0')" | |
> | |
<div v-if="isOpened" class="slide-body"> | |
<slot /> |
version: "3.8" | |
volumes: | |
db-store: | |
services: | |
db: | |
image: postgres:11-alpine | |
ports: | |
- target: 5432 | |
published: ${DB_PORT:-5432} | |
protocol: tcp |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |