Initial commit

This commit is contained in:
Kayaya
2020-08-05 15:39:16 +01:00
commit d25ebc0d28
110 changed files with 17161 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { HttpService } from './http.service';
describe('HttpService', () => {
let service: HttpService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(HttpService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
+22
View File
@@ -0,0 +1,22 @@
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
/* import { environment } from 'src/environments/environment.prod'; */
@Injectable({
providedIn: 'root'
})
export class HttpService {
constructor(private http: HttpClient) { }
post(serviceName: string, data: any){
const headers = new HttpHeaders();
const options = { header: headers, withCredintials: false}
const url = environment.apiURL + serviceName;
/* const this.http.post(url, JSON.stringify(data), options); */
}
}
+16
View File
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { StorageService } from './storage.service';
describe('StorageService', () => {
let service: StorageService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(StorageService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
+20
View File
@@ -0,0 +1,20 @@
import { Injectable } from '@angular/core';
import { Plugins } from '@capacitor/core';
const { Storage } = Plugins;
@Injectable({
providedIn: 'root'
})
export class StorageService {
constructor() {
/* async store(storageKey: String, value: any){
await Storage.set({
key: storageKey,
value: value
})
} */
}
}