diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5a476e3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,37 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "name": "Launch index.html", + "type": "firefox", + "request": "launch", + "reAttach": true, + "file": "${workspaceFolder}/index.html" + }, + { + "name": "Launch localhost", + "type": "firefox", + "request": "launch", + "reAttach": true, + "url": "http://localhost/index.html", + "webRoot": "${workspaceFolder}" + }, + { + "name": "Attach", + "type": "firefox", + "request": "attach" + }, + { + "name": "Launch addon", + "type": "firefox", + "request": "launch", + "reAttach": true, + "addonType": "webExtension", + "addonPath": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/src/app/account.ts b/src/app/account.ts new file mode 100644 index 0000000..6f7393c --- /dev/null +++ b/src/app/account.ts @@ -0,0 +1,7 @@ +import { IAccount } from './budget-database' + +export class Account implements IAccount { + id: number; + remoteId: number; + name: string; +} diff --git a/src/app/accounts.service.spec.ts b/src/app/accounts.service.spec.ts new file mode 100644 index 0000000..795c14d --- /dev/null +++ b/src/app/accounts.service.spec.ts @@ -0,0 +1,15 @@ +import { TestBed, inject } from '@angular/core/testing'; + +import { AccountsService } from './accounts.service'; + +describe('AccountsService', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [AccountsService] + }); + }); + + it('should be created', inject([AccountsService], (service: AccountsService) => { + expect(service).toBeTruthy(); + })); +}); diff --git a/src/app/accounts.service.ts b/src/app/accounts.service.ts new file mode 100644 index 0000000..053723b --- /dev/null +++ b/src/app/accounts.service.ts @@ -0,0 +1,9 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class AccountsService { + + constructor() { } +} diff --git a/src/app/actionable.ts b/src/app/actionable.ts new file mode 100644 index 0000000..de2a9f8 --- /dev/null +++ b/src/app/actionable.ts @@ -0,0 +1,4 @@ +export interface Actionable { + doAction(): void; + getActionLabel(): string; +} diff --git a/src/app/add-edit-account/add-edit-account.component.css b/src/app/add-edit-account/add-edit-account.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/add-edit-account/add-edit-account.component.html b/src/app/add-edit-account/add-edit-account.component.html new file mode 100644 index 0000000..a67e7a3 --- /dev/null +++ b/src/app/add-edit-account/add-edit-account.component.html @@ -0,0 +1,3 @@ +
+ add-edit-account works! +
diff --git a/src/app/add-edit-account/add-edit-account.component.spec.ts b/src/app/add-edit-account/add-edit-account.component.spec.ts new file mode 100644 index 0000000..ca90782 --- /dev/null +++ b/src/app/add-edit-account/add-edit-account.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AddEditAccountComponent } from './add-edit-account.component'; + +describe('AddEditAccountComponent', () => { + let component: AddEditAccountComponent; + let fixture: ComponentFixtureSelect a category from the list to view details about it or edit it.
Select a transaction from the list to view details about it or edit it.
+ edit-profile works! +
diff --git a/src/app/edit-profile/edit-profile.component.spec.ts b/src/app/edit-profile/edit-profile.component.spec.ts new file mode 100644 index 0000000..5b24456 --- /dev/null +++ b/src/app/edit-profile/edit-profile.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { EditProfileComponent } from './edit-profile.component'; + +describe('EditProfileComponent', () => { + let component: EditProfileComponent; + let fixture: ComponentFixture+ user works! +
diff --git a/src/app/user/user.component.spec.ts b/src/app/user/user.component.spec.ts new file mode 100644 index 0000000..dd3b1d7 --- /dev/null +++ b/src/app/user/user.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { UserComponent } from './user.component'; + +describe('UserComponent', () => { + let component: UserComponent; + let fixture: ComponentFixture