Przeglądaj źródła

Moved the peoplesearch folder underneath the "./src/modules" folder.

jalbr74 7 lat temu
rodzic
commit
13a1f41e0d
27 zmienionych plików z 61 dodań i 61 usunięć
  1. 1 1
      client/src/main.dev.ts
  2. 1 1
      client/src/main.ts
  3. 2 2
      client/src/modules/helpdesk/helpdesk.module.ts
  4. 0 0
      client/src/modules/peoplesearch/orgchart-search.component.html
  5. 0 0
      client/src/modules/peoplesearch/orgchart-search.component.scss
  6. 9 9
      client/src/modules/peoplesearch/orgchart-search.component.ts
  7. 0 0
      client/src/modules/peoplesearch/orgchart.component.html
  8. 0 0
      client/src/modules/peoplesearch/orgchart.component.scss
  9. 0 0
      client/src/modules/peoplesearch/orgchart.component.test.ts
  10. 6 6
      client/src/modules/peoplesearch/orgchart.component.ts
  11. 7 7
      client/src/modules/peoplesearch/peoplesearch-base.component.ts
  12. 0 0
      client/src/modules/peoplesearch/peoplesearch-cards.component.html
  13. 0 0
      client/src/modules/peoplesearch/peoplesearch-cards.component.scss
  14. 11 11
      client/src/modules/peoplesearch/peoplesearch-cards.component.ts
  15. 0 0
      client/src/modules/peoplesearch/peoplesearch-table.component.html
  16. 0 0
      client/src/modules/peoplesearch/peoplesearch-table.component.scss
  17. 9 9
      client/src/modules/peoplesearch/peoplesearch-table.component.ts
  18. 3 3
      client/src/modules/peoplesearch/peoplesearch.module.ts
  19. 1 1
      client/src/modules/peoplesearch/peoplesearch.scss
  20. 0 0
      client/src/modules/peoplesearch/person-card.component.html
  21. 3 3
      client/src/modules/peoplesearch/person-card.component.ts
  22. 0 0
      client/src/modules/peoplesearch/person-details-dialog.component.html
  23. 0 0
      client/src/modules/peoplesearch/person-details-dialog.component.scss
  24. 6 6
      client/src/modules/peoplesearch/person-details-dialog.component.ts
  25. 1 1
      client/src/modules/peoplesearch/person.filters.ts
  26. 0 0
      client/src/modules/peoplesearch/string.filters.ts
  27. 1 1
      client/webpack.dev.js

+ 1 - 1
client/src/main.dev.ts

@@ -23,7 +23,7 @@
 
 import { bootstrap, module } from 'angular';
 import ConfigService from './services/peoplesearch-config.service.dev';
-import peopleSearchModule from './peoplesearch/peoplesearch.module';
+import peopleSearchModule from './modules/peoplesearch/peoplesearch.module';
 import PeopleService from './services/people.service.dev';
 import PwmService from './services/pwm.service.dev';
 import routes from './routes';

+ 1 - 1
client/src/main.ts

@@ -23,7 +23,7 @@
 
 import { bootstrap, module } from 'angular';
 import ConfigService from './services/peoplesearch-config.service';
-import peopleSearchModule from './peoplesearch/peoplesearch.module';
+import peopleSearchModule from './modules/peoplesearch/peoplesearch.module';
 import PeopleService from './services/people.service';
 import PwmService from './services/pwm.service';
 import routes from './routes';

+ 2 - 2
client/src/modules/helpdesk/helpdesk.module.ts

@@ -28,7 +28,7 @@ import HelpDeskSearchTableComponent from './helpdesk-search-table.component';
 import HelpDeskSearchCardsComponent from './helpdesk-search-cards.component';
 import LocalStorageService from '../../services/local-storage.service';
 import ObjectService from '../../services/object.service';
-import PersonCardDirective from '../../peoplesearch/person-card.component';
+import PersonCardDirective from '../peoplesearch/person-card.component';
 import PromiseService from '../../services/promise.service';
 import RecentVerificationsDialogController from './recent-verifications-dialog.controller';
 import uxModule from '../../ux/ux.module';
@@ -38,7 +38,7 @@ import RandomChangePasswordController from '../../changepassword/random-change-p
 import SuccessChangePasswordController from '../../changepassword/success-change-password.controller';
 import TypeChangePasswordController from '../../changepassword/type-change-password.controller';
 
-require('../../peoplesearch/peoplesearch.scss');
+require('../peoplesearch/peoplesearch.scss');
 
 const moduleName = 'help-desk';
 

+ 0 - 0
client/src/peoplesearch/orgchart-search.component.html → client/src/modules/peoplesearch/orgchart-search.component.html


+ 0 - 0
client/src/peoplesearch/orgchart-search.component.scss → client/src/modules/peoplesearch/orgchart-search.component.scss


+ 9 - 9
client/src/peoplesearch/orgchart-search.component.ts → client/src/modules/peoplesearch/orgchart-search.component.ts

@@ -21,18 +21,18 @@
  */
 
 
-import { Component } from '../component';
-import { IPeopleSearchConfigService } from '../services/peoplesearch-config.service';
-import { IPeopleService } from '../services/people.service';
-import IPwmService from '../services/pwm.service';
+import { Component } from '../../component';
+import { IPeopleSearchConfigService } from '../../services/peoplesearch-config.service';
+import { IPeopleService } from '../../services/people.service';
+import IPwmService from '../../services/pwm.service';
 import { isArray, isString, IPromise, IQService, IScope } from 'angular';
-import LocalStorageService from '../services/local-storage.service';
-import IOrgChartData from '../models/orgchart-data.model';
-import { IPerson } from '../models/person.model';
+import LocalStorageService from '../../services/local-storage.service';
+import IOrgChartData from '../../models/orgchart-data.model';
+import { IPerson } from '../../models/person.model';
 
 @Component({
-    stylesheetUrl: require('peoplesearch/orgchart-search.component.scss'),
-    templateUrl: require('peoplesearch/orgchart-search.component.html')
+    stylesheetUrl: require('modules/peoplesearch/orgchart-search.component.scss'),
+    templateUrl: require('modules/peoplesearch/orgchart-search.component.html')
 })
 export default class OrgChartSearchComponent {
     directReports: IPerson[];

+ 0 - 0
client/src/peoplesearch/orgchart.component.html → client/src/modules/peoplesearch/orgchart.component.html


+ 0 - 0
client/src/peoplesearch/orgchart.component.scss → client/src/modules/peoplesearch/orgchart.component.scss


+ 0 - 0
client/src/peoplesearch/orgchart.component.test.ts → client/src/modules/peoplesearch/orgchart.component.test.ts


+ 6 - 6
client/src/peoplesearch/orgchart.component.ts → client/src/modules/peoplesearch/orgchart.component.ts

@@ -21,11 +21,11 @@
  */
 
 
-import { Component } from '../component';
+import { Component } from '../../component';
 import { element, IAugmentedJQuery, IFilterService, IScope, IWindowService } from 'angular';
-import ElementSizeService from '../ux/element-size.service';
-import { IPerson } from '../models/person.model';
-import {IPeopleSearchConfigService} from '../services/peoplesearch-config.service';
+import ElementSizeService from '../../ux/element-size.service';
+import { IPerson } from '../../models/person.model';
+import {IPeopleSearchConfigService} from '../../services/peoplesearch-config.service';
 
 export enum OrgChartSize {
     ExtraSmall = 0,
@@ -41,8 +41,8 @@ export enum OrgChartSize {
         person: '<',
         showImages: '<'
     },
-    stylesheetUrl: require('peoplesearch/orgchart.component.scss'),
-    templateUrl: require('peoplesearch/orgchart.component.html')
+    stylesheetUrl: require('modules/peoplesearch/orgchart.component.scss'),
+    templateUrl: require('modules/peoplesearch/orgchart.component.html')
 })
 export default class OrgChartComponent {
     directReports: IPerson[];

+ 7 - 7
client/src/peoplesearch/peoplesearch-base.component.ts → client/src/modules/peoplesearch/peoplesearch-base.component.ts

@@ -22,13 +22,13 @@
 
 
 import { isArray, isString, IPromise, IQService, IScope } from 'angular';
-import { IPeopleSearchConfigService } from '../services/peoplesearch-config.service';
-import { IPeopleService } from '../services/people.service';
-import IPwmService from '../services/pwm.service';
-import LocalStorageService from '../services/local-storage.service';
-import { IPerson } from '../models/person.model';
-import PromiseService from '../services/promise.service';
-import SearchResult from '../models/search-result.model';
+import { IPeopleSearchConfigService } from '../../services/peoplesearch-config.service';
+import { IPeopleService } from '../../services/people.service';
+import IPwmService from '../../services/pwm.service';
+import LocalStorageService from '../../services/local-storage.service';
+import { IPerson } from '../../models/person.model';
+import PromiseService from '../../services/promise.service';
+import SearchResult from '../../models/search-result.model';
 
 const SEARCH_TEXT_LOCAL_STORAGE_KEY = 'searchText';
 

+ 0 - 0
client/src/peoplesearch/peoplesearch-cards.component.html → client/src/modules/peoplesearch/peoplesearch-cards.component.html


+ 0 - 0
client/src/peoplesearch/peoplesearch-cards.component.scss → client/src/modules/peoplesearch/peoplesearch-cards.component.scss


+ 11 - 11
client/src/peoplesearch/peoplesearch-cards.component.ts → client/src/modules/peoplesearch/peoplesearch-cards.component.ts

@@ -21,17 +21,17 @@
  */
 
 
-import { Component } from '../component';
-import ElementSizeService from '../ux/element-size.service';
-import IPeopleSearchConfigService from '../services/peoplesearch-config.service';
-import IPeopleService from '../services/people.service';
-import IPwmService from '../services/pwm.service';
+import { Component } from '../../component';
+import ElementSizeService from '../../ux/element-size.service';
+import IPeopleSearchConfigService from '../../services/peoplesearch-config.service';
+import IPeopleService from '../../services/people.service';
+import IPwmService from '../../services/pwm.service';
 import { isString, IAugmentedJQuery, IQService, IScope } from 'angular';
-import LocalStorageService from '../services/local-storage.service';
+import LocalStorageService from '../../services/local-storage.service';
 import PeopleSearchBaseComponent from './peoplesearch-base.component';
-import { IPerson } from '../models/person.model';
-import PromiseService from '../services/promise.service';
-import SearchResult from '../models/search-result.model';
+import { IPerson } from '../../models/person.model';
+import PromiseService from '../../services/promise.service';
+import SearchResult from '../../models/search-result.model';
 
 export enum PeopleSearchCardsSize {
     Small = 0,
@@ -40,8 +40,8 @@ export enum PeopleSearchCardsSize {
 }
 
 @Component({
-    stylesheetUrl: require('peoplesearch/peoplesearch-cards.component.scss'),
-    templateUrl: require('peoplesearch/peoplesearch-cards.component.html')
+    stylesheetUrl: require('modules/peoplesearch/peoplesearch-cards.component.scss'),
+    templateUrl: require('modules/peoplesearch/peoplesearch-cards.component.html')
 })
 export default class PeopleSearchCardsComponent extends PeopleSearchBaseComponent {
     photosEnabled: boolean;

+ 0 - 0
client/src/peoplesearch/peoplesearch-table.component.html → client/src/modules/peoplesearch/peoplesearch-table.component.html


+ 0 - 0
client/src/peoplesearch/peoplesearch-table.component.scss → client/src/modules/peoplesearch/peoplesearch-table.component.scss


+ 9 - 9
client/src/peoplesearch/peoplesearch-table.component.ts → client/src/modules/peoplesearch/peoplesearch-table.component.ts

@@ -21,19 +21,19 @@
  */
 
 
-import { Component } from '../component';
-import { IPeopleSearchConfigService } from '../services/peoplesearch-config.service';
-import IPeopleService from '../services/people.service';
-import IPwmService from '../services/pwm.service';
+import { Component } from '../../component';
+import { IPeopleSearchConfigService } from '../../services/peoplesearch-config.service';
+import IPeopleService from '../../services/people.service';
+import IPwmService from '../../services/pwm.service';
 import { IQService, IScope } from 'angular';
-import LocalStorageService from '../services/local-storage.service';
+import LocalStorageService from '../../services/local-storage.service';
 import PeopleSearchBaseComponent from './peoplesearch-base.component';
-import PromiseService from '../services/promise.service';
-import SearchResult from '../models/search-result.model';
+import PromiseService from '../../services/promise.service';
+import SearchResult from '../../models/search-result.model';
 
 @Component({
-    stylesheetUrl: require('peoplesearch/peoplesearch-table.component.scss'),
-    templateUrl: require('peoplesearch/peoplesearch-table.component.html')
+    stylesheetUrl: require('modules/peoplesearch/peoplesearch-table.component.scss'),
+    templateUrl: require('modules/peoplesearch/peoplesearch-table.component.html')
 })
 export default class PeopleSearchTableComponent extends PeopleSearchBaseComponent {
     columnConfiguration: any;

+ 3 - 3
client/src/peoplesearch/peoplesearch.module.ts → client/src/modules/peoplesearch/peoplesearch.module.ts

@@ -30,9 +30,9 @@ import PeopleSearchTableComponent from './peoplesearch-table.component';
 import PeopleSearchCardsComponent from './peoplesearch-cards.component';
 import PersonCardDirective from './person-card.component';
 import PersonDetailsDialogComponent from './person-details-dialog.component';
-import LocalStorageService from '../services/local-storage.service';
-import PromiseService from '../services/promise.service';
-import uxModule from '../ux/ux.module';
+import LocalStorageService from '../../services/local-storage.service';
+import PromiseService from '../../services/promise.service';
+import uxModule from '../../ux/ux.module';
 
 require('./peoplesearch.scss');
 

+ 1 - 1
client/src/peoplesearch/peoplesearch.scss → client/src/modules/peoplesearch/peoplesearch.scss

@@ -78,7 +78,7 @@ body {
 }
 
 .ias-avatar {
-  background: transparent url('../../images/user.png') no-repeat center center;
+  background: transparent url('../../../images/user.png') no-repeat center center;
   background-size: contain;
 }
 

+ 0 - 0
client/src/peoplesearch/person-card.component.html → client/src/modules/peoplesearch/person-card.component.html


+ 3 - 3
client/src/peoplesearch/person-card.component.ts → client/src/modules/peoplesearch/person-card.component.ts

@@ -22,10 +22,10 @@
 
 
 import {IAugmentedJQuery} from 'angular';
-import { IPerson } from '../models/person.model';
-import { IPeopleService } from '../services/people.service';
+import { IPerson } from '../../models/person.model';
+import { IPeopleService } from '../../services/people.service';
 
-const templateUrl = require('peoplesearch/person-card.component.html');
+const templateUrl = require('modules/peoplesearch/person-card.component.html');
 
 class PersonCardController {
     private details: any[]; // For large style cards

+ 0 - 0
client/src/peoplesearch/person-details-dialog.component.html → client/src/modules/peoplesearch/person-details-dialog.component.html


+ 0 - 0
client/src/peoplesearch/person-details-dialog.component.scss → client/src/modules/peoplesearch/person-details-dialog.component.scss


+ 6 - 6
client/src/peoplesearch/person-details-dialog.component.ts → client/src/modules/peoplesearch/person-details-dialog.component.ts

@@ -21,15 +21,15 @@
  */
 
 
-import { Component } from '../component';
-import { IPeopleSearchConfigService } from '../services/peoplesearch-config.service';
-import { IPeopleService } from '../services/people.service';
+import { Component } from '../../component';
+import { IPeopleSearchConfigService } from '../../services/peoplesearch-config.service';
+import { IPeopleService } from '../../services/people.service';
 import { IAugmentedJQuery, ITimeoutService } from 'angular';
-import { IPerson } from '../models/person.model';
+import { IPerson } from '../../models/person.model';
 
 @Component({
-    stylesheetUrl: require('peoplesearch/person-details-dialog.component.scss'),
-    templateUrl: require('peoplesearch/person-details-dialog.component.html')
+    stylesheetUrl: require('modules/peoplesearch/person-details-dialog.component.scss'),
+    templateUrl: require('modules/peoplesearch/person-details-dialog.component.html')
 })
 export default class PersonDetailsDialogComponent {
     person: IPerson;

+ 1 - 1
client/src/peoplesearch/person.filters.ts → client/src/modules/peoplesearch/person.filters.ts

@@ -21,7 +21,7 @@
  */
 
 
-import { IPerson } from '../models/person.model';
+import { IPerson } from '../../models/person.model';
 
 export function FullNameFilter(): (person: IPerson) => string {
     return (person: IPerson): string => {

+ 0 - 0
client/src/peoplesearch/string.filters.ts → client/src/modules/peoplesearch/string.filters.ts


+ 1 - 1
client/webpack.dev.js

@@ -31,7 +31,7 @@ module.exports = webpackMerge(commonConfig, {
         'peoplesearch.ng': './src/main.dev',
         'changepassword.ng': './src/modules/changepassword/changepassword.module',
         'configeditor.ng': './src/modules/configeditor/configeditor.module',
-        'helpdesk.ng': './src/helpdesk/main.dev'
+        'helpdesk.ng': './src/modules/helpdesk/main.dev'
     },
     plugins: [
         // Don't forget to add this to karma.conf.js