Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{ name: 'participants', label: 'Spieler' },
{ name: 'edit', label: '' }
];
swalOptionsConfirmDelete: {}
swalOptionsDeleteSuccess: {}
// Sort / Filter / Paginate variables
filteredData: any[] = this.data;
filteredTotal: number = this.data.length;
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'title';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(
private questService: QuestService,
private taskService: TaskService,
private worldService: WorldService,
private _dataTableService: TdDataTableService,
private translateService: TranslateService,
private dialog: MatDialog) {
this.initSweetAlert();
}
ngOnInit() {
this.translateTable();
this.init();
this.worldService.onWorldChange().subscribe(() => this.init());
this.initSweetAlert();
{name: 'xp', label: 'XP'},
{name: 'story', label: 'Story'},
{name: 'status', label: 'Status'},
{name: 'edit', label: '', width: 70}
]
// Sort / Filter / Paginate variables
filteredData: any[] = this.data
filteredTotal: number = this.data.length
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'title';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
freeQuestsAvailable: boolean;
constructor(private _dataTableService: TdDataTableService,
private questService: QuestService,
private worldService: WorldService,
private translateService: TranslateService,
private dialog: MatDialog,
private taskService: TaskService,
private adventureService: AdventureService) {
}
ngOnInit() {
this.translateTable();
this.init();
this.worldService.onWorldChange().subscribe(() => this.init());
}
{name: 'name', label: 'Name', width: {min: 80}},
{name: 'type', label: 'Type', width: {min: 40}},
{name: 'value', label: 'Value', width: {min: 40}},
{name: 'action', label: ''}
];
// Sort / Filter / Paginate variables
filteredSkills: Skill[];
filteredTotal: number
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'name';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(
private dialogRef: MatDialogRef,
private dialog: MatDialog,
private artefactService: ArtefactService,
private skillService: SkillService,
@Inject(MAT_DIALOG_DATA) public artefact: Artefact,
private _dataTableService: TdDataTableService ) {
}
ngOnInit() {
this.skillService.getSkillsForArtefact(this.artefact).then(skills => {
this.skills = skills;
this.filter();
});
this.name = this.artefact.name;
{name: 'name', label: 'Name', width: {min: 80}},
{name: 'type', label: 'Type', width: {min: 40}},
{name: 'value', label: 'Value', width: {min: 40}},
{name: 'action', label: ''}
];
// Sort / Filter / Paginate variables
filteredSkills: Skill[];
filteredTotal: number
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'name';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(
private dialogRef: MatDialogRef,
private artefactService: ArtefactService,
private dialog: MatDialog,
private skillService: SkillService,
private _dataTableService: TdDataTableService) {
}
ngOnInit() {
this.filter()
}
removeSkill(skill: Skill) {
if (typeof skill.id !== 'undefined') {
this.skillService.deleteSkill(skill).then();
{name: 'message', label: 'Mission'},
{name: 'quest.title', label: 'Quest'},
{name: 'status', label: 'Status'},
{name: 'edit', label: ''}
];
// Sort / Filter / Paginate variables
filteredData: any[] = this.data;
filteredTotal: number = this.data.length;
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'id';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(
private specialTaskService: SpecialTaskService,
private questService: QuestService,
private adventureService: AdventureService,
private _dataTableService: TdDataTableService,
private worldService: WorldService,
private translateService: TranslateService,
private dialog: MatDialog) {
}
ngOnInit() {
this.translateTable();
this.worldService.currentWorld$.subscribe(world => {
this.currentWorld = world
this.loadTasks();
{ name: 'project', label: 'Project', width: { min: 300 } },
{ name: 'active', label: 'Active' },
{ name: 'usequestcards', label: 'Questcards' },
{ name: 'edit', label: '' }
];
// Sort / Filter / Paginate variables
filteredData: any[];
filteredTotal: number;
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'id';
selectedRows: any[];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(private worldService: WorldService,
private _dataTableService: TdDataTableService,
private translateService: TranslateService,
private dialog: MatDialog,
private loadingService: LoadingService,
private userService: UserService) {
}
ngOnInit() {
this.translateTable();
this.userService.user$.subscribe(user => {
this.user = user
if (this.user.role.name.toLocaleUpperCase() === 'ADMIN') {
this.loadWorlds();
{name: 'severity', label: 'Severity'},
{name: 'quest.title', label: 'Quest'},
{name: 'status', label: 'Status'},
{name: 'edit', label: ''}
];
// Sort / Filter / Paginate variables
filteredData: any[] = this.data;
filteredTotal: number = this.data.length;
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'id';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
currentWorld: World;
constructor(
private standardTaskService: StandardTaskService,
private taskService: TaskService,
private questService: QuestService,
private adventureService: AdventureService,
private _dataTableService: TdDataTableService,
private worldService: WorldService,
private translateService: TranslateService,
private dialog: MatDialog,
private loadingService: LoadingService) {
}
ngOnInit() {
columns: ITdDataTableColumn[] = [
{name: 'id', label: 'id' },
{name: 'name', label: 'Name' },
{name: 'retail_shop.name', 'label': 'Shop'}
];
filteredData: any[] = this.data;
filteredTotal: number = this.data.length;
shops: number[];
title: string;
searchTerm: string = '';
fromRow: number = 1;
currentPage: number = 1;
pageSize: number = 50;
sortBy: string = 'id';
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(
private _titleService: Title,
private _loadingService: TdLoadingService,
private _tagService: TagsService,
private _userService: UsersService) {
this._loadingService.create({
name: 'products',
type: LoadingType.Circular,
mode: LoadingMode.Indeterminate,
color: 'warn',
});
}
ngAfterViewInit(): void {
this._titleService.setTitle('Product');
templateUrl: './choose-current-world.component.html',
styleUrls: ['./choose-current-world.component.css']
})
export class ChooseCurrentWorldComponent implements OnInit {
worlds: World[];
filteredData: any[];
filteredTotal: number;
searchTerm = '';
fromRow = 1;
currentPage = 1;
pageSize = 5;
sortBy = 'name';
selectedRows: any[] = [];
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
columns: ITdDataTableColumn[] = [
{name: 'name', label: 'Name'},
{name: 'project', label: 'Project'},
{name: 'choose', label: '', width: 70, sortable: false}
];
constructor(
private dialogRef: MatDialogRef,
public worldService: WorldService,
private _dataTableService: TdDataTableService
) {
}
ngOnInit() {
this.worldService.getActiveWorlds().subscribe(worlds => {
columns: ITdDataTableColumn[] = [
{name: 'id', label: 'id' },
{name: 'name', label: 'Name' },
{name: 'retail_shop.name', 'label': 'Shop'}
];
filteredData: any[] = this.data;
filteredTotal: number = this.data.length;
shops: number[];
title: string;
searchTerm: string = '';
fromRow: number = 1;
currentPage: number = 1;
pageSize: number = 50;
sortBy: string = 'id';
sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending;
constructor(
private _titleService: Title,
private _loadingService: TdLoadingService,
private _saltService: SaltsService,
private _userService: UsersService) {
this._loadingService.create({
name: 'products',
type: LoadingType.Circular,
mode: LoadingMode.Indeterminate,
color: 'warn',
});
}
ngAfterViewInit(): void {
this._titleService.setTitle('Product');