This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Znode.Engine.Api.Models; | |
using Znode.Engine.ERPConnector.Model.ChatGPTConnector; | |
using Znode.Engine.Services; | |
using Znode.Libraries.ECommerce.Utilities; | |
using Znode.Libraries.Framework.Business; | |
using Znode.Libraries.Observer; | |
namespace Znode.Api.Custom | |
{ | |
public class CustomWebStoreCaseRequestService : WebStoreCaseRequestService, IWebStoreCaseRequestService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Task from '../models/task.model'; | |
export class TasksService { | |
private readonly apiPath = 'http://localhost:3000/tasks'; | |
private readonly contentTypeHeader = { 'Content-Type': 'application/json' }; | |
private static async handleResponse(resp: Response) { | |
// fetch does not automatically throw on error response | |
if (!resp.ok) throw new Error(`Fetch Error: \n ${await resp.text()}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="home"> | |
<div class="row"> | |
<input type="text" | |
class="form-field" | |
v-model="newTask.name" | |
placeholder="Enter a new task"> | |
<button class="create" | |
:disabled="!newTask.name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tasks": [ | |
{ | |
"name": "Learn VueJS", | |
"complete": true, | |
"id": 0 | |
}, | |
{ | |
"name": "Implement JSON-Server in a VueJS app", | |
"complete": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const routes: Routes = [ | |
{ | |
path: 'home', | |
component: DialogParentExample, | |
children: [ | |
{ | |
path: 'some-dialog-path', | |
component: DialogOverviewExampleDialog, | |
resolve: { dlgRef: DialogResolverService }, | |
data: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'dialog-parent-example', | |
templateUrl: 'dialog-parent-example.html', | |
styleUrls: ['dialog-parent-example.css'], | |
}) | |
export class DialogParentExample { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'dialog-parent-example', | |
templateUrl: 'dialog-parent-example.html', | |
styleUrls: ['dialog-parent-example.css'], | |
}) | |
export class DialogParentExample { | |
routeQueryParams: Subscription; | |
constructor(public dialog: MatDialog, private route: ActivatedRoute) {} | |
ngOnInit() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'dialog-parent-example', | |
templateUrl: 'dialog-parent-example.html', | |
styleUrls: ['dialog-parent-example.css'], | |
}) | |
export class DialogParentExample { | |
constructor(public dialog: MatDialog) {} | |
openDialog(): void { | |
const dialogRef = this.dialog.open(DialogOverviewExampleDialog, { |