-
Notifications
You must be signed in to change notification settings - Fork 0
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
37 changed files
with
316 additions
and
104 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,11 @@ | ||
'use client'; | ||
import React, { FC } from 'react'; | ||
import { CustomProvider } from 'rsuite'; | ||
|
||
type Props = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const Provider: FC<Props> = ({ children }) => { | ||
return <CustomProvider theme="dark">{children}</CustomProvider>; | ||
}; |
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,3 +1,4 @@ | ||
'use client'; | ||
import React from 'react'; | ||
import { Base64 } from '@/components/pages/base64/Base64'; | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'rsuite/dist/rsuite.min.css'; | ||
import '@/styles/rs-custom.globals.scss'; | ||
import '@/styles/globals.scss'; | ||
import { Provider } from '@/app/Provider'; | ||
|
||
export const metadata = { | ||
title: 'Next.js', | ||
description: 'Generated by Next.js', | ||
}; | ||
|
||
export default function RootLayout({ children }: { children: React.ReactNode }) { | ||
// テーマのチラつきを抑えるために指定 | ||
const className = 'rs-theme-dark'; | ||
|
||
return ( | ||
<html lang="en"> | ||
<body className={className}> | ||
<Provider>{children}</Provider> | ||
</body> | ||
</html> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use client'; | ||
import React from 'react'; | ||
import { AppLayout } from '@/Layout/App'; | ||
const indexPage: React.FC = () => { | ||
const title = '開発補助ツール'; | ||
|
||
return <AppLayout title={title}></AppLayout>; | ||
}; | ||
|
||
export default indexPage; |
File renamed without changes.
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
import React from 'react'; | ||
import styled from '@emotion/styled'; | ||
import { useFormContext } from 'react-hook-form'; | ||
import CodeMirrorMerge from 'react-codemirror-merge'; | ||
import { EditorView } from 'codemirror'; | ||
import { EditorState } from '@codemirror/state'; | ||
import { vscodeDark } from '@uiw/codemirror-theme-vscode'; | ||
import { DiffEditor as MonacoDiffEditor, DiffEditorProps } from '@monaco-editor/react'; | ||
|
||
export const DiffEditor: React.FC<DiffEditorProps> = (props) => { | ||
const { setValue } = useFormContext(); | ||
const Original = CodeMirrorMerge.Original; | ||
const Modified = CodeMirrorMerge.Modified; | ||
|
||
const onChangeOriginal = React.useCallback((value) => { | ||
setValue('original', value); | ||
}, [setValue]); | ||
|
||
const onChangeModified = React.useCallback((value) => { | ||
setValue('modified', value); | ||
}, [setValue]); | ||
|
||
|
||
|
||
return ( | ||
<StyledWrapper> | ||
<MonacoDiffEditor className="diff-editor" height="80vh" theme="vs-dark" {...props} /> | ||
</StyledWrapper>); | ||
<CodeMirrorMerge theme={vscodeDark} orientation="a-b"> | ||
<Original onChange={onChangeOriginal} value={props.original} /> | ||
<Modified onChange={onChangeModified} value={props.modified} extensions={[]} /> | ||
</CodeMirrorMerge> | ||
); | ||
}; | ||
|
||
const StyledWrapper = styled.div``; |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use client'; | ||
import React from 'react'; | ||
import { Controller, FormProvider } from 'react-hook-form'; | ||
import { | ||
|
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
Oops, something went wrong.
b12502d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
tools-su-u-dev – ./
tools-su-u-dev-su-u.vercel.app
tools-su-u-dev-git-main-su-u.vercel.app
tools-su-u-dev.vercel.app
tools.su-u.dev