diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 00000000..214388fe --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,3 @@ +> 1% +last 2 versions +not dead diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..46f7ac98 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# Editor configuration, see http://editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = off +trim_trailing_whitespace = false \ No newline at end of file diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..eab94520 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,8 @@ +node_modules/* +./node_modules/** +**/node_modules/** +/dist/** +.eslintrc.js +/Users/lukaszholeczek/CoreUI/@coreui/icons-vue/**/* +/Users/lukaszholeczek/CoreUI/@coreui/icons-vue/ +**/* diff --git a/.eslintrc.js b/.eslintrc.js index 1c6179f3..410c5989 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,17 +1,25 @@ module.exports = { root: true, env: { - node: true - }, - 'extends': [ - 'plugin:vue/essential', - 'eslint:recommended' - ], - rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' + node: true, }, + extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@vue/prettier"], parserOptions: { - parser: 'babel-eslint' - } -} + parser: "babel-eslint", + }, + rules: { + "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", + "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", + }, + overrides: [ + { + files: [ + "**/__tests__/*.{j,t}s?(x)", + "**/tests/unit/**/*.spec.{j,t}s?(x)", + ], + env: { + jest: true, + }, + }, + ], +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..205021e4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Enforce Unix newlines +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index 18a9b58c..d115b875 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,12 @@ .DS_Store -node_modules -package-lock.json +node_modules/ /dist -/coverage /tests/e2e/reports/ selenium-debug.log chromedriver.log +geckodriver.log + # local env files .env.local @@ -16,6 +16,7 @@ chromedriver.log npm-debug.log* yarn-debug.log* yarn-error.log* +pnpm-debug.log* # Editor directories and files .idea @@ -24,4 +25,6 @@ yarn-error.log* *.ntvs* *.njsproj *.sln -*.sw* +*.sw? + +__old diff --git a/.postcssrc.js b/.postcssrc.js deleted file mode 100644 index 100cc012..00000000 --- a/.postcssrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - plugins: { - autoprefixer: {} - } -} \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..1fb3a24e --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,6 @@ +// module.exports = { +// semi: false, +// trailingComma: "all", +// singleQuote: true, +// tabWidth: 2 +// }; diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e2f65b7c..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,147 +0,0 @@ -### Changelog - -All notable changes to this project will be documented in this file. Dates are displayed in UTC. - -#### [3.1.4](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.1.2...3.1.4) - -> 12 March 2021 - -- test: snapshot update, createRange mock [`0370878`](https://github.com/coreui/coreui-free-vue-admin-template/commit/0370878bff47bcdfb48090437e6f836d373e7691) -- chore: dependencies update [`c22a75b`](https://github.com/coreui/coreui-free-vue-admin-template/commit/c22a75b3cd733e1fa95808a17b91a3bdbea5c44e) -- chore: github workflows update [`405b7c8`](https://github.com/coreui/coreui-free-vue-admin-template/commit/405b7c814bdb4ca87569f024bef26bf0334d83ec) - -#### [3.1.2](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.1.1...3.1.2) - -> 4 January 2021 - -- chore: dependencies update, drop node v10, ie10 [`4f96324`](https://github.com/coreui/coreui-free-vue-admin-template/commit/4f96324e8547682b2f0af6fcf211fea86bb88fcc) -- test: snaps update [`9286d67`](https://github.com/coreui/coreui-free-vue-admin-template/commit/9286d67e8d0a92f1db57b97b46514606fea0faa3) -- fix(BrandButtons): icon spacing tempfix [`3a315ad`](https://github.com/coreui/coreui-free-vue-admin-template/commit/3a315addbd0573ab64cf349a8167713ef4857a45) -- chore: changelog update, version bump [`bff8968`](https://github.com/coreui/coreui-free-vue-admin-template/commit/bff8968386dfafdf451f64657ca89a6ca5d1ab85) -- chore: project checks update [`999e22b`](https://github.com/coreui/coreui-free-vue-admin-template/commit/999e22b7e141a55da666c4cfa826150b51b41c7f) -- fix(vue.config): teanspileDependencies update [`9e3876f`](https://github.com/coreui/coreui-free-vue-admin-template/commit/9e3876fd7d212496b2b05165fc69a7869b858721) -- chore: 3.1.2 version release [`5fa4ddb`](https://github.com/coreui/coreui-free-vue-admin-template/commit/5fa4ddbd9149e62daa8f4c0b5f7601aaf67da19f) - -#### [3.1.1](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.1.0...3.1.1) - -> 8 September 2020 - -- test: Improve code, coverage for ProgressBar & Forms [`#230`](https://github.com/coreui/coreui-free-vue-admin-template/pull/230) -- chore: 3.1.1 release: update dependencies [`d41f8ea`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d41f8ea967e2bd35ef1126465d3c757634ac75fa) -- chore: update package-lock.json [`e48528f`](https://github.com/coreui/coreui-free-vue-admin-template/commit/e48528fb3d777345cd9bd0ab2ca867404c0d5713) -- chore: remove e2e tests from CI [`70a33b9`](https://github.com/coreui/coreui-free-vue-admin-template/commit/70a33b9c9180ced8cc298fd46a736bc06a033c2e) - -#### [3.1.0](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.2...3.1.0) - -> 16 July 2020 - -- chore: update dependencies [`e152666`](https://github.com/coreui/coreui-free-vue-admin-template/commit/e152666a27a1c8059a29f90b7c47721132b55f04) -- refactor: view fixes and changes, update packages, add e2e sidebar tests [`8c14ca9`](https://github.com/coreui/coreui-free-vue-admin-template/commit/8c14ca9331753ed98ec18f8e193166423e7e219a) -- chore: update package-lock.json [`3c0f06f`](https://github.com/coreui/coreui-free-vue-admin-template/commit/3c0f06fd5ae323f958dad39384ab145fc1bac53e) -- fix: minor refactors and fixes [`5a23cd1`](https://github.com/coreui/coreui-free-vue-admin-template/commit/5a23cd1890b6eb747c74048d677bb5ac0c4e1db1) -- chore: update changelog [`94d642e`](https://github.com/coreui/coreui-free-vue-admin-template/commit/94d642ef80550de293870f99fba9e01850674158) -- chore: update login page snapshot [`a6b04a6`](https://github.com/coreui/coreui-free-vue-admin-template/commit/a6b04a6657d55165ae20b3a6e5b654b6451d1e31) -- chore: update snapshots [`7ee3b0f`](https://github.com/coreui/coreui-free-vue-admin-template/commit/7ee3b0f4dbadecabc3558de106858c4cbfd64f92) -- test: update tests [`a4a0b68`](https://github.com/coreui/coreui-free-vue-admin-template/commit/a4a0b68f1926315a864ad89ec57ad0d18e856fc0) -- fix: fix login page on edge browser #204 [`d919129`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d919129ba7293341e7b34b6a10a4162243e51a82) -- refactor: small fixes [`4ca4c90`](https://github.com/coreui/coreui-free-vue-admin-template/commit/4ca4c900cca5664a4f419b59b8bda5054854ff42) -- Update README.md [`1355022`](https://github.com/coreui/coreui-free-vue-admin-template/commit/13550221f6973aa3a1a3475caf669cd5e26ba6fb) -- fix: fix Table border prop #224 [`d756323`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d756323b917eecd661592d0d2b270eed24b226f5) -- chore: 3.1.0 version release [`5f5a2f7`](https://github.com/coreui/coreui-free-vue-admin-template/commit/5f5a2f79d184d4b9783698b88cf22fdb82cf148b) -- chore: merge branch 'master' into dev [`bb71694`](https://github.com/coreui/coreui-free-vue-admin-template/commit/bb71694960f86443c1b8454bf1d73d50cc15ce35) -- chore: fix daily-project-check CI [`d86cba1`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d86cba17ea7c3bb3b1f385130e986b82c7cd33d7) -- chore: check if CI works on node 10 [`86dfcb2`](https://github.com/coreui/coreui-free-vue-admin-template/commit/86dfcb26e8a16fb438b33701fc8a02fcf32fdbb9) -- chore: restore node 8/10 CI [`fed84e8`](https://github.com/coreui/coreui-free-vue-admin-template/commit/fed84e858b0fb01b487d938f7eb624a6ca090bd6) -- chore: check if CI works on node 12 [`d06f05c`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d06f05cf0f253b00a18c3ebb82c8d85ab589d1be) -- chore: delete .npmrc [`c428f91`](https://github.com/coreui/coreui-free-vue-admin-template/commit/c428f911512edf14748a32576f40e68a63e2ca83) -- chore: force chromedriver download [`abb50db`](https://github.com/coreui/coreui-free-vue-admin-template/commit/abb50db9cf1209def2df0a52fc793849dd22c288) - -#### [3.0.2](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.1...3.0.2) - -> 8 April 2020 - -- chore: 3.0.1 release - update dependencies and small fixes [`36ea31a`](https://github.com/coreui/coreui-free-vue-admin-template/commit/36ea31a37d8cd285f72602be13da561f192542d5) -- chore: 3.0.2 version release [`a281552`](https://github.com/coreui/coreui-free-vue-admin-template/commit/a28155262a2f692ba73e116ec851f7ea356b420c) -- fix: update package-lock.json [`12789d1`](https://github.com/coreui/coreui-free-vue-admin-template/commit/12789d1c12a8a4d9875d214b4b5d1cf4ebc12947) -- fix: lock chromedriver on 80.0.1 [`d17297e`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d17297e23df1b294893168a8bf5eea76a67c9daa) - -#### [3.0.1](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.0...3.0.1) - -> 19 March 2020 - -- chore: replace comment with template string in example js icon [`#201`](https://github.com/coreui/coreui-free-vue-admin-template/pull/201) -- test: improve test coverage alert [`#192`](https://github.com/coreui/coreui-free-vue-admin-template/pull/192) -- test: add CChartBarExample unit test [`#193`](https://github.com/coreui/coreui-free-vue-admin-template/pull/193) -- refactor: minor code refactors and fixes, update packages [`0d2b619`](https://github.com/coreui/coreui-free-vue-admin-template/commit/0d2b619677ba170898ec19ae9ad0a99db22b5d51) -- fix: fix user view routing, refactor users view [`e1972c2`](https://github.com/coreui/coreui-free-vue-admin-template/commit/e1972c2ceaf0917f3c5567c04ab9369ea4d69cbb) -- chore: update readme and license [`db2fd31`](https://github.com/coreui/coreui-free-vue-admin-template/commit/db2fd31fbd1489a1b6f05aecdaab44f017567b3f) - -#### [3.0.0](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.0-beta.3...3.0.0) - -> 24 February 2020 - -- test: Improve test coverage to 100% for users views [`#188`](https://github.com/coreui/coreui-free-vue-admin-template/pull/188) -- chore: merge branch 'dev' into v3-next [`9132c2f`](https://github.com/coreui/coreui-free-vue-admin-template/commit/9132c2f449f367dc81e0ee6f39c6ec7958f0280a) -- fix: fix ie11 compatibility and update dependencies [`d57a73a`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d57a73a8a1e6495a94646b268aaddf3967ffdb47) -- refactor: small fixes [`9ea0664`](https://github.com/coreui/coreui-free-vue-admin-template/commit/9ea06648416b505edd347166d7961ca8550deeae) -- feat: add vuex state managment [`6d530f7`](https://github.com/coreui/coreui-free-vue-admin-template/commit/6d530f74ee02884e69a60a4b74fcfd45bdbc7bc8) -- feat: copy features from pro template [`7e9d384`](https://github.com/coreui/coreui-free-vue-admin-template/commit/7e9d384af2beb2700909f5eb957b4a35609c10bd) -- test: fix snapshots and sidebar test [`5960f11`](https://github.com/coreui/coreui-free-vue-admin-template/commit/5960f11f6ce864a5ce492f49195d8504eb977933) -- refactor: view refactors, snapshot update [`f0533a9`](https://github.com/coreui/coreui-free-vue-admin-template/commit/f0533a9b2e467d7ed9bcecfd0ca37fc4478b81d8) -- refactor: change brand logos [`58fa7d6`](https://github.com/coreui/coreui-free-vue-admin-template/commit/58fa7d633e4a9770740fda013b410911538d7e4f) -- feat: Users: add query param for current page, refactor code [`c68263b`](https://github.com/coreui/coreui-free-vue-admin-template/commit/c68263b85f458c5a5c45656b837999c7c6314727) -- chore: refactor CI workflows [`08f8f01`](https://github.com/coreui/coreui-free-vue-admin-template/commit/08f8f0195a2385217aedc7a2920c3de1bbf45cce) -- refactor: minor changes [`f3a1e22`](https://github.com/coreui/coreui-free-vue-admin-template/commit/f3a1e2269f65edf3a67f9770a4697024a6a124a9) -- chore: add github CI [`94f3108`](https://github.com/coreui/coreui-free-vue-admin-template/commit/94f31082eb4ebede00f4e86302de8f6a4fd43f31) -- refactor: small refactors [`0493a99`](https://github.com/coreui/coreui-free-vue-admin-template/commit/0493a99c315b0a10053476c2a13897158bbfeb93) -- chore: update CI [`f661fb4`](https://github.com/coreui/coreui-free-vue-admin-template/commit/f661fb42571cb88ab3fb0158c9b212235ed01d45) -- chore: update CI of e2e test [`d65c8cc`](https://github.com/coreui/coreui-free-vue-admin-template/commit/d65c8ccf5e357230b6f4c7ab9c8000fe7a769f55) -- chore: 3.0.0 version release [`c473182`](https://github.com/coreui/coreui-free-vue-admin-template/commit/c473182f6c92811d9adb07401f3753b62facaedb) -- chore: update contributing guide [`e5dc6e2`](https://github.com/coreui/coreui-free-vue-admin-template/commit/e5dc6e2bfc84353e3581a98b66ba7dfc03e22cc2) -- chore: e2e test CI: fix run command [`c496b32`](https://github.com/coreui/coreui-free-vue-admin-template/commit/c496b32cb0e91bf15ad2da6d5585f5282fdcf675) -- chore: fix CI of e2e tests [`79f8a3b`](https://github.com/coreui/coreui-free-vue-admin-template/commit/79f8a3b315e76b24978559d5a71c400095709508) - -#### [3.0.0-beta.3](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.0-beta.2...3.0.0-beta.3) - -> 11 December 2019 - -- chore: 3.0.0-beta.3 release merge [`7eb5cd5`](https://github.com/coreui/coreui-free-vue-admin-template/commit/7eb5cd5406a9c8f2e88cc65401e6e394281ee086) -- chore: 3.0.0-beta.3 release: update descriptions, tests, dependencies [`72f6c4e`](https://github.com/coreui/coreui-free-vue-admin-template/commit/72f6c4e86f133c230bcd82018517c6218eeafe49) -- chore: update import paths and snapshots [`860d8d5`](https://github.com/coreui/coreui-free-vue-admin-template/commit/860d8d525699628e611cc1cc7d6909d5bb936b7f) -- refactor: update WidgetDropdown view [`b564797`](https://github.com/coreui/coreui-free-vue-admin-template/commit/b564797ad98dadfc825229ab75852c6ac23d960c) - -#### [3.0.0-beta.2](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.0-beta.1...3.0.0-beta.2) - -> 4 December 2019 - -- chore: 3.0.0-beta.2 release [`6dcf544`](https://github.com/coreui/coreui-free-vue-admin-template/commit/6dcf544f8650eae5ce82e5cf7036ad267c2d6a79) -- refactor: minor refactors, fixes, code clean and snapshots update [`cbeebb7`](https://github.com/coreui/coreui-free-vue-admin-template/commit/cbeebb7152218813126268181a253250b5e54b18) -- chore: update package.json file [`20a24e9`](https://github.com/coreui/coreui-free-vue-admin-template/commit/20a24e934d47849a3fdc147a7d5b4c30407b89b6) -- refactor: change header logo, delete obsolete images [`6657f03`](https://github.com/coreui/coreui-free-vue-admin-template/commit/6657f03a584a86222e7d82fe9ece7bf6418230a7) -- fix: change coloured cards text color to white [`6c91472`](https://github.com/coreui/coreui-free-vue-admin-template/commit/6c91472ae574ff36baec9eb9bb995aa1038655b7) - -#### [3.0.0-beta.1](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.0-beta.0...3.0.0-beta.1) - -> 21 November 2019 - -- chore: 3.0.0-beta.1 release - update dependencies and snapshots [`0aaae3d`](https://github.com/coreui/coreui-free-vue-admin-template/commit/0aaae3d34d2de5d04e10a3272dd84d7d5232e397) -- refactor: fix small bugs, update unit tests [`b696666`](https://github.com/coreui/coreui-free-vue-admin-template/commit/b6966668069d91aeeb4fbeb33f0a1f5a9f5c374e) -- refactor: replace font icons with svg icons [`bc82261`](https://github.com/coreui/coreui-free-vue-admin-template/commit/bc822612da823bee9a0f3f113c7d6e49d6a61496) -- refactor: add prefixes to icons [`0bf951c`](https://github.com/coreui/coreui-free-vue-admin-template/commit/0bf951c64d8065a0ee9bc5da6d00ca4079a2e37b) -- refacor: update dashboard to coreui-vue changes [`1c7b133`](https://github.com/coreui/coreui-free-vue-admin-template/commit/1c7b133ae5b97957cd6522dbd20250e60b383154) -- refactor: minor refactors, update snapshots [`07e4966`](https://github.com/coreui/coreui-free-vue-admin-template/commit/07e4966ad2ca181c9501a29b48486478131aee96) -- refactor: update base views [`70058e8`](https://github.com/coreui/coreui-free-vue-admin-template/commit/70058e8c2912a83bef675c03c9507d5f275fc87f) -- refactor: change sidebar nav generation to flat structure [`760dc7b`](https://github.com/coreui/coreui-free-vue-admin-template/commit/760dc7ba79114727987e6917097e045c0f122b7b) -- chore: update dependencies [`2226c3b`](https://github.com/coreui/coreui-free-vue-admin-template/commit/2226c3ba55912ae420aa8fe096edfd3d804d4c95) -- chore: add new favicons [`281c4b9`](https://github.com/coreui/coreui-free-vue-admin-template/commit/281c4b97fb93597db46599aaa098ff3b47cffa59) -- refactor: change icon descriptions, fix header, add card icon styles [`2310a0e`](https://github.com/coreui/coreui-free-vue-admin-template/commit/2310a0ef005aa4298fea082fa3b22ca621a9c8e5) -- chore: fix documentation links [`cdfef77`](https://github.com/coreui/coreui-free-vue-admin-template/commit/cdfef77bab0f02eaa9db0c27729fa5dc9b92120e) -- chore: update packages and tests [`cb5f6ec`](https://github.com/coreui/coreui-free-vue-admin-template/commit/cb5f6ec3a2d4842f10c9c9b4e5c6facf9fc46e11) -- chore: charts - change import paths [`e875893`](https://github.com/coreui/coreui-free-vue-admin-template/commit/e8758931fd349c3849831a39366dfb57701572a8) -- fix: fix charts [`07a6b95`](https://github.com/coreui/coreui-free-vue-admin-template/commit/07a6b9538081615b2380e1a3e930e1420921544c) - -#### [3.0.0-beta.0](https://github.com/coreui/coreui-free-vue-admin-template/compare/3.0.0-alpha.6...3.0.0-beta.0) - -> 19 November 2019 - -- chore: 3.0.0-beta.0 release: update dependencies [`f020186`](https://github.com/coreui/coreui-free-vue-admin-template/commit/f0201861520db3560794405da2606ba2473a1858) diff --git a/LICENSE b/LICENSE deleted file mode 100644 index b1ddb7f0..00000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2020 creativeLabs Łukasz Holeczek. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/README.md b/README.md index d1d0d816..ded2b05b 100644 --- a/README.md +++ b/README.md @@ -1,159 +1,34 @@ -# CoreUI Free Vue Bootstrap Admin Template +# @coreui/coreui-free-vue-admin-template -[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Vue%20Admin%20Template%20&url=http://coreui.io/vue/&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue) -[![NPM][npm-coreui-vue-badge-latest]][npm-coreui-vue] -[![Downloads](https://img.shields.io/npm/dm/@coreui/vue.svg?style=flat-square)][coreui] -[![Vue](https://img.shields.io/badge/Vue-^2.6.11-brightgreen.svg?style=flat-square)][coreui] - -[![Project check](https://github.com/coreui/coreui-free-vue-admin-template/actions/workflows/project-check.yml/badge.svg)](https://github.com/coreui/coreui-free-vue-admin-template/actions/workflows/project-check.yml) -[![Daily project check](https://github.com/coreui/coreui-free-vue-admin-template/actions/workflows/daily-project-check.yml/badge.svg)](https://github.com/coreui/coreui-free-vue-admin-template/actions/workflows/daily-project-check.yml) - -[npm-coreui-vue]: https://www.npmjs.com/package/@coreui/vue -[npm-coreui-vue-badge-latest]: https://img.shields.io/npm/v/@coreui/vue/latest?style=flat-square&color=brightgreen -[coreui]: https://coreui.io/vue - -![Template](https://coreui.io/images/github/vue-free-template-3.gif) - -## Description - -Why we decided to create CoreUI? Please read this article: [Jack of all trades, master of none. Why Boostrap Admin Templates suck.](https://medium.com/@lukaszholeczek/jack-of-all-trades-master-of-none-5ea53ef8a1f#.7eqx1bcd8) - -**This is not just another Admin Template.** It goes way beyond hitherto admin templates thanks to: - -- Wonderful styling delivered by bootstrap compatible css library [CoreUI](https://coreui.io/docs/3.0-beta/), -- Dedicated [component library](https://coreui.io/vue/docs/), -- Dedicated vue tooling libraries ([coreui-vue-chartjs](https://coreui.io/vue/docs/components/charts), [coreui-icons-vue](https://github.com/coreui/coreui-icons-vue)), -- Over 500 [free svg icons](https://coreui.io/icons) consistent with our styling, -- Transparent code and file structure -- Possibility of extension to [pro version](https://coreui.io/vue) which offers even more! - -CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of redundant components, so the app is light enough to offer ultimate user experience. This means mobile devices also, where the navigation is just as easy and intuitive as on a desktop or laptop. The CoreUI Layout API lets you customize your project for almost any device – be it Mobile, Web or WebApp – CoreUI covers them all! - -**NOTE:** Please remember to star this project to get new versions updates of this template. - -### Demo - -A fully functional demo is available at [CoreUI](http://coreui.io/vue/) - -### Table of Contents - -- [Installation](#installation) -- [Usage](#usage) -- [Documentation](#documentation) -- [Contributing](#contributing) -- [Versioning](#versioning) -- [Our other products](#our-other-products) -- [Community](#community) -- [Community Projects](#community-projects) -- [License](#copyright-and-license) -- [Support CoreUI Development](#support-coreui-development) - -### Installation - -#### Clone repo - -``` bash -# clone the repo -$ git clone https://github.com/coreui/coreui-free-vue-admin-template.git CoreUI-Vue - -# go into app's directory -$ cd CoreUI-Vue - -# install app's dependencies -$ npm install +## Project setup +``` +yarn install ``` -#### Usage - -``` bash -# serve with hot reload at localhost:8080 -npm run serve - -# build for production with minification -npm run build - -# run linter -npm run lint - -# run unit tests -npm run test:unit - -# run e2e tests -npm run test:e2e - +### Compiles and hot-reloads for development +``` +yarn serve ``` -For a detailed explanation on how things work, check out the [Vue CLI Guide](https://cli.vuejs.org/guide/). +### Compiles and minifies for production +``` +yarn build +``` -### Documentation +### Run your unit tests +``` +yarn test:unit +``` -CoreUI tools documentation: +### Run your end-to-end tests +``` +yarn test:e2e +``` -- Components documentation: [CoreUI Vue library](https://coreui.io/vue/docs) -- Styles documentation: [CoreUI styles](https://coreui.io/docs/3.0-beta/) -- Icons documentation: [CoreUI Icons](http://coreui.io/icons) +### Lints and fixes files +``` +yarn lint +``` -### Bugs and feature requests - -Have a bug or a feature request? [Please open a new issue](https://github.com/coreui/coreui-free-vue-admin-template/issues). - -### Contributing - -Please read through our [contributing guidelines](https://github.com/coreui/coreui-free-vue-admin-template/blob/master/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development. - -### Versioning - -For transparency into our release cycle and in striving to maintain backward compatibility,CoreUI Free Admin Template is maintained under [the Semantic Versioning guidelines](http://semver.org/). - -See [the Releases section of our project](https://github.com/coreui/coreui-free-vue-admin-template/releases) for changelogs for each release version. - -### Our other products - -CoreUI is built on top of Bootstrap 4 and supports popular frameworks. - -#### Free version products - -* [CoreUI Free Bootstrap Admin Template](https://github.com/coreui/coreui-free-bootstrap-admin-template) -* [CoreUI Free Angular Admin Template](https://github.com/coreui/coreui-free-angular-admin-template) -* [CoreUI Free Laravel Admin Template](https://github.com/coreui/coreui-free-laravel-admin-template) -* [CoreUI Free React.js Admin Template](https://github.com/coreui/coreui-free-react-admin-template) -* [CoreUI Free Vue.js Admin Template](https://github.com/coreui/coreui-free-vue-admin-template) -* [CoreUI Free Vue.js + Laravel Admin Template](https://github.com/coreui/coreui-free-vue-laravel-admin-template) - -#### Pro version products - -* 💪 [CoreUI Pro Bootstrap Admin Template](https://coreui.io/pro/) -* 💪 [CoreUI Pro Angular Admin Template](https://coreui.io/pro/angular) -* 💪 [CoreUI Pro Laravel Admin Template](https://coreui.io/pro/laravel) -* 💪 [CoreUI Pro React Admin Template](https://coreui.io/pro/react) -* 💪 [CoreUI Pro Vue Admin Template](https://coreui.io/pro/vue) -* 💪 [CoreUI Pro Vue + Laravel Admin Template](https://coreui.io/pro/vue-laravel) - -## CoreUI PRO Vue.js Admin Templates - -| Default Theme | Legacy Theme | Dark Layout | -| --- | --- | --- | -| [![CoreUI Pro Bootstrap Admin Template](https://coreui.io/images/mockups/mockup_3_1_default.png)](https://coreui.io/pro/vue/) | [![CoreUI Pro Bootstrap Admin Template](https://coreui.io/images/mockups/mockup_3_1_legacy.png)](https://coreui.io/pro/vue/)| [![CoreUI Pro Bootstrap Admin Template](https://coreui.io/images/mockups/mockup_3_1_dark.png)](https://coreui.io/pro/vue/) - -## Community - -Get updates on CoreUI's development and chat with the project maintainers and community members. - -- Follow [@core_ui on Twitter](https://twitter.com/core_ui). -- Read and subscribe to [CoreUI Blog](https://coreui.ui/blog/). - -### Community Projects - -Some of projects created by community but not maintained by CoreUI team. - -- [NuxtJS + Vue CoreUI](https://github.com/muhibbudins/nuxt-coreui) -- [Colmena](https://github.com/colmena/colmena) - -## Copyright and license - -Copyright 2020 creativeLabs Łukasz Holeczek. Code released under [the MIT license](https://github.com/coreui/coreui-free-vue-admin-template/blob/master/LICENSE). -There is only one limitation - you cannot re-distribute the `CoreUI` as stock nor if you modify the `CoreUI`. In the past we faced some problems with persons who tried to sell `CoreUI` based templates. - -## Support CoreUI Development - -CoreUI is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying [PRO version](https://coreui.io/pro/). +### Customize configuration +See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/babel.config.js b/babel.config.js index 0d594ebf..162a3ea9 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,11 +1,3 @@ module.exports = { - presets: [ - [ - '@babel/preset-env', - { - useBuiltIns: 'entry', - corejs: 3 - } - ] - ] -} + presets: ["@vue/cli-plugin-babel/preset"], +}; diff --git a/jest.config.js b/jest.config.js index 15f0d924..552be694 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,31 +1,6 @@ -const ignoredModules = ['@coreui/icons', '@coreui/utils'].join('|') - module.exports = { - moduleFileExtensions: [ - 'js', - 'jsx', - 'json', - 'vue' - ], + preset: "@vue/cli-plugin-unit-jest", transform: { - '^.+\\.vue$': 'vue-jest', - '.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', - '^.+\\.(js|jsx)?$': '/node_modules/babel-jest' + "^.+\\.vue$": "vue-jest", }, - transformIgnorePatterns: [`/node_modules/(?!${ignoredModules})`], - moduleNameMapper: { - '^@/(.*)$': '/src/$1' - }, - snapshotSerializers: [ - 'jest-serializer-vue' - ], - testMatch: ['/tests/unit/**/*.spec.js'], - verbose: true, - testURL: 'http://localhost/', - collectCoverage: true, - collectCoverageFrom: [ - 'src/**/*.{js,vue}', - '!**/node_modules/**' - ], - coverageReporters: ['html', 'text-summary'] -} +}; diff --git a/package.json b/package.json index be33b1f1..6c200478 100644 --- a/package.json +++ b/package.json @@ -1,73 +1,60 @@ { "name": "@coreui/coreui-free-vue-admin-template", - "version": "3.1.4", - "description": "Open Source Bootstrap Admin Template", - "author": { - "name": "CoreUI", - "url": "https://coreui.io", - "github": "https://github.com/coreui", - "twitter": "https://twitter.com/core_ui" + "version": "4.0.0-alpha.0", + "config": { + "coreui_library_short_version": "4.0" }, - "contributors": [ - { - "name": "CoreUI Team", - "url": "https://github.com/orgs/coreui/people" - } - ], - "repository": { - "type": "git", - "url": "git@github.com:coreui/coreui-free-vue-admin-template.git" - }, - "homepage": "http://coreui.io", - "copyright": "Copyright 2021 creativeLabs Łukasz Holeczek", - "license": "MIT", + "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint", "test:unit": "vue-cli-service test:unit", "test:e2e": "vue-cli-service test:e2e", - "clearCache": "jest --clearCache", - "release": "npm-run-all clearCache lint build test:unit test:e2e", - "auto-changelog": "auto-changelog --hide-credit --commit-limit false --package --backfill-limit 0 --starting-version 3.0.0-beta.0" + "lint": "vue-cli-service lint" }, "dependencies": { - "@coreui/coreui": "^3.4.0", - "@coreui/icons": "^2.0.0-rc.0", - "@coreui/utils": "^1.3.1", - "@coreui/vue": "^3.2.9", - "@coreui/vue-chartjs": "^1.0.6", - "vue": "~2.6.12", - "vue-router": "^3.5.1", - "vuex": "~3.6.2" + "@coreui/coreui": "^4.0.1", + "@coreui/icons": "^2.0.1", + "@coreui/icons-vue": "2.0.0-alpha.0", + "@coreui/vue": "^4.0.0-alpha.0", + "core-js": "^3.6.5", + "vue": "^3.0.0", + "vue-router": "^4.0.0-0", + "vuex": "^4.0.0-0" }, "devDependencies": { - "@babel/core": "^7.13.10", - "@vue/cli-plugin-babel": "^4.5.11", - "@vue/cli-plugin-e2e-nightwatch": "^4.5.11", - "@vue/cli-plugin-eslint": "^4.5.11", - "@vue/cli-plugin-unit-jest": "^4.5.11", - "@vue/cli-service": "^4.5.11", - "@vue/test-utils": "^1.1.3", - "auto-changelog": "~2.2.1", - "babel-eslint": "~10.1.0", - "babel-jest": "~26.6.3", - "chromedriver": "latest", - "core-js": "^3.9.1", - "eslint": "^6.8.0", - "eslint-plugin-vue": "^6.2.2", - "npm-run-all": "~4.1.5", - "sass": "^1.32.8", - "sass-loader": "^10.1.1", - "vue-template-compiler": "~2.6.12" + "@typescript-eslint/eslint-plugin": "^4.28.5", + "@vue/cli-plugin-babel": "~4.5.0", + "@vue/cli-plugin-e2e-nightwatch": "~4.5.0", + "@vue/cli-plugin-eslint": "~4.5.0", + "@vue/cli-plugin-router": "~4.5.0", + "@vue/cli-plugin-unit-jest": "~4.5.0", + "@vue/cli-plugin-vuex": "~4.5.0", + "@vue/cli-service": "~4.5.0", + "@vue/compiler-sfc": "^3.0.0", + "@vue/eslint-config-prettier": "^6.0.0", + "@vue/test-utils": "^2.0.0-0", + "babel-eslint": "^10.1.0", + "chromedriver": "92", + "eslint": "^6.7.2", + "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-vue": "^7.0.0", + "geckodriver": "^1.20.0", + "lint-staged": "^9.5.0", + "prettier": "^2.2.1", + "rollup-plugin-vue": "^6.0.0", + "sass": "^1.26.5", + "sass-loader": "^8.0.2", + "typescript": "~3.9.3", + "vue-jest": "^5.0.0-0" }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie < 11" - ], - "engines": { - "node": ">= 12.x", - "npm": ">= 6.x" + "gitHooks": { + "pre-commit": "lint-staged" + }, + "lint-staged": { + "*.{js,jsx,vue}": [ + "vue-cli-service lint", + "git add" + ] } } diff --git a/public/android-icon-144x144.png b/public/android-icon-144x144.png deleted file mode 100644 index 76a365d3..00000000 Binary files a/public/android-icon-144x144.png and /dev/null differ diff --git a/public/android-icon-192x192.png b/public/android-icon-192x192.png deleted file mode 100644 index b14fee80..00000000 Binary files a/public/android-icon-192x192.png and /dev/null differ diff --git a/public/android-icon-36x36.png b/public/android-icon-36x36.png deleted file mode 100644 index e715de40..00000000 Binary files a/public/android-icon-36x36.png and /dev/null differ diff --git a/public/android-icon-48x48.png b/public/android-icon-48x48.png deleted file mode 100644 index 932ccead..00000000 Binary files a/public/android-icon-48x48.png and /dev/null differ diff --git a/public/android-icon-72x72.png b/public/android-icon-72x72.png deleted file mode 100644 index 7459a6f0..00000000 Binary files a/public/android-icon-72x72.png and /dev/null differ diff --git a/public/android-icon-96x96.png b/public/android-icon-96x96.png deleted file mode 100644 index 0ec41163..00000000 Binary files a/public/android-icon-96x96.png and /dev/null differ diff --git a/public/apple-icon-114x114.png b/public/apple-icon-114x114.png deleted file mode 100644 index f4324057..00000000 Binary files a/public/apple-icon-114x114.png and /dev/null differ diff --git a/public/apple-icon-120x120.png b/public/apple-icon-120x120.png deleted file mode 100644 index b7363619..00000000 Binary files a/public/apple-icon-120x120.png and /dev/null differ diff --git a/public/apple-icon-144x144.png b/public/apple-icon-144x144.png deleted file mode 100644 index 76a365d3..00000000 Binary files a/public/apple-icon-144x144.png and /dev/null differ diff --git a/public/apple-icon-152x152.png b/public/apple-icon-152x152.png deleted file mode 100644 index c9e6b681..00000000 Binary files a/public/apple-icon-152x152.png and /dev/null differ diff --git a/public/apple-icon-180x180.png b/public/apple-icon-180x180.png deleted file mode 100644 index d1f419b4..00000000 Binary files a/public/apple-icon-180x180.png and /dev/null differ diff --git a/public/apple-icon-57x57.png b/public/apple-icon-57x57.png deleted file mode 100644 index 2d5cc5d3..00000000 Binary files a/public/apple-icon-57x57.png and /dev/null differ diff --git a/public/apple-icon-60x60.png b/public/apple-icon-60x60.png deleted file mode 100644 index cdd0b4ea..00000000 Binary files a/public/apple-icon-60x60.png and /dev/null differ diff --git a/public/apple-icon-72x72.png b/public/apple-icon-72x72.png deleted file mode 100644 index 7459a6f0..00000000 Binary files a/public/apple-icon-72x72.png and /dev/null differ diff --git a/public/apple-icon-76x76.png b/public/apple-icon-76x76.png deleted file mode 100644 index 2ccbd5ad..00000000 Binary files a/public/apple-icon-76x76.png and /dev/null differ diff --git a/public/apple-icon-precomposed.png b/public/apple-icon-precomposed.png deleted file mode 100644 index ac6dec0e..00000000 Binary files a/public/apple-icon-precomposed.png and /dev/null differ diff --git a/public/apple-icon.png b/public/apple-icon.png deleted file mode 100644 index ac6dec0e..00000000 Binary files a/public/apple-icon.png and /dev/null differ diff --git a/public/browserconfig.xml b/public/browserconfig.xml deleted file mode 100644 index c5541482..00000000 --- a/public/browserconfig.xml +++ /dev/null @@ -1,2 +0,0 @@ - -#ffffff \ No newline at end of file diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png deleted file mode 100644 index d879e884..00000000 Binary files a/public/favicon-16x16.png and /dev/null differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png deleted file mode 100644 index 6b3d4863..00000000 Binary files a/public/favicon-32x32.png and /dev/null differ diff --git a/public/favicon-96x96.png b/public/favicon-96x96.png deleted file mode 100644 index 0ec41163..00000000 Binary files a/public/favicon-96x96.png and /dev/null differ diff --git a/public/favicon.ico b/public/favicon.ico index bf08304b..df36fcfb 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/img/avatars/1.jpg b/public/img/avatars/1.jpg deleted file mode 100644 index 0b087037..00000000 Binary files a/public/img/avatars/1.jpg and /dev/null differ diff --git a/public/img/avatars/2.jpg b/public/img/avatars/2.jpg deleted file mode 100644 index e7367094..00000000 Binary files a/public/img/avatars/2.jpg and /dev/null differ diff --git a/public/img/avatars/3.jpg b/public/img/avatars/3.jpg deleted file mode 100644 index caf9a7e7..00000000 Binary files a/public/img/avatars/3.jpg and /dev/null differ diff --git a/public/img/avatars/4.jpg b/public/img/avatars/4.jpg deleted file mode 100644 index 97f67696..00000000 Binary files a/public/img/avatars/4.jpg and /dev/null differ diff --git a/public/img/avatars/5.jpg b/public/img/avatars/5.jpg deleted file mode 100644 index 82b025fe..00000000 Binary files a/public/img/avatars/5.jpg and /dev/null differ diff --git a/public/img/avatars/6.jpg b/public/img/avatars/6.jpg deleted file mode 100644 index 1d2b8843..00000000 Binary files a/public/img/avatars/6.jpg and /dev/null differ diff --git a/public/img/avatars/7.jpg b/public/img/avatars/7.jpg deleted file mode 100644 index 2903cd2f..00000000 Binary files a/public/img/avatars/7.jpg and /dev/null differ diff --git a/public/img/avatars/8.jpg b/public/img/avatars/8.jpg deleted file mode 100644 index 3a5eba9e..00000000 Binary files a/public/img/avatars/8.jpg and /dev/null differ diff --git a/public/index.html b/public/index.html index fe8bf966..3e5a1396 100644 --- a/public/index.html +++ b/public/index.html @@ -1,58 +1,17 @@ - - - - - - - - CoreUI - Vue Open Source Bootstrap Admin Template - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + +
+ + diff --git a/public/manifest.json b/public/manifest.json deleted file mode 100644 index 013d4a6a..00000000 --- a/public/manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "App", - "icons": [ - { - "src": "\/android-icon-36x36.png", - "sizes": "36x36", - "type": "image\/png", - "density": "0.75" - }, - { - "src": "\/android-icon-48x48.png", - "sizes": "48x48", - "type": "image\/png", - "density": "1.0" - }, - { - "src": "\/android-icon-72x72.png", - "sizes": "72x72", - "type": "image\/png", - "density": "1.5" - }, - { - "src": "\/android-icon-96x96.png", - "sizes": "96x96", - "type": "image\/png", - "density": "2.0" - }, - { - "src": "\/android-icon-144x144.png", - "sizes": "144x144", - "type": "image\/png", - "density": "3.0" - }, - { - "src": "\/android-icon-192x192.png", - "sizes": "192x192", - "type": "image\/png", - "density": "4.0" - } - ] -} \ No newline at end of file diff --git a/public/ms-icon-144x144.png b/public/ms-icon-144x144.png deleted file mode 100644 index 76a365d3..00000000 Binary files a/public/ms-icon-144x144.png and /dev/null differ diff --git a/public/ms-icon-150x150.png b/public/ms-icon-150x150.png deleted file mode 100644 index c190acd3..00000000 Binary files a/public/ms-icon-150x150.png and /dev/null differ diff --git a/public/ms-icon-310x310.png b/public/ms-icon-310x310.png deleted file mode 100644 index c6623f82..00000000 Binary files a/public/ms-icon-310x310.png and /dev/null differ diff --git a/public/ms-icon-70x70.png b/public/ms-icon-70x70.png deleted file mode 100644 index 583595a5..00000000 Binary files a/public/ms-icon-70x70.png and /dev/null differ diff --git a/src/App.vue b/src/App.vue index bbd8afc8..f9023a3d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,14 +1,9 @@ - - + diff --git a/src/_nav.js b/src/_nav.js new file mode 100644 index 00000000..b5af186c --- /dev/null +++ b/src/_nav.js @@ -0,0 +1,267 @@ +export default [ + { + _name: 'CNavItem', + name: 'Dashboard', + to: '/dashboard', + icon: 'cil-speedometer', + badge: { + color: 'primary', + text: 'NEW' + } + }, + // { + // _name: 'CNavTitle', + // name: 'Theme' + // }, + // { + // _name: 'CNavItem', + // name: 'Colors', + // to: '/theme/colors', + // icon: 'cil-drop' + // }, + // { + // _name: 'CNavItem', + // name: 'Typography', + // to: '/theme/typography', + // icon: 'cil-pencil' + // }, + // { + // _name: 'CNavTitle', + // name: 'Components' + // }, + { + _name: 'CNavGroup', + name: 'Base', + route: '/base', + icon: 'cil-puzzle', + children: [ + { + _name: 'CNavItem', + name: 'Breadcrumbs', + to: '/base/breadcrumbs' + }, + // { + // _name: 'CNavItem', + // name: 'Cards', + // to: '/base/cards' + // }, + // { + // _name: 'CNavItem', + // name: 'Carousels', + // to: '/base/carousels' + // }, + // { + // _name: 'CNavItem', + // name: 'Collapses', + // to: '/base/collapses' + // }, + // { + // _name: 'CNavItem', + // name: 'Forms', + // to: '/base/forms' + // }, + // { + // _name: 'CNavItem', + // name: 'Jumbotrons', + // to: '/base/jumbotrons' + // }, + // { + // _name: 'CNavItem', + // name: 'List Groups', + // to: '/base/list-groups' + // }, + // { + // _name: 'CNavItem', + // name: 'Navs', + // to: '/base/navs' + // }, + // { + // _name: 'CNavItem', + // name: 'Navbars', + // to: '/base/navbars' + // }, + // { + // _name: 'CNavItem', + // name: 'Paginations', + // to: '/base/paginations' + // }, + // { + // _name: 'CNavItem', + // name: 'Popovers', + // to: '/base/popovers' + // }, + // { + // _name: 'CNavItem', + // name: 'Progress Bars', + // to: '/base/progress-bars' + // }, + // { + // _name: 'CNavItem', + // name: 'Switches', + // to: '/base/switches' + // }, + // { + // _name: 'CNavItem', + // name: 'Tables', + // to: '/base/tables' + // }, + // { + // _name: 'CNavItem', + // name: 'Tabs', + // to: '/base/tabs' + // }, + // { + // _name: 'CNavItem', + // name: 'Tooltips', + // to: '/base/tooltips' + // } + ] + }, + // { + // _name: 'CNavGroup', + // name: 'Buttons', + // route: '/buttons', + // icon: 'cil-cursor', + // children: [ + // { + // _name: 'CNavItem', + // name: 'Buttons', + // to: '/buttons/standard-buttons' + // }, + // { + // _name: 'CNavItem', + // name: 'Button Dropdowns', + // to: '/buttons/dropdowns' + // }, + // { + // _name: 'CNavItem', + // name: 'Button Groups', + // to: '/buttons/button-groups' + // }, + // { + // _name: 'CNavItem', + // name: 'Brand Buttons', + // to: '/buttons/brand-buttons' + // } + // ] + // }, + // { + // _name: 'CNavItem', + // name: 'Charts', + // to: '/charts', + // icon: 'cil-chart-pie' + // }, + // { + // _name: 'CNavGroup', + // name: 'Icons', + // route: '/icons', + // icon: 'cil-star', + // children: [ + // { + // _name: 'CNavItem', + // name: 'CoreUI Icons', + // to: '/icons/coreui-icons', + // badge: { + // color: 'info', + // text: 'NEW' + // } + // }, + // { + // _name: 'CNavItem', + // name: 'Brands', + // to: '/icons/brands' + // }, + // { + // _name: 'CNavItem', + // name: 'Flags', + // to: '/icons/flags' + // } + // ] + // }, + // { + // _name: 'CNavGroup', + // name: 'Notifications', + // route: '/notifications', + // icon: 'cil-bell', + // children: [ + // { + // _name: 'CNavItem', + // name: 'Alerts', + // to: '/notifications/alerts' + // }, + // { + // _name: 'CNavItem', + // name: 'Badges', + // to: '/notifications/badges' + // }, + // { + // _name: 'CNavItem', + // name: 'Modals', + // to: '/notifications/modals' + // } + // ] + // }, + // { + // _name: 'CNavItem', + // name: 'Widgets', + // to: '/widgets', + // icon: 'cil-calculator', + // badge: { + // color: 'primary', + // text: 'NEW', + // shape: 'pill' + // } + // }, + // { + // _name: 'CSidebarNavDivider', + // _class: 'm-2' + // }, + // { + // _name: 'CNavTitle', + // name: 'Extras' + // }, + // { + // _name: 'CNavGroup', + // name: 'Pages', + // route: '/pages', + // icon: 'cil-star', + // children: [ + // { + // _name: 'CNavItem', + // name: 'Login', + // to: '/pages/login' + // }, + // { + // _name: 'CNavItem', + // name: 'Register', + // to: '/pages/register' + // }, + // { + // _name: 'CNavItem', + // name: 'Error 404', + // to: '/pages/404' + // }, + // { + // _name: 'CNavItem', + // name: 'Error 500', + // to: '/pages/500' + // } + // ] + // }, + // { + // _name: 'CNavItem', + // name: 'Download CoreUI', + // href: 'http://coreui.io/vue/', + // icon: { name: 'cil-cloud-download', class: 'text-white' }, + // _class: 'bg-success text-white', + // target: '_blank' + // }, + // { + // _name: 'CNavItem', + // name: 'Try CoreUI PRO', + // href: 'http://coreui.io/pro/vue/', + // icon: { name: 'cil-layers', class: 'text-white' }, + // _class: 'bg-danger text-white', + // target: '_blank' + // } +] diff --git a/src/assets/.gitkeep b/src/assets/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/assets/icons/icons.js b/src/assets/icons/icons.js index 982b86cc..6d41c2a4 100644 --- a/src/assets/icons/icons.js +++ b/src/assets/icons/icons.js @@ -20,17 +20,10 @@ import { cibCcVisa, cibStripe, cibPaypal, - cibGooglePay, + cibGooglePay, cibCcAmex -} from '@coreui/icons' -import { - cifUs, - cifBr, - cifIn, - cifFr, - cifEs, - cifPl -} from '@coreui/icons' +} from "@coreui/icons"; +import { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from "@coreui/icons"; import { cilArrowRight, cilBan, @@ -44,6 +37,7 @@ import { cilChevronBottom, cilChevronTop, cilCheckCircle, + cilCode, cilCommentSquare, cilCursor, cilDrop, @@ -62,6 +56,8 @@ import { cilLocationPin, cilLockLocked, cilMagnifyingGlass, + cilMediaPlay, + cilMenu, cilMoon, cilOptions, cilPencil, @@ -77,9 +73,8 @@ import { cilUserFemale, cilUserFollow, cilXCircle - -} from '@coreui/icons' -import { logo } from './logo' +} from "@coreui/icons"; +import { logo } from "./logo"; export const iconsSet = Object.assign( {}, @@ -97,6 +92,7 @@ export const iconsSet = Object.assign( cilChevronBottom, cilChevronTop, cilCheckCircle, + cilCode, cilCommentSquare, cilCursor, cilDrop, @@ -115,6 +111,8 @@ export const iconsSet = Object.assign( cilLocationPin, cilLockLocked, cilMagnifyingGlass, + cilMediaPlay, + cilMenu, cilMoon, cilOptions, cilPencil, @@ -157,11 +155,11 @@ export const iconsSet = Object.assign( cibBehance, cibReddit, cibVimeo, - cibCcMastercard, - cibCcVisa, - cibStripe, - cibPaypal, + cibCcMastercard, + cibCcVisa, + cibStripe, + cibPaypal, cibGooglePay, cibCcAmex } -) +); diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 00000000..f3d2503f Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/assets/scss/_example.scss b/src/assets/scss/_example.scss new file mode 100644 index 00000000..f8791fb2 --- /dev/null +++ b/src/assets/scss/_example.scss @@ -0,0 +1,109 @@ +.example { + &:not(:first-child) { + margin-top: 1.5rem; + } + + .tab-content { + background-color: $light-50 !important; + + @at-root .dark-theme & { + background-color: rgba(255, 255, 255, .1) !important; + } + } + + code[class*="language-"], + pre[class*="language-"] { + font-size: .875rem !important; + } + + :not(pre) > code[class*="language-"], + pre[class*="language-"] { + background: transparent; + } + + & + p { + margin-top: 1.5rem + } + + // Components examples + .preview, + .preview .col { + + p { + margin-top: 2rem; + } + + > .form-control { + + .form-control { + margin-top: .5rem; + } + } + + > .nav + .nav, + > .alert + .alert, + > .navbar + .navbar, + > .progress + .progress { + margin-top: 1rem; + } + + > .dropdown-menu { + position: static; + display: block; + } + + > :last-child { + margin-bottom: 0; + } + + // Images + > svg + svg, + > img + img { + margin-left: .5rem; + } + + // Buttons + > .btn, + > .btn-group { + margin: .25rem .125rem; + } + > .btn-toolbar + .btn-toolbar { + margin-top: .5rem; + } + + // List groups + > .list-group { + max-width: 400px; + } + + > [class*="list-group-horizontal"] { + max-width: 100%; + } + + // Navbars + .fixed-top, + .sticky-top { + position: static; + margin: -1rem -1rem 1rem; + } + + .fixed-bottom { + position: static; + margin: 1rem -1rem -1rem; + } + + @include media-breakpoint-up(sm) { + .fixed-top, + .sticky-top { + margin: -1.5rem -1.5rem 1rem; + } + .fixed-bottom { + margin: 1rem -1.5rem -1.5rem; + } + } + + // Pagination + .pagination { + margin-top: .5rem; + margin-bottom: .5rem; + } + } +} diff --git a/src/assets/scss/_layout.scss b/src/assets/scss/_layout.scss new file mode 100644 index 00000000..38bfe8c4 --- /dev/null +++ b/src/assets/scss/_layout.scss @@ -0,0 +1,6 @@ +.wrapper { + width: 100%; + @include ltr-rtl("padding-left", var(--cui-sidebar-occupy-start, 0)); + will-change: auto; + @include transition(padding .15s); +} diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index 63117c0e..599b8718 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -1,17 +1,14 @@ // If you want to override variables do it here @import "variables"; +$enable-ltr: true; +$enable-rtl: true; + // Import styles @import "~@coreui/coreui/scss/coreui"; +@import "layout"; +@import "example"; + // If you want to add something do it here @import "custom"; - -.card-header:not(.content-center) > .c-icon:first-child { - margin-right: 0.1rem; - margin-top: 0.1rem; - vertical-align: top; - width: 1.2rem; - height: 1.2rem; - font-size: 1.2rem; -} diff --git a/src/containers/TheFooter.vue b/src/components/AppFooter.vue similarity index 88% rename from src/containers/TheFooter.vue rename to src/components/AppFooter.vue index f5824b77..253bda97 100644 --- a/src/containers/TheFooter.vue +++ b/src/components/AppFooter.vue @@ -1,5 +1,5 @@