mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 13:38:49 +08:00
feat: reset modal
This commit is contained in:
@@ -4,6 +4,7 @@ import '../../public/globals.css';
|
||||
import '../../public/variable.css';
|
||||
import './temporary.css';
|
||||
import { EditorProvider } from '@/components/editor-provider';
|
||||
import { ModalProvider } from '@/components/global-modal-provider';
|
||||
|
||||
const ThemeProvider = dynamic(() => import('@/styles/themeProvider'), {
|
||||
ssr: false,
|
||||
@@ -12,9 +13,11 @@ const ThemeProvider = dynamic(() => import('@/styles/themeProvider'), {
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<ThemeProvider>
|
||||
<EditorProvider>
|
||||
<Component {...pageProps} />
|
||||
</EditorProvider>
|
||||
<ModalProvider>
|
||||
<EditorProvider>
|
||||
<Component {...pageProps} />
|
||||
</EditorProvider>
|
||||
</ModalProvider>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,12 @@ export default class AppDocument extends Document {
|
||||
render() {
|
||||
return (
|
||||
<Html>
|
||||
<Head />
|
||||
<Head>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
|
||||
/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
|
||||
@@ -34,30 +34,6 @@ const Home: NextPage = () => {
|
||||
<StyledEditorContainer>
|
||||
<DynamicEditor />
|
||||
</StyledEditorContainer>
|
||||
{/*<Button>A button use the theme styles</Button>*/}
|
||||
{/*<simple-counter name="A counter created by web component" />*/}
|
||||
{/*<p>current mode {mode}</p>*/}
|
||||
{/*<button*/}
|
||||
{/* onClick={() => {*/}
|
||||
{/* changeMode('light');*/}
|
||||
{/* }}*/}
|
||||
{/*>*/}
|
||||
{/* light*/}
|
||||
{/*</button>*/}
|
||||
{/*<button*/}
|
||||
{/* onClick={() => {*/}
|
||||
{/* changeMode('dark');*/}
|
||||
{/* }}*/}
|
||||
{/*>*/}
|
||||
{/* dark*/}
|
||||
{/*</button>*/}
|
||||
{/*<button*/}
|
||||
{/* onClick={() => {*/}
|
||||
{/* changeMode('auto');*/}
|
||||
{/* }}*/}
|
||||
{/*>*/}
|
||||
{/* auto*/}
|
||||
{/*</button>*/}
|
||||
<FAQ />
|
||||
</StyledPage>
|
||||
);
|
||||
|
||||
@@ -1,44 +1,7 @@
|
||||
debug-menu {
|
||||
display: none !important;
|
||||
}
|
||||
/*.affine-editor-container {*/
|
||||
/* height: 100%;*/
|
||||
/* padding: 0 !important;*/
|
||||
/*}*/
|
||||
/*.affine-default-page-block-container {*/
|
||||
/* width: 720px;*/
|
||||
/* height: 100%;*/
|
||||
/* margin: 0 auto;*/
|
||||
/*}*/
|
||||
.affine-block-children-container.edgeless {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/*u {*/
|
||||
/* text-decoration: none;*/
|
||||
/* border-bottom: 1px solid #4c6275 !important;*/
|
||||
/*}*/
|
||||
/*u::after {*/
|
||||
/* display: none;*/
|
||||
/*}*/
|
||||
|
||||
/*.affine-paragraph-block-container.text {*/
|
||||
/* margin-top: 18px !important;*/
|
||||
/*}*/
|
||||
|
||||
/*.affine-default-page-block-title {*/
|
||||
/* width: 100%;*/
|
||||
/*}*/
|
||||
/*s {*/
|
||||
/* text-decoration: line-through !important;*/
|
||||
/*}*/
|
||||
|
||||
/*.affine-edgeless-page-block-container {*/
|
||||
/* height: 100% !important;*/
|
||||
/*}*/
|
||||
/*.affine-block-children-container.edgeless {*/
|
||||
/* height: 100% !important;*/
|
||||
/*}*/
|
||||
/*.affine-list-rich-text-wrapper > div {*/
|
||||
/* box-sizing: content-box;*/
|
||||
/* color: var(--affine-highlight-color);*/
|
||||
/* min-width: unset !important;*/
|
||||
/* max-width: 26px;*/
|
||||
/*}*/
|
||||
|
||||
Reference in New Issue
Block a user