From a064213dbdc31b64882606eca0fc62a6c4f4a8e1 Mon Sep 17 00:00:00 2001 From: Mantas-Skackauskas Date: Tue, 10 May 2022 14:20:28 +0100 Subject: [PATCH 1/4] modified requirements --- requirements-dev-minimal.txt | 1 + requirements-dev.txt | 3 ++- requirements.txt | 6 +----- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/requirements-dev-minimal.txt b/requirements-dev-minimal.txt index b699af7..6d51ffe 100644 --- a/requirements-dev-minimal.txt +++ b/requirements-dev-minimal.txt @@ -5,6 +5,7 @@ ephemeral-port-reserve gunicorn libsass pre-commit>=1.0 +pysass pytest requests requirements-tools diff --git a/requirements-dev.txt b/requirements-dev.txt index 21e0692..80894e0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -26,13 +26,14 @@ pre-commit==2.18.1 py==1.11.0 pycparser==2.21 pyparsing==3.0.8 +pysass==0.1.0 pytest==7.1.1 PyYAML==6.0 readme-renderer==34.0 requests-toolbelt==0.9.1 requirements-tools==2.0.0 rfc3986==2.0.0 -rich==12.2.0 +rich SecretStorage==3.3.1 toml==0.10.2 tomli==2.0.1 diff --git a/requirements.txt b/requirements.txt index e68233b..9844851 100644 --- a/requirements.txt +++ b/requirements.txt @@ -40,6 +40,7 @@ Pygments==2.11.2 pygments-ansi-color==0.0.6 pygments-solarized-style==0.1 pyquery==1.4.3 +pysass==0.1.0 python-dateutil==2.8.2 requests==2.27.1 requests-oauthlib==1.3.1 @@ -47,11 +48,6 @@ rsa==4.8 s3transfer==0.5.2 setuptools==62.1.0 six==1.15.0 -tensorboard==2.8.0 -tensorboard-data-server==0.6.1 -tensorboard-plugin-wit==1.8.1 -tensorflow==2.5.0 -tensorflow-estimator==2.5.0 termcolor==1.1.0 typing-extensions==3.7.4.3 urllib3==1.26.9 From 67efddf5ebad4c62e03e0087b36579109459a3bb Mon Sep 17 00:00:00 2001 From: Mantas-Skackauskas Date: Wed, 11 May 2022 11:12:07 +0100 Subject: [PATCH 2/4] modified dev files for accessing them from the repo --- fluffy/component/backends.py | 2 +- settings/dev_files.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fluffy/component/backends.py b/fluffy/component/backends.py index 28e88eb..1df1453 100644 --- a/fluffy/component/backends.py +++ b/fluffy/component/backends.py @@ -19,7 +19,7 @@ class FileBackend: def _store(self, path_key, obj): path = app.config['STORAGE_BACKEND'][path_key].format(name=obj.name) - with open(path, 'wb') as f: + with open(path, 'wb+') as f: shutil.copyfileobj(obj.open_file, f) obj.open_file.seek(0) diff --git a/settings/dev_files.py b/settings/dev_files.py index c9a6e1e..c0024a3 100644 --- a/settings/dev_files.py +++ b/settings/dev_files.py @@ -2,8 +2,8 @@ # storage backend (how are the files stored after being uploaded?) STORAGE_BACKEND = { 'name': 'file', - 'object_path': 'tmp/object/{name}', - 'html_path': 'tmp/html/{name}', + 'object_path': '/Users/MantasSkackauskas/Documents/fluffy/tmp/object/{name}', + 'html_path': '/Users/MantasSkackauskas/Documents/fluffy/tmp/html/{name}', } # branding From 90cee134b7593eed47a33045425f6653aa85c343 Mon Sep 17 00:00:00 2001 From: Mantas-Skackauskas Date: Wed, 11 May 2022 13:37:14 +0100 Subject: [PATCH 3/4] attempt to get 2 screens for paste and paste output --- fluffy/templates/home.html | 9 +++++---- fluffy/templates/paste.html | 28 +++++++++++++++++++++------- fluffy/views.py | 4 ++++ 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/fluffy/templates/home.html b/fluffy/templates/home.html index 83a072d..8cb012f 100644 --- a/fluffy/templates/home.html +++ b/fluffy/templates/home.html @@ -35,9 +35,10 @@

upload files instead

-

- -

+
+ + +

- +