當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript services.WebAppSettingDataService類代碼示例

本文整理匯總了TypeScript中app/shared/services.WebAppSettingDataService的典型用法代碼示例。如果您正苦於以下問題:TypeScript WebAppSettingDataService類的具體用法?TypeScript WebAppSettingDataService怎麽用?TypeScript WebAppSettingDataService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了WebAppSettingDataService類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: ngOnInit

 ngOnInit() {
     this.enableRealTime$ = combineLatest(
         this.newUrlStateNotificationService.onUrlStateChange$.pipe(
             map((urlService: NewUrlStateNotificationService) => urlService.isRealTimeMode())
         ),
         this.webAppSettingDataService.useActiveThreadChart()
     ).pipe(
         map(([isRealTimeMode, useActiveThreadChart]: boolean[]) => isRealTimeMode && useActiveThreadChart)
     );
     this.webAppSettingDataService.getVersion().subscribe((version: string) => {
         this.analyticsService.trackEvent(TRACKED_EVENT_LIST.VERSION, version);
     });
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:13,代碼來源:main-page.component.ts

示例2: ngOnInit

 ngOnInit() {
     this.funcImagePath = this.webAppSettingDataService.getImagePathMakeFunc();
     this.browserInfoList = [
         {
             downloadLink: 'https://www.google.com/chrome',
             name: 'chrome',
             displayName: 'Google Chrome'
         }, {
             downloadLink: 'https://www.mozilla.org/en/firefox/new',
             name: 'firefox',
             displayName: 'Mozilla Firefox'
         }, {
             downloadLink: 'https://support.apple.com/en-us/HT204416',
             name: 'safari',
             displayName: 'Apple Safari'
         }, {
             downloadLink: 'https://www.microsoft.com/en-us/windows/microsoft-edge',
             name: 'edge',
             displayName: 'Microsoft Edge'
         }, {
             downloadLink: 'https://whale.naver.com/en/',
             name: 'whale',
             displayName: 'Naver Whale'
         }
     ];
     this.i18nText$ = this.translateService.get('SUPPORT.INSTALL_GUIDE');
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:27,代碼來源:browser-support-page.component.ts

示例3: switch

            return text.split('|').map((textElem: string) => {
                const i = textElem.indexOf(':');
                const textType = textElem.substr(0, i).replace(/\[|\]/g, '');
                const textInfoArr = textElem.substr(i + 1).replace(/\{|\}/g, '').split('\\').map((textInfo: string) => {
                    return textInfo.split('=')[1];
                });

                switch (textType) {
                    case 'ICON':
                        return `<span class="fas ${textInfoArr[0]}" style="${textInfoArr[1]}"></span>`;
                    case 'TEXT':
                        return textInfoArr[0];
                    case 'IMAGE':
                        const path = this.webAppSettingDataService.getImagePath();
                        const extension = this.webAppSettingDataService.getImageExt();

                        return `<img src="${path}${textInfoArr[0]}${extension}">`;
                    case 'LINK':
                        return `<a href="${textInfoArr[0]}" target="${textInfoArr[1]}" style="${textInfoArr[2]}">${textInfoArr[3]}</a>`;
                    default:
                        return text;
                }
            }).join(' ');
開發者ID:young891221,項目名稱:pinpoint,代碼行數:23,代碼來源:json-text-parser.pipe.ts

示例4:

 this.activatedRoute.data.subscribe((urlData: any) => {
     const params = this.getUrlParams();
     if (params.period) {
         this.urlRouteManagerService.move({
             url: [
                 urlData['path'] || params.startPath,
                 params.application,
                 params.period
             ],
             needServerTimeRequest: true
         });
     } else {
         this.urlRouteManagerService.move({
             url: [
                 urlData['path'] || params.startPath,
                 params.application,
                 this.webAppSettingDataService.getUserDefaultPeriod().getValueWithTime()
             ],
             needServerTimeRequest: true
         });
     }
 });
開發者ID:young891221,項目名稱:pinpoint,代碼行數:22,代碼來源:url-redirector.component.ts

示例5: onChangeBound

 onChangeBound(bound: number[]): void {
     this.analyticsService.trackEvent(TRACKED_EVENT_LIST.SET_BOUND_IN_CONFIGURATION, `Inbound: ${bound[0]}, Outbound: ${bound[1]}`);
     this.webAppSettingDataService.setUserDefaultInbound(bound[0]);
     this.webAppSettingDataService.setUserDefaultOutbound(bound[1]);
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:5,代碼來源:inbound-outbound-range-selector-for-configuration-container.component.ts

示例6: ngOnInit

 ngOnInit() {
     this.inboundList = this.webAppSettingDataService.getInboundList();
     this.outboundList = this.webAppSettingDataService.getOutboundList();
     this.selectedInbound = this.webAppSettingDataService.getUserDefaultInbound();
     this.selectedOutbound = this.webAppSettingDataService.getUserDefaultOutbound();
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:6,代碼來源:inbound-outbound-range-selector-for-configuration-container.component.ts

示例7: ngOnInit

 ngOnInit() {
     this.isApplicationInspectorActivated$ = this.webAppSettingDataService.isApplicationInspectorActivated();
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:3,代碼來源:application-inspector-contents-container.component.ts

示例8: ngOnInit

 ngOnInit() {
     this.logoPath = this.webAppSettingDataService.getLogoPath();
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:3,代碼來源:header-logo.component.ts

示例9: onChangeUserDefaultPeriod

 onChangeUserDefaultPeriod(value: Period): void {
     this.analyticsService.trackEvent(TRACKED_EVENT_LIST.SET_SEARCH_PERIOD_IN_CONFIGURATION, value.getValueWithTime());
     this.webAppSettingDataService.setUserDefaultPeriod(value);
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:4,代碼來源:search-period-container.component.ts

示例10: ngOnInit

 ngOnInit() {
     this.periodList = this.webAppSettingDataService.getPeriodList(UrlPath.MAIN);
     this.userDefaultPeriod = this.webAppSettingDataService.getUserDefaultPeriod();
 }
開發者ID:young891221,項目名稱:pinpoint,代碼行數:4,代碼來源:search-period-container.component.ts


注:本文中的app/shared/services.WebAppSettingDataService類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。