Skip to content

Commit

Permalink
chore(web): story block system (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite authored Aug 10, 2023
1 parent bea6686 commit 8a6ad6a
Show file tree
Hide file tree
Showing 68 changed files with 1,825 additions and 378 deletions.
12 changes: 6 additions & 6 deletions web/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ export default config;
// overwrite: true,
// schema: "../server/gql/*.graphql",
// documents: [
// "src/services/gql/fragments/*.ts",
// "src/services/gql/queries/*.ts",
// "src/services/**/*.graphql",
// "src/classic/gql/fragments/*.ts",
// "src/classic/gql/queries/*.ts",
// "src/classic/**/*.graphql",
// ],
// generates: {
// "./src/services/gql/graphql-client-api.tsx": {
// "./src/classic/gql/graphql-client-api.tsx": {
// plugins: ["typescript", "typescript-operations", "typescript-react-apollo"],
// config: {
// useTypeImports: true,
Expand All @@ -65,10 +65,10 @@ export default config;
// },
// },
// },
// "./src/services/gql/graphql.schema.json": {
// "./src/classic/gql/graphql.schema.json": {
// plugins: ["introspection"],
// },
// "./src/services/gql/fragmentMatcher.json": {
// "./src/classic/gql/fragmentMatcher.json": {
// plugins: ["fragment-matcher"],
// },
// },
Expand Down
4 changes: 4 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"@graphql-codegen/cli": "3.3.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/fragment-matcher": "4.0.1",
"@graphql-codegen/introspection": "4.0.0",
"@graphql-codegen/typescript": "4.0.1",
"@graphql-codegen/typescript-operations": "4.0.1",
"@graphql-codegen/typescript-react-apollo": "3.3.7",
"@playwright/test": "1.33.0",
"@rollup/plugin-yaml": "4.1.0",
"@storybook/addon-essentials": "7.0.18",
Expand Down
3 changes: 0 additions & 3 deletions web/src/beta/components/Icon/Icons/audio.svg

This file was deleted.

4 changes: 0 additions & 4 deletions web/src/beta/components/Icon/Icons/buttonBlock.svg

This file was deleted.

8 changes: 8 additions & 0 deletions web/src/beta/components/Icon/Icons/dndHandle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions web/src/beta/components/Icon/Icons/exit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions web/src/beta/components/Icon/Icons/imageStoryBlock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions web/src/beta/components/Icon/Icons/infoboxIcon copy.svg

This file was deleted.

6 changes: 0 additions & 6 deletions web/src/beta/components/Icon/Icons/mdFile.svg

This file was deleted.

7 changes: 7 additions & 0 deletions web/src/beta/components/Icon/Icons/mdTextStoryBlock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions web/src/beta/components/Icon/Icons/padding.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions web/src/beta/components/Icon/Icons/storyBlockEdit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions web/src/beta/components/Icon/Icons/textStoryBlock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions web/src/beta/components/Icon/Icons/titleStoryBlock.svg
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.
40 changes: 23 additions & 17 deletions web/src/beta/components/Icon/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import CheckMark from "./Icons/checkMark.svg";
import Plus from "./Icons/plus.svg";
import Minus from "./Icons/minus.svg";
import Alert from "./Icons/alert.svg";
import DndHandle from "./Icons/dndHandle.svg";

// Dataset
import File from "./Icons/fileIcon.svg";
Expand All @@ -43,15 +44,6 @@ import PlayRight from "./Icons/play-right.svg";
import PlayLeft from "./Icons/play-left.svg";
import Ellipse from "./Icons/ellipse.svg";

// Storytelling blocks
import Audio from "./Icons/audio.svg";
import EditIcon from "./Icons/editIcon.svg";
import Settings from "./Icons/settings.svg";
import ButtonBlock from "./Icons/buttonBlock.svg";
import Camera from "./Icons/camera.svg";
import MdFile from "./Icons/mdFile.svg";
import Clock from "./Icons/clock.svg";

// Dashboard
import Dashboard from "./Icons/dashboard.svg";
import Logout from "./Icons/logout.svg";
Expand All @@ -60,14 +52,24 @@ import Logout from "./Icons/logout.svg";
import WorkspaceAdd from "./Icons/workspaceAdd.svg";
import Workspaces from "./Icons/workspaces.svg";

// StoryTelling tab
// Storytelling tab
import Square from "./Icons/square.svg";
import Swiper from "./Icons/swiper.svg";
import Book from "./Icons/book.svg";
import Copy from "./Icons/copy.svg";
import GearSix from "./Icons/gearSix.svg";
import PencilSimple from "./Icons/pencilSimple.svg";
import Trash from "./Icons/trash.svg";
import TextStoryBlock from "./Icons/textStoryBlock.svg";
import Edit from "./Icons/storyBlockEdit.svg";
import Exit from "./Icons/exit.svg";
import Settings from "./Icons/settings.svg";
import Padding from "./Icons/padding.svg";
import TitleStoryBlock from "./Icons/titleStoryBlock.svg";
import VideoStoryBlock from "./Icons/videoStoryBlock.svg";
import ImageStoryBlock from "./Icons/imageStoryBlock.svg";
import MdTextStoryBlock from "./Icons/mdTextStoryBlock.svg";
import CameraButtonStoryBlock from "./Icons/cameraButtonStoryBlock.svg";

// Widget tab
import Desktop from "./Icons/desktop.svg";
Expand Down Expand Up @@ -119,13 +121,6 @@ export default {
plus: Plus,
timeline: Timeline,
actionbutton: ActionButton,
audio: Audio,
editIcon: EditIcon,
settings: Settings,
buttonBlock: ButtonBlock,
camera: Camera,
mdFile: MdFile,
clock: Clock,
dashboard: Dashboard,
help: Help,
logout: Logout,
Expand All @@ -134,6 +129,7 @@ export default {
checkmark: CheckMark,
minus: Minus,
alert: Alert,
dndHandle: DndHandle,
logo: Logo,
logoColorful: LogoColorful,
desktop: Desktop,
Expand All @@ -143,6 +139,16 @@ export default {
gearSix: GearSix,
pencilSimple: PencilSimple,
trash: Trash,
storyBlockEdit: Edit,
exit: Exit,
settings: Settings,
padding: Padding,
textStoryBlock: TextStoryBlock,
titleStoryBlock: TitleStoryBlock,
videoStoryBlock: VideoStoryBlock,
imageStoryBlock: ImageStoryBlock,
mdTextStoryBlock: MdTextStoryBlock,
cameraButtonStoryBlock: CameraButtonStoryBlock,
widget: Widgets,
widgets: Widgets,
menu: WidgetMenu,
Expand Down
2 changes: 1 addition & 1 deletion web/src/beta/components/NotFound/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Wrapper = styled.div`
justify-content: center;
padding-top: 40vh;
height: 100%;
background: ${({ theme }) => theme.bg[2]};
background: ${({ theme }) => theme.bg[1]};
`;

const IconWrapper = styled.div`
Expand Down
Loading

0 comments on commit 8a6ad6a

Please sign in to comment.