Skip to content

Commit 630e443

Browse files
authored
Merge pull request #32 from code0-tech/feat/#8
All pages and views related to Namespace
2 parents 3852e0b + 43703ee commit 630e443

File tree

95 files changed

+2485
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2485
-361
lines changed

package-lock.json

Lines changed: 82 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@apollo/client": "^4.0.9",
18-
"@code0-tech/pictor": "^0.0.0-mvp.21",
18+
"@code0-tech/pictor": "^0.0.0-mvp.26",
1919
"graphql": "^16.12.0",
2020
"graphql-tag": "^2.12.6",
2121
"next": "16.0.7",

public/CodeZero_Logo.png

88.9 KB
Loading

public/CodeZero_Logo_MVP.png

86.1 KB
Loading

src/app/(auth)/layout.tsx

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,28 @@ export default function AuthLayout({children}: Readonly<{ children: React.ReactN
3232
</Container>
3333
</ContextStoreProvider>
3434
<div style={{
35-
position: "fixed",
36-
bottom: "1.3rem",
37-
right: "1.3rem",
38-
display: "flex",
39-
alignItems: "center",
40-
gap: "1.3rem"
35+
position: "absolute",
36+
width: "100%",
37+
boxSizing: "border-box",
38+
padding: "1.3rem",
39+
bottom: 0,
40+
left: 0
4141
}}>
42-
<Text>All rights reserved &copy; Code0 UG (haftungsbeschränkt)</Text>
43-
<Image src={"/CodeZero_Banner_MVP.png"} alt={"CodeZero Banner"} width={150} height={0}
44-
style={{width: '150px', height: 'auto'}}/>
42+
<Flex justify={"space-between"} align={"end"} style={{gap: "1.3rem"}}>
43+
<Text maw={"25%"} style={{fontSize: "2rem", fontWeight: "600", lineHeight: "1"}} hierarchy={"primary"}
44+
display={"inline-block"}>
45+
Every great idea starts at zero. {" "}
46+
<Text style={{fontSize: "2rem", fontWeight: "600", lineHeight: "1"}}
47+
hierarchy={"tertiary"} display={"inline"}>
48+
Start with CodeZero.
49+
</Text>
50+
</Text>
51+
<Flex align={"center"} style={{gap: "1.3rem"}}>
52+
<Text>All rights reserved &copy; Code0 UG (haftungsbeschränkt)</Text>
53+
<Image src={"/CodeZero_Banner_MVP.png"} alt={"CodeZero Banner"} width={150} height={0}
54+
style={{width: '150px', height: 'auto'}}/>
55+
</Flex>
56+
</Flex>
4557
</div>
4658
</div>
4759
</DFullScreen>

src/app/(dashboard)/@bar/default.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
useUserSession
1515
} from "@code0-tech/pictor";
1616
import DUserMenu from "@code0-tech/pictor/dist/components/d-user/DUserMenu";
17-
import {IconBuilding, IconInbox, IconLogout, IconSearch, IconSettings} from "@tabler/icons-react";
17+
import {IconBuilding, IconFolders, IconInbox, IconLogout, IconSearch} from "@tabler/icons-react";
1818
import React from "react";
1919
import Image from "next/image";
2020
import {UserService} from "@edition/user/User.service";
@@ -46,12 +46,19 @@ const Page = () => {
4646
})
4747
}
4848

49+
const namespaceIndex = currentSession.user?.namespace?.id?.match(/Namespace\/(\d+)$/)?.[1]
50+
4951
return <DUserMenu userId={currentSession.user?.id!!}>
5052
<Link href={"/organizations"}>
5153
<MenuItem>
5254
<IconBuilding size={16}/>Organizations
5355
</MenuItem>
5456
</Link>
57+
<Link href={`/namespace/${namespaceIndex}`}>
58+
<MenuItem>
59+
<IconFolders size={16}/>Personal Workspace
60+
</MenuItem>
61+
</Link>
5562
<MenuSeparator/>
5663
<MenuItem onSelect={userLogout}>
5764
<IconLogout size={16}/>Logout
@@ -63,8 +70,8 @@ const Page = () => {
6370
<Flex style={{gap: "0.7rem", flexDirection: "column"}} py={0.7} w={"100%"}>
6471
<Flex align={"center"} justify={"space-between"}>
6572
<Flex align={"center"} style={{gap: "1.3rem"}}>
66-
<Image src={"/CodeZero_App_MVP.png"} alt={"CodeZero Banner"} width={160} height={0}
67-
style={{width: '42px', height: 'auto'}}/>
73+
<Image src={"/CodeZero_Logo.png"} alt={"CodeZero Banner"} width={160} height={0}
74+
style={{width: '38px', height: 'auto'}}/>
6875
<Breadcrumb>
6976
<Text>Application</Text>
7077
</Breadcrumb>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {NamespaceTabView} from "@edition/dashboard/namespace/NamespaceTabView";
2+
3+
export default function Page() {
4+
return <NamespaceTabView/>
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {NamespaceTabView} from "@edition/dashboard/namespace/NamespaceTabView";
2+
3+
export default function Page() {
4+
return <NamespaceTabView/>
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {NamespaceTabView} from "@edition/dashboard/namespace/NamespaceTabView";
2+
3+
export default function Page() {
4+
return <NamespaceTabView/>
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import {NamespaceTabView} from "@edition/dashboard/namespace/NamespaceTabView";
2+
3+
export default function Page() {
4+
return <NamespaceTabView/>
5+
}

0 commit comments

Comments
 (0)