-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
217 additions
and
179 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/api-v4/.changeset/pr-9824-upcoming-features-1697827003419.md
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,5 @@ | ||
--- | ||
"@linode/api-v4": Upcoming Features | ||
--- | ||
|
||
Update the `Subnet` and `Interface` interfaces to match new API spec ([#9824](https://github.com/linode/manager/pull/9824)) |
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,5 @@ | ||
--- | ||
"@linode/manager": Fixed | ||
--- | ||
|
||
Footer styles on small viewports ([#9823](https://github.com/linode/manager/pull/9823)) |
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-9824-upcoming-features-1697827056392.md
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,5 @@ | ||
--- | ||
"@linode/manager": Upcoming Features | ||
--- | ||
|
||
Properly support new shapes of `Subnet` and `Interface` return objects ([#9824](https://github.com/linode/manager/pull/9824)) |
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 |
---|---|---|
@@ -1,13 +1,31 @@ | ||
import { Subnet } from '@linode/api-v4/lib/vpcs/types'; | ||
import { | ||
Subnet, | ||
SubnetAssignedLinodeData, | ||
} from '@linode/api-v4/lib/vpcs/types'; | ||
import * as Factory from 'factory.ts'; | ||
|
||
// NOTE: Changing to fixed array length for the interfaces and linodes fields of the | ||
// subnetAssignedLinodeDataFactory and subnetFactory respectively -- see [M3-7227] for more details | ||
|
||
export const subnetAssignedLinodeDataFactory = Factory.Sync.makeFactory<SubnetAssignedLinodeData>( | ||
{ | ||
id: Factory.each((i) => i), | ||
interfaces: Array.from({ length: 5 }, () => ({ | ||
active: false, | ||
id: Math.floor(Math.random() * 100), | ||
})), | ||
} | ||
); | ||
|
||
export const subnetFactory = Factory.Sync.makeFactory<Subnet>({ | ||
created: '2023-07-12T16:08:53', | ||
id: Factory.each((i) => i), | ||
ipv4: '0.0.0.0/0', | ||
label: Factory.each((i) => `subnet-${i}`), | ||
linodes: Factory.each((i) => | ||
Array.from({ length: i }, () => Math.floor(Math.random() * 100)) | ||
linodes: Array.from({ length: 5 }, () => | ||
subnetAssignedLinodeDataFactory.build({ | ||
id: Math.floor(Math.random() * 100), | ||
}) | ||
), | ||
updated: '2023-07-12T16:08:53', | ||
}); |
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,53 @@ | ||
import Stack from '@mui/material/Stack'; | ||
import * as React from 'react'; | ||
|
||
import { Link } from 'src/components/Link'; | ||
import { | ||
SIDEBAR_COLLAPSED_WIDTH, | ||
SIDEBAR_WIDTH, | ||
} from 'src/components/SideMenu'; | ||
import { DEVELOPERS_LINK, FEEDBACK_LINK } from 'src/constants'; | ||
|
||
import packageJson from '../../package.json'; | ||
|
||
interface Props { | ||
desktopMenuIsOpen: boolean; | ||
} | ||
|
||
export const Footer = React.memo((props: Props) => { | ||
const { desktopMenuIsOpen } = props; | ||
|
||
return ( | ||
<footer role="contentinfo"> | ||
<Stack | ||
sx={(theme) => ({ | ||
backgroundColor: theme.bg.main, | ||
paddingLeft: { | ||
md: desktopMenuIsOpen | ||
? `${SIDEBAR_COLLAPSED_WIDTH + 16}px` | ||
: `${SIDEBAR_WIDTH + 16}px`, | ||
sm: 2, | ||
xs: 2, | ||
}, | ||
paddingY: theme.spacing(2.5), | ||
transition: 'padding-left .1s linear', // match the sidebar transition speed | ||
})} | ||
direction={{ sm: 'row', xs: 'column' }} | ||
spacing={{ sm: 4, xs: 1 }} | ||
> | ||
<Link | ||
forceCopyColor | ||
to={`https://github.com/linode/manager/releases/tag/linode-manager@v${packageJson.version}`} | ||
> | ||
v{packageJson.version} | ||
</Link> | ||
<Link forceCopyColor to={DEVELOPERS_LINK}> | ||
API Reference | ||
</Link> | ||
<Link forceCopyColor to={FEEDBACK_LINK}> | ||
Provide Feedback | ||
</Link> | ||
</Stack> | ||
</footer> | ||
); | ||
}); |
This file was deleted.
Oops, something went wrong.
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.