diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts b/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts
index 81032c2..e618e05 100644
--- a/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts
+++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/app.module.ts
@@ -35,6 +35,7 @@ import { CharacterService } from '../services/character.service';
import { AbilityCardComponent } from './components/ability-card/ability-card.component';
import { GameMasterSpellsTableComponent } from './components/game-master-spells-table/game-master-spells-table.component';
import { GameMasterArmorsTableComponent } from './components/game-master-armors-table/game-master-armors-table.component';
+import { GameMasterWeaponsTableComponent } from './components/game-master-weapons-table/game-master-weapons-table.component';
import { AbilitiesComponent } from './components/abilities/abilities.component';
@NgModule({
@@ -49,7 +50,6 @@ import { AbilitiesComponent } from './components/abilities/abilities.component';
AbilityCardComponent,
GameMasterSpellsTableComponent,
GameMasterArmorsTableComponent,
- AbilitiesComponent,
],
imports: [
BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
@@ -81,6 +81,7 @@ import { AbilitiesComponent } from './components/abilities/abilities.component';
entryComponents: [
GameMasterSpellsTableComponent,
GameMasterArmorsTableComponent,
+ GameMasterWeaponsTableComponent,
AbilitiesComponent,
],
})
diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-dashboard/game-master-dashboard.component.ts b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-dashboard/game-master-dashboard.component.ts
index ae3aa72..4941226 100644
--- a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-dashboard/game-master-dashboard.component.ts
+++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-dashboard/game-master-dashboard.component.ts
@@ -13,6 +13,7 @@ import { first } from 'rxjs/operators';
import { LeftNavItem } from '../../../types/LeftNavItem';
import { GameMasterSpellsTableComponent } from '../game-master-spells-table/game-master-spells-table.component';
import { GameMasterArmorsTableComponent } from '../game-master-armors-table/game-master-armors-table.component';
+import { GameMasterWeaponsTableComponent } from '../game-master-weapons-table/game-master-weapons-table.component';
@Component({
selector: 'app-game-master-dashboard',
@@ -33,10 +34,16 @@ export class GameMasterDashboardComponent implements OnInit, OnDestroy {
children: [
{
displayName: 'Armor',
- iconName: 'ra ra-vest',
+ iconName: 'ra ra-vest',
expanded: false,
componentToDisplay: 'GameMasterArmorsTableComponent',
},
+ {
+ displayName: 'Weapon',
+ iconName: 'ra ra-large-hammer',
+ expanded: false,
+ componentToDisplay: 'GameMasterWeaponsTableComponent',
+ },
],
},
{
@@ -104,6 +111,9 @@ export class GameMasterDashboardComponent implements OnInit, OnDestroy {
case 'GameMasterArmorsTableComponent':
this.middleComponentName = GameMasterArmorsTableComponent;
break;
+ case 'GameMasterWeaponsTableComponent':
+ this.middleComponentName = GameMasterWeaponsTableComponent;
+ break;
}
}
diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-weapons-table/game-master-weapons-table.component.css b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-weapons-table/game-master-weapons-table.component.css
new file mode 100644
index 0000000..83e5e96
--- /dev/null
+++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-weapons-table/game-master-weapons-table.component.css
@@ -0,0 +1,38 @@
+.description-weapon-column {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+table {
+ width: 100%;
+ background-color: initial;
+}
+
+mat-paginator {
+ background-color: initial;
+ color: white;
+}
+
+::ng-deep .mat-select-arrow {
+ color: whitesmoke;
+}
+
+::ng-deep .mat-select-value {
+ color: white;
+}
+
+.mat-sort-header-container {
+ color: whitesmoke !important;
+}
+
+.mat-form-field {
+ font-size: 14px;
+ width: 100%;
+}
+
+td,
+th {
+ color: whitesmoke;
+ width: 25%;
+}
diff --git a/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-weapons-table/game-master-weapons-table.component.html b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-weapons-table/game-master-weapons-table.component.html
new file mode 100644
index 0000000..966d65d
--- /dev/null
+++ b/SessionCompanion/SessionCompanion/ClientApp/src/app/components/game-master-weapons-table/game-master-weapons-table.component.html
@@ -0,0 +1,43 @@
+
Name | +{{row.name}} | +Weapon Type | +{{row.weaponType}} | +Weight | +{{row.weight}} | +Cost | +{{row.cost}} $ | +Description | +{{row.description}} | +
---|---|---|---|
No data matching the filter "{{input.value}}" | +