mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
start redoing ci/cd and devops
This commit is contained in:
parent
460770407a
commit
ab9fe30b42
37 changed files with 418 additions and 825 deletions
|
@ -1,5 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import { Avatar } from './Avatar';
|
||||
import { Avatar, AvatarProps } from './Avatar';
|
||||
|
||||
export default {
|
||||
title: 'Atoms/Avatar',
|
||||
|
@ -12,18 +12,22 @@ export default {
|
|||
},
|
||||
};
|
||||
|
||||
export const WithInitials = ({ initials, ...rest }) => (
|
||||
type StoryArgs = {
|
||||
initials?: string;
|
||||
} & AvatarProps;
|
||||
|
||||
export const WithInitials = ({ initials, ...rest }: StoryArgs) => (
|
||||
<Avatar src="https://i.imgur.com/epMSRQH.png" size={48} {...rest}>
|
||||
{initials}
|
||||
</Avatar>
|
||||
);
|
||||
|
||||
export const WithText = ({ initials, ...rest }) => (
|
||||
export const WithText = ({ initials, ...rest }: StoryArgs) => (
|
||||
<Avatar size={48} {...rest}>
|
||||
{initials}
|
||||
</Avatar>
|
||||
);
|
||||
export const Empty = (args) => <Avatar size={48} {...args}></Avatar>;
|
||||
export const DeliberatelyEmpty = (args) => (
|
||||
export const Empty = (args: StoryArgs) => <Avatar size={48} {...args}></Avatar>;
|
||||
export const DeliberatelyEmpty = (args: StoryArgs) => (
|
||||
<Avatar size={48} deliberatelyEmpty={true} {...args}></Avatar>
|
||||
);
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import { organismStories } from 'roleypoly/design-system/organisms/organisms.story';
|
||||
import { HelpPageBase } from './HelpPageBase';
|
||||
import { Content } from 'roleypoly/design-system/organisms/app-shell/AppShell.styled';
|
||||
|
||||
const baseStory = organismStories('Help Pages', module);
|
||||
|
||||
export const HelpStoryWrapper = (props: { children: React.ReactNode }) => (
|
||||
<Content>
|
||||
<HelpPageBase>{props.children}</HelpPageBase>
|
||||
</Content>
|
||||
);
|
||||
|
||||
baseStory.add('Base', () => (
|
||||
<HelpStoryWrapper>
|
||||
<h1>What is the world but vibrations?</h1>
|
||||
<p>Vibrations that synchronize and tie it together, running free forever.</p>
|
||||
</HelpStoryWrapper>
|
||||
));
|
|
@ -1,10 +0,0 @@
|
|||
import { WhyNoRoles } from './WhyNoRoles';
|
||||
import * as React from 'react';
|
||||
import { organismStories } from 'roleypoly/design-system/organisms/organisms.story';
|
||||
import { HelpStoryWrapper } from 'roleypoly/design-system/organisms/help-page-base/HelpPageBase.story';
|
||||
|
||||
organismStories('Help Pages/Pages', module).add('Why No Roles', () => (
|
||||
<HelpStoryWrapper>
|
||||
<WhyNoRoles />
|
||||
</HelpStoryWrapper>
|
||||
));
|
|
@ -1,7 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import { organismStories } from 'roleypoly/design-system/organisms/organisms.story';
|
||||
import { Landing } from './Landing';
|
||||
|
||||
const story = organismStories('Landing', module);
|
||||
|
||||
story.add('Landing', () => <Landing />);
|
|
@ -1,45 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import { RolePicker, RolePickerProps } from './RolePicker';
|
||||
import { organismStories } from 'roleypoly/design-system/organisms/organisms.story';
|
||||
import { guildData, member, guildRoles, guild } from 'roleypoly/common/types/storyData';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
|
||||
const storyPublic = organismStories('Role Picker/Public', module);
|
||||
const storyEditable = organismStories('Role Picker/Editable', module);
|
||||
|
||||
const props: RolePickerProps = {
|
||||
guildData: guildData,
|
||||
member: member,
|
||||
guild: guild,
|
||||
roles: guildRoles,
|
||||
onSubmit: action('onSubmit'),
|
||||
editable: false,
|
||||
};
|
||||
|
||||
const storyBuilder = (
|
||||
story: typeof storyPublic,
|
||||
mixinProps: Partial<RolePickerProps>
|
||||
) => {
|
||||
story.add('Full', () => <RolePicker {...{ ...props, ...mixinProps }} />);
|
||||
story.add('No Message', () => (
|
||||
<RolePicker
|
||||
{...{
|
||||
...props,
|
||||
guildData: { ...props.guildData, message: '' },
|
||||
...mixinProps,
|
||||
}}
|
||||
/>
|
||||
));
|
||||
story.add('No Categories', () => (
|
||||
<RolePicker
|
||||
{...{
|
||||
...props,
|
||||
guildData: { ...props.guildData, message: '', categoriesList: [] },
|
||||
...mixinProps,
|
||||
}}
|
||||
/>
|
||||
));
|
||||
};
|
||||
|
||||
storyBuilder(storyPublic, {});
|
||||
storyBuilder(storyEditable, { editable: true });
|
10
src/functions/hello-world/helloworld.go
Normal file
10
src/functions/hello-world/helloworld.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package helloworld
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func HelloWorld(rw http.ResponseWriter, req *http.Request) {
|
||||
fmt.Fprintln(rw, "Hello "+req.RemoteAddr+"!")
|
||||
}
|
3
src/pages/README.md
Normal file
3
src/pages/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Pages
|
||||
|
||||
This is the Next.js root for the main UI.
|
Loading…
Add table
Add a link
Reference in a new issue