feat: migrate to vue 3 + vite (#2553)

Co-authored-by: amk-dev <akash.k.mohan98@gmail.com>
Co-authored-by: liyasthomas <liyascthomas@gmail.com>
This commit is contained in:
Andrew Bastin
2022-09-29 10:55:21 +05:30
committed by GitHub
parent 77a561b581
commit 8b300fab5d
685 changed files with 17102 additions and 25942 deletions

View File

@@ -0,0 +1,37 @@
export default function (responseStatus) {
if (responseStatus >= 100 && responseStatus < 200)
return {
name: "informational",
className: "info-response",
}
if (responseStatus >= 200 && responseStatus < 300)
return {
name: "successful",
className: "success-response",
}
if (responseStatus >= 300 && responseStatus < 400)
return {
name: "redirection",
className: "redir-response",
}
if (responseStatus >= 400 && responseStatus < 500)
return {
name: "client error",
className: "cl-error-response",
}
if (responseStatus >= 500 && responseStatus < 600)
return {
name: "server error",
className: "sv-error-response",
}
// this object is a catch-all for when no other objects match and should always be last
return {
name: "unknown",
className: "missing-data-response",
}
}