From d26626a96989563fe2a5e9a8f04007e07200693e Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 26 Dec 2018 22:02:41 +0300 Subject: [PATCH] Implemented PasswordStrength Component --- src/AppMenu.vue | 1 + src/assets/styles/primevue.css | 1 + src/components/password/Password.css | 19 +++ src/components/password/Password.vue | 154 ++++++++++++++++++ .../password/images/password-meter.png | Bin 0 -> 118 bytes src/main.js | 2 + src/router.js | 5 + src/views/password/PasswordDemo.vue | 28 ++++ 8 files changed, 210 insertions(+) create mode 100644 src/components/password/Password.css create mode 100644 src/components/password/Password.vue create mode 100644 src/components/password/images/password-meter.png create mode 100644 src/views/password/PasswordDemo.vue diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 7d004164e..dbe620b0f 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -14,6 +14,7 @@ ● InputSwitch ● InputText ● Listbox + ● Password ● RadioButton ● Rating ● SelectButton diff --git a/src/assets/styles/primevue.css b/src/assets/styles/primevue.css index 68ff9b398..a510190a2 100644 --- a/src/assets/styles/primevue.css +++ b/src/assets/styles/primevue.css @@ -9,6 +9,7 @@ @import '../../components/inputswitch/InputSwitch.css'; @import '../../components/listbox/Listbox.css'; @import '../../components/panel/Panel.css'; +@import '../../components/password/Password.css'; @import '../../components/progressbar/ProgressBar.css'; @import '../../components/radiobutton/RadioButton.css'; @import '../../components/rating/Rating.css'; diff --git a/src/components/password/Password.css b/src/components/password/Password.css new file mode 100644 index 000000000..84ca6ce44 --- /dev/null +++ b/src/components/password/Password.css @@ -0,0 +1,19 @@ +.p-password-panel { + padding: .25em .5em; + margin-top: 2px; +} + +.p-password-panel .p-password-meter { + height: 10px; + background:transparent url("./images/password-meter.png") no-repeat left top; + padding: 0; + margin: 0; +} + +.p-password-info { + margin-top: .25em; +} + +.p-password-panel-overlay { + position: absolute; +} \ No newline at end of file diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue new file mode 100644 index 000000000..727c29317 --- /dev/null +++ b/src/components/password/Password.vue @@ -0,0 +1,154 @@ + + + \ No newline at end of file diff --git a/src/components/password/images/password-meter.png b/src/components/password/images/password-meter.png new file mode 100644 index 0000000000000000000000000000000000000000..ddb456d3f8014647b6b193ceaf506e91f72fe819 GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^(|}lmi5W;Hu76zuq<8{+LR>$7{P import('./views/panel/PanelDemo.vue') }, + { + path: '/password', + name: 'password', + component: () => import('./views/password/PasswordDemo.vue') + }, { path: '/progressbar', name: 'progressbar', diff --git a/src/views/password/PasswordDemo.vue b/src/views/password/PasswordDemo.vue new file mode 100644 index 000000000..ad8e81bb0 --- /dev/null +++ b/src/views/password/PasswordDemo.vue @@ -0,0 +1,28 @@ + + + + +