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
css | |
:root { | |
--app-color-black: #111111; | |
--app-color-primary: #ffffff; | |
--app-color-secondary: #00ff1a; | |
} | |
@media (prefers-color-scheme: dark) { | |
:root { | |
--app-color-black: #ffffff; | |
--app-color-primary: #111111; |
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
<script context="module" lang="ts"> | |
import type {SvelteComponent} from 'svelte' | |
export const getItemId = (index: number, carouselName = 'carousel') => | |
`${carouselName}-item-${index}` | |
export type Item = { | |
props: Record<string, any> | |
component: typeof SvelteComponent | |
} | |
</script> | |
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 { goto } from '$app/navigation'; | |
/* eslint-disable */ | |
export function linkedArticle( | |
node: HTMLElement, | |
parameters: { url: string } | undefined | |
): { | |
destroy: () => void; |
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 interface DataState { | |
error: string | null; | |
loaded: boolean; | |
data: GetIssuesQuery | undefined; | |
} | |
const initialState: DataState = { | |
error: null, | |
loaded: false, | |
data: undefined | |
}; |
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 { Component, OnInit } from '@angular/core'; | |
import { GoogleLoginProvider, SocialAuthService, SocialUser } from 'angularx-social-login'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent implements OnInit { | |
title = 'calendar-app'; |
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 { environment } from '../../../environments/environment'; | |
const apiEndpoint = environment.apiEndpoint; | |
export interface PathsAuthDto { | |
current: string; | |
login: string; | |
signIn: string; | |
} | |
export interface PathsDto { |
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 React, { useState, useEffect } from "react"; | |
import { Keyboard, View, Dimensions, Platform, StyleSheet } from "react-native"; | |
const styles = StyleSheet.create({ | |
container: { | |
left: 0, | |
right: 0, | |
bottom: 0, | |
}, | |
}); |
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
Volta In Action | |
Let's take Volta for a spin. First, create a brand new React application with Create React App. | |
The full code for this lesson is contained in a GitHub repo here. | |
Run the following command from a terminal. | |
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
@Injectable() | |
export class CmsService { | |
private http: HttpClient; | |
constructor(httpBackend: HttpBackend) { | |
this.http = new HttpClient(httpBackend); | |
} | |
getPages(): Observable<CmsArray> { | |
return this.http.get<CmsArray>( | |
`url/pages` |
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
@Input() error!: Required<ErrorDto> | null; | |
@Input() loading!: boolean; | |
@Input() data!: UserDto; | |
@Output() submitted = new EventEmitter<UserDto>(); | |
frm!: FormGroup; | |
ngOnInit(){ | |
this.createForm(); | |
if (this.data.userId) { |
NewerOlder