Skip to content

Commit

Permalink
feat: add footer links to admin client (#802)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Heroux <[email protected]>
  • Loading branch information
hxtree authored Feb 7, 2024
1 parent eb6d6df commit 1729e79
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions clients/admin-client/.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_PARENT_DOMAIN_NAME=sandbox.nekosgate.com
9 changes: 7 additions & 2 deletions clients/admin-client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@ import { PageFooter, faGithub } from '@cats-cradle/design-system/dist/main';
import { Router } from './routing/Router';

function App() {
const parentDomainName = import.meta.env.VITE_PARENT_DOMAIN_NAME ?? 'sandbox.nekosgate.com';

return (
<>
<Router/>
<PageFooter
socialMedias={[
{icon: faGithub, label: 'Github', url: 'https://github.com/hxtree/cats-cradle'},
]}
links={[]}
siteOwner="Cats Cradle"
/>
links={[
{url: `https://jukebox.${parentDomainName}`, label: 'Jukebox'},
{url: `https://design.${parentDomainName}`, label: 'Design System'},
{url: `https://api.${parentDomainName}`, label: 'Developer API'},
]}/>
</>
);
}
Expand Down
2 changes: 2 additions & 0 deletions clients/admin-client/stacks/admin-client.stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class AdminClientStack extends cdk.Stack {
bucketName: `${awsAccountId}-${stageName}-admin-client-bucket`,
accessControl: BucketAccessControl.PRIVATE,
removalPolicy: RemovalPolicy.DESTROY,
autoDeleteObjects: true,
});

const originAccessIdentity = new OriginAccessIdentity(
Expand Down Expand Up @@ -93,6 +94,7 @@ export class AdminClientStack extends cdk.Stack {
new BucketDeployment(this, 'BucketDeployment', {
destinationBucket: bucket,
sources: [Source.asset('./dist')],
retainOnDelete: false,
});

const hostedZone = route53.PublicHostedZone.fromHostedZoneAttributes(
Expand Down
8 changes: 7 additions & 1 deletion clients/admin-client/tsconfig-build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"extends": "./tsconfig.json",
"include": ["src", "bin", "stacks"]
"include": ["src", "bin", "stacks"],
"compilerOptions": {
"lib": ["dom"],

"module": "es2022",
"moduleResolution": "Node"
}
}
4 changes: 4 additions & 0 deletions common/config/rush/browser-approved-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@
"name": "vite-plugin-dts",
"allowedCategories": [ "apis", "clients" ]
},
{
"name": "vite-plugin-environment",
"allowedCategories": [ "clients" ]
},
{
"name": "vite-plugin-lib-inject-css",
"allowedCategories": [ "apis", "clients" ]
Expand Down

0 comments on commit 1729e79

Please sign in to comment.