Browse Source

move getDomain to jslib

pull/276/merge
Kyle Spearrin 7 years ago
parent
commit
6e9f71f942
  1. 2
      jslib
  2. 4
      src/app/services/services.module.ts
  3. 4
      src/services/webPlatformUtils.service.ts
  4. 3
      tsconfig.json
  5. 1
      webpack.config.js

2
jslib

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 9fa99f3a6ecf7c4a14e5d7271562b3908cf64728
Subproject commit 0d30a1a1c9bd2c323189069fe4ec233ab85c35fe

4
src/app/services/services.module.ts

@ -98,7 +98,7 @@ const userService = new UserService(tokenService, storageService); @@ -98,7 +98,7 @@ const userService = new UserService(tokenService, storageService);
const settingsService = new SettingsService(userService, storageService);
export let searchService: SearchService = null;
const cipherService = new CipherService(cryptoService, userService, settingsService,
apiService, storageService, i18nService, platformUtilsService, () => searchService);
apiService, storageService, i18nService, () => searchService);
const folderService = new FolderService(cryptoService, userService, apiService, storageService,
i18nService, cipherService);
const collectionService = new CollectionService(cryptoService, userService, storageService, i18nService);
@ -110,7 +110,7 @@ const syncService = new SyncService(userService, apiService, settingsService, @@ -110,7 +110,7 @@ const syncService = new SyncService(userService, apiService, settingsService,
async (expired: boolean) => messagingService.send('logout', { expired: expired }));
const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService);
const totpService = new TotpService(storageService, cryptoFunctionService);
const containerService = new ContainerService(cryptoService, platformUtilsService);
const containerService = new ContainerService(cryptoService);
const authService = new AuthService(cryptoService, apiService,
userService, tokenService, appIdService, i18nService, platformUtilsService, messagingService);
const exportService = new ExportService(folderService, cipherService, apiService);

4
src/services/webPlatformUtils.service.ts

@ -86,10 +86,6 @@ export class WebPlatformUtilsService implements PlatformUtilsService { @@ -86,10 +86,6 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
return 'UA-81915606-3';
}
getDomain(uriString: string): string {
return Utils.getHostname(uriString);
}
isViewOpen(): boolean {
return false;
}

3
tsconfig.json

@ -16,6 +16,9 @@ @@ -16,6 +16,9 @@
"types": [],
"baseUrl": ".",
"paths": {
"tldjs": [
"jslib/src/misc/tldjs.noop"
],
"jslib/*": [
"jslib/src/*"
],

1
webpack.config.js

@ -172,6 +172,7 @@ const config = { @@ -172,6 +172,7 @@ const config = {
extensions: ['.ts', '.js'],
alias: {
jslib: path.join(__dirname, 'jslib/src'),
tldjs: path.join(__dirname, 'jslib/src/misc/tldjs.noop'),
},
symlinks: false,
modules: [path.resolve('node_modules')],

Loading…
Cancel
Save