Skip to content

Commit

Permalink
editor-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljd committed Oct 23, 2023
1 parent 3594146 commit d9a8ce6
Show file tree
Hide file tree
Showing 34 changed files with 451 additions and 1,374 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
["@/layouts", "./renderer/src/layouts/"],
["@/modules", "./renderer/src/modules/"],
["@/util", "./renderer/src/util/"],
["@/core", "./renderer/src/core/"]
["@/core", "./renderer/src/core/"],
["@/hooks", "./renderer/src/hooks/"]
],
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
Expand Down
10 changes: 7 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
"[javascript]": {
"editor.formatOnSave": false
},
"editor.rulers": [100],
"editor.rulers": [
100
],
"editor.fontLigatures": true,
"prettier.tabWidth": 4,
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": ["js"],
"prettier.disableLanguages": [
"js"
],
"prettier.useTabs": true,
"editor.formatOnSave": true,
"editor.multiCursorModifier": "alt",
Expand All @@ -27,4 +31,4 @@
},
"eslint.workingDirectories": [],
"editor.tabSize": 2
}
}
6 changes: 5 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
"app/*"
],
}
}
},
"exclude": [
"node_modules",
"dist"
]
}
11 changes: 9 additions & 2 deletions renderer/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@
"@/illustrations/*": [
"public/illustrations/*"
],
"@/hooks/*":[
"@/hooks/*": [
"src/components/hooks/*"
],
"@/hooks2/*": [
"src/hooks/*"
]
}
}
},
"exclude": [
"node_modules",
"dist"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ export default function SelectVerse({
document.getElementById('editor').querySelector(`#ch${chapter}v${verseNum}`)?.scrollIntoView();
setVerseNumber(verseNum);
}
// window.location.href = `#ch${chapter}v${verseNum}`;
// document.getElementById(`ch${chapter}v${verseNum}`).scrollIntoView();
};

const onMultiSelectVerse = async (e, verses) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import LoadingScreen from '@/components/Loading/LoadingScreen';
import { SnackBar } from '@/components/SnackBar';
import EmptyScreen from '@/components/Loading/EmptySrceen';
import { useReadReferenceUsfmFile } from '@/components/EditorPage/Reference/ReferenceBible/useReadReferenceUsfmFile';
import ReferenceScribex from '../../Scribex/ReferenceScribex';
import ReferenceScribex from '../../TextEditor/ReferenceScribex';

const ReferenceBibleX = ({
languageId,
Expand Down
130 changes: 0 additions & 130 deletions renderer/src/components/EditorPage/Scribex/Buttons.jsx

This file was deleted.

Loading

0 comments on commit d9a8ce6

Please sign in to comment.