Skip to content

Commit

Permalink
chore: restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-menlo committed Sep 19, 2023
1 parent 0696ff1 commit c21634c
Show file tree
Hide file tree
Showing 31 changed files with 2,589 additions and 6,076 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
# Jan inference
models/**
error.log
web-client/electron/core/base-plugin/node_modules
web-client/electron/core/base-plugin/dist
*.tgz
web-client/yarn.lock
2 changes: 1 addition & 1 deletion web-client/app/_components/Preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
plugins,
extensionPoints,
activationPoints,
} from "../../electron/core/execution/index";
} from "../../electron/core/plugin-manager/execution/index";
/* eslint-disable @next/next/no-sync-scripts */
export const Preferences = () => {
useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ const sqlite3 = require("sqlite3").verbose();

module.exports = {
testNodeProcess: function () {
console.log("++--")
const db = new sqlite3.Database(":memory:");
const db = new sqlite3.Database("./jan.db");

db.serialize(() => {
db.run("CREATE TABLE lorem (info TEXT)");
db.run("CREATE TABLE IF NOT EXISTS lorem (info TEXT)");

const stmt = db.prepare("INSERT INTO lorem VALUES (?)");
for (let i = 0; i < 10; i++) {
Expand All @@ -20,8 +19,6 @@ module.exports = {
});

db.close();
console.log("sqlite3");
console.log(db)
console.log("run in node process");
console.log(`run base-plugin's module in node process`);
},
};
Loading

0 comments on commit c21634c

Please sign in to comment.