Alerts.spec.js.snap 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Alerts.vue renders correctly 1`] = `
  3. <crow-stub
  4. gutters="true"
  5. tag="div"
  6. >
  7. <ccol-stub
  8. col="12"
  9. md="6"
  10. tag="div"
  11. >
  12. <ccard-stub>
  13. <ccardheader-stub>
  14. <cicon-stub
  15. name="cil-justify-center"
  16. />
  17. <strong>
  18. Bootstrap Alert
  19. </strong>
  20. <div
  21. class="card-header-actions"
  22. >
  23. <a
  24. class="card-header-action"
  25. href="https://coreui.io/vue/docs/components/alert"
  26. rel="noreferrer noopener"
  27. target="_blank"
  28. >
  29. <small
  30. class="text-muted"
  31. >
  32. docs
  33. </small>
  34. </a>
  35. </div>
  36. </ccardheader-stub>
  37. <ccardbody-stub>
  38. <div>
  39. <p />
  40. <calert-stub
  41. color="primary"
  42. fade="true"
  43. show="true"
  44. >
  45. Primary Alert
  46. </calert-stub>
  47. <calert-stub
  48. color="secondary"
  49. fade="true"
  50. show="true"
  51. >
  52. Secondary Alert
  53. </calert-stub>
  54. <calert-stub
  55. color="success"
  56. fade="true"
  57. show="true"
  58. >
  59. Success Alert
  60. </calert-stub>
  61. <calert-stub
  62. color="danger"
  63. fade="true"
  64. show="true"
  65. >
  66. Danger Alert
  67. </calert-stub>
  68. <calert-stub
  69. color="warning"
  70. fade="true"
  71. show="true"
  72. >
  73. Warning Alert
  74. </calert-stub>
  75. <calert-stub
  76. color="info"
  77. fade="true"
  78. show="true"
  79. >
  80. Info Alert
  81. </calert-stub>
  82. <calert-stub
  83. color="light"
  84. fade="true"
  85. show="true"
  86. >
  87. Light Alert
  88. </calert-stub>
  89. <calert-stub
  90. color="dark"
  91. fade="true"
  92. show="true"
  93. >
  94. Dark Alert
  95. </calert-stub>
  96. </div>
  97. </ccardbody-stub>
  98. </ccard-stub>
  99. </ccol-stub>
  100. <ccol-stub
  101. col="12"
  102. md="6"
  103. tag="div"
  104. >
  105. <ccard-stub>
  106. <ccardheader-stub>
  107. <cicon-stub
  108. name="cil-justify-center"
  109. />
  110. Alert
  111. <small>
  112. use
  113. <code>
  114. .alert-link
  115. </code>
  116. to provide links
  117. </small>
  118. </ccardheader-stub>
  119. <ccardbody-stub>
  120. <div>
  121. <calert-stub
  122. color="primary"
  123. fade="true"
  124. show="true"
  125. >
  126. Primary Alert with
  127. <a
  128. class="alert-link"
  129. href="#"
  130. >
  131. an example link
  132. </a>
  133. .
  134. </calert-stub>
  135. <calert-stub
  136. color="secondary"
  137. fade="true"
  138. show="true"
  139. >
  140. Secondary Alert with
  141. <a
  142. class="alert-link"
  143. href="#"
  144. >
  145. an example link
  146. </a>
  147. .
  148. </calert-stub>
  149. <calert-stub
  150. color="success"
  151. fade="true"
  152. show="true"
  153. >
  154. Success Alert with
  155. <a
  156. class="alert-link"
  157. href="#"
  158. >
  159. an example link
  160. </a>
  161. .
  162. </calert-stub>
  163. <calert-stub
  164. color="danger"
  165. fade="true"
  166. show="true"
  167. >
  168. Danger Alert with
  169. <a
  170. class="alert-link"
  171. href="#"
  172. >
  173. an example link
  174. </a>
  175. .
  176. </calert-stub>
  177. <calert-stub
  178. color="warning"
  179. fade="true"
  180. show="true"
  181. >
  182. Warning Alert with
  183. <a
  184. class="alert-link"
  185. href="#"
  186. >
  187. an example link
  188. </a>
  189. .
  190. </calert-stub>
  191. <calert-stub
  192. color="info"
  193. fade="true"
  194. show="true"
  195. >
  196. Info Alert with
  197. <a
  198. class="alert-link"
  199. href="#"
  200. >
  201. an example link
  202. </a>
  203. .
  204. </calert-stub>
  205. <calert-stub
  206. color="light"
  207. fade="true"
  208. show="true"
  209. >
  210. Light Alert with
  211. <a
  212. class="alert-link"
  213. href="#"
  214. >
  215. an example link
  216. </a>
  217. .
  218. </calert-stub>
  219. <calert-stub
  220. color="dark"
  221. fade="true"
  222. show="true"
  223. >
  224. Dark Alert with
  225. <clink-stub
  226. activeclass="router-link-active"
  227. class="alert-link"
  228. event="click"
  229. exactactiveclass="router-link-exact-active"
  230. href="#"
  231. routertag="a"
  232. target="_self"
  233. >
  234. an example link
  235. </clink-stub>
  236. .
  237. </calert-stub>
  238. </div>
  239. </ccardbody-stub>
  240. </ccard-stub>
  241. </ccol-stub>
  242. <ccol-stub
  243. col="12"
  244. md="6"
  245. tag="div"
  246. >
  247. <ccard-stub>
  248. <ccardheader-stub>
  249. <cicon-stub
  250. name="cil-justify-center"
  251. />
  252. Alerts
  253. <small>
  254. with additional content
  255. </small>
  256. </ccardheader-stub>
  257. <ccardbody-stub>
  258. <calert-stub
  259. color="success"
  260. fade="true"
  261. show="true"
  262. >
  263. <h4
  264. class="alert-heading"
  265. >
  266. Well done!
  267. </h4>
  268. <p>
  269. Aww yeah, you successfully read this important alert message.
  270. This example text is going to run a bit longer so that you can see
  271. how spacing within an alert works with this kind of content.
  272. </p>
  273. <hr />
  274. <p
  275. class="mb-0"
  276. >
  277. Whenever you need to, be sure to use margin utilities to keep things nice and tidy.
  278. </p>
  279. </calert-stub>
  280. </ccardbody-stub>
  281. </ccard-stub>
  282. </ccol-stub>
  283. <ccol-stub
  284. col="12"
  285. md="6"
  286. tag="div"
  287. >
  288. <ccard-stub>
  289. <ccardheader-stub>
  290. <cicon-stub
  291. name="cil-justify-center"
  292. />
  293. Alerts
  294. <small>
  295. dismissible
  296. </small>
  297. </ccardheader-stub>
  298. <ccardbody-stub>
  299. <calert-stub
  300. closebutton="true"
  301. color="secondary"
  302. fade="true"
  303. show="true"
  304. >
  305. Dismissible Alert!
  306. </calert-stub>
  307. <calert-stub
  308. class="alert-dismissible"
  309. color="secondary"
  310. fade="true"
  311. show="true"
  312. >
  313. Dismissible Alert with custom button!
  314. <cbutton-stub
  315. activeclass="router-link-active"
  316. class="position-absolute"
  317. color="secondary"
  318. event="click"
  319. exactactiveclass="router-link-exact-active"
  320. routertag="a"
  321. style="right: 10px; top: 50%; transform: translateY(-50%);"
  322. target="_self"
  323. type="button"
  324. >
  325. Close
  326. </cbutton-stub>
  327. </calert-stub>
  328. <cbutton-stub
  329. activeclass="router-link-active"
  330. class="m-1"
  331. color="info"
  332. event="click"
  333. exactactiveclass="router-link-exact-active"
  334. routertag="a"
  335. target="_self"
  336. type="button"
  337. >
  338. Show dismissible alerts
  339. </cbutton-stub>
  340. </ccardbody-stub>
  341. </ccard-stub>
  342. <ccard-stub>
  343. <ccardheader-stub>
  344. <cicon-stub
  345. name="cil-justify-center"
  346. />
  347. Alerts
  348. <small>
  349. auto dismissible
  350. </small>
  351. </ccardheader-stub>
  352. <ccardbody-stub>
  353. <div>
  354. <calert-stub
  355. closebutton="true"
  356. color="warning"
  357. fade="true"
  358. show="10"
  359. >
  360. Alert will dismiss after
  361. <strong>
  362. 10
  363. </strong>
  364. seconds...
  365. </calert-stub>
  366. <calert-stub
  367. closebutton="true"
  368. color="info"
  369. fade="true"
  370. show="10"
  371. >
  372. Alert will dismiss after 10 seconds...
  373. <cprogress-stub
  374. color="info"
  375. height="4px"
  376. max="10"
  377. precision="0"
  378. value="10"
  379. />
  380. </calert-stub>
  381. <cbutton-stub
  382. activeclass="router-link-active"
  383. class="m-1"
  384. color="info"
  385. event="click"
  386. exactactiveclass="router-link-exact-active"
  387. routertag="a"
  388. target="_self"
  389. type="button"
  390. >
  391. Show alert with timer
  392. </cbutton-stub>
  393. </div>
  394. </ccardbody-stub>
  395. </ccard-stub>
  396. </ccol-stub>
  397. </crow-stub>
  398. `;