diff --git a/app/newproject/page.js b/app/newproject/page.js
index aea0cfe49..2bca36c06 100644
--- a/app/newproject/page.js
+++ b/app/newproject/page.js
@@ -1,9 +1,9 @@
import ProtectedRoute from '@/components/Protected';
-import NewWebProject from '@/components/Projects/NewWebProject';
+import NewProject from '@/components/Projects/NewProject';
const newproject = () => (
-
+
);
diff --git a/package.json b/package.json
index 146e690a8..74acc6241 100644
--- a/package.json
+++ b/package.json
@@ -192,9 +192,9 @@
},
"optionalDependencies": {
"bufferutil": "^4.0.6",
+ "react-icons": "4.10.1",
"scripture-resources-rcl": "5.1.0",
- "utf-8-validate": "^5.0.9",
- "react-icons": "4.10.1"
+ "utf-8-validate": "^5.0.9"
},
"overrides": {
"react": "$react",
@@ -204,4 +204,4 @@
"word-aligner": "$word-aligner",
"@mui/lab": "$@mui/lab"
}
-}
\ No newline at end of file
+}
diff --git a/renderer/src/components/EditorPage/BookMarks/Bookmarks.js b/renderer/src/components/EditorPage/BookMarks/Bookmarks.js
index 1562af309..4a10ea941 100644
--- a/renderer/src/components/EditorPage/BookMarks/Bookmarks.js
+++ b/renderer/src/components/EditorPage/BookMarks/Bookmarks.js
@@ -51,16 +51,6 @@ export default function Bookmarks() {
}).finally(() => setIsLoading(false));
};
- // useEffect(() => {
- // console.log('tempChapter', tempChapter, chapter);
- // timeout(2000).then(async () => {
- // setIsLoading(true);
- // onChangeChapter(tempChapter);
- // onChangeVerse('1');
- // }).then(() => setIsLoading(false));
- // // eslint-disable-next-line react-hooks/exhaustive-deps
- // }, [tempChapter]);
-
return (
<>
diff --git a/renderer/src/components/EditorPage/ObsEditor/WebReferenceObs.js b/renderer/src/components/EditorPage/ObsEditor/WebReferenceObs.js
index 73e4455cc..9135e95c4 100644
--- a/renderer/src/components/EditorPage/ObsEditor/WebReferenceObs.js
+++ b/renderer/src/components/EditorPage/ObsEditor/WebReferenceObs.js
@@ -70,9 +70,6 @@ const { t } = useTranslation();
if (window?.navigator?.onLine) {
await checkandDownloadObsImages(window?.navigator?.onLine);
}
- // else {
- // console.log('No internet connection');
- // }
})();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
diff --git a/renderer/src/components/EditorPage/ObsEditor/core.js b/renderer/src/components/EditorPage/ObsEditor/core.js
index 18ffc8ebf..4f7f79ce9 100644
--- a/renderer/src/components/EditorPage/ObsEditor/core.js
+++ b/renderer/src/components/EditorPage/ObsEditor/core.js
@@ -62,7 +62,6 @@ const loadWebData = async (file, projectName, username) => {
const filePath = `${newPath}/${username}/resources/${projectName}/content/${file}.md`;
const { data } = await sbStorageDownload(filePath);
const parsedData = readBlobAsync(data);
- console.log({ filePath, data, parsedData });
if (parsedData) {
return parsedData;
@@ -151,12 +150,10 @@ const core = (fs, num, projectName, username) => {
};
const webCore = async (num, projectName, username) => {
- console.log({ num, projectName, username });
const stories = [];
// eslint-disable-next-line prefer-const
let id = 1; let footer = false;
const data = await loadWebData(num.toString().padStart(2, 0), projectName, username);
- console.log({ data });
const allLines = data.split(/\r\n|\n/);
// Reading line by line
allLines.forEach((line) => {
@@ -230,7 +227,6 @@ const webCore = async (num, projectName, username) => {
}
}
});
- console.log({ stories });
return stories;
};
diff --git a/renderer/src/components/EditorPage/Reference/MultiComboBox.js b/renderer/src/components/EditorPage/Reference/MultiComboBox.js
index 98a79db05..c92c69090 100644
--- a/renderer/src/components/EditorPage/Reference/MultiComboBox.js
+++ b/renderer/src/components/EditorPage/Reference/MultiComboBox.js
@@ -15,7 +15,6 @@ function MultiComboBox({
.toLowerCase()
.replace(/\s+/g, '')
.includes(query.toLowerCase().replace(/\s+/g, '')));
- // console.log({ options, selectedOption });
useEffect(() => {
if (selectedOption === null && options.length > 0) {
diff --git a/renderer/src/components/EditorPage/Scribex/Editor.jsx b/renderer/src/components/EditorPage/Scribex/Editor.jsx
index dc4f6d011..5686132b6 100644
--- a/renderer/src/components/EditorPage/Scribex/Editor.jsx
+++ b/renderer/src/components/EditorPage/Scribex/Editor.jsx
@@ -9,7 +9,7 @@ import { ReferenceContext } from '@/components/context/ReferenceContext';
import { ProjectContext } from '@/components/context/ProjectContext';
import EmptyScreen from '@/components/Loading/EmptySrceen';
import {
- insertVerseNumber, insertChapterNumber, insertFootnote, insertXRef,
+ insertVerseNumber, insertChapterNumber, insertFootnote, insertXRef,
} from '@/util/cursorUtils';
import RecursiveBlock from './RecursiveBlock';
@@ -134,45 +134,9 @@ export default function Editor(props) {
if (insertVerseRChapter === 'Cross Reference') {
insertXRef(caretPosition, newVerChapNumber, selectedText);
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [triggerVerseInsert]);
- // useEffect(() => {
- // let pressedKeys = [];
- // const handleKeyDown = (e) => {
- // const copyKeys = ['Control', 'c'];
- // const pasteKeys = ['Control', 'v'];
- // pressedKeys.push(e.key);
- // if (pressedKeys.join('+') === copyKeys.join('+')) {
- // e.preventDefault();
- // copyText();
- // pressedKeys = [];
- // }
- // if (pressedKeys.join('+') === pasteKeys.join('+')) {
- // e.preventDefault();
- // pasteText();
- // pressedKeys = [];
- // }
- // // if (e.key === 's') { console.log("savingssssssssss") }
- // // if (e.key === 'Control' && e.key === 'c') {
- // // console.log("copying")
- // // e.preventDefault();
- // // // Call your custom copy function
- // // copyText();
- // // } else if (e.metaKey && e.key === 'v') {
- // // console.log("pasting")
- // // e.preventDefault();
- // // // Call your custom paste function
- // // pasteText();
- // // }
- // };
-
- // document.addEventListener('keydown', handleKeyDown);
- // return () => {
- // document.removeEventListener('keydown', handleKeyDown);
- // };
- // }, []);
-
const scrollReference = (chapterNumber) => {
const refEditors = document.getElementsByClassName('ref-editor');
refEditors.length > 0 && Array.prototype.filter.call(refEditors, (refEditor) => {
diff --git a/renderer/src/components/EditorPage/Scribex/Popup.jsx b/renderer/src/components/EditorPage/Scribex/Popup.jsx
index 498401eee..7533e8466 100644
--- a/renderer/src/components/EditorPage/Scribex/Popup.jsx
+++ b/renderer/src/components/EditorPage/Scribex/Popup.jsx
@@ -6,7 +6,6 @@ const Popup = ({
handleClose, handleButtonClick, title, isPopupOpen, selectedText,
}) => {
const [number, setNumber] = useState('');
- // console.log({ title }, "title");
const handleInputChange = (event) => {
setNumber(event.target.value);
};
diff --git a/renderer/src/components/EditorPage/Scribex/RecursiveBlock.jsx b/renderer/src/components/EditorPage/Scribex/RecursiveBlock.jsx
index 921136d7a..9a670a79b 100644
--- a/renderer/src/components/EditorPage/Scribex/RecursiveBlock.jsx
+++ b/renderer/src/components/EditorPage/Scribex/RecursiveBlock.jsx
@@ -75,9 +75,7 @@ export default function RecursiveBlock({
const checkCurrentVerse = () => {
if (document.getSelection().rangeCount >= 1 && onReferenceSelected) {
const range = document.getSelection().getRangeAt(0);
- // console.log({ range })
const selectedNode = range.startContainer;
- // console.log({ selectedNode })
const verse = getCurrentVerse(selectedNode);
const chapter = getCurrentChapter(selectedNode);
// if (onReferenceSelected) {
diff --git a/renderer/src/components/Login/Signin.js b/renderer/src/components/Login/Signin.js
index a9b7db2f3..b57623c75 100644
--- a/renderer/src/components/Login/Signin.js
+++ b/renderer/src/components/Login/Signin.js
@@ -19,7 +19,6 @@ const SignIn = () => {
password,
});
if (data.session) {
- console.log('sign in success', data);
await localforage.setItem('userProfile', data);
const userData = await localforage.getItem('userProfile');
console.log({ userData });
@@ -28,7 +27,6 @@ const SignIn = () => {
} else {
setError(signInError);
setLoading(false);
- console.log('sign in error', signInError);
}
};
diff --git a/renderer/src/components/Profile/UserProfile.js b/renderer/src/components/Profile/UserProfile.js
index 8c5be9f40..9259adea2 100644
--- a/renderer/src/components/Profile/UserProfile.js
+++ b/renderer/src/components/Profile/UserProfile.js
@@ -26,6 +26,7 @@ const UserProfile = () => {
// if(!process.env.NEXT_PUBLIC_IS_ELECTRON){
const { error } = await supabaseSignout();
localforage.removeItem('userProfile');
+ // eslint-disable-next-line no-console
error ? console.log({ error }) : router.push('/login');
};
// }
diff --git a/renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js b/renderer/src/components/Projects/CreateProject/AdvancedSettingsDropdown.js
similarity index 99%
rename from renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js
rename to renderer/src/components/Projects/CreateProject/AdvancedSettingsDropdown.js
index eb7bae0dc..b2bcac356 100644
--- a/renderer/src/components/ProjectsPage/CreateProject/AdvancedSettingsDropdown.js
+++ b/renderer/src/components/Projects/CreateProject/AdvancedSettingsDropdown.js
@@ -13,6 +13,7 @@ import LicencePopover from './LicencePopover';
import * as logger from '../../../logger';
import packageInfo from '../../../../../package.json';
import { newPath, sbStorageDownload } from '../../../../../supabase';
+import {} from '../../../lib/license/Custom.md';
function BookNumberTag(props) {
const { children } = props;
@@ -302,7 +303,6 @@ export default function AdvancedSettingsDropdown({ call, project, projectType })
onClick={() => selectCanon(canonList[3])}
role="button"
tabIndex="0"
- aria-label="custom-book"
>
{t('label-custom')}
@@ -351,7 +351,7 @@ export default function AdvancedSettingsDropdown({ call, project, projectType })
projectType === 'OBS' && (
<>
- {t('modal-title-license')}
+ Licence
*
diff --git a/renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js b/renderer/src/components/Projects/CreateProject/CustomCanonSpecification.js
similarity index 99%
rename from renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js
rename to renderer/src/components/Projects/CreateProject/CustomCanonSpecification.js
index 1ad017662..fbe7e7933 100644
--- a/renderer/src/components/ProjectsPage/CreateProject/CustomCanonSpecification.js
+++ b/renderer/src/components/Projects/CreateProject/CustomCanonSpecification.js
@@ -114,7 +114,6 @@ const CustomCanonSpecification = ({ bibleNav, closeBibleNav, handleNav }) => {