Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
k70suK3-k06a7ash1 committed Feb 24, 2025
1 parent 9c33e6d commit 6f68e37
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 88 deletions.
106 changes: 28 additions & 78 deletions bun.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "md-editor",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -36,8 +36,8 @@
"postcss": "^8.5.3",
"tailwind-merge": "^3.0.2",
"tailwindcss": "^4.0.8",
"typescript": "^4.9.5",
"vite": "^4.5.9",
"typescript": "^5.7.3",
"vite": "^6.1.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.6"
}
Expand Down
8 changes: 3 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import "github-markdown-css/github-markdown-dark.css";
import { useDragComponents } from "./features/drag-and-drop/ui/index.js";
import { Frame } from "./layouts/Frame/index.js";
import { MainContent } from "./layouts/MainContent/index.js";
import style from "./index.module.css";
import { Section } from "./layouts/Section/index.js";
import { Spacer } from "./components/atoms/Spacer/index.js";
import { PreviewSection } from "./components/features/previewSection/index.js";
Expand All @@ -21,21 +19,21 @@ export const App = () => {
return (
<>
<TopAnchor />
<div className={style.root}>
<div>
<Frame>
<Spacer size={24} />
<SubContent>
<SelectSeparateLevel />
</SubContent>
<MainContent>
<Section>
<h2 className={style.sectionTitle}>Edit</h2>
<h2>Edit</h2>
<DragAndDropArea />
<Spacer size={24} />
{contents.length > 0 && <BottomAddSection />}
</Section>
<Section>
<h2 className={style.sectionTitle}>Preview</h2>
<h2>Preview</h2>
<PreviewSection contents={contents} />
<Spacer size={16} />
</Section>
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import ReactDOM from "react-dom/client";
import { App } from "./App";
import { MarkdownProvider } from "@/context/MarkdownContext";
import "./index.css";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import tsconfigPaths from "vite-tsconfig-paths";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss(), tsconfigPaths()],
assetsInclude: ["**/*.md"],
base: "/md-editor/",
resolve: {
alias: {
"~": path.resolve(__dirname, "src"),
"@": path.resolve(__dirname, "src"),
},
},
});

0 comments on commit 6f68e37

Please sign in to comment.