|
@@ -1,6 +1,6 @@ |
|
|
<style> |
|
|
<style> |
|
|
#generated-password { |
|
|
#generated-password { |
|
|
font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif; |
|
|
|
|
|
|
|
|
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#password-generator { |
|
|
#password-generator { |
|
@@ -209,7 +209,6 @@ |
|
|
import LessPass from 'lesspass'; |
|
|
import LessPass from 'lesspass'; |
|
|
import {mapGetters} from 'vuex'; |
|
|
import {mapGetters} from 'vuex'; |
|
|
import Clipboard from 'clipboard'; |
|
|
import Clipboard from 'clipboard'; |
|
|
import {showTooltip} from '../api/tooltip'; |
|
|
|
|
|
import Password from '../domain/password'; |
|
|
import Password from '../domain/password'; |
|
|
import {getSite} from '../domain/url-parser'; |
|
|
import {getSite} from '../domain/url-parser'; |
|
|
import RemoveAutoComplete from '../components/RemoveAutoComplete.vue'; |
|
|
import RemoveAutoComplete from '../components/RemoveAutoComplete.vue'; |
|
@@ -221,6 +220,15 @@ |
|
|
return store.dispatch('FETCH_PASSWORDS') |
|
|
return store.dispatch('FETCH_PASSWORDS') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function showTooltip(elem, msg) { |
|
|
|
|
|
var classNames = elem.className; |
|
|
|
|
|
elem.setAttribute('class', classNames + ' hint--right'); |
|
|
|
|
|
elem.setAttribute('aria-label', msg); |
|
|
|
|
|
setTimeout(function () { |
|
|
|
|
|
elem.setAttribute('class', classNames); |
|
|
|
|
|
}, 2000); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'password-generator-view', |
|
|
name: 'password-generator-view', |
|
|
components: { |
|
|
components: { |
|
|