Loading forever

This topic contains 3 replies, has 2 voices, and was last updated by  Scott Lang 3 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22075

    Thiago
    Participant

    I need help with app, he keep loading forever……

     

     

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 288
    Duplicate variable: ‘cats’

    L287:  console.log(this.selectedLocations);
    L288:  var cats = {‘type’:’taxonomy’,’taxonomy’:’location’,’values’:this.selectedLocations};
    L289:  this.filters.push(cats);

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 302
    Duplicate variable: ‘cats’

    L302:              var cats = {‘type’:’taxonomy’,’taxonomy’:’level’,’values’:this.selectedLevels};
    L303:              this.filters.push(cats);

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 317
    Duplicate variable: ‘off’

    L316:  if(this.start_date){
    L317:      var off = {‘type’:’start_date’,’values’:this.start_date};
    L318:      this.filters.push(off);

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 322
    Duplicate variable: ‘off’

    L321:  if(this.end_date){
    L322:      var off = {‘type’:’end_date’,’values’:this.end_date};
    L323:      this.filters.push(off);

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 77
    Property ‘nav’ is declared but its value is never read.

    L76:  public navParams: NavParams,
    L77:    private nav: NavController,
    L78:    private modalCtrl: ModalController,

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 1
    ‘OnInit’ is declared but its value is never read.

    L1:  import { Component, OnInit } from ‘@angular/core’;
    L2:  import { FormControl } from ‘@angular/forms’;

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 10
    All imports on this line are unused.

    L9:  import { CourseCategory } from ‘../../models/course’;
    L10:  import { Course } from ‘../../models/course’;
    L11:  import { User } from ‘../../models/user’;

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 12
    All imports on this line are unused.

    L11:  import { User } from ‘../../models/user’;
    L12:  import { FullCourseCategory } from ‘../../models/coursecategory’;

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 15
    All imports on this line are unused.

    L14:  import ‘rxjs/add/operator/map’;
    L15:  import { Observable } from ‘rxjs/Observable’;

    [20:11:48]  tslint: src/pages/directory/directory.ts, line: 20
    All imports on this line are unused.

    L19:  import { UserService } from ‘../../services/users’;
    L20:  import { Courseblock } from ‘../../components/courseblock/courseblock’;
    L21:  import { WishlistService } from ‘../../services/wishlist’;

    [20:11:48]  tslint: src/services/config.ts, line: 2
    All imports on this line are unused.

    L1:  import { Injectable } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;
    L3:  import { Storage } from ‘@ionic/storage’;

    [20:11:48]  tslint: src/services/course.ts, line: 32
    ‘observable’ is declared but its value is never read.

    L32:      private observable: Observable<any>; //Tracks request in progress
    L33:      private allcoursesobservable: Observable<any>;

    [20:11:48]  tslint: src/services/course.ts, line: 62
    ‘extractData’ is declared but its value is never read.

    L62:        private extractData(response: Response) {
    L63:          let body = response.json();

    [20:11:48]  tslint: src/services/course.ts, line: 74
    ‘handleError’ is declared but its value is never read.

    L74:  private handleError(error: Response) {
    L75:         console.log(error);

    [20:11:48]  tslint: src/services/course.ts, line: 94
    ‘count’ is declared but its value is never read.

    L94:              let count:number=0;
    L95:              count = paged*this.config.settings.per_view – this.courses.length;

    [20:11:48]  tslint: src/services/course.ts, line: 165
    ‘res’ is declared but its value is never read.

    L164:  let body = response.json();
    L165:  let res=[];
    L166:  this.catobservable = null;

    [20:11:48]  tslint: src/services/course.ts, line: 201
    ‘res’ is declared but its value is never read.

    L200:  let body = response.json();
    L201:  let res=[];
    L202:  this.locobservable = null;

    [20:11:48]  tslint: src/services/course.ts, line: 239
    ‘res’ is declared but its value is never read.

    L238:  let body = response.json();
    L239:  let res=[];
    L240:  this.levobservable = null;

    [20:11:48]  tslint: src/services/course.ts, line: 296
    ‘k’ is declared but its value is never read.

    L295:  }else{
    L296:      let k = 0;
    L297:      if(this.fullCourses){

    [20:11:48]  tslint: src/services/course.ts, line: 298
    ‘k’ is declared but its value is never read.

    L297:  if(this.fullCourses){
    L298:      let k = this.fullCourses.length;

    [20:11:48]  tslint: src/services/course.ts, line: 555
    ‘getIndexByKeyValue’ is declared but its value is never read.

    L555:      private getIndexByKeyValue(arraytosearch, key, valuetosearch) {

    [20:11:48]  tslint: src/services/course.ts, line: 565
    ‘copyobject’ is declared but its value is never read.

    L565:      private  copyobject(srcObj:any, destObj:any) {
    L566:          for (var key in destObj) {

    [20:11:48]  tslint: src/services/course.ts, line: 1
    ‘OnInit’ is declared but its value is never read.

    L1:  import { Injectable, OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/course.ts, line: 2
    ‘Http’ is declared but its value is never read.

    L1:  import { Injectable, OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/course.ts, line: 2
    ‘Headers’ is declared but its value is never read.

    L1:  import { Injectable, OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/course.ts, line: 2
    ‘Response’ is declared but its value is never read.

    L1:  import { Injectable, OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/course.ts, line: 2
    ‘RequestOptions’ is declared but its value is never read.

    L1:  import { Injectable, OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/status.ts, line: 29
    ‘quizobservable’ is declared but its value is never read.

    L28:  private statusobservable: Observable<any>;
    L29:  private quizobservable: Observable<any>;
    L30:  private retakeobservable: Observable<any>;

    [20:11:48]  tslint: src/services/status.ts, line: 66
    ‘cacheKey’ is declared but its value is never read.

    L65:              let url = ${this.baseUrl}user/coursestatus/+status.course_id;
    L66:              let cacheKey = url;

    [20:11:48]  tslint: src/services/status.ts, line: 74
    ‘k’ is declared but its value is never read.

    L74:                  let k = this.courseStatuses.length;

    [20:11:48]  tslint: src/services/status.ts, line: 163
    ‘k’ is declared but its value is never read.

    L163:                  let k = this.courseStatuses.length;

    [20:11:48]  tslint: src/services/status.ts, line: 395
    ‘k’ is declared but its value is never read.

    L395:                  let k = this.courseStatuses.length;

    [20:11:48]  tslint: src/services/status.ts, line: 1
    ‘OnInit’ is declared but its value is never read.

    L1:  import { Injectable,OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/status.ts, line: 2
    All imports on this line are unused.

    L1:  import { Injectable,OnInit } from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    [20:11:48]  tslint: src/services/status.ts, line: 10
    All imports on this line are unused.

    L10:  import { Course } from “../models/course”;
    L11:  import { CourseStatus } from “../models/status”;

    [20:11:48]  tslint: src/pages/course/course.ts, line: 79
    ‘user_expiry’ is declared but its value is never read.

    L78:  let currenttimestamp = Math.floor(new Date().getTime() / 1000);
    L79:  let user_expiry = 0;
    L80:  let loading = this.loadingCtrl.create({

    [20:11:48]  tslint: src/pages/course/course.ts, line: 228
    ‘matches’ is declared but its value is never read.

    L227:  if(event.url.indexOf(‘?key=wc_order_’) !== -1){
    L228:    let matches = event.url.match(‘.+/([0-9]+)/.+’);
    L229:    this.browser.close();

    [20:11:48]  tslint: src/pages/course/course.ts, line: 508
    ‘matches’ is declared but its value is never read.

    L507:  if(pricing.source == ‘woocommerce’ && event.url.indexOf(‘?key=wc_order_’) !== -1){
    L508:    let matches = event.url.match(‘.+/([0-9]+)/.+’);
    L509:    this.browser.close();

    [20:11:48]  tslint: src/pages/course/course.ts, line: 1
    ‘OnInit’ is declared but its value is never read.

    L1:  import { Component, OnInit, ViewChild } from ‘@angular/core’;
    L2:  import { NavController, NavParams, ModalController,ToastController,LoadingController,AlertController, Platform, Slides } from ‘ionic-angular’;

    [20:11:48]  tslint: src/pages/course/course.ts, line: 21
    All imports on this line are unused.

    L21:  import { LazyImgComponent }   from ‘../components/lazy-img/lazy-img’;
    L22:  import { LazyLoadDirective }   from ‘../directives/lazy-load.directive’;

    [20:11:48]  tslint: src/pages/course/course.ts, line: 22
    All imports on this line are unused.

    L21:  import { LazyImgComponent }   from ‘../components/lazy-img/lazy-img’;
    L22:  import { LazyLoadDirective }   from ‘../directives/lazy-load.directive’;
    L23:  import { ImgcacheService } from “../services/imageCache”;

    [20:11:48]  tslint: src/pages/course/course.ts, line: 23
    All imports on this line are unused.

    L22:  import { LazyLoadDirective }   from ‘../directives/lazy-load.directive’;
    L23:  import { ImgcacheService } from “../services/imageCache”;

    [20:11:48]  tslint: src/pages/course/course.ts, line: 25
    All imports on this line are unused.

    L25:  import { SafeHtmlPipe } from “../../pipes/orderby”;

    [20:11:48]  tslint: src/services/users.ts, line: 2
    All imports on this line are unused.

    L1:  import { Injectable} from ‘@angular/core’;
    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;
    L3:  import ‘rxjs/add/operator/map’;

    [20:11:48]  tslint: src/services/users.ts, line: 6
    All imports on this line are unused.

    L5:  import ‘rxjs/add/observable/of’;
    L6:  import { CacheService } from “ionic-cache”;
    L7:  import { ToastController} from ‘ionic-angular’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 465
    ‘index’ is declared but its value is never read.

    L464:  onQuestionSlide(){
    L465:      let index = this.courseStatusItems.getActiveIndex();
    L466:      this.content.scrollToTop();

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 1
    ‘OnInit’ is declared but its value is never read.

    L1:  import { Component, OnInit, ViewChild, Output, EventEmitter } from ‘@angular/core’;
    L2:  import { Content,NavController, NavParams, ModalController,LoadingController, AlertController,Platform, Slides,ToastController } from ‘ionic-angular’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 1
    ‘Output’ is declared but its value is never read.

    L1:  import { Component, OnInit, ViewChild, Output, EventEmitter } from ‘@angular/core’;
    L2:  import { Content,NavController, NavParams, ModalController,LoadingController, AlertController,Platform, Slides,ToastController } from ‘ionic-angular’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 1
    ‘EventEmitter’ is declared but its value is never read.

    L1:  import { Component, OnInit, ViewChild, Output, EventEmitter } from ‘@angular/core’;
    L2:  import { Content,NavController, NavParams, ModalController,LoadingController, AlertController,Platform, Slides,ToastController } from ‘ionic-angular’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 2
    ‘Platform’ is declared but its value is never read.

    L1:  import { Component, OnInit, ViewChild, Output, EventEmitter } from ‘@angular/core’;
    L2:  arams, ModalController,LoadingController, AlertController,Platform, Slides,ToastController } from ‘ionic-ang
    L3:  import {SafeResourceUrl, DomSanitizer} from ‘@angular/platform-browser’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 3
    All imports on this line are unused.

    L2:  import { Content,NavController, NavParams, ModalController,LoadingController, AlertController,Platform, Slides,ToastController } from ‘ionic-angular’;
    L3:  import {SafeResourceUrl, DomSanitizer} from ‘@angular/platform-browser’;
    L4:  import { InAppBrowser } from ‘@ionic-native/in-app-browser’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 11
    All imports on this line are unused.

    L11:  import { FriendlytimeComponent } from ‘../../components/friendlytime/friendlytime’;
    L12:  import { QuestionComponent } from ‘../../components/question/question’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 12
    All imports on this line are unused.

    L11:  import { FriendlytimeComponent } from ‘../../components/friendlytime/friendlytime’;
    L12:  import { QuestionComponent } from ‘../../components/question/question’;
    L13:  import { TimerComponent } from ‘../../components/timer/timer’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 13
    All imports on this line are unused.

    L12:  import { QuestionComponent } from ‘../../components/question/question’;
    L13:  import { TimerComponent } from ‘../../components/timer/timer’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 15
    All imports on this line are unused.

    L15:  import { Course } from ‘../../models/course’;
    L16:  import { Activity } from ‘../../models/activity’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 16
    All imports on this line are unused.

    L15:  import { Course } from ‘../../models/course’;
    L16:  import { Activity } from ‘../../models/activity’;
    L17:  import { ActivityMeta } from ‘../../models/activity’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 17
    All imports on this line are unused.

    L16:  import { Activity } from ‘../../models/activity’;
    L17:  import { ActivityMeta } from ‘../../models/activity’;
    L18:  import { User } from ‘../../models/user’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 18
    All imports on this line are unused.

    L17:  import { ActivityMeta } from ‘../../models/activity’;
    L18:  import { User } from ‘../../models/user’;
    L19:  import { CourseStatus } from ‘../../models/status’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 31
    All imports on this line are unused.

    L31:  import {AbsoluteDrag} from ‘../../components/absolute-drag/absolute-drag’;
    L32:  import {PinchZoomDirective} from ‘../../directives/pinch-zoom.directive’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 32
    All imports on this line are unused.

    L31:  import {AbsoluteDrag} from ‘../../components/absolute-drag/absolute-drag’;
    L32:  import {PinchZoomDirective} from ‘../../directives/pinch-zoom.directive’;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 36
    All imports on this line are unused.

    L36:  import { SafeHtmlPipe } from “../../pipes/orderby”;
    L37:  import { SafePipe } from “../../pipes/orderby”;

    [20:11:48]  tslint: src/pages/course-status/course-status.ts, line: 37
    All imports on this line are unused.

    L36:  import { SafeHtmlPipe } from “../../pipes/orderby”;
    L37:  import { SafePipe } from “../../pipes/orderby”;

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 91
    Property ‘formBuilder’ is declared but its value is never read.

    L90:  private storage:Storage,
    L91:  private formBuilder:FormBuilder,
    L92:  private loadingCtrl:LoadingController,

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 1
    ‘OnInit’ is declared but its value is never read.

    L1:  import { Component, OnInit, ViewChild } from ‘@angular/core’;
    L2:  import { Content,NavController,ViewController,LoadingController, ToastController,ActionSheetController,AlertController, NavParams, Slides,Platform } from ‘ionic-angular’;

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 3
    ‘FormBuilder’ is declared but its value is never read.

    L2:  import { Content,NavController,ViewController,LoadingController, ToastController,ActionSheetController,AlertController, NavParams, Slides,Platform } from ‘ionic-angular’;
    L3:  import { FormBuilder, FormGroup,FormControl, Validators, } from ‘@angular/forms’;

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 3
    ‘FormGroup’ is declared but its value is never read.

    L2:  import { Content,NavController,ViewController,LoadingController, ToastController,ActionSheetController,AlertController, NavParams, Slides,Platform } from ‘ionic-angular’;
    L3:  import { FormBuilder, FormGroup,FormControl, Validators, } from ‘@angular/forms’;

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 3
    ‘FormControl’ is declared but its value is never read.

    L2:  import { Content,NavController,ViewController,LoadingController, ToastController,ActionSheetController,AlertController, NavParams, Slides,Platform } from ‘ionic-angular’;
    L3:  import { FormBuilder, FormGroup,FormControl, Validators, } from ‘@angular/forms’;

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 24
    All imports on this line are unused.

    L23:  import { ResultPage } from ‘../result/result’;
    L24:  import { FriendlytimeComponent } from ‘../../components/friendlytime/friendlytime’;

    [20:11:48]  tslint: src/pages/profile/profile.ts, line: 26
    All imports on this line are unused.

    L26:  import { PressDirective } from ‘../../directives/longPress.directive’;
    L27:  import { TabsPage } from ‘../tabs/tabs’;

    [20:11:48]  lint finished in 19.63 s

    #22314

    Scott Lang
    Keymaster

    Is that your ionic serve works??

    Is intro screen showing??

    #22626

    Thiago
    Participant

    NVM i already solved that…

     

    Was IONIC problem

    #22645

    Scott Lang
    Keymaster

    It looks like there is api hit from app which did not get result from your site. Because your site did not provide response to app, It loading.

    Is your site is configured or not ?

    We have check response from your site at our end .

    Provide your admin credential with us.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.