https://test.coffee.gomonday.se/assessments/15062 see: Navigation Panel
https://test.coffee.gomonday.se/assessments/15093 see: Navigation Panel
#mapRoot { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
#sidebar { | |
width: 340px; | |
height: 600px; | |
background-color: #fefefe; | |
overflow: auto; |
https://test.coffee.gomonday.se/assessments/15062 see: Navigation Panel
https://test.coffee.gomonday.se/assessments/15093 see: Navigation Panel
// ParentComponent.jsx | |
import React from 'react'; | |
import connect from '../HOCs/connect'; | |
function FeatureComponent({ someProperty }) { | |
return ( | |
<> | |
<p>This component is connected to gcursor.</p> |
const getWidgetToolbar = function () { | |
return ( | |
<ul className="buttons center"> | |
<li className="button" data-topic="insert-widget" data-widget-type="text" data-menu="false"> | |
<i className="icon-text-widget" /> | |
<div className="button-title">Text</div> | |
</li> | |
<li className="button" data-topic="insert-widget" data-widget-type="image" data-menu="false"> | |
<i className="icon-image-widget" /> |
<form | |
[formGroup]="loginForm" | |
(ngSubmit)="onSubmit()"> | |
<div class="form-group"> | |
<label for="userName">Email address</label> | |
<input | |
type="email" | |
id="userName" |
import { Injectable } from '@angular/core'; | |
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; | |
import { Observable } from 'rxjs'; | |
@Injectable() | |
export class JwtInterceptor implements HttpInterceptor { | |
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
// add authorization header with jwt token if available | |
const userSession = JSON.parse(localStorage.getItem('userSession')); |