Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): resolve deprecation warnings for Sass, Vite, and Vitest #4444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15,780 changes: 8,433 additions & 7,347 deletions ui/package-lock.json

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ui",
"version": "0.0.0",
"type": "module",
"private": true,
"scripts": {
"serve": "vite preview --host",
Expand Down Expand Up @@ -42,12 +43,12 @@
"moment": "^2.29.4",
"node-rsa": "^1.1.1",
"qrcode.vue": "^3.4.1",
"sass": "^1.55.0",
"sass": "^1.83.0",
"sshpk": "^1.17.0",
"unplugin-vue-markdown": "^0.25.2",
"vee-validate": "^4.12.4",
"vite-node": "^1.2.0",
"vue": "^3.4.5",
"vue": "^3.5.13",
"vue-gtag": "^2.0.1",
"vue-router": "4",
"vuetify": "^3.4.9",
Expand All @@ -67,8 +68,8 @@
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"@vitejs/plugin-vue": "^5.0.3",
"@vitest/coverage-c8": "^0.31.0",
"@vitest/ui": "^0.28.2",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/ui": "^2.1.8",
"@vue/test-utils": "^2.1.0",
"axios-mock-adapter": "^1.21.4",
"buffer": "^6.0.3",
Expand All @@ -87,8 +88,8 @@
"vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-require-transform": "^1.0.21",
"vite-plugin-vuetify": "^2.0.1",
"vitest": "^0.31.0",
"vue-cli-plugin-vuetify": "~2.5.8",
"vitest": "^2.1.8",
"vue-cli-plugin-vuetify": "^2.5.8",
"vue-stripe-js": "^1.0.1",
"vue-tsc": "^2.0.22",
"yup": "^1.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Account Created > With messageKind = 'normal' > Renders the component 1`] = `
"<div class=\\"v-card v-theme--light bg-transparent v-card--density-default v-card--variant-elevated elevation-0 bg-v-theme-surface mt-2 pt-0\\" data-test=\\"accountCreated-card\\">
"<div class="v-card v-theme--light bg-transparent v-card--density-default v-card--variant-elevated elevation-0 bg-v-theme-surface mt-2 pt-0" data-test="accountCreated-card">
<!---->
<div class=\\"v-card__loader\\">
<div class=\\"v-progress-linear v-theme--light v-locale--is-ltr\\" style=\\"top: 0px; height: 0px; --v-progress-linear-height: 2px;\\" role=\\"progressbar\\" aria-hidden=\\"true\\" aria-valuemin=\\"0\\" aria-valuemax=\\"100\\">
<div class="v-card__loader">
<div class="v-progress-linear v-theme--light v-locale--is-ltr" style="top: 0px; height: 0px; --v-progress-linear-height: 2px;" role="progressbar" aria-hidden="true" aria-valuemin="0" aria-valuemax="100">
<!---->
<div class=\\"v-progress-linear__background\\"></div>
<div class=\\"v-progress-linear__buffer\\" style=\\"width: 0%;\\"></div>
<transition-stub name=\\"fade-transition\\" appear=\\"false\\" persisted=\\"false\\" css=\\"true\\">
<div class=\\"v-progress-linear__indeterminate\\">
<div class=\\"v-progress-linear__indeterminate long\\"></div>
<div class=\\"v-progress-linear__indeterminate short\\"></div>
<div class="v-progress-linear__background"></div>
<div class="v-progress-linear__buffer" style="width: 0%;"></div>
<transition-stub name="fade-transition" appear="false" persisted="false" css="true">
<div class="v-progress-linear__indeterminate">
<div class="v-progress-linear__indeterminate long"></div>
<div class="v-progress-linear__indeterminate short"></div>
</div>
</transition-stub>
<!---->
</div>
</div>
<!---->
<!---->
<div class=\\"v-card-title text-h5 pt-0 text-center\\"> Account Creation Successful </div>
<div class=\\"mt-2 mb-0 text-center\\" data-test=\\"accountCreated-message\\"> Thank you for registering an account on ShellHub. <p data-test=\\"accountCreated-normal-message\\"> An email was sent with a confirmation link. You need to click on the link to activate your account. </p>
<div class="v-card-title text-h5 pt-0 text-center"> Account Creation Successful </div>
<div class="mt-2 mb-0 text-center" data-test="accountCreated-message"> Thank you for registering an account on ShellHub. <p data-test="accountCreated-normal-message"> An email was sent with a confirmation link. You need to click on the link to activate your account. </p>
</div>
<p class=\\"text-caption mt-2 mb-0\\" data-test=\\"accountCreated-email-info\\"> If you haven't received the email, click on the button. </p>
<div class=\\"v-card-actions justify-center\\"><button type=\\"submit\\" class=\\"v-btn v-btn--slim v-theme--light text-primary v-btn--density-default v-btn--size-default v-btn--variant-text\\" data-test=\\"resendEmail-btn\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span>
<!----><span class=\\"v-btn__content\\" data-no-activator=\\"\\">RESEND EMAIL</span>
<p class="text-caption mt-2 mb-0" data-test="accountCreated-email-info"> If you haven't received the email, click on the button. </p>
<div class="v-card-actions justify-center"><button type="submit" class="v-btn v-btn--slim v-theme--light text-primary v-btn--density-default v-btn--size-default v-btn--variant-text" data-test="resendEmail-btn"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
<!----><span class="v-btn__content" data-no-activator="">RESEND EMAIL</span>
<!---->
<!---->
</button></div>
<!---->
<!----><span class=\\"v-card__underlay\\"></span>
<!----><span class="v-card__underlay"></span>
</div>"
`;
28 changes: 14 additions & 14 deletions ui/tests/components/AppBar/__snapshots__/AppBar.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`AppBar Component > Renders the component 1`] = `
"<div class=\\"v-layout\\">
<header class=\\"v-toolbar v-toolbar--flat v-toolbar--floating v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar bg-background border-b-thin\\" style=\\"top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; transition: none; left: 0px; width: calc(100% - 0px - 0px);\\" data-test=\\"app-bar\\">
"<div class="v-layout">
<header class="v-toolbar v-toolbar--flat v-toolbar--floating v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar bg-background border-b-thin" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; transition: none; left: 0px; width: calc(100% - 0px - 0px);" data-test="app-bar">
<!---->
<div class=\\"v-toolbar__content\\" style=\\"height: 64px;\\">
<div class="v-toolbar__content" style="height: 64px;">
<!---->
<!----><button type=\\"button\\" class=\\"v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-text hidden-lg-and-up v-app-bar-nav-icon\\" aria-label=\\"Toggle Menu\\" data-test=\\"menu-toggle\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span>
<!----><span class=\\"v-btn__content\\" data-no-activator=\\"\\"><i class=\\"mdi-menu mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span>
<!----><button type="button" class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-text hidden-lg-and-up v-app-bar-nav-icon" aria-label="Toggle Menu" data-test="menu-toggle"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
<!----><span class="v-btn__content" data-no-activator=""><i class="mdi-menu mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span>
<!---->
<!---->
</button><i class=\\"mdi-server-network mdi v-icon notranslate v-theme--light v-icon--size-default ml-4 hidden-md-and-down\\" aria-hidden=\\"true\\"></i>
<ul class=\\"v-breadcrumbs v-breadcrumbs--density-default hidden-md-and-down\\" data-test=\\"breadcrumbs\\">
</button><i class="mdi-server-network mdi v-icon notranslate v-theme--light v-icon--size-default ml-4 hidden-md-and-down" aria-hidden="true"></i>
<ul class="v-breadcrumbs v-breadcrumbs--density-default hidden-md-and-down" data-test="breadcrumbs">
<!---->
<!---->
</ul>
<div class=\\"v-spacer\\"></div><button type=\\"button\\" class=\\"v-btn v-btn--icon v-theme--light text-primary v-btn--density-default v-btn--variant-text\\" aria-describedby=\\"v-tooltip-2\\" aria-label=\\"community-help-icon\\" data-test=\\"support-btn\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span>
<!----><span class=\\"v-btn__content\\" data-no-activator=\\"\\"><i class=\\"mdi-help-circle mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span>
<div class="v-spacer"></div><button type="button" class="v-btn v-btn--icon v-theme--light text-primary v-btn--density-default v-btn--variant-text" aria-describedby="v-tooltip-2" aria-label="community-help-icon" data-test="support-btn"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
<!----><span class="v-btn__content" data-no-activator=""><i class="mdi-help-circle mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span>
<!---->
<!---->
</button>
<!--teleport start-->
<!--teleport end--><i class=\\"mdi-bell mdi v-icon notranslate v-theme--light v-icon--size-default text-primary v-icon--clickable ml-2 mr-2\\" role=\\"button\\" aria-hidden=\\"false\\" tabindex=\\"0\\" aria-haspopup=\\"menu\\" aria-expanded=\\"false\\" aria-owns=\\"v-menu-4\\" aria-label=\\"notifications-icon\\"></i>
<!----><button type=\\"button\\" class=\\"v-btn v-theme--light text-primary v-btn--density-default v-btn--size-default v-btn--variant-text pl-2 pr-2 mr-4\\" aria-haspopup=\\"menu\\" aria-expanded=\\"false\\" aria-owns=\\"v-menu-5\\" data-test=\\"user-menu-btn\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span>
<!----><span class=\\"v-btn__content\\" data-no-activator=\\"\\"><div data-v-09753bb1=\\"\\" class=\\"v-avatar v-theme--light bg-primary v-avatar--density-default v-avatar--variant-flat border\\" style=\\"width: 1.5rem; height: 1.5rem;\\" data-test=\\"user-icon\\"><div data-v-09753bb1=\\"\\" class=\\"v-responsive v-img v-img--booting\\" data-test=\\"gravatar-image\\"><div class=\\"v-responsive__sizer\\"></div><!----><transition-stub name=\\"fade-transition\\" appear=\\"false\\" persisted=\\"false\\" css=\\"true\\"><!----></transition-stub><!----><!----><!----><!----></div><!----><span class=\\"v-avatar__underlay\\"></span>
</div></span><span class=\\"v-btn__append\\"><i class=\\"mdi-menu-down mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span>
<!--teleport end--><i class="mdi-bell mdi v-icon notranslate v-theme--light v-icon--size-default text-primary v-icon--clickable ml-2 mr-2" role="button" aria-hidden="false" tabindex="0" aria-haspopup="menu" aria-expanded="false" aria-owns="v-menu-4" aria-label="notifications-icon"></i>
<!----><button type="button" class="v-btn v-theme--light text-primary v-btn--density-default v-btn--size-default v-btn--variant-text pl-2 pr-2 mr-4" aria-haspopup="menu" aria-expanded="false" aria-owns="v-menu-5" data-test="user-menu-btn"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
<!----><span class="v-btn__content" data-no-activator=""><div data-v-09753bb1="" class="v-avatar v-theme--light bg-primary v-avatar--density-default v-avatar--variant-flat border" style="width: 1.5rem; height: 1.5rem;" data-test="user-icon"><div data-v-09753bb1="" class="v-responsive v-img v-img--booting" data-test="gravatar-image"><div class="v-responsive__sizer"></div><!----><transition-stub name="fade-transition" appear="false" persisted="false" css="true"><!----></transition-stub><!----><!----><!----><!----></div><!----><span class="v-avatar__underlay"></span>
</div></span><span class="v-btn__append"><i class="mdi-menu-down mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span>
<!----></button>
<!---->
<!---->
</div>
<transition-stub name=\\"expand-transition\\" appear=\\"false\\" persisted=\\"false\\" css=\\"true\\">
<transition-stub name="expand-transition" appear="false" persisted="false" css="true">
<!---->
</transition-stub>
</header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Mfa Mail Recover > Renders the component 1`] = `
"<div class=\\"v-container v-locale--is-ltr\\">
<div class=\\"v-row\\">
<div class=\\"v-col\\" align=\\"center\\">
<h3 data-test=\\"title\\">Multi-factor Authentication</h3>
"<div class="v-container v-locale--is-ltr">
<div class="v-row">
<div class="v-col" align="center">
<h3 data-test="title">Multi-factor Authentication</h3>
</div>
</div>
<div class=\\"v-row mb-2\\">
<div class=\\"v-col\\" align=\\"center\\">
<h4 data-test=\\"sub-title\\">An email has been sent to the primary and recovery mail. Please check your inbox and click the link we've provided to disable the MFA.</h4>
<div class="v-row mb-2">
<div class="v-col" align="center">
<h4 data-test="sub-title">An email has been sent to the primary and recovery mail. Please check your inbox and click the link we've provided to disable the MFA.</h4>
</div>
</div>
<div class=\\"v-card-subtitle d-flex align-center justify-center pa-4 mx-auto pt-2\\" data-test=\\"back-to-login\\"> Back to <a href=\\"/login\\" class=\\"ml-1\\" data-test=\\"login-btn\\"> Login </a></div>
<div class="v-card-subtitle d-flex align-center justify-center pa-4 mx-auto pt-2" data-test="back-to-login"> Back to <a href="/login" class="ml-1" data-test="login-btn"> Login </a></div>
</div>"
`;
Loading
Loading