Skip to content

Commit 1dd35e8

Browse files
authored
Merge pull request #47 from ishythefishy/contact-form-and-things
Contact form, rejig of homepage, miscellaneous fixes
2 parents f914358 + 17646d4 commit 1dd35e8

File tree

131 files changed

+1640
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+1640
-587
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ Thumbs.db
4040

4141
# Routes
4242
_routes.txt
43+
44+
# Local Netlify folder
45+
.netlify

angular.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"builder": "@angular-devkit/build-angular:browser",
1717
"options": {
1818
"outputPath": "dist/fretonator-web/browser",
19-
"index": "apps/fretonator-web/src/index.html",
19+
"index": "apps/fretonator-web/src/index-dev.html",
2020
"main": "apps/fretonator-web/src/main.ts",
2121
"polyfills": "apps/fretonator-web/src/polyfills.ts",
2222
"tsConfig": "apps/fretonator-web/tsconfig.app.json",
@@ -44,6 +44,7 @@
4444
"with": "apps/fretonator-web/src/environments/environment.prod.ts"
4545
}
4646
],
47+
"index": "apps/fretonator-web/src/index.html",
4748
"optimization": true,
4849
"outputHashing": "all",
4950
"sourceMap": false,
@@ -204,4 +205,4 @@
204205
}
205206
},
206207
"defaultProject": "fretonator-web"
207-
}
208+
}

apps/fretonator-web/src/app/app-routing.module.ts

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,34 @@ import { Route, RouterModule, Routes } from '@angular/router';
33

44
const home: Route = {
55
path: '',
6-
loadChildren: () => import('./pages/home/home.module').then((mod) => mod.HomeModule),
6+
loadChildren: () => import('./pages/home/home.module').then((mod) => mod.HomeModule)
77
};
88

99
const about: Route = {
1010
path: 'about',
11-
loadChildren: () => import('./pages/about/about.module').then((mod) => mod.AboutModule),
11+
loadChildren: () => import('./pages/about/about.module').then((mod) => mod.AboutModule)
12+
};
13+
14+
const contact: Route = {
15+
path: 'contact',
16+
loadChildren: () => import('./pages/contact/contact.module').then((mod) => mod.ContactModule)
1217
};
1318

1419
const notFound: Route = {
1520
path: '**',
16-
loadChildren: () => import('./pages/not-found/not-found.module').then((mod) => mod.NotFoundModule),
21+
loadChildren: () => import('./pages/not-found/not-found.module').then((mod) => mod.NotFoundModule)
1722
};
1823

19-
const routes: Routes = [home, about, notFound];
24+
const routes: Routes = [home, about, contact, notFound];
2025

2126
@NgModule({
2227
imports: [
2328
RouterModule.forRoot(routes, {
24-
initialNavigation: 'enabled',
25-
scrollPositionRestoration: 'disabled',
26-
}),
29+
initialNavigation: 'enabled',
30+
scrollPositionRestoration: 'disabled'
31+
})
2732
],
28-
exports: [RouterModule],
33+
exports: [RouterModule]
2934
})
30-
export class AppRoutingModule {}
35+
export class AppRoutingModule {
36+
}

apps/fretonator-web/src/app/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ describe('AppComponent', () => {
1111
imports: [
1212
RouterTestingModule,
1313
HeaderModule,
14-
FooterModule,
14+
FooterModule
1515
],
16-
declarations: [AppComponent],
16+
declarations: [AppComponent]
1717
}).compileComponents();
1818
}));
1919

apps/fretonator-web/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.scss'],
6+
styleUrls: ['./app.component.scss']
77
})
88
export class AppComponent {
99
}

apps/fretonator-web/src/app/app.module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
1616
BrowserAnimationsModule,
1717
AppRoutingModule,
1818
HeaderModule,
19-
FooterModule,
19+
FooterModule
2020
// ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
2121
],
2222
providers: [],
23-
bootstrap: [AppComponent],
23+
bootstrap: [AppComponent]
2424
})
25-
export class AppModule {}
25+
export class AppModule {
26+
}

apps/fretonator-web/src/app/app.server.module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
99
imports: [
1010
AppModule,
1111
ServerModule,
12-
NoopAnimationsModule,
12+
NoopAnimationsModule
1313
],
14-
bootstrap: [AppComponent],
14+
bootstrap: [AppComponent]
1515
})
16-
export class AppServerModule {}
16+
export class AppServerModule {
17+
}

apps/fretonator-web/src/app/common/chips/chip/chip.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<a
22
[routerLink]="['/', note, noteExtender, mode]"
33
[attr.aria-label]="note | createChipLinkTitle: noteExtender: mode"
4+
(click)="onClick($event)"
45
class="chip"
56
[class.chip--active]="selected"
67
[class.chip--round]="rounded"

apps/fretonator-web/src/app/common/chips/chip/chip.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, DoCheck, Input } from '@angular/core';
1+
import { Component, DoCheck, EventEmitter, Input, Output } from '@angular/core';
22
import { Mode } from '../../../util/types';
33
import { ActivatedRoute } from '@angular/router';
44

@@ -19,6 +19,7 @@ export class ChipComponent implements DoCheck {
1919
@Input() selectedColor: SelectedColor = SelectedColor.default;
2020
@Input() rounded = false;
2121
@Input() isBaseNote = false;
22+
@Output() chipClick = new EventEmitter<MouseEvent>();
2223
SelectedColor = SelectedColor;
2324
selected = false;
2425

@@ -48,4 +49,8 @@ export class ChipComponent implements DoCheck {
4849

4950
return true;
5051
}
52+
53+
onClick(event: MouseEvent) {
54+
this.chipClick.emit(event);
55+
}
5156
}

apps/fretonator-web/src/app/common/chips/chip/create-chip-link-title.pipe.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import { Mode, NoteExtenderString } from '../../../util/types';
33
import { FretMapService } from '../../fret-map/fret-map.service';
44

55
@Pipe({
6-
name: 'createChipLinkTitle',
6+
name: 'createChipLinkTitle'
77
})
88
export class CreateChipLinkTitlePipe implements PipeTransform {
9-
constructor(public generateFretMapService: FretMapService) {}
9+
constructor(public generateFretMapService: FretMapService) {
10+
}
11+
1012
transform(
1113
note: string,
1214
noteExtender: string,

0 commit comments

Comments
 (0)