浏览代码

move url-parser in services

pull/342/head
Guillaume Vincent 7 年前
父节点
当前提交
63e6b06c58
共有 3 个文件被更改,包括 2 次插入2 次删除
  1. +0
    -0
      src/services/url-parser.js
  2. +1
    -1
      src/views/PasswordGenerator.vue
  3. +1
    -1
      test/url-parser.js

src/domain/url-parser.js → src/services/url-parser.js 查看文件


+ 1
- 1
src/views/PasswordGenerator.vue 查看文件

@@ -121,7 +121,7 @@
import LessPass from 'lesspass';
import {mapGetters} from 'vuex';
import Clipboard from 'clipboard';
import {getSite, getPasswordFromUrlQuery} from '../domain/url-parser';
import {getSite, getPasswordFromUrlQuery} from '../services/url-parser';
import RemoveAutoComplete from '../components/RemoveAutoComplete.vue';
import MasterPassword from '../components/MasterPassword.vue';
import Options from '../components/Options.vue';


+ 1
- 1
test/url-parser.js 查看文件

@@ -1,5 +1,5 @@
import test from 'ava';
import * as urlParser from '../src/domain/url-parser';
import * as urlParser from '../src/services/url-parser';

test('urlParser.getDomainName', t => {
t.is('lesspass.com', urlParser.getDomainName('https://lesspass.com/#!/'));


正在加载...
取消
保存