Commit d237d360 authored by Anusha Mamidala's avatar Anusha Mamidala
Browse files

Removed unnecessary files and packages

parent 49210c3c
......@@ -68,18 +68,6 @@
"browserTarget": "BalaSwecha:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
......
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/BalaSwecha'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
This diff is collapsed.
......@@ -15,7 +15,6 @@
"package:all": "npm run build && cross-var electron-packager dist $npm_package_name-$npm_package_version --out=packages --all --arch=all --overwrite ",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~11.2.0",
......@@ -42,14 +41,6 @@
"cross-var": "^1.1.0",
"electron": "^12.0.1",
"electron-packager": "^15.2.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.1.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.1.2"
......
import { SafePipe } from './safe.pipe';
describe('SafePipe', () => {
it('create an instance', () => {
const pipe = new SafePipe();
expect(pipe).toBeTruthy();
});
});
import { TestBed } from '@angular/core/testing';
import { SimulationService } from './simulation.service';
describe('SimulationService', () => {
let service: SimulationService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(SimulationService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
AppComponent
],
}).compileComponents();
});
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'BalaSwecha'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('BalaSwecha');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement;
expect(compiled.querySelector('.content span').textContent).toContain('BalaSwecha app is running!');
});
});
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FrameComponent } from './frame.component';
describe('FrameComponent', () => {
let component: FrameComponent;
let fixture: ComponentFixture<FrameComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ FrameComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(FrameComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SimulationsComponent } from './simulations.component';
describe('SimulationsComponent', () => {
let component: SimulationsComponent;
let fixture: ComponentFixture<SimulationsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ SimulationsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(SimulationsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Error404Component } from './error404.component';
describe('Error404Component', () => {
let component: Error404Component;
let fixture: ComponentFixture<Error404Component>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ Error404Component ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(Error404Component);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FooterComponent } from './footer.component';
describe('FooterComponent', () => {
let component: FooterComponent;
let fixture: ComponentFixture<FooterComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ FooterComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HeaderComponent } from './header.component';
describe('HeaderComponent', () => {
let component: HeaderComponent;
let fixture: ComponentFixture<HeaderComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ HeaderComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(HeaderComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ HomeComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
......@@ -43,6 +43,7 @@ export class HomeComponent implements OnInit {
filterSubjectsClasses(): Simulation[] {
let items = this.simulationItems;
console.log('filterSubjectsClasses')
if (this.selectedOption?.selectedClass != "" && this.selectedOption?.selectedSubject === 'all') {
let filteredItems = items.filter(e =>
e.class.includes(parseInt(this.selectedOption?.selectedClass))
......@@ -65,10 +66,12 @@ export class HomeComponent implements OnInit {
"selectedSubject": this.selectedSubject
}
this.simulationItems = this.filterSubjectsClasses();
console.log('getCourses')
}
onSelectClass(value) {
this.selectedClass = value;
console.log('onSelectClass')
}
onSelectSubject(value) {
this.selectedSubject = value;
......@@ -77,6 +80,7 @@ export class HomeComponent implements OnInit {
"selectedSubject": this.selectedSubject
}
this.filteredSimulationItems = this.filterSubjectsClasses();
console.log('onSelectSubject')
}
onClickSubject(i) {
......@@ -85,6 +89,7 @@ export class HomeComponent implements OnInit {
"selectedSubject": i.type
}
this.simulationItems = this.filterSubjectsClasses();
console.log('onClickSubject')
}
}
(function($){"use strict";var review=$('.player_info_item');if(review.length){review.owlCarousel({items:1,loop:true,dots:false,autoplay:true,margin:40,autoplayHoverPause:true,autoplayTimeout:5000,nav:true,navText:['<img src="img/icon/left.svg" alt="">','<img src="img/icon/right.svg" alt="">'],responsive:{0:{margin:15,},600:{margin:10,},1000:{margin:10,}}});}
$('.popup-youtube, .popup-vimeo').magnificPopup({type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:false,fixedContentPos:false});var review=$('.textimonial_iner');if(review.length){review.owlCarousel({items:1,loop:true,dots:true,autoplay:true,autoplayHoverPause:true,autoplayTimeout:5000,nav:false,responsive:{0:{margin:15,},600:{margin:10,},1000:{margin:10,}}});}
$(document).ready(function(){$('select').niceSelect();});$(window).scroll(function(){var window_top=$(window).scrollTop()+1;if(window_top>50){$('.main_menu').addClass('menu_fixed animated fadeInDown');}else{$('.main_menu').removeClass('menu_fixed animated fadeInDown');}});$('.counter').counterUp({time:2000});$('.slider').slick({slidesToShow:1,slidesToScroll:1,arrows:false,speed:300,infinite:true,asNavFor:'.slider-nav-thumbnails',autoplay:true,pauseOnFocus:true,dots:true,});$('.slider-nav-thumbnails').slick({slidesToShow:3,slidesToScroll:1,asNavFor:'.slider',focusOnSelect:true,infinite:true,prevArrow:false,nextArrow:false,centerMode:true,responsive:[{breakpoint:480,settings:{centerMode:false,}}]});$('.slider-nav-thumbnails .slick-slide').removeClass('slick-active');$('.slider-nav-thumbnails .slick-slide').eq(0).addClass('slick-active');$('.slider').on('beforeChange',function(event,slick,currentSlide,nextSlide){var mySlideNumber=nextSlide;$('.slider-nav-thumbnails .slick-slide').removeClass('slick-active');$('.slider-nav-thumbnails .slick-slide').eq(mySlideNumber).addClass('slick-active');});$('.slider').on('afterChange',function(event,slick,currentSlide){$('.content').hide();$('.content[data-id='+(currentSlide+1)+']').show();});$('.gallery_img').magnificPopup({type:'image',gallery:{enabled:true}});}(jQuery));
\ No newline at end of file
;(function ($) {
'use strict'
var review = $('.player_info_item')
if (review.length) {
review.owlCarousel({
items: 1,
loop: true,
dots: false,
autoplay: true,
margin: 40,
autoplayHoverPause: true,
autoplayTimeout: 5000,
nav: true,
navText: [
'<img src="img/icon/left.svg" alt="">',
'<img src="img/icon/right.svg" alt="">'
],
responsive: {
0: { margin: 15 },
600: { margin: 10 },
1000: { margin: 10 }
}
})
}
var review = $('.textimonial_iner')
if (review.length) {
review.owlCarousel({
items: 1,
loop: true,
dots: true,
autoplay: true,
autoplayHoverPause: true,
autoplayTimeout: 5000,
nav: false,
responsive: {
0: { margin: 15 },
600: { margin: 10 },
1000: { margin: 10 }
}
})
}
$(window).scroll(function () {
var window_top = $(window).scrollTop() + 1
if (window_top > 50) {
$('.main_menu').addClass('menu_fixed animated fadeInDown')
} else {
$('.main_menu').removeClass('menu_fixed animated fadeInDown')
}
})
})(jQuery)
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment