From 8f0c484930c125ad10f8d6b0f128cab058ef0468 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Mon, 2 Sep 2024 13:51:25 +0200 Subject: [PATCH] fix: updated downloads (new release added) --- app/Livewire/MoleculeDetails.php | 1 + resources/views/errors/401.blade.php | 5 ++ resources/views/errors/402.blade.php | 5 ++ resources/views/errors/403.blade.php | 5 ++ resources/views/errors/404.blade.php | 5 ++ resources/views/errors/419.blade.php | 5 ++ resources/views/errors/429.blade.php | 5 ++ resources/views/errors/500.blade.php | 5 ++ resources/views/errors/503.blade.php | 5 ++ resources/views/errors/layout.blade.php | 53 +++++++++++++++++++++ resources/views/errors/minimal.blade.php | 34 +++++++++++++ resources/views/livewire/download.blade.php | 46 ++++++++++++------ 12 files changed, 160 insertions(+), 14 deletions(-) create mode 100644 resources/views/errors/401.blade.php create mode 100644 resources/views/errors/402.blade.php create mode 100644 resources/views/errors/403.blade.php create mode 100644 resources/views/errors/404.blade.php create mode 100644 resources/views/errors/419.blade.php create mode 100644 resources/views/errors/429.blade.php create mode 100644 resources/views/errors/500.blade.php create mode 100644 resources/views/errors/503.blade.php create mode 100644 resources/views/errors/layout.blade.php create mode 100644 resources/views/errors/minimal.blade.php diff --git a/app/Livewire/MoleculeDetails.php b/app/Livewire/MoleculeDetails.php index 1bf94120..67fa86a0 100644 --- a/app/Livewire/MoleculeDetails.php +++ b/app/Livewire/MoleculeDetails.php @@ -26,6 +26,7 @@ public function rendered() Cache::forget('molecules.'.$id); Cache::rememberForever('molecules.'.$id, function () use ($molecule) { $molecule['schema'] = $molecule->getSchema(); + return $molecule; }); } diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php new file mode 100644 index 00000000..5c586db9 --- /dev/null +++ b/resources/views/errors/401.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Unauthorized')) +@section('code', '401') +@section('message', __('Unauthorized')) diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php new file mode 100644 index 00000000..3bc23efd --- /dev/null +++ b/resources/views/errors/402.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Payment Required')) +@section('code', '402') +@section('message', __('Payment Required')) diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php new file mode 100644 index 00000000..a5506f01 --- /dev/null +++ b/resources/views/errors/403.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Forbidden')) +@section('code', '403') +@section('message', __($exception->getMessage() ?: 'Forbidden')) diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php new file mode 100644 index 00000000..7549540d --- /dev/null +++ b/resources/views/errors/404.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Not Found')) +@section('code', '404') +@section('message', __('Not Found')) diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php new file mode 100644 index 00000000..c09216e2 --- /dev/null +++ b/resources/views/errors/419.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Page Expired')) +@section('code', '419') +@section('message', __('Page Expired')) diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php new file mode 100644 index 00000000..f01b07b8 --- /dev/null +++ b/resources/views/errors/429.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Too Many Requests')) +@section('code', '429') +@section('message', __('Too Many Requests')) diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php new file mode 100644 index 00000000..d9e95d9b --- /dev/null +++ b/resources/views/errors/500.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Server Error')) +@section('code', '500') +@section('message', __('Server Error')) diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php new file mode 100644 index 00000000..c5a9dde1 --- /dev/null +++ b/resources/views/errors/503.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Service Unavailable')) +@section('code', '503') +@section('message', __('Service Unavailable')) diff --git a/resources/views/errors/layout.blade.php b/resources/views/errors/layout.blade.php new file mode 100644 index 00000000..019c2cde --- /dev/null +++ b/resources/views/errors/layout.blade.php @@ -0,0 +1,53 @@ + + + + + + + @yield('title') + + + + + +
+
+
+ @yield('message') +
+
+
+ + diff --git a/resources/views/errors/minimal.blade.php b/resources/views/errors/minimal.blade.php new file mode 100644 index 00000000..db69f254 --- /dev/null +++ b/resources/views/errors/minimal.blade.php @@ -0,0 +1,34 @@ + + + + + + + @yield('title') + + + + + + +
+
+
+
+ @yield('code') +
+ +
+ @yield('message') +
+
+
+
+ + diff --git a/resources/views/livewire/download.blade.php b/resources/views/livewire/download.blade.php index e0119ba4..2bebccf4 100644 --- a/resources/views/livewire/download.blade.php +++ b/resources/views/livewire/download.blade.php @@ -34,7 +34,7 @@ class="mx-auto w-full max-w-2xl border-t border-gray-900/10 pt-12 sm:pt-16 lg:mx
+ September 2024

COCONUT data is released under @@ -47,9 +47,9 @@ class="mx-auto w-full max-w-2xl border-t border-gray-900/10 pt-12 sm:pt-16 lg:mx Natural Products - SDF

- Download - (coconut-08-2024.sdf / 297.1 MB) + (coconut-09-2024.sdf / 297.1 MB)
@@ -57,9 +57,9 @@ class="text-sm font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Do Complete (active/inactive) COCONUT dataset
- Download - (coconut-08-2024.sql / 1.82 GB) + (coconut-09-2024.sql / 1.82 GB)
@@ -67,15 +67,24 @@ class="text-sm font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Do Natural Products - CSV format
- Download - (coconut-08-2024.csv / 88.9 MB) + (coconut-09-2024.csv / 88.9 MB)
+
+ +
@@ -94,6 +103,9 @@ class="absolute inset-0 h-full w-full rounded-2xl bg-gray-50 object-cover">
Version: + August 2024 + Fragment Analysis
@@ -117,7 +129,7 @@ class="mt-3 text-lg font-semibold leading-7 text-gray-900 group-hover:text-gray-

Fragments_Ertl_algorithm.csv Download generalized Ertl algorithm functional @@ -133,7 +145,7 @@ class="text-sm font-semibold leading-6 text-indigo-600 hover:text-indigo-500">

Items_Ertl_algorithm.csv Download COCONUT @@ -150,7 +162,7 @@ functional groups as canonical SMILES codes (stereochemistry

Fragments_Scaffold_Generator.csv Download molecular @@ -166,7 +178,7 @@ class="text-sm font-semibold leading-6 text-indigo-600 hover:text-indigo-500">

Items_Scaffold_Generator.csv Download COCONUT @@ -182,7 +194,7 @@ class="text-sm font-semibold leading-6 text-indigo-600 hover:text-indigo-500">

Fragments_Scaffold_Generator_Scafold_tree.csv @@ -201,7 +213,7 @@ class="text-sm font-semibold leading-6 text-indigo-600 hover:text-indigo-500">

Items_Scaffold_Generator_Scafold_tree.csv @@ -240,6 +252,9 @@ class="absolute inset-0 h-full w-full rounded-2xl bg-gray-50 object-cover">
+ Version: + August 2024 Drug Discovery @@ -267,7 +282,7 @@ class="mt-3 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-
Download A text file containing the latest COCONUT IDs, @@ -287,6 +302,9 @@ class="absolute inset-0 h-full w-full rounded-2xl bg-gray-50 object-cover">
+ Version: + September 2024 Mass Spec