-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
76 changed files
with
1,306 additions
and
1,028 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
./dist | ||
dev/.export | ||
.vscode/ |
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,11 @@ | ||
const autoprefixer = require('autoprefixer'); | ||
const nesting = require('tailwindcss/nesting/index.js'); | ||
const tailwindcss = require('tailwindcss'); | ||
const { resolve } = require('path'); | ||
|
||
const tailwindCfg = resolve(__dirname, './tailwind.config.cjs'); | ||
|
||
/* @type {import('postcss').Postcss} */ | ||
module.exports = { | ||
plugins: [nesting, tailwindcss(tailwindCfg), autoprefixer], | ||
}; |
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,2 +1,2 @@ | ||
User-agent: * | ||
Allow: / | ||
Disallow: / |
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,30 @@ | ||
import { ExclamationTriangleIcon } from '@radix-ui/react-icons' | ||
import { Box, Button, Card, Flex, Heading, IconButton, Text } from '@radix-ui/themes' | ||
import { $pages } from '../router' | ||
|
||
export const DiagramNotFound = () => { | ||
return ( | ||
<Flex position='fixed' inset='0' align='center' justify='center'> | ||
<Card color='red' size='3'> | ||
<Flex gap='4' direction='row' align='start'> | ||
<Box grow='0' shrink='0' pt='1'> | ||
<IconButton variant='ghost' color='amber'> | ||
<ExclamationTriangleIcon width={50} height={50} /> | ||
</IconButton> | ||
</Box> | ||
<Flex gap='3' direction='column'> | ||
<Heading trim='both' color='amber' size='4'> | ||
Diagram not found | ||
</Heading> | ||
<Text as='div'>The diagram you are looking for does not exist.</Text> | ||
<Box> | ||
<Button variant='soft' color='amber' onClick={() => $pages.index.open()}> | ||
Home page | ||
</Button> | ||
</Box> | ||
</Flex> | ||
</Flex> | ||
</Card> | ||
</Flex> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { MoonIcon } from '@radix-ui/react-icons' | ||
import { IconButton, ThemePanel } from '@radix-ui/themes' | ||
import { useToggle } from '@react-hookz/web/esm' | ||
|
||
export const ThemePanelToggle = () => { | ||
const [isOpened, toggle] = useToggle(false, true) | ||
return ( | ||
<> | ||
<IconButton color='gray' variant={isOpened ? 'solid' : 'soft'} onClick={toggle} size={'2'}> | ||
<MoonIcon width={16} height={16} /> | ||
</IconButton> | ||
{isOpened && <ThemePanel style={{ top: 50 }} />} | ||
</> | ||
) | ||
} |
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 +1,4 @@ | ||
export { Sidebar } from './sidebar/Sidebar' | ||
export { ViewActionsToolbar } from './view-page/ViewActionsToolbar' | ||
export { ThemePanelToggle } from './ThemePanelToggle' | ||
export { DiagramNotFound } from './DiagramNotFound' |
11 changes: 9 additions & 2 deletions
11
packages/likec4/app/src/components/sidebar/DiagramsTree.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
Oops, something went wrong.