diff --git a/database/scripts/sync_index.sql b/database/scripts/sync_index.sql new file mode 100644 index 00000000..6fe93e66 --- /dev/null +++ b/database/scripts/sync_index.sql @@ -0,0 +1,50 @@ +SELECT setval('announcements_id_seq', max(id)) FROM announcements; +SELECT setval('assays_id_seq', max(id)) FROM assays; +SELECT setval('audits_id_seq', max(id)) FROM audits; +SELECT setval('author_project_id_seq', max(id)) FROM author_project; +SELECT setval('authors_id_seq', max(id)) FROM authors; +SELECT setval('citation_project_id_seq', max(id)) FROM citation_project; +SELECT setval('citations_id_seq', max(id)) FROM citations; +SELECT setval('dataset_invitations_id_seq', max(id)) FROM dataset_invitations; +SELECT setval('dataset_molecule_id_seq', max(id)) FROM dataset_molecule; +SELECT setval('dataset_user_id_seq', max(id)) FROM dataset_user; +SELECT setval('datasets_id_seq', max(id)) FROM datasets; +SELECT setval('drafts_id_seq', max(id)) FROM drafts; +SELECT setval('failed_jobs_id_seq', max(id)) FROM failed_jobs; +SELECT setval('file_system_objects_id_seq', max(id)) FROM file_system_objects; +SELECT setval('licenses_id_seq', max(id)) FROM licenses; +SELECT setval('linked_social_accounts_id_seq', max(id)) FROM linked_social_accounts; +SELECT setval('markable_reactions_id_seq', max(id)) FROM markable_reactions; +SELECT setval('markable_likes_id_seq', max(id)) FROM markable_likes; +SELECT setval('markable_favorites_id_seq', max(id)) FROM markable_favorites; +SELECT setval('markable_bookmarks_id_seq', max(id)) FROM markable_bookmarks; +SELECT setval('migrations_id_seq', max(id)) FROM migrations; +-- model_has_permissions -- combi +-- model_has_roles SELECT setval('molecule_sample_id_seq', max(id)) FROM molecule_sample; -- combi +SELECT setval('molecule_sample_id_seq', max(id)) FROM molecule_sample; +SELECT setval('molecules_id_seq', max(id)) FROM molecules; +SELECT setval('nmrium_id_seq', max(id)) FROM nmrium; +-- SELECT setval('notifications_id_seq', max(id)) FROM notifications; UUID +-- SELECT setval('password_resets_id_seq', max(id)) FROM password_resets; no pkey +SELECT setval('permissions_id_seq', max(id)) FROM permissions; +SELECT setval('personal_access_tokens_id_seq', max(id)) FROM personal_access_tokens; +SELECT setval('project_invitations_id_seq', max(id)) FROM project_invitations; +SELECT setval('project_user_id_seq', max(id)) FROM project_user; +SELECT setval('projects_id_seq', max(id)) FROM projects; +-- role_has_permissions SELECT setval('role_has_permissions_id_seq', max(id)) FROM role_has_permissions; -- combi +SELECT setval('roles_id_seq', max(id)) FROM roles; +SELECT setval('samples_id_seq', max(id)) FROM samples; +-- SELECT setval('sessions_id_seq', max(id)) FROM sessions; UUID +SELECT setval('studies_id_seq', max(id)) FROM studies; +SELECT setval('study_invitations_id_seq', max(id)) FROM study_invitations; +SELECT setval('study_user_id_seq', max(id)) FROM study_user; +-- SELECT setval('taggables_id_seq', max(id)) FROM taggables; no pkey +SELECT setval('tags_id_seq', max(id)) FROM tags; +SELECT setval('team_invitations_id_seq', max(id)) FROM team_invitations; +SELECT setval('team_user_id_seq', max(id)) FROM team_user; +SELECT setval('teams_id_seq', max(id)) FROM teams; +SELECT setval('templates_id_seq', max(id)) FROM templates; +SELECT setval('tickers_id_seq', max(id)) FROM tickers; +SELECT setval('users_id_seq', max(id)) FROM users; +SELECT setval('validations_id_seq', max(id)) FROM validations; +SELECT setval('versions_version_id_seq', max(version_id)) FROM versions; \ No newline at end of file diff --git a/resources/js/Layouts/AppLayout.vue b/resources/js/Layouts/AppLayout.vue index c46e6c7a..b33879ef 100644 --- a/resources/js/Layouts/AppLayout.vue +++ b/resources/js/Layouts/AppLayout.vue @@ -59,7 +59,7 @@
- + diff --git a/resources/js/Pages/Publish.vue b/resources/js/Pages/Publish.vue index b703951e..32a9c19e 100644 --- a/resources/js/Pages/Publish.vue +++ b/resources/js/Pages/Publish.vue @@ -865,21 +865,20 @@ export default { updateProject() { if (this.publishForm.enableProjectMode) { this.loadingStep = true; - axios - .put(route("dashboard.project.update", this.project.id), { - name: this.publishForm.project.name, - description: this.publishForm.project.description, - tags: this.publishForm.project.tags, - tags_array: this.publishForm.project.tags - ? this.publishForm.project.tags.map((a) => a.text) - : [], - license_id: this.license ? this.license.id : null, - species: this.publishForm.project.species, - release_date: this.publishForm.releaseDate, - }) - .then((res) => { - console.log("success"); - }); + axios.put(route("dashboard.project.update", this.project.id), { + name: this.publishForm.project.name, + description: this.publishForm.project.description, + tags: this.publishForm.project.tags, + tags_array: this.publishForm.project.tags + ? this.publishForm.project.tags.map((a) => a.text) + : [], + license_id: this.license ? this.license.id : null, + species: this.publishForm.project.species, + release_date: this.publishForm.releaseDate, + }); + // .then((res) => { + // console.log("success"); + // }); } }, updateSpecies(species) { @@ -930,8 +929,6 @@ export default { "\n " + molecule.MOL.replaceAll('"', "") ); return mol.toSVG(200, 200); - } else { - console.log(molecule); } }, toggleManageAuthor() { diff --git a/resources/js/Pages/Upload.vue b/resources/js/Pages/Upload.vue index e82b898a..6cfbab65 100644 --- a/resources/js/Pages/Upload.vue +++ b/resources/js/Pages/Upload.vue @@ -2541,7 +2541,7 @@ export default { }), smiles: "", - percentage: 1, + percentage: 100, editor: null, studyForm: this.$inertia.form({ @@ -2778,7 +2778,6 @@ export default { this.hasStudies(this.$refs.fsbRef.file); this.fetchProjectDetails().then( (response) => { - console.log(response); this.loadingStep = false; this.project = response.data.project; this.studies = response.data.studies; @@ -3175,7 +3174,7 @@ export default { // } }, updateLoadingStatus(status) { - console.log(status); + // console.log(status); this.loading = status; }, fetchDrafts() { diff --git a/resources/js/Shared/Children.vue b/resources/js/Shared/Children.vue index 01852616..f8ff6d43 100644 --- a/resources/js/Shared/Children.vue +++ b/resources/js/Shared/Children.vue @@ -22,7 +22,7 @@ - - - - - {{ file.name }} - +
@@ -113,10 +113,12 @@ displaySelected(sfile) " > - + + + +
+
+

+ -- molecule(s) information + missing -- +

+
+
+
diff --git a/resources/js/Shared/StudyInfo.vue b/resources/js/Shared/StudyInfo.vue index a385113c..f36fa582 100644 --- a/resources/js/Shared/StudyInfo.vue +++ b/resources/js/Shared/StudyInfo.vue @@ -135,9 +135,6 @@ export default { ); return mol.toSVG(200, 200); } - // else { - // console.log(molecule); - // } }, }, }; diff --git a/resources/js/Shared/Submission.vue b/resources/js/Shared/Submission.vue index 4b5ac78a..9860b3e8 100644 --- a/resources/js/Shared/Submission.vue +++ b/resources/js/Shared/Submission.vue @@ -1989,8 +1989,6 @@ export default { "\n " + molecule.MOL.replaceAll('"', "") ); return mol.toSVG(200, 200); - } else { - console.log(molecule); } }, autoGenerateDescription() { diff --git a/routes/web.php b/routes/web.php index bd1b46b9..b2952034 100644 --- a/routes/web.php +++ b/routes/web.php @@ -39,9 +39,9 @@ }); Route::get('/', function () { - if (Auth::check()) { - return redirect()->route('dashboard'); - } else { + // if (Auth::check()) { + // return redirect()->route('dashboard'); + // } else { return Inertia::render('Welcome', [ 'spectra' => Cache::rememberForever('stats.spectra', function () { return Dataset::where('is_public', true)->get()->count(); @@ -56,7 +56,7 @@ return Dataset::where('is_public', true)->get()->unique('type')->count(); }), ]); - } + // } })->name('welcome'); Route::supportBubble();