Main will always be our production branch and it should not be committed to directly. Only branch off for hotfixes, or in rare cases, hard resetting development. The only branches to be merged into Main are release branches, because the only commits that should be made to master are full releases.
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 { Server, Model, Response } from "miragejs" | |
| import { | |
| consortiaFixtures, | |
| statusFixtures, | |
| typeFixtures, | |
| enrollmentFixtures | |
| } from "./fixtures" | |
| var jwt = require("jsonwebtoken") | |
| export function makeServer({ environment = "development" } = {}) { |
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 default (components, type, part = "long_name") => { | |
| for (var i = 0; i < components.length; i++) { | |
| for (var j = 0; j < components[i].types.length; j++) { | |
| if (components[i].types[j] === type) return components[i][part] | |
| } | |
| } | |
| return "" | |
| } |
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 [search, setSearch] = useState("") | |
| const debouncedSearch = useDebounce(search, 400) | |
| const [searchResults, setSearchResults] = useState<Agent[]>([]) | |
| const { data: agents, isLoading } = useListAgents({ | |
| search: debouncedSearch, | |
| }) | |
| useEffect(() => { | |
| setSearchResults(() => agents || []) |
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
| version: "3.8" | |
| services: | |
| ############################ | |
| # RADARR | |
| ############################ | |
| radarr: | |
| image: lscr.io/linuxserver/radarr:latest | |
| container_name: radarr |
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 { createDevEmailClient } from '@/lib/email/dev-email-client' | |
| import { createProductionEmailClient } from '@/lib/email/production-email-client' | |
| export function createEmailClient(environment: 'development' | 'production') { | |
| if (environment === 'development') { | |
| return createDevEmailClient() | |
| } | |
| return createProductionEmailClient() | |
| } |
OlderNewer
