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
read :search do | |
argument :query, :ci_string do | |
constraints allow_empty?: false | |
default "" | |
end | |
argument :role_filter, Role, allow_nil?: false | |
# Filtering expressions work on an individual row at a time rather than an entire table, helpful to parse | |
# the filtering logic in stages like so: |
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
def signed_in_path(%{assigns: %{current_scope: %{user: %{}}}}), do: ~p"/users/settings" | |
def signed_in_path(_), do: ~p"/listings" |
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 type Schema = | |
| { | |
type: "integer" | "string"; | |
} | |
| { | |
type: "object"; | |
properties: Record<string, Schema>; | |
}; | |
const isNumberType = (value: any) => typeof value === "number"; |