当前位置: 首页>>代码示例>>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;未经允许,请勿转载。