import { Component, h} from '@stencil/core'; import { Api } from '../api'; @Component({ tag: 'app-home', styleUrl: 'app-home.css', shadow: true, }) export class AppHome { constructor() { this.start(); } async start() { await Api.login('test', 'test'); let data = await Api.get("/users/me"); console.log(data); data = await Api.post("/server/dummy/start"); console.log(data); data = await Api.post("/server/dummy/stop"); console.log(data); } render() { return (

Welcome to the Stencil App Starter. You can use this starter to build entire apps all with web components using Stencil! Check out our docs on{' '} stenciljs.com to get started.

); } }