Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Init renderer folder for ui stuff
Hakan Shehuff8a7f7968f2
diff --git a/desktop/components.json b/desktop/components.jsonindex 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.tsxindex 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.tsxindex 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.tsindex 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.csssimilarity index 100%rename from desktop/src/styles/editor.cssrename to desktop/src/renderer/styles/editor.cssdiff --git a/desktop/src/styles/highlight.css b/desktop/src/renderer/styles/highlight.csssimilarity index 100%rename from desktop/src/styles/highlight.cssrename to desktop/src/renderer/styles/highlight.cssdiff --git a/desktop/src/styles/index.css b/desktop/src/renderer/styles/index.csssimilarity index 100%rename from desktop/src/styles/index.cssrename to desktop/src/renderer/styles/index.css