npm i prismjs
npm i -D @types/prismjs
import React, { useEffect } from 'react'
import Prism from 'prismjs'
if DEBUG: | |
EMAIL_HOST = 'localhost' | |
EMAIL_PORT = 1025 | |
EMAIL_HOST_USER = '' | |
EMAIL_HOST_PASSWORD = '' | |
EMAIL_USE_TLS = False | |
DEFAULT_FROM_EMAIL = '[email protected]' |
{% if messages %} | |
{% for message in messages %} | |
<div class="alert alert-{{ message.tags }} alert-dismissible text-center" role="alert"> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
<strong>{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}Error{% else %}{{ message.tags|title }}{% endif %}!</strong> {{ message }} | |
</div> | |
{% endfor %} | |
{% endif %} |