mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
desktop: do not gitignore *.patch
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,4 +11,4 @@ nx-cloud.env
|
|||||||
site
|
site
|
||||||
node_modules.backup
|
node_modules.backup
|
||||||
.nx
|
.nx
|
||||||
*.patch
|
/*.patch
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ const __filename = fileURLToPath(import.meta.url);
|
|||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
export async function patchBetterSQLite3() {
|
export async function patchBetterSQLite3() {
|
||||||
|
console.log("Patching better-sqlite3");
|
||||||
|
|
||||||
const jsonPath = path.join(
|
const jsonPath = path.join(
|
||||||
__dirname,
|
__dirname,
|
||||||
"..",
|
"..",
|
||||||
@@ -52,6 +54,5 @@ export async function patchBetterSQLite3() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (process.argv[1] === __filename) {
|
if (process.argv[1] === __filename) {
|
||||||
console.log("Patching better-sqlite3");
|
|
||||||
patchBetterSQLite3();
|
patchBetterSQLite3();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import { useSearch } from "../hooks/use-search";
|
|||||||
import { db } from "../common/db";
|
import { db } from "../common/db";
|
||||||
import { useEditorStore } from "../stores/editor-store";
|
import { useEditorStore } from "../stores/editor-store";
|
||||||
import { ListLoader } from "../components/loaders/list-loader";
|
import { ListLoader } from "../components/loaders/list-loader";
|
||||||
import Search from "./search";
|
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
const notes = useStore((store) => store.notes);
|
const notes = useStore((store) => store.notes);
|
||||||
|
|||||||
Reference in New Issue
Block a user