Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Init renderer folder for ui stuff

Hakan Shehuff8a7f7968f2
diff --git a/desktop/components.json b/desktop/components.json
index 07c2c169..7d92ac14 100644
--- a/desktop/components.json
+++ b/desktop/components.json
@@ -5,7 +5,7 @@
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
- "css": "src/styles/index.css",
+ "css": "src/renderer/styles/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
@@ -14,4 +14,4 @@
"components": "@/components",
"utils": "@/lib/utils"
}
-}
\ No newline at end of file
+}
diff --git a/desktop/src/components/documents/document-editor.tsx b/desktop/src/components/documents/document-editor.tsx
index b28845fe..de30bd5f 100644
--- a/desktop/src/components/documents/document-editor.tsx
+++ b/desktop/src/components/documents/document-editor.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import '@/styles/editor.css';
+import '@/renderer/styles/editor.css';
import { useEditor, EditorContent } from '@tiptap/react';
import {
ParagraphCommand,
diff --git a/desktop/src/editor/views/code-block.tsx b/desktop/src/editor/views/code-block.tsx
index 39092c89..91ed7cd2 100644
--- a/desktop/src/editor/views/code-block.tsx
+++ b/desktop/src/editor/views/code-block.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import { type NodeViewProps } from '@tiptap/core';
import { NodeViewContent, NodeViewWrapper } from '@tiptap/react';
-import '@/styles/highlight.css';
+import '@/renderer/styles/highlight.css';
import {
Command,
@@ -21,7 +21,10 @@ import { defaultClasses } from '@/editor/classes';
import { languages } from '@/lib/lowlight';
import { cn } from '@/lib/utils';
-export const CodeBlockNodeView = ({ node, updateAttributes }: NodeViewProps) => {
+export const CodeBlockNodeView = ({
+ node,
+ updateAttributes,
+}: NodeViewProps) => {
const language = node.attrs?.language ?? 'plaintext';
const languageItem = languages.find((item) => item.code === language);
const code = node.textContent ?? '';
diff --git a/desktop/src/renderer.ts b/desktop/src/renderer.ts
index 2909291b..243bba64 100644
--- a/desktop/src/renderer.ts
+++ b/desktop/src/renderer.ts
@@ -26,5 +26,5 @@
* ```
*/
-import './styles/index.css';
+import './renderer/styles/index.css';
import './components/root';
diff --git a/desktop/src/styles/editor.css b/desktop/src/renderer/styles/editor.css
similarity index 100%
rename from desktop/src/styles/editor.css
rename to desktop/src/renderer/styles/editor.css
diff --git a/desktop/src/styles/highlight.css b/desktop/src/renderer/styles/highlight.css
similarity index 100%
rename from desktop/src/styles/highlight.css
rename to desktop/src/renderer/styles/highlight.css
diff --git a/desktop/src/styles/index.css b/desktop/src/renderer/styles/index.css
similarity index 100%
rename from desktop/src/styles/index.css
rename to desktop/src/renderer/styles/index.css