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
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName neos.t3local | |
SetEnv FLOW_CONTEXT Development | |
ServerAlias www.neos.t3local | |
DocumentRoot /var/www/neos/Neos-2.1/Web | |
<Directory ~ "/var/www/neos/Neos-2.1/"> |
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 enum HttpStatusCodes100 { | |
CONTINUE = 100, | |
SWITCHING_PROTOCOLS = 101, | |
PROCESSING = 102, | |
EARLY_HINTS = 103, | |
} | |
export enum HttpStatusCodes200 { | |
OK = 200, | |
CREATED = 201, |
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 * as React from 'react' | |
import configureMockStore from 'redux-mock-store' | |
import { Provider } from 'react-redux' | |
import { shallow, ShallowWrapper } from 'enzyme' | |
export type StringObject = { [key: string]: string } | |
export type StoreData = { [key: string]: string | StringObject } | |
export interface RenderShallowWithReduxOptions<T> { | |
children?: React.ReactNode |
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 * as React from 'react' | |
import configureMockStore from 'redux-mock-store' | |
import { Provider } from 'react-redux' | |
import { shallow, ShallowWrapper } from 'enzyme' | |
export type StringObject = { [key: string]: string } | |
export type StoreData = { [key: string]: string | StringObject } | |
export interface RenderShallowWithReduxOptions<T> { | |
children?: React.ReactNode |
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 interfac-e NpmContributors { | |
email?: string; | |
githubUsername?: string; | |
name: string; | |
url?: string; | |
} | |
export interface NpmMaintainer { | |
email: string; |
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
// Called when active editor language is changed: | |
// After the active editor language changes the content is "re-opened" so just listen for the open event | |
// And check the lang of the active editor | |
vscode.workspace.onDidOpenTextDocument(() => { | |
const editor = vscode.window.activeTextEditor | |
if (editor !== undefined) { | |
const { | |
document: { languageId }, | |
} = editor; |
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
// Update the value used by a view's "when" condition | |
// Can't use in getChildren() | |
vscode.commands.executeCommand('setContext', someContextVar, isVisibleBoolean); | |
// Package.json | |
/* | |
... | |
"views": { |
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 StyledImg = styled.img<StyledImgProps>` | |
position: relative; | |
` | |
// Overriding a styled component's styles | |
export const StyledIcon = styled(Img)<StyledIconProps>` | |
position: relative; | |
` |
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
// Store original value to set back after tests | |
const previousInnerWidth = window.innerWidth | |
Object.defineProperty(window, 'innerWidth', { | |
configurable: true, | |
value: 400, | |
writable: 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
Clear device caches: | |
=================== | |
> flutter clean | |
Get packages | |
============ | |
> flutter pub get |
OlderNewer