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
defmodule Operations do | |
@moduledoc """ | |
Examples: | |
operations Schema.Trip, :trip | |
operations Schema.User, :user, only: [:get, :delete] | |
# supports :plural option for list_x function | |
operations Schema.Datum, :datum, plural: :data | |
""" | |
defmacro operations(schema, name) do |
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
<Pagination | |
renderTableName{<b>Your Files</b>} | |
renderCallToAction={<BigButton>Upload</BigButton>} | |
totalPageCount={data.length / itemsPerPage} | |
> | |
{(pageNumber, reset) => ( | |
<TableHead> | |
<Header onClick={this.sortByName(reset)}>Name</Header> | |
<Header onClick={this.sortByTitle(reset)}>Title</Header> | |
</TableHead> |
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
[ | |
{ | |
"id": 1, | |
"url": "https://images.dog.ceo/breeds/pointer-germanlonghair/hans2.jpg" | |
}, | |
{ | |
"id": 2, | |
"url": "https://images.dog.ceo/breeds/hound-english/n02089973_3480.jpg" | |
}, | |
{ |
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 { readFileSync } from "node:fs" | |
import * as babel from "@babel/core" | |
import BabelPluginReactCompiler from "babel-plugin-react-compiler" | |
import type { Plugin } from "esbuild" | |
import QuickLRU from "quick-lru" | |
export function ReactCompilerEsbuildPlugin({ | |
filter, | |
sourceMaps, | |
runtimeModulePath, |
OlderNewer