-
Notifications
You must be signed in to change notification settings - Fork 3
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
49 changed files
with
122 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react'; | ||
import { viteStaticCopy } from 'vite-plugin-static-copy'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
viteStaticCopy({ | ||
targets: [ | ||
{ | ||
src: 'node_modules/@galaxyops/design-system/dist/assets/*', | ||
dest: 'assets' | ||
} | ||
] | ||
}) | ||
], | ||
server: { | ||
port: 3000, | ||
host: '127.0.0.1', | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes
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
67 changes: 38 additions & 29 deletions
67
clients/design-system/stories/web-assets/organisms/AppBar.stories.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 |
---|---|---|
@@ -1,54 +1,63 @@ | ||
import React from 'react'; | ||
import { Meta } from '@storybook/react'; | ||
import { | ||
AppBar, | ||
AppBarProps, | ||
Toolbar, | ||
FontAwesomeIcon, | ||
faBars, | ||
faGithub, | ||
IconButton, | ||
} from '../../../src/main'; | ||
import { AppBar, AppBarProps, Button, Link } from '../../../src/main'; | ||
|
||
export default { | ||
title: 'Web Assets/Organisms/AppBar', | ||
component: AppBar, | ||
} as Meta<typeof AppBar>; | ||
|
||
type NavMenuItem = { | ||
link: string; | ||
title: string; | ||
}; | ||
const menuItems: NavMenuItem[] = [ | ||
{ link: '/', title: 'Home' }, | ||
{ link: '/dice-analyzer', title: 'Dice analyzer' }, | ||
{ link: '/archetypes', title: 'Archetypes' }, | ||
{ link: '/character-sheets', title: 'Character Sheets' }, | ||
]; | ||
|
||
export const AppBarLight = (args: AppBarProps) => ( | ||
<AppBar {...args}> | ||
<Toolbar> | ||
<IconButton color="inherit" aria-label="open drawer" edge="start"> | ||
<FontAwesomeIcon icon={faBars} /> | ||
</IconButton> | ||
LOGO | ||
<IconButton href="https://github.com/hxtree/galaxyops" color="inherit"> | ||
<FontAwesomeIcon icon={faGithub} /> | ||
</IconButton> | ||
</Toolbar> | ||
<ul className="navbar-nav me-auto"> | ||
{menuItems && | ||
menuItems.map((menuItem: NavMenuItem) => ( | ||
<li className="nav-item"> | ||
<Link href={menuItem.link}>{menuItem.title}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</AppBar> | ||
); | ||
|
||
AppBarLight.args = { | ||
position: 'fixed', | ||
theme: 'light', | ||
}; | ||
siteTitle: 'NekosGate', | ||
topRightSlot: ( | ||
<> | ||
<Button href="/login" color="secondary" size="small"> | ||
Login | ||
</Button> | ||
</> | ||
), | ||
} as AppBarProps; | ||
|
||
export const AppBarDark = (args: AppBarProps) => ( | ||
<AppBar {...args}> | ||
<Toolbar> | ||
<IconButton color="inherit" aria-label="open drawer" edge="start"> | ||
<FontAwesomeIcon icon={faBars} /> | ||
</IconButton> | ||
LOGO | ||
<IconButton href="https://github.com/hxtree/galaxyops" color="inherit"> | ||
<FontAwesomeIcon icon={faGithub} /> | ||
</IconButton> | ||
</Toolbar> | ||
<ul className="navbar-nav me-auto"> | ||
{menuItems && | ||
menuItems.map((menuItem: NavMenuItem) => ( | ||
<li className="nav-item"> | ||
<Link href={menuItem.link}>{menuItem.title}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</AppBar> | ||
); | ||
|
||
AppBarDark.args = { | ||
position: 'fixed', | ||
...AppBarLight.args, | ||
theme: 'dark', | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.23 KB
clients/player-client/public/game-assets/sprites/malace-tsia/idle-1x1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.56 KB
clients/player-client/public/game-assets/sprites/meeku-oni/idle-1x1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
clients/player-client/public/game-assets/sprites/meeku-oni/walk-10x4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { IsometricCanvas } from '@galaxyops/design-system/dist/main'; | ||
import { | ||
IsometricCanvas, | ||
IsometricCanvasProps, | ||
} from '@galaxyops/design-system/dist/main'; | ||
import gameState from './game-state.json'; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<> | ||
<main className="container mt-5"> | ||
<IsometricCanvas args={gameState} /> | ||
</main> | ||
{/* @ts-expect-error needed for types temp */} | ||
<IsometricCanvas {...(gameState as IsometricCanvasProps)} /> | ||
</> | ||
); | ||
} |
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,21 @@ | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react'; | ||
import { viteStaticCopy } from 'vite-plugin-static-copy'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
viteStaticCopy({ | ||
targets: [ | ||
{ | ||
src: 'node_modules/@galaxyops/design-system/dist/assets/*', | ||
dest: 'assets' | ||
} | ||
] | ||
}) | ||
], | ||
server: { | ||
port: 3000, | ||
host: '127.0.0.1', | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.