This file contains hidden or 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 { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | |
import { render } from "@testing-library/react-native"; | |
import { ReactElement, ReactNode } from "react"; | |
import { AppContexts } from "../../App"; | |
const createTestQueryClient = () => | |
new QueryClient({ | |
defaultOptions: { | |
queries: { |
This file contains hidden or 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
const path = require("path") | |
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin") | |
module.exports = { | |
stories: ["../ui-kit/**/*.stories.mdx", "../@(modules|ui-kit)/**/*.stories.@(js|jsx|ts|tsx)"], | |
staticDirs: ["../public"], | |
core: { | |
builder: "webpack5", | |
}, | |
addons: [ |
This file contains hidden or 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 async function saveFileFromResponse(response: Response, filename?: string) { | |
filename = filename || getResponseAttachmentFileName(response) || 'file'; | |
const data = await response.blob(); | |
const type = data.type || 'application/octet-stream'; | |
saveBlobAsFile(data, filename, type) | |
} | |
export function saveBlobAsFile(blob: Blob, fileName: string, mimeType: string){ | |
if (typeof navigator.msSaveBlob === 'function') { |
This file contains hidden or 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
// sample: http://codepen.io/ktknest/full/LDljw/ | |
angular.module('app', []) | |
/** | |
* @ngdoc directive | |
* @name pinchZoom | |
* @restrict A | |
* @scope false | |
* | |
* @description |
This file contains hidden or 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
.document-page__sheet { | |
display: inline-block; | |
background: #f00; | |
box-shadow: 0 2px 10px rgba(0,0,0,.3), inset 0 0 1px red; | |
} | |
.document-page__content { | |
display: inline-block; | |
} | |
/* THE IMAGE : */ |
This file contains hidden or 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
#!/bin/bash | |
## v1.0.6 | |
## this script will gernerate css stats | |
### example output | |
# CSS STATS | |
# ---------- | |
# Floats: 132 |
This file contains hidden or 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
/* Steps */ | |
.steps { | |
margin: 25px 50px; | |
} | |
.step { | |
float: left; | |
width: 0; | |
text-align: center; | |
} |