mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
prettier organize imports
This commit is contained in:
parent
899853e24c
commit
2e1e63a789
101 changed files with 173 additions and 180 deletions
|
@ -2,9 +2,9 @@ FROM golang:1.15-alpine AS builder
|
||||||
|
|
||||||
# Create the user and group files that will be used in the running container to
|
# Create the user and group files that will be used in the running container to
|
||||||
# run the process as an unprivileged user.
|
# run the process as an unprivileged user.
|
||||||
RUN mkdir /user && \
|
RUN mkdir /user \
|
||||||
echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \
|
&& echo 'nobody:x:65534:65534:nobody:/:' >/user/passwd \
|
||||||
echo 'nobody:x:65534:' > /user/group
|
&& echo 'nobody:x:65534:' >/user/group
|
||||||
|
|
||||||
# Install the Certificate-Authority certificates for the app to be able to make
|
# Install the Certificate-Authority certificates for the app to be able to make
|
||||||
# calls to HTTPS endpoints.
|
# calls to HTTPS endpoints.
|
||||||
|
@ -24,8 +24,8 @@ COPY ./ ./
|
||||||
|
|
||||||
# Build the executable to `/app`. Mark the build as statically linked.
|
# Build the executable to `/app`. Mark the build as statically linked.
|
||||||
RUN CGO_ENABLED=0 go build \
|
RUN CGO_ENABLED=0 go build \
|
||||||
-installsuffix "static" \
|
-installsuffix "static" \
|
||||||
-o /app ./src/discord-bot
|
-o /app ./src/discord-bot
|
||||||
|
|
||||||
# Final stage: the running container.
|
# Final stage: the running container.
|
||||||
FROM scratch AS final
|
FROM scratch AS final
|
||||||
|
@ -43,4 +43,4 @@ COPY --from=builder /app /app
|
||||||
USER nobody:nobody
|
USER nobody:nobody
|
||||||
|
|
||||||
# Run the compiled binary.
|
# Run the compiled binary.
|
||||||
ENTRYPOINT ["/app"]
|
ENTRYPOINT ["/app"]
|
||||||
|
|
|
@ -5,4 +5,4 @@ ARG NODE_VERSION="lts/*"
|
||||||
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"
|
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"
|
||||||
|
|
||||||
# Install Wrangler
|
# Install Wrangler
|
||||||
RUN su vscode -c "npm install -g wrangler"
|
RUN su vscode -c "npm install -g wrangler"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:14-alpine AS base
|
FROM node:14-alpine AS base
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -22,4 +22,4 @@ FROM base AS output
|
||||||
COPY --from=builder /src/.next /src/node_modules ./
|
COPY --from=builder /src/.next /src/node_modules ./
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD yarn ui:prod
|
CMD yarn ui:prod
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import Enzyme from 'enzyme';
|
|
||||||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
||||||
|
import Enzyme from 'enzyme';
|
||||||
import enableHooks from 'jest-react-hooks-shallow';
|
import enableHooks from 'jest-react-hooks-shallow';
|
||||||
|
|
||||||
Enzyme.configure({ adapter: new Adapter() });
|
Enzyme.configure({ adapter: new Adapter() });
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "run-p -c lint:* --",
|
"lint": "run-p -c lint:* --",
|
||||||
"lint:eslint": "eslint",
|
"lint:eslint": "eslint",
|
||||||
"lint:prettier": "cross-env prettier -c '**/*.{ts,tsx,css,yml,yaml,md,json,js,jsx,sh,gitignore,mdx}'",
|
"lint:prettier": "cross-env prettier -c '**/*.{ts,tsx,css,yml,yaml,md,json,js,jsx,sh,gitignore,mdx,Dockerfile}'",
|
||||||
"lint:stylelint": "cross-env stylelint '**/*.{ts,tsx}'",
|
"lint:stylelint": "cross-env stylelint '**/*.{ts,tsx}'",
|
||||||
"lint:types": "tsc --noEmit",
|
"lint:types": "tsc --noEmit",
|
||||||
"now-build": "run-s storybook:build",
|
"now-build": "run-s storybook:build",
|
||||||
|
@ -86,6 +86,7 @@
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
|
"prettier-plugin-organize-imports": "^1.1.1",
|
||||||
"prettier-plugin-packagejson": "^2.2.8",
|
"prettier-plugin-packagejson": "^2.2.8",
|
||||||
"prettier-plugin-sh": "^0.6.0",
|
"prettier-plugin-sh": "^0.6.0",
|
||||||
"stylelint": "^13.8.0",
|
"stylelint": "^13.8.0",
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import KSUID from 'ksuid';
|
import KSUID from 'ksuid';
|
||||||
import {
|
import {
|
||||||
|
AuthTokenResponse,
|
||||||
DiscordUser,
|
DiscordUser,
|
||||||
GuildSlug,
|
GuildSlug,
|
||||||
SessionData,
|
SessionData,
|
||||||
AuthTokenResponse,
|
|
||||||
} from '../../common/types';
|
} from '../../common/types';
|
||||||
import { formData, resolveFailures, parsePermissions } from '../utils/api-tools';
|
import { formData, parsePermissions, resolveFailures } from '../utils/api-tools';
|
||||||
import { Bounce } from '../utils/bounce';
|
import { Bounce } from '../utils/bounce';
|
||||||
import { apiPublicURI, botClientID, botClientSecret, uiPublicURI } from '../utils/config';
|
import { apiPublicURI, botClientID, botClientSecret, uiPublicURI } from '../utils/config';
|
||||||
import { Sessions } from '../utils/kv';
|
import { Sessions } from '../utils/kv';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export * from './Role';
|
|
||||||
export * from './Category';
|
export * from './Category';
|
||||||
export * from './Guild';
|
export * from './Guild';
|
||||||
export * from './User';
|
export * from './Role';
|
||||||
export * from './Session';
|
export * from './Session';
|
||||||
|
export * from './User';
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
import {
|
import {
|
||||||
Category,
|
Category,
|
||||||
|
CategoryType,
|
||||||
DiscordUser,
|
DiscordUser,
|
||||||
Guild,
|
Guild,
|
||||||
GuildData,
|
GuildData,
|
||||||
GuildEnumeration,
|
GuildEnumeration,
|
||||||
GuildRoles,
|
GuildRoles,
|
||||||
|
GuildSlug,
|
||||||
Member,
|
Member,
|
||||||
Role,
|
Role,
|
||||||
RoleSafety,
|
RoleSafety,
|
||||||
RoleypolyUser,
|
RoleypolyUser,
|
||||||
CategoryType,
|
|
||||||
GuildSlug,
|
|
||||||
} from '.';
|
} from '.';
|
||||||
|
|
||||||
export const roleCategory: Role[] = [
|
export const roleCategory: Role[] = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { hasPermission, permissions, hasPermissionOrAdmin } from './hasPermission';
|
|
||||||
import { Role } from 'roleypoly/common/types';
|
import { Role } from 'roleypoly/common/types';
|
||||||
import { guildRoles } from 'roleypoly/common/types/storyData';
|
import { guildRoles } from 'roleypoly/common/types/storyData';
|
||||||
|
import { hasPermission, hasPermissionOrAdmin, permissions } from './hasPermission';
|
||||||
|
|
||||||
const roles: Role[] = [
|
const roles: Role[] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
export * from './withContext';
|
export * from './withContext';
|
||||||
import * as testHelpers from './contextTestHelpers';
|
|
||||||
export { testHelpers };
|
export { testHelpers };
|
||||||
|
import * as testHelpers from './contextTestHelpers';
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { AvatarProps } from './Avatar';
|
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
import { AvatarProps } from './Avatar';
|
||||||
|
|
||||||
type ContainerProps = Pick<AvatarProps, 'size'> & Pick<AvatarProps, 'deliberatelyEmpty'>;
|
type ContainerProps = Pick<AvatarProps, 'size'> & Pick<AvatarProps, 'deliberatelyEmpty'>;
|
||||||
export const Container = styled.div<ContainerProps>`
|
export const Container = styled.div<ContainerProps>`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export * from './Avatar';
|
export * from './Avatar';
|
||||||
|
export { utils };
|
||||||
|
|
||||||
import * as utils from './avatarUtils';
|
import * as utils from './avatarUtils';
|
||||||
export { utils };
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Logomark as BrandingLogomark, Logotype as BrandingLogotype } from './Branding';
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
import { Logomark as BrandingLogomark, Logotype as BrandingLogotype } from './Branding';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Branding',
|
title: 'Atoms/Branding',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { mediaQueryDefs } from './Breakpoints';
|
import { mediaQueryDefs } from './Breakpoints';
|
||||||
import { ScreenSize, BreakpointContext } from './Context';
|
import { BreakpointContext, ScreenSize } from './Context';
|
||||||
|
|
||||||
const resetScreen: ScreenSize = {
|
const resetScreen: ScreenSize = {
|
||||||
onSmallScreen: false,
|
onSmallScreen: false,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { BreakpointDebugTool } from './DebugTool';
|
|
||||||
import { BreakpointsProvider } from './BreakpointProvider';
|
import { BreakpointsProvider } from './BreakpointProvider';
|
||||||
|
import { BreakpointDebugTool } from './DebugTool';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Breakpoints',
|
title: 'Atoms/Breakpoints',
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
|
export * from './BreakpointProvider';
|
||||||
export * from './Breakpoints';
|
export * from './Breakpoints';
|
||||||
export * from './Context';
|
export * from './Context';
|
||||||
export * from './BreakpointProvider';
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
import * as React from 'react';
|
||||||
import { Button } from './Button';
|
import { Button } from './Button';
|
||||||
|
|
||||||
it('fires an onClick callback when clicked', () => {
|
it('fires an onClick callback when clicked', () => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import { text400, text300 } from 'roleypoly/design-system/atoms/typography';
|
|
||||||
import { fontCSS } from 'roleypoly/design-system/atoms/fonts';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import { fontCSS } from 'roleypoly/design-system/atoms/fonts';
|
||||||
|
import { text300, text400 } from 'roleypoly/design-system/atoms/typography';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const IconContainer = styled.div`
|
export const IconContainer = styled.div`
|
||||||
margin-right: 0.6rem;
|
margin-right: 0.6rem;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {
|
import {
|
||||||
Button as StyledButton,
|
Button as StyledButton,
|
||||||
IconContainer,
|
|
||||||
ButtonComposerOptions,
|
ButtonComposerOptions,
|
||||||
|
IconContainer,
|
||||||
} from './Button.styled';
|
} from './Button.styled';
|
||||||
|
|
||||||
export type ButtonProps = Partial<ButtonComposerOptions> & {
|
export type ButtonProps = Partial<ButtonComposerOptions> & {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { palette } from './colors';
|
|
||||||
import styled from 'styled-components';
|
|
||||||
import chroma from 'chroma-js';
|
import chroma from 'chroma-js';
|
||||||
|
import * as React from 'react';
|
||||||
import { AmbientSmall } from 'roleypoly/design-system/atoms/typography';
|
import { AmbientSmall } from 'roleypoly/design-system/atoms/typography';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
import { palette } from './colors';
|
||||||
|
|
||||||
type RatioList = {
|
type RatioList = {
|
||||||
color1: string[];
|
color1: string[];
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { css, createGlobalStyle } from 'styled-components';
|
|
||||||
|
|
||||||
import chroma from 'chroma-js';
|
import chroma from 'chroma-js';
|
||||||
|
import { createGlobalStyle, css } from 'styled-components';
|
||||||
|
|
||||||
export const palette = {
|
export const palette = {
|
||||||
taupe100: '#332D2D',
|
taupe100: '#332D2D',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const dotOverlayBase = styled.div`
|
const dotOverlayBase = styled.div`
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { FaderOpacity, FaderSlide } from './Fader';
|
|
||||||
import { Button } from 'roleypoly/design-system/atoms/button';
|
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
import * as React from 'react';
|
||||||
|
import { Button } from 'roleypoly/design-system/atoms/button';
|
||||||
|
import { FaderOpacity, FaderSlide } from './Fader';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Fader',
|
title: 'Atoms/Fader',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { UseFontStyled } from './fonts';
|
|
||||||
import styled from 'styled-components';
|
|
||||||
import { MediumTitle, Text as TextBlock } from 'roleypoly/design-system/atoms/typography';
|
import { MediumTitle, Text as TextBlock } from 'roleypoly/design-system/atoms/typography';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
import { UseFontStyled } from './fonts';
|
||||||
|
|
||||||
const resetFont = (storyFn: () => React.ReactNode) => <FontReset>{storyFn()}</FontReset>;
|
const resetFont = (storyFn: () => React.ReactNode) => <FontReset>{storyFn()}</FontReset>;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
|
import * as React from 'react';
|
||||||
import styled, { css } from 'styled-components';
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const InjectTypekitFont = () => {
|
export const InjectTypekitFont = () => {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import { onTablet } from 'roleypoly/design-system/atoms/breakpoints';
|
import { onTablet } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const HalfsiesContainer = styled.div`
|
export const HalfsiesContainer = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import * as _ from 'styled-components'; // eslint-disable-line no-duplicate-imports
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const Item = styled.div<{ selected: boolean }>`
|
export const Item = styled.div<{ selected: boolean }>`
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
transition: background-color ease-in-out ${transitions.actionable}s;
|
transition: background-color ease-in-out ${transitions.actionable}s;
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.selected &&
|
props.selected &&
|
||||||
css`
|
css`
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { IoMdClose } from 'react-icons/io';
|
||||||
|
import { globalOnKeyUp } from 'roleypoly/design-system/atoms/key-events';
|
||||||
import {
|
import {
|
||||||
PopoverBase,
|
|
||||||
DefocusHandler,
|
DefocusHandler,
|
||||||
|
PopoverBase,
|
||||||
|
PopoverContent,
|
||||||
PopoverHead,
|
PopoverHead,
|
||||||
PopoverHeadCloser,
|
PopoverHeadCloser,
|
||||||
PopoverContent,
|
|
||||||
} from './Popover.styled';
|
} from './Popover.styled';
|
||||||
import { globalOnKeyUp } from 'roleypoly/design-system/atoms/key-events';
|
|
||||||
import { IoMdClose } from 'react-icons/io';
|
|
||||||
|
|
||||||
type PopoverProps = {
|
type PopoverProps = {
|
||||||
children: () => React.ReactNode;
|
children: () => React.ReactNode;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { roleCategory } from 'roleypoly/common/types/storyData';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { roleCategory } from 'roleypoly/common/types/storyData';
|
||||||
import { Role } from './Role';
|
import { Role } from './Role';
|
||||||
|
|
||||||
it('fires an OnClick handler when clicked', () => {
|
it('fires an OnClick handler when clicked', () => {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Role as RoleComponent } from './Role';
|
|
||||||
import { roleCategory } from 'roleypoly/common/types/storyData';
|
import { roleCategory } from 'roleypoly/common/types/storyData';
|
||||||
import { withColors } from 'roleypoly/design-system/atoms/colors/withColors';
|
import { withColors } from 'roleypoly/design-system/atoms/colors/withColors';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
import { Role as RoleComponent } from './Role';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Role',
|
title: 'Atoms/Role',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export type StyledProps = {
|
export type StyledProps = {
|
||||||
selected: boolean;
|
selected: boolean;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { Role as RPCRole, RoleSafety } from 'roleypoly/common/types';
|
|
||||||
import * as styled from './Role.styled';
|
|
||||||
import { FaCheck, FaTimes } from 'react-icons/fa';
|
|
||||||
import { numberToChroma } from 'roleypoly/design-system/atoms/colors';
|
|
||||||
import chroma from 'chroma-js';
|
import chroma from 'chroma-js';
|
||||||
|
import * as React from 'react';
|
||||||
|
import { FaCheck, FaTimes } from 'react-icons/fa';
|
||||||
|
import { Role as RPCRole, RoleSafety } from 'roleypoly/common/types';
|
||||||
|
import { numberToChroma } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import * as styled from './Role.styled';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
role: RPCRole;
|
role: RPCRole;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Space as SpaceComponent } from './Space';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { Space as SpaceComponent } from './Space';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms',
|
title: 'Atoms',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { CSSProperties } from 'styled-components';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { CSSProperties } from 'styled-components';
|
||||||
|
|
||||||
type SparkleProps = {
|
type SparkleProps = {
|
||||||
height: string;
|
height: string;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { SparkleOverlay } from './Sparkle';
|
|
||||||
import { Button } from 'roleypoly/design-system/atoms/button';
|
import { Button } from 'roleypoly/design-system/atoms/button';
|
||||||
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
||||||
|
import { SparkleOverlay } from './Sparkle';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Sparkle',
|
title: 'Atoms/Sparkle',
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled from 'styled-components';
|
||||||
import { SparklePatternAlpha, SparklePatternBeta } from './Shapes';
|
import { SparklePatternAlpha, SparklePatternBeta } from './Shapes';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { TabView, Tab, TabViewProps } from './TabView';
|
import * as React from 'react';
|
||||||
import { TabTitle, TabContent } from './TabView.styled';
|
import { Tab, TabView, TabViewProps } from './TabView';
|
||||||
|
import { TabContent, TabTitle } from './TabView.styled';
|
||||||
|
|
||||||
const makeView = (props: Partial<TabViewProps> = {}) =>
|
const makeView = (props: Partial<TabViewProps> = {}) =>
|
||||||
shallow(
|
shallow(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { TabView, Tab } from './TabView';
|
import { Tab, TabView } from './TabView';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Tab View',
|
title: 'Atoms/Tab View',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import styled, { css } from 'styled-components';
|
import { onTablet } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
import { onTablet } from 'roleypoly/design-system/atoms/breakpoints';
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const TabViewStyled = styled.div``;
|
export const TabViewStyled = styled.div``;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { TabTitleRow, TabContent, TabViewStyled, TabTitle } from './TabView.styled';
|
import { TabContent, TabTitle, TabTitleRow, TabViewStyled } from './TabView.styled';
|
||||||
|
|
||||||
export type TabViewProps = {
|
export type TabViewProps = {
|
||||||
children: React.ReactNode[];
|
children: React.ReactNode[];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { TextInput, TextInputWithIcon } from './TextInput';
|
|
||||||
import { SmallTitle } from 'roleypoly/design-system/atoms/typography';
|
|
||||||
import { FiKey } from 'react-icons/fi';
|
import { FiKey } from 'react-icons/fi';
|
||||||
|
import { SmallTitle } from 'roleypoly/design-system/atoms/typography';
|
||||||
|
import { TextInput, TextInputWithIcon } from './TextInput';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Text Input',
|
title: 'Atoms/Text Input',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const StyledTextInput = styled.input`
|
const StyledTextInput = styled.input`
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { Link, Text, text600, text700, text800, text900 } from './typography';
|
import { Link, Text, text600, text700, text800, text900 } from './typography';
|
||||||
|
|
||||||
export const mdxComponents = {
|
export const mdxComponents = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as typography from './typography';
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
import * as typography from './typography';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Atoms/Typography',
|
title: 'Atoms/Typography',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
const reset = css`
|
const reset = css`
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import styled, { keyframes } from 'styled-components';
|
|
||||||
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled, { keyframes } from 'styled-components';
|
||||||
|
|
||||||
export const Base = styled.div`
|
export const Base = styled.div`
|
||||||
background-color: ${palette.discord100};
|
background-color: ${palette.discord100};
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {
|
|
||||||
Base,
|
|
||||||
Timestamp,
|
|
||||||
TextParts,
|
|
||||||
Username,
|
|
||||||
InputBox,
|
|
||||||
Line,
|
|
||||||
InputTextAlignment,
|
|
||||||
} from './DemoDiscord.styled';
|
|
||||||
import { demoData } from 'roleypoly/common/types/demoData';
|
import { demoData } from 'roleypoly/common/types/demoData';
|
||||||
import { Typist } from 'roleypoly/design-system/atoms/typist';
|
import { Typist } from 'roleypoly/design-system/atoms/typist';
|
||||||
|
import {
|
||||||
|
Base,
|
||||||
|
InputBox,
|
||||||
|
InputTextAlignment,
|
||||||
|
Line,
|
||||||
|
TextParts,
|
||||||
|
Timestamp,
|
||||||
|
Username,
|
||||||
|
} from './DemoDiscord.styled';
|
||||||
|
|
||||||
export const DemoDiscord = () => {
|
export const DemoDiscord = () => {
|
||||||
const time = new Date();
|
const time = new Date();
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Role } from 'roleypoly/design-system/atoms/role';
|
|
||||||
import { Role as RPCRole } from 'roleypoly/common/types';
|
import { Role as RPCRole } from 'roleypoly/common/types';
|
||||||
import styled from 'styled-components';
|
|
||||||
import { demoData } from 'roleypoly/common/types/demoData';
|
import { demoData } from 'roleypoly/common/types/demoData';
|
||||||
|
import { Role } from 'roleypoly/design-system/atoms/role';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import * as _ from 'styled-components'; // eslint-disable-line no-duplicate-imports
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const RoleContainer = styled.div`
|
export const RoleContainer = styled.div`
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { GoSearch } from 'react-icons/go';
|
||||||
|
import { Category, CategoryType, Role as RoleType } from 'roleypoly/common/types';
|
||||||
|
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
||||||
import { HorizontalSwitch } from 'roleypoly/design-system/atoms/horizontal-switch';
|
import { HorizontalSwitch } from 'roleypoly/design-system/atoms/horizontal-switch';
|
||||||
|
import { Popover } from 'roleypoly/design-system/atoms/popover';
|
||||||
|
import { Role } from 'roleypoly/design-system/atoms/role';
|
||||||
import { Space } from 'roleypoly/design-system/atoms/space';
|
import { Space } from 'roleypoly/design-system/atoms/space';
|
||||||
import { TextInput, TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
import { TextInput, TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
||||||
import { Text } from 'roleypoly/design-system/atoms/typography';
|
import { Text } from 'roleypoly/design-system/atoms/typography';
|
||||||
import { Popover } from 'roleypoly/design-system/atoms/popover';
|
|
||||||
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
|
||||||
import { RoleSearch } from 'roleypoly/design-system/molecules/role-search';
|
import { RoleSearch } from 'roleypoly/design-system/molecules/role-search';
|
||||||
import { Category, CategoryType, Role as RoleType } from 'roleypoly/common/types';
|
|
||||||
import { Role } from 'roleypoly/design-system/atoms/role';
|
|
||||||
import { GoSearch } from 'react-icons/go';
|
|
||||||
import { RoleContainer } from './EditorCategory.styled';
|
import { RoleContainer } from './EditorCategory.styled';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {
|
import {
|
||||||
ErrorWrapper,
|
|
||||||
ErrorDivider,
|
ErrorDivider,
|
||||||
ErrorSideCode,
|
ErrorSideCode,
|
||||||
ErrorText,
|
ErrorText,
|
||||||
ErrorTextLower,
|
ErrorTextLower,
|
||||||
|
ErrorWrapper,
|
||||||
} from './ErrorBanner.styled';
|
} from './ErrorBanner.styled';
|
||||||
|
|
||||||
export type ErrorMessage = {
|
export type ErrorMessage = {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const FooterWrapper = styled.div`
|
export const FooterWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { FooterWrapper, HoverColor } from './Footer.styled';
|
|
||||||
import { AmbientLarge } from 'roleypoly/design-system/atoms/typography';
|
|
||||||
import { FaHeart } from 'react-icons/fa';
|
import { FaHeart } from 'react-icons/fa';
|
||||||
|
import { AmbientLarge } from 'roleypoly/design-system/atoms/typography';
|
||||||
import { Flags } from './Flags';
|
import { Flags } from './Flags';
|
||||||
|
import { FooterWrapper, HoverColor } from './Footer.styled';
|
||||||
|
|
||||||
const year = new Date().getFullYear();
|
const year = new Date().getFullYear();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { GuildNav } from './GuildNav';
|
|
||||||
import { mastheadSlugs } from 'roleypoly/common/types/storyData';
|
import { mastheadSlugs } from 'roleypoly/common/types/storyData';
|
||||||
import { PopoverBase } from 'roleypoly/design-system/atoms/popover/Popover.styled';
|
import { PopoverBase } from 'roleypoly/design-system/atoms/popover/Popover.styled';
|
||||||
|
import { GuildNav } from './GuildNav';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Molecules/Guild Nav',
|
title: 'Molecules/Guild Nav',
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
|
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const GuildNavItem = styled.a`
|
export const GuildNavItem = styled.a`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export type HelpPageProps = {
|
export type HelpPageProps = {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { HelpPageBase } from './HelpPageBase';
|
|
||||||
import { Content } from 'roleypoly/design-system/organisms/app-shell/AppShell.styled';
|
import { Content } from 'roleypoly/design-system/organisms/app-shell/AppShell.styled';
|
||||||
|
import { HelpPageBase } from './HelpPageBase';
|
||||||
|
|
||||||
export const HelpStoryWrapper = (storyFn: any): React.ReactNode => (
|
export const HelpStoryWrapper = (storyFn: any): React.ReactNode => (
|
||||||
<Content>
|
<Content>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { NavSlug } from './NavSlug';
|
|
||||||
import { guild } from 'roleypoly/common/types/storyData';
|
import { guild } from 'roleypoly/common/types/storyData';
|
||||||
|
import { NavSlug } from './NavSlug';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Molecules/Server Slug',
|
title: 'Molecules/Server Slug',
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {
|
import {
|
||||||
roleWikiData,
|
|
||||||
roleCategory,
|
|
||||||
mockCategory,
|
mockCategory,
|
||||||
|
roleCategory,
|
||||||
|
roleWikiData,
|
||||||
} from 'roleypoly/common/types/storyData';
|
} from 'roleypoly/common/types/storyData';
|
||||||
import { PickerCategory } from './PickerCategory';
|
import { PickerCategory } from './PickerCategory';
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import ReactTooltip from 'react-tooltip';
|
import ReactTooltip from 'react-tooltip';
|
||||||
import { Role } from 'roleypoly/design-system/atoms/role';
|
|
||||||
import { AmbientLarge, LargeText } from 'roleypoly/design-system/atoms/typography';
|
|
||||||
import {
|
import {
|
||||||
Category as RPCCategory,
|
Category as RPCCategory,
|
||||||
Role as RPCRole,
|
Role as RPCRole,
|
||||||
RoleSafety,
|
RoleSafety,
|
||||||
} from 'roleypoly/common/types';
|
} from 'roleypoly/common/types';
|
||||||
|
import { Role } from 'roleypoly/design-system/atoms/role';
|
||||||
|
import { AmbientLarge, LargeText } from 'roleypoly/design-system/atoms/typography';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { Head, HeadSub, HeadTitle } from './PickerCategory.styled';
|
import { Head, HeadSub, HeadTitle } from './PickerCategory.styled';
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
jest.unmock('roleypoly/design-system/atoms/text-input');
|
jest.unmock('roleypoly/design-system/atoms/text-input');
|
||||||
jest.unmock('./PreauthSecretCode');
|
jest.unmock('./PreauthSecretCode');
|
||||||
|
|
||||||
import { Button } from 'roleypoly/design-system/atoms/button';
|
|
||||||
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { PreauthSecretCode } from './PreauthSecretCode';
|
import { Button } from 'roleypoly/design-system/atoms/button';
|
||||||
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
||||||
|
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
||||||
|
import { PreauthSecretCode } from './PreauthSecretCode';
|
||||||
|
|
||||||
const value = 'unfathomable fishy sticks';
|
const value = 'unfathomable fishy sticks';
|
||||||
const onSubmit = jest.fn();
|
const onSubmit = jest.fn();
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
|
||||||
import { FiKey } from 'react-icons/fi';
|
import { FiKey } from 'react-icons/fi';
|
||||||
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
|
||||||
import { Button } from 'roleypoly/design-system/atoms/button';
|
import { Button } from 'roleypoly/design-system/atoms/button';
|
||||||
|
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
||||||
import { Space } from 'roleypoly/design-system/atoms/space';
|
import { Space } from 'roleypoly/design-system/atoms/space';
|
||||||
|
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
||||||
|
|
||||||
type PreauthProps = {
|
type PreauthProps = {
|
||||||
onSubmit: (code: string) => void;
|
onSubmit: (code: string) => void;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Button } from 'roleypoly/design-system/atoms/button';
|
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { Button } from 'roleypoly/design-system/atoms/button';
|
||||||
import { ResetSubmit } from './ResetSubmit';
|
import { ResetSubmit } from './ResetSubmit';
|
||||||
|
|
||||||
const onReset = jest.fn();
|
const onReset = jest.fn();
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
|
|
||||||
import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Buttons = styled.div`
|
export const Buttons = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
|
||||||
import { Button } from 'roleypoly/design-system/atoms/button';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { MdRestore } from 'react-icons/md';
|
import { MdRestore } from 'react-icons/md';
|
||||||
|
import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
|
import { Button } from 'roleypoly/design-system/atoms/button';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { RoleSearch } from './RoleSearch';
|
|
||||||
import { roleCategory } from 'roleypoly/common/types/storyData';
|
import { roleCategory } from 'roleypoly/common/types/storyData';
|
||||||
|
import { RoleSearch } from './RoleSearch';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Molecules/Role Search',
|
title: 'Molecules/Role Search',
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { GoSearch } from 'react-icons/go';
|
import { GoSearch } from 'react-icons/go';
|
||||||
|
import { Role as RoleType } from 'roleypoly/common/types';
|
||||||
import { Role } from 'roleypoly/design-system/atoms/role';
|
import { Role } from 'roleypoly/design-system/atoms/role';
|
||||||
import { Space } from 'roleypoly/design-system/atoms/space';
|
import { Space } from 'roleypoly/design-system/atoms/space';
|
||||||
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
|
||||||
import { Role as RoleType } from 'roleypoly/common/types';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
roles: RoleType[];
|
roles: RoleType[];
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
jest.unmock('./ServerMasthead');
|
jest.unmock('./ServerMasthead');
|
||||||
|
|
||||||
import * as React from 'react';
|
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { ServerMasthead } from './ServerMasthead';
|
import * as React from 'react';
|
||||||
import { guild } from 'roleypoly/common/types/storyData';
|
import { guild } from 'roleypoly/common/types/storyData';
|
||||||
|
import { ServerMasthead } from './ServerMasthead';
|
||||||
import { Editable } from './ServerMasthead.styled';
|
import { Editable } from './ServerMasthead.styled';
|
||||||
|
|
||||||
it('shows Edit Server when editable is true', () => {
|
it('shows Edit Server when editable is true', () => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { ServerMasthead } from './ServerMasthead';
|
|
||||||
import { guild } from 'roleypoly/common/types/storyData';
|
import { guild } from 'roleypoly/common/types/storyData';
|
||||||
|
import { ServerMasthead } from './ServerMasthead';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Molecules/Server Masthead',
|
title: 'Molecules/Server Masthead',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Wrapper = styled.div`
|
export const Wrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { Guild } from 'roleypoly/common/types';
|
|
||||||
import { Avatar, utils } from 'roleypoly/design-system/atoms/avatar';
|
|
||||||
import { AccentTitle, AmbientLarge } from 'roleypoly/design-system/atoms/typography';
|
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { guild } from 'roleypoly/common/types/storyData';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { GoPencil } from 'react-icons/go';
|
import { GoPencil } from 'react-icons/go';
|
||||||
|
import { Guild } from 'roleypoly/common/types';
|
||||||
|
import { guild } from 'roleypoly/common/types/storyData';
|
||||||
|
import { Avatar, utils } from 'roleypoly/design-system/atoms/avatar';
|
||||||
|
import { AccentTitle, AmbientLarge } from 'roleypoly/design-system/atoms/typography';
|
||||||
import { Editable, Icon, Name, Wrapper } from './ServerMasthead.styled';
|
import { Editable, Icon, Name, Wrapper } from './ServerMasthead.styled';
|
||||||
|
|
||||||
export type ServerMastheadProps = {
|
export type ServerMastheadProps = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { UserAvatarGroup } from './UserAvatarGroup';
|
|
||||||
import { user } from 'roleypoly/common/types/storyData';
|
import { user } from 'roleypoly/common/types/storyData';
|
||||||
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
||||||
|
import { UserAvatarGroup } from './UserAvatarGroup';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Molecules/User Avatar Group',
|
title: 'Molecules/User Avatar Group',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const Collapse = styled.div<{ preventCollapse: boolean }>`
|
export const Collapse = styled.div<{ preventCollapse: boolean }>`
|
||||||
${(props) =>
|
${(props) =>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { DiscordUser } from 'roleypoly/common/types';
|
import { DiscordUser } from 'roleypoly/common/types';
|
||||||
import { utils, Avatar } from 'roleypoly/design-system/atoms/avatar';
|
import { Avatar, utils } from 'roleypoly/design-system/atoms/avatar';
|
||||||
import { Group, Collapse, Discriminator, GroupText } from './UserAvatarGroup.styled';
|
import { Collapse, Discriminator, Group, GroupText } from './UserAvatarGroup.styled';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
user: DiscordUser;
|
user: DiscordUser;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { user } from 'roleypoly/common/types/storyData';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { UserPopover as UserPopoverComponent } from './UserPopover';
|
import { user } from 'roleypoly/common/types/storyData';
|
||||||
import { PopoverBase } from 'roleypoly/design-system/atoms/popover/Popover.styled';
|
import { PopoverBase } from 'roleypoly/design-system/atoms/popover/Popover.styled';
|
||||||
|
import { UserPopover as UserPopoverComponent } from './UserPopover';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Molecules/User Popover',
|
title: 'Molecules/User Popover',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Base = styled.div`
|
export const Base = styled.div`
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
import Link from 'next/link';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { GoGear, GoSignOut } from 'react-icons/go';
|
||||||
import { DiscordUser } from 'roleypoly/common/types';
|
import { DiscordUser } from 'roleypoly/common/types';
|
||||||
import { UserAvatarGroup } from 'roleypoly/design-system/molecules/user-avatar-group';
|
import { UserAvatarGroup } from 'roleypoly/design-system/molecules/user-avatar-group';
|
||||||
import { Base, NavAction } from './UserPopover.styled';
|
import { Base, NavAction } from './UserPopover.styled';
|
||||||
import { GoGear, GoSignOut } from 'react-icons/go';
|
|
||||||
import Link from 'next/link';
|
|
||||||
|
|
||||||
type UserPopoverProps = {
|
type UserPopoverProps = {
|
||||||
user: DiscordUser;
|
user: DiscordUser;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import { mastheadSlugs, user } from 'roleypoly/common/types/storyData';
|
||||||
import { AppShell } from './AppShell';
|
import { AppShell } from './AppShell';
|
||||||
import { user, mastheadSlugs } from 'roleypoly/common/types/storyData';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Organisms/App Shell',
|
title: 'Organisms/App Shell',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled, { createGlobalStyle } from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { fontCSS } from 'roleypoly/design-system/atoms/fonts';
|
import { fontCSS } from 'roleypoly/design-system/atoms/fonts';
|
||||||
|
import styled, { createGlobalStyle } from 'styled-components';
|
||||||
|
|
||||||
export const Content = styled.div<{ small?: boolean }>`
|
export const Content = styled.div<{ small?: boolean }>`
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { EditorShell } from './EditorShell';
|
|
||||||
import { guildEnum } from 'roleypoly/common/types/storyData';
|
import { guildEnum } from 'roleypoly/common/types/storyData';
|
||||||
|
import { EditorShell } from './EditorShell';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Organisms/Editor',
|
title: 'Organisms/Editor',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const CategoryContainer = styled.div`
|
export const CategoryContainer = styled.div`
|
||||||
background-color: ${palette.taupe100};
|
background-color: ${palette.taupe100};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { TabView, Tab } from 'roleypoly/design-system/atoms/tab-view';
|
|
||||||
import { PresentableGuild } from 'roleypoly/common/types';
|
import { PresentableGuild } from 'roleypoly/common/types';
|
||||||
|
import { Tab, TabView } from 'roleypoly/design-system/atoms/tab-view';
|
||||||
import { EditorCategory } from '../../molecules/editor-category';
|
import { EditorCategory } from '../../molecules/editor-category';
|
||||||
import { CategoryContainer } from './EditorShell.styled';
|
import { CategoryContainer } from './EditorShell.styled';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { WhyNoRoles } from './WhyNoRoles';
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { HelpStoryWrapper } from '../../molecules/help-page-base/storyDecorator';
|
import { HelpStoryWrapper } from '../../molecules/help-page-base/storyDecorator';
|
||||||
|
import { WhyNoRoles } from './WhyNoRoles';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Organisms/Help Pages',
|
title: 'Organisms/Help Pages',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import styled, { css } from 'styled-components';
|
|
||||||
import { palette, numberToChroma } from 'roleypoly/design-system/atoms/colors';
|
|
||||||
import { Role } from 'roleypoly/common/types';
|
import { Role } from 'roleypoly/common/types';
|
||||||
|
import { numberToChroma, palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled, { css } from 'styled-components';
|
||||||
|
|
||||||
export const DiscordBase = styled.div`
|
export const DiscordBase = styled.div`
|
||||||
background-color: ${palette.discord100};
|
background-color: ${palette.discord100};
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import chroma from 'chroma-js';
|
import chroma from 'chroma-js';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { FaCheck, FaTimes } from 'react-icons/fa';
|
import { FaCheck, FaTimes } from 'react-icons/fa';
|
||||||
|
import { Role } from 'roleypoly/common/types';
|
||||||
|
import { demoData } from 'roleypoly/common/types/demoData';
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { HalfsiesContainer, HalfsiesItem } from 'roleypoly/design-system/atoms/halfsies';
|
import { HalfsiesContainer, HalfsiesItem } from 'roleypoly/design-system/atoms/halfsies';
|
||||||
import { SparkleOverlay } from 'roleypoly/design-system/atoms/sparkle';
|
import { SparkleOverlay } from 'roleypoly/design-system/atoms/sparkle';
|
||||||
import { Role } from 'roleypoly/common/types';
|
|
||||||
import { demoData } from 'roleypoly/common/types/demoData';
|
|
||||||
import { DiscordBase, DiscordRole } from './WhyNoRoles.styled';
|
import { DiscordBase, DiscordRole } from './WhyNoRoles.styled';
|
||||||
|
|
||||||
const adminRoles: Role[] = [
|
const adminRoles: Role[] = [
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { onTablet } from 'roleypoly/design-system/atoms/breakpoints';
|
import { onTablet } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
import { text400 } from 'roleypoly/design-system/atoms/typography';
|
import { text400 } from 'roleypoly/design-system/atoms/typography';
|
||||||
import styled, { css } from 'styled-components';
|
import styled, { css } from 'styled-components';
|
||||||
import * as _ from 'styled-components'; // eslint-disable-line no-duplicate-imports
|
|
||||||
|
|
||||||
export const HeroText = styled.div`
|
export const HeroText = styled.div`
|
||||||
${onTablet(css`
|
${onTablet(css`
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
import * as React from 'react';
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import { HalfsiesContainer, HalfsiesItem } from 'roleypoly/design-system/atoms/halfsies';
|
||||||
import { Space } from 'roleypoly/design-system/atoms/space';
|
import { Space } from 'roleypoly/design-system/atoms/space';
|
||||||
import { LargeText, LargeTitle } from 'roleypoly/design-system/atoms/typography';
|
import { LargeText, LargeTitle } from 'roleypoly/design-system/atoms/typography';
|
||||||
import { DemoDiscord } from 'roleypoly/design-system/molecules/demo-discord';
|
import { DemoDiscord } from 'roleypoly/design-system/molecules/demo-discord';
|
||||||
import { DemoPicker } from 'roleypoly/design-system/molecules/demo-picker';
|
import { DemoPicker } from 'roleypoly/design-system/molecules/demo-picker';
|
||||||
import * as React from 'react';
|
|
||||||
import { DemoAlignment, DemoSubtitle, HeroCentering, HeroText } from './Landing.styled';
|
import { DemoAlignment, DemoSubtitle, HeroCentering, HeroText } from './Landing.styled';
|
||||||
import { HalfsiesContainer, HalfsiesItem } from 'roleypoly/design-system/atoms/halfsies';
|
|
||||||
|
|
||||||
export const Landing = () => (
|
export const Landing = () => (
|
||||||
<HeroCentering>
|
<HeroCentering>
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { onSmallScreen } from 'roleypoly/design-system/atoms/breakpoints';
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
import { transitions } from 'roleypoly/design-system/atoms/timings';
|
||||||
import styled, { css } from 'styled-components';
|
import styled, { css } from 'styled-components';
|
||||||
import * as _ from 'styled-components'; // eslint-disable-line no-duplicate-imports
|
|
||||||
|
|
||||||
export const MastheadBase = styled.div`
|
export const MastheadBase = styled.div`
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
export * from './Guest';
|
|
||||||
export * from './Authed';
|
export * from './Authed';
|
||||||
|
export * from './Guest';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import styled from 'styled-components';
|
|
||||||
import { palette } from 'roleypoly/design-system/atoms/colors';
|
import { palette } from 'roleypoly/design-system/atoms/colors';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Container = styled.div``;
|
export const Container = styled.div``;
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { GoInfo } from 'react-icons/go';
|
import { GoInfo } from 'react-icons/go';
|
||||||
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
|
||||||
import { Space } from 'roleypoly/design-system/atoms/space';
|
|
||||||
import { PickerCategory } from 'roleypoly/design-system/molecules/picker-category';
|
|
||||||
import { ResetSubmit } from 'roleypoly/design-system/molecules/reset-submit';
|
|
||||||
import { ServerMasthead } from 'roleypoly/design-system/molecules/server-masthead';
|
|
||||||
import {
|
import {
|
||||||
Category,
|
Category,
|
||||||
|
CategoryType,
|
||||||
Guild,
|
Guild,
|
||||||
GuildData,
|
GuildData,
|
||||||
GuildRoles,
|
GuildRoles,
|
||||||
Member,
|
Member,
|
||||||
Role,
|
Role,
|
||||||
CategoryType,
|
|
||||||
} from 'roleypoly/common/types';
|
} from 'roleypoly/common/types';
|
||||||
import { ReactifyNewlines } from 'roleypoly/common/utils/ReactifyNewlines';
|
import { ReactifyNewlines } from 'roleypoly/common/utils/ReactifyNewlines';
|
||||||
|
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
|
||||||
|
import { Space } from 'roleypoly/design-system/atoms/space';
|
||||||
|
import { PickerCategory } from 'roleypoly/design-system/molecules/picker-category';
|
||||||
|
import { ResetSubmit } from 'roleypoly/design-system/molecules/reset-submit';
|
||||||
|
import { ServerMasthead } from 'roleypoly/design-system/molecules/server-masthead';
|
||||||
import {
|
import {
|
||||||
CategoryContainer,
|
CategoryContainer,
|
||||||
Container,
|
Container,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { AuthLogin } from './AuthLogin';
|
|
||||||
import { guild } from 'roleypoly/common/types/storyData';
|
import { guild } from 'roleypoly/common/types/storyData';
|
||||||
|
import { AuthLogin } from './AuthLogin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Templates/Auth: Login',
|
title: 'Templates/Auth: Login',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import * as React from 'react';
|
||||||
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
||||||
import { AppShell } from 'roleypoly/design-system/organisms/app-shell';
|
import { AppShell } from 'roleypoly/design-system/organisms/app-shell';
|
||||||
import { Preauth, PreauthProps } from 'roleypoly/design-system/organisms/preauth';
|
import { Preauth, PreauthProps } from 'roleypoly/design-system/organisms/preauth';
|
||||||
import * as React from 'react';
|
|
||||||
|
|
||||||
export type AuthLoginProps = PreauthProps;
|
export type AuthLoginProps = PreauthProps;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
import * as React from 'react';
|
||||||
import { Error } from './Errors';
|
import { Error } from './Errors';
|
||||||
import { errorMessages } from './errorStrings';
|
import { errorMessages } from './errorStrings';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { HelpPageTemplate } from './HelpPage';
|
|
||||||
import { WhyNoRoles } from '../../organisms/help-why-no-roles';
|
import { WhyNoRoles } from '../../organisms/help-why-no-roles';
|
||||||
|
import { HelpPageTemplate } from './HelpPage';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Templates/Help Page',
|
title: 'Templates/Help Page',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { AppShell, AppShellProps } from 'roleypoly/design-system/organisms/app-shell';
|
|
||||||
import { HelpPageBase } from 'roleypoly/design-system/molecules/help-page-base';
|
import { HelpPageBase } from 'roleypoly/design-system/molecules/help-page-base';
|
||||||
|
import { AppShell, AppShellProps } from 'roleypoly/design-system/organisms/app-shell';
|
||||||
|
|
||||||
export type HelpPageProps = AppShellProps & {
|
export type HelpPageProps = AppShellProps & {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { RolePickerTemplate, RolePickerTemplateProps } from './RolePicker';
|
|
||||||
import {
|
import {
|
||||||
guildData,
|
|
||||||
member,
|
|
||||||
guildRoles,
|
|
||||||
guild,
|
guild,
|
||||||
user,
|
guildData,
|
||||||
guildEnum,
|
guildEnum,
|
||||||
|
guildRoles,
|
||||||
mastheadSlugs,
|
mastheadSlugs,
|
||||||
|
member,
|
||||||
|
user,
|
||||||
} from 'roleypoly/common/types/storyData';
|
} from 'roleypoly/common/types/storyData';
|
||||||
|
import { RolePickerTemplate, RolePickerTemplateProps } from './RolePicker';
|
||||||
|
|
||||||
const props: RolePickerTemplateProps = {
|
const props: RolePickerTemplateProps = {
|
||||||
guildData: {
|
guildData: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import NextApp, { AppContext, AppProps } from 'next/app';
|
import NextApp, { AppContext, AppProps } from 'next/app';
|
||||||
|
import nookies from 'nookies';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { InjectTypekitFont } from 'roleypoly/design-system/atoms/fonts';
|
import { InjectTypekitFont } from 'roleypoly/design-system/atoms/fonts';
|
||||||
import nookies from 'nookies';
|
|
||||||
import { AuthProvider } from 'roleypoly/providers/auth/AuthContext';
|
import { AuthProvider } from 'roleypoly/providers/auth/AuthContext';
|
||||||
|
|
||||||
type Props = AppProps & {
|
type Props = AppProps & {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { WhyNoRoles } from 'roleypoly/design-system/organisms/help-why-no-roles';
|
import { WhyNoRoles } from 'roleypoly/design-system/organisms/help-why-no-roles';
|
||||||
import {
|
import {
|
||||||
HelpPageTemplate,
|
|
||||||
HelpPageProps,
|
HelpPageProps,
|
||||||
|
HelpPageTemplate,
|
||||||
} from 'roleypoly/design-system/templates/help-page';
|
} from 'roleypoly/design-system/templates/help-page';
|
||||||
|
|
||||||
const WhyNoRolesPage = (props: HelpPageProps) => (
|
const WhyNoRolesPage = (props: HelpPageProps) => (
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { NextPageContext } from 'next';
|
import { NextPageContext } from 'next';
|
||||||
import * as React from 'react';
|
|
||||||
import nookies from 'nookies';
|
import nookies from 'nookies';
|
||||||
import { AppShell } from 'roleypoly/design-system/organisms/app-shell';
|
import * as React from 'react';
|
||||||
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
||||||
import { AccentTitle } from 'roleypoly/design-system/atoms/typography';
|
import { AccentTitle } from 'roleypoly/design-system/atoms/typography';
|
||||||
|
import { AppShell } from 'roleypoly/design-system/organisms/app-shell';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
sessionID: string;
|
sessionID: string;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue