-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(slice-machine): add GitHub settings page
- Loading branch information
Showing
17 changed files
with
1,286 additions
and
70 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
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,4 +1,4 @@ | ||
export type Owner = { | ||
export type GitOwner = { | ||
provider: "gitHub"; | ||
id: string; | ||
name: string; | ||
|
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,32 +1 @@ | ||
import React from "react"; | ||
import Head from "next/head"; | ||
import { BaseStyles } from "theme-ui"; | ||
import { | ||
AppLayout, | ||
AppLayoutBreadcrumb, | ||
AppLayoutContent, | ||
AppLayoutHeader, | ||
} from "@components/AppLayout"; | ||
import { ConnectGitRepository } from "@src/features/git/ConnectGitRepository/ConnectGitRepository"; | ||
|
||
const Settings: React.FC = () => { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Settings - Slice Machine</title> | ||
</Head> | ||
<AppLayout> | ||
<AppLayoutHeader> | ||
<AppLayoutBreadcrumb folder="Settings" /> | ||
</AppLayoutHeader> | ||
<AppLayoutContent> | ||
<BaseStyles sx={{ display: "flex", flexDirection: "column" }}> | ||
<ConnectGitRepository /> | ||
</BaseStyles> | ||
</AppLayoutContent> | ||
</AppLayout> | ||
</> | ||
); | ||
}; | ||
|
||
export default Settings; | ||
export { SettingsPage as default } from "@src/features/settings/SettingsPage"; |
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,10 @@ | ||
module.exports = { | ||
plugins: { | ||
"postcss-flexbugs-fixes": true, | ||
"postcss-preset-env": { | ||
autoprefixer: { flexbox: "no-2009" }, | ||
features: { "custom-properties": false, "nesting-rules": true }, | ||
stage: 3, | ||
}, | ||
}, | ||
}; |
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
29 changes: 29 additions & 0 deletions
29
packages/slice-machine/src/features/settings/SettingsPage.tsx
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,29 @@ | ||
import { Box } from "@prismicio/editor-ui"; | ||
import Head from "next/head"; | ||
import type { FC } from "react"; | ||
|
||
import { | ||
AppLayout, | ||
AppLayoutBreadcrumb, | ||
AppLayoutContent, | ||
AppLayoutHeader, | ||
} from "@components/AppLayout"; | ||
import { ConnectGitRepository } from "@src/features/settings/git/ConnectGitRepository"; | ||
|
||
export const SettingsPage: FC = () => ( | ||
<> | ||
<Head> | ||
<title>Settings - Slice Machine</title> | ||
</Head> | ||
<AppLayout> | ||
<AppLayoutHeader> | ||
<AppLayoutBreadcrumb folder="Settings" /> | ||
</AppLayoutHeader> | ||
<AppLayoutContent> | ||
<Box flexDirection="column" maxWidth={600}> | ||
<ConnectGitRepository /> | ||
</Box> | ||
</AppLayoutContent> | ||
</AppLayout> | ||
</> | ||
); |
Oops, something went wrong.