From 4d34e086f7062ccbff3ed4551b8e77df0578d387 Mon Sep 17 00:00:00 2001 From: Maisam Afshar Date: Fri, 7 Jul 2023 11:00:05 +0330 Subject: [PATCH 1/2] refactor: options api to composition api --- .eslintrc.js | 3 +- .npmrc | 3 + README.md | 2 +- public/index.html | 14 +- src/App.vue | 83 +++--- src/components/SoftAlert.vue | 58 ++--- src/components/SoftAvatar.vue | 91 ++++--- src/components/SoftBadge.vue | 89 +++---- src/components/SoftButton.vue | 95 ++++--- src/components/SoftCheckbox.vue | 36 ++- src/components/SoftInput.vue | 139 +++++----- src/components/SoftPagination.vue | 46 ++-- src/components/SoftPaginationItem.vue | 70 +++-- src/components/SoftProgress.vue | 60 ++--- src/components/SoftRadio.vue | 37 ++- src/components/SoftSwitch.vue | 45 ++-- src/components/SoftTextarea.vue | 29 +-- src/examples/Breadcrumbs.vue | 40 +-- src/examples/Cards/DefaultInfoCard.vue | 62 +++-- src/examples/Cards/MasterCard.vue | 72 +++--- src/examples/Cards/MiniPlayerCard.vue | 44 ++-- src/examples/Cards/MiniStatisticsCard.vue | 122 +++++---- src/examples/Cards/PlaceHolderCard.vue | 40 ++- src/examples/Cards/RankingList.vue | 45 ++-- src/examples/Cards/RankingListCard.vue | 58 ++--- src/examples/Charts/GradientLineChart.vue | 270 ++++++++++---------- src/examples/Charts/ReportsBarChart.vue | 247 +++++++++--------- src/examples/Configurator.vue | 125 +++++---- src/examples/Footer.vue | 12 +- src/examples/Navbars/Navbar.vue | 120 +++++---- src/examples/PageLayout/Footer.vue | 7 +- src/examples/PageLayout/Navbar.vue | 38 +-- src/examples/Sidenav/SidenavCard.vue | 66 +++-- src/examples/Sidenav/SidenavCollapse.vue | 48 ++-- src/examples/Sidenav/SidenavList.vue | 71 ++--- src/examples/Sidenav/index.vue | 41 ++- src/main.js | 4 +- src/store/index.js | 7 +- src/views/Billing.vue | 48 ++-- src/views/Dashboard.vue | 87 ++----- src/views/Home.vue | 14 +- src/views/Profile.vue | 116 ++++----- src/views/Rtl.vue | 92 +++---- src/views/SignIn.vue | 62 ++--- src/views/SignUp.vue | 55 ++-- src/views/Tables.vue | 17 +- src/views/VirtualReality.vue | 138 +++++----- src/views/components/AuthorsTable.vue | 39 +-- src/views/components/BillingCard.vue | 36 ++- src/views/components/CalendarCard.vue | 25 +- src/views/components/DefaultProjectCard.vue | 70 +++-- src/views/components/EmailCard.vue | 36 ++- src/views/components/InvoiceCard.vue | 14 +- src/views/components/MessageCard.vue | 42 ++- src/views/components/NavPill.vue | 19 +- src/views/components/PaymentMethodsCard.vue | 22 +- src/views/components/ProfileInfoCard.vue | 79 +++--- src/views/components/ProjectsCard.vue | 99 +++---- src/views/components/ProjectsTable.vue | 14 +- src/views/components/TimelineItem.vue | 67 +++-- src/views/components/TimelineList.vue | 36 ++- src/views/components/TodoCard.vue | 36 +-- 62 files changed, 1651 insertions(+), 2051 deletions(-) create mode 100644 .npmrc diff --git a/.eslintrc.js b/.eslintrc.js index 3f681ed..a32b94b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,10 +5,11 @@ module.exports = { }, extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/prettier"], parserOptions: { - parser: "babel-eslint" + parser: "@babel/eslint-parser" }, rules: { "prettier/prettier": "off", + "vue/multi-word-component-names": "off", "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" } diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5c6c958 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +legacy-peer-deps=true +auto-install-peers=true +strict-peer-dependencies=false \ No newline at end of file diff --git a/README.md b/README.md index 5bc5a92..2ec8790 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [Vue Soft UI Dashboard](http://demos.creative-tim.com/vue-soft-ui-dashboard/?ref=readme-vsud) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?url=https://www.creative-tim.com/product/vue-soft-ui-dashboard&text=Check%20Vue%20Soft%20UI%20Dashboard%20made%20by%20@CreativeTim%20#webdesign%20#dashboard%20#softdesign%20#vue%20https://www.creative-tim.com/product/vue-soft-ui-dashboard) -![version](https://img.shields.io/badge/version-3.0.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/vue-soft-ui-dashboard.svg)](https://github.com/creativetimofficial/vue-soft-ui-dashboard/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/vue-soft-ui-dashboard.svg)](https://github.com/creativetimofficial/vue-soft-ui-dashboard/issues?q=is%3Aissue+is%3Aclosed) +![version](https://img.shields.io/badge/version-4.0.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/vue-soft-ui-dashboard.svg)](https://github.com/creativetimofficial/vue-soft-ui-dashboard/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/vue-soft-ui-dashboard.svg)](https://github.com/creativetimofficial/vue-soft-ui-dashboard/issues?q=is%3Aissue+is%3Aclosed) ![Image](https://s3.amazonaws.com/creativetim_bucket/products/591/original/vue-soft-ui-dashboard.jpg) diff --git a/public/index.html b/public/index.html index a577d20..41dabcb 100644 --- a/public/index.html +++ b/public/index.html @@ -1,10 +1,10 @@ - + @@ -36,10 +36,14 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" /> - + - +