Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the metadata URL to scribe web site #305

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion renderer/src/components/Sync/Gitea/SyncFromGiteaUtils.js
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ export const importServerProject = async (updateBurrito, repo, sbData, auth, use
});
sbDataObject.idAuthorities = {
scribe: {
id: 'http://www.autographa.org',
id: 'http://www.scribe.bible',
name: {
en: 'Scribe application',
},
2 changes: 2 additions & 0 deletions renderer/src/core/burrito/createAudioSB.js
Original file line number Diff line number Diff line change
@@ -49,6 +49,8 @@ update,
json.identification.name.en = projectFields.projectName;
json.identification.abbreviation.en = projectFields.abbreviation;
json.languages[0].name.en = language;
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
json.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (call === 'edit' && project?.copyright?.shortStatements && (copyright.licence).length <= 500) {
json.copyright.shortStatements[0].statement = copyright.licence;
} else {
2 changes: 2 additions & 0 deletions renderer/src/core/burrito/createObsSB.js
Original file line number Diff line number Diff line change
@@ -47,6 +47,8 @@ update,
json.identification.name.en = projectFields.projectName;
json.identification.abbreviation.en = projectFields.abbreviation;
json.languages[0].name.en = language;
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
json.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (call === 'edit' && project?.copyright?.shortStatements && (copyright.licence).length <= 500) {
json.copyright.shortStatements[0].statement = copyright.licence;
} else {
2 changes: 2 additions & 0 deletions renderer/src/core/burrito/createTranslationSB.js
Original file line number Diff line number Diff line change
@@ -49,6 +49,8 @@ update,
json.identification.name.en = projectFields.projectName;
json.identification.abbreviation.en = projectFields.abbreviation;
json.languages[0].name.en = language;
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
json.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (call === 'edit' && project?.copyright?.shortStatements && (copyright.licence).length <= 500) {
json.copyright.shortStatements[0].statement = copyright.licence;
} else {
2 changes: 1 addition & 1 deletion renderer/src/core/burrito/importBurrito.js
Original file line number Diff line number Diff line change
@@ -234,7 +234,7 @@ const importBurrito = async (filePath, currentUser, updateBurritoVersion, concat
});
metadata.idAuthorities = {
scribe: {
id: 'http://www.autographa.org',
id: 'http://www.scribe.bible',
name: {
en: 'Scribe application',
},
2 changes: 2 additions & 0 deletions renderer/src/layouts/projects/Export/ExportProjectPopUp.js
Original file line number Diff line number Diff line change
@@ -89,6 +89,8 @@ export default function ExportProjectPopUp(props) {
logger.debug('ExportProjectPopUp.js', 'Updated Scripture burrito');
let data = fs.readFileSync(path.join(folder, 'metadata.json'), 'utf-8');
const sb = JSON.parse(data);
// Adding the below line in 0.5.8 version, since the id in the previous versions is autographa.org
sb.idAuthorities.scribe.id = 'http://www.scribe.bible';
if (!sb.copyright?.shortStatements && sb.copyright?.licenses) {
delete sb.copyright.publicDomain;
data = JSON.stringify(sb);
2 changes: 1 addition & 1 deletion renderer/src/lib/AudioBurritoTemplete.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
},
"idAuthorities": {
"scribe": {
"id": "http://www.autographa.org",
"id": "http://www.scribe.bible",
"name": {
"en": "Scribe application"
}
2 changes: 1 addition & 1 deletion renderer/src/lib/BurritoTemplete.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
},
"idAuthorities": {
"scribe": {
"id": "http://www.autographa.org",
"id": "http://www.scribe.bible",
"name": {
"en": "Scribe application"
}
2 changes: 1 addition & 1 deletion renderer/src/lib/OBSTemplete.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
},
"idAuthorities": {
"scribe": {
"id": "http://www.autographa.org",
"id": "http://www.scribe.bible",
"name": {
"en": "Scribe application"
}

Unchanged files with check annotations Beta

});
});
}
}, [owner, languageId]);

Check warning on line 93 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'referenceResources'. Either include it or remove the dependency array

Check warning on line 93 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'referenceResources'. Either include it or remove the dependency array

Check warning on line 93 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'referenceResources'. Either include it or remove the dependency array

Check warning on line 93 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'referenceResources'. Either include it or remove the dependency array
useEffect(() => {
if (referenceResources && referenceResources?.offlineResource?.offline) {
selectedOption && getData();
}
}, [options, selectedOption]);

Check warning on line 157 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has missing dependencies: 'languageId', 'onlineMeta?.data', 'owner', and 'referenceResources'. Either include them or remove the dependency array

Check warning on line 157 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has missing dependencies: 'languageId', 'onlineMeta?.data', 'owner', and 'referenceResources'. Either include them or remove the dependency array

Check warning on line 157 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has missing dependencies: 'languageId', 'onlineMeta?.data', 'owner', and 'referenceResources'. Either include them or remove the dependency array

Check warning on line 157 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has missing dependencies: 'languageId', 'onlineMeta?.data', 'owner', and 'referenceResources'. Either include them or remove the dependency array
useEffect(() => {
selected && setReferenceResources((current) => ({
...current,
offlineResource: { ...current.offlineResource, twSelected: selected },
}));
}, [selected]);

Check warning on line 164 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'setReferenceResources'. Either include it or remove the dependency array. If 'setReferenceResources' changes too often, find the parent component that defines it and wrap that definition in useCallback

Check warning on line 164 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'setReferenceResources'. Either include it or remove the dependency array. If 'setReferenceResources' changes too often, find the parent component that defines it and wrap that definition in useCallback

Check warning on line 164 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'setReferenceResources'. Either include it or remove the dependency array. If 'setReferenceResources' changes too often, find the parent component that defines it and wrap that definition in useCallback

Check warning on line 164 in renderer/src/components/EditorPage/Reference/TW/TwNavigation.js

GitHub Actions / Lint Run

React Hook useEffect has a missing dependency: 'setReferenceResources'. Either include it or remove the dependency array. If 'setReferenceResources' changes too often, find the parent component that defines it and wrap that definition in useCallback
return (
<>