-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade Astro dependencies in doj-demo * Fix asset issue with Astro's node.js adapter by using trailingSlash: never * Fix asset issues in doj-demo, and sync up with recent changes in the spotlight app
- Loading branch information
1 parent
c5d42ac
commit f81bc8e
Showing
23 changed files
with
1,349 additions
and
232 deletions.
There are no files selected for viewing
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
export type GithubRepository = { | ||
owner: string; | ||
repository: string; | ||
branch: string; | ||
commit: string; | ||
}; | ||
|
||
export const DEFAULT_REPOSITORY: GithubRepository = { | ||
owner: 'gsa-tts', | ||
repository: 'atj-platform', | ||
branch: 'main', | ||
commit: 'main', | ||
}; | ||
|
||
export const getBranchTreeUrl = ( | ||
github: GithubRepository, | ||
useDefaultShortForm = true | ||
) => { | ||
if (useDefaultShortForm && github.branch === DEFAULT_REPOSITORY.branch) { | ||
return `https://github.com/${github.owner}/${github.repository}`; | ||
} | ||
return `https://github.com/${github.owner}/${github.repository}/tree/${github.branch}`; | ||
}; | ||
|
||
export const getGithubRepository = async ( | ||
env?: any | ||
): Promise<GithubRepository> => { | ||
const { execSync } = await import('child_process'); | ||
return { | ||
owner: env.OWNER || 'gsa-tts', | ||
repository: env.REPOSITORY || 'atj-platform', | ||
branch: env.BRANCH || 'main', | ||
commit: execSync('git rev-parse HEAD').toString().trim(), | ||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
import ContentLayout from '../layouts/ContentLayout.astro'; | ||
import AppFormManager from '../components/AppFormManager'; | ||
import Layout from '../layouts/Layout.astro'; | ||
--- | ||
|
||
<ContentLayout title="Home"> | ||
<h1>Office of the Pardon Attorney</h1> | ||
<h2>Sample forms</h2> | ||
</ContentLayout> | ||
<Layout title="10x Access to Justice Spotlight"> | ||
<AppFormManager client:only /> | ||
</Layout> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
import AppFormManager from '../../components/AppFormManager'; | ||
import ContentLayout from '../../layouts/ContentLayout.astro'; | ||
import Layout from '../../layouts/Layout.astro'; | ||
--- | ||
|
||
<ContentLayout title="10x Access to Justice Spotlight"> | ||
<Layout title="10x Access to Justice Spotlight"> | ||
<AppFormManager client:only /> | ||
</ContentLayout> | ||
</Layout> |
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
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
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
Oops, something went wrong.