From 5ab45017830c10c83cc54243a4c82499a72f8d9d Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Sat, 5 Aug 2023 11:41:29 +0300 Subject: [PATCH] added shortcutter view meta --- akarpov/static/js/clipboard.min.js | 7 +++ akarpov/templates/base.html | 1 + akarpov/templates/files/view.html | 5 +- akarpov/templates/tools/shortener/create.html | 14 ----- .../tools/shortener/list_create.html | 53 +++++++++++++++++++ akarpov/templates/tools/shortener/view.html | 35 +++++++++++- .../migrations/0002_alter_link_options.py | 17 ++++++ .../migrations/0003_linkviewmeta_user.py | 26 +++++++++ .../0004_alter_linkviewmeta_options.py | 17 ++++++ akarpov/tools/shortener/models.py | 24 +++++++-- akarpov/tools/shortener/services.py | 10 ++++ akarpov/tools/shortener/tasks.py | 15 ++++++ akarpov/tools/shortener/urls.py | 3 +- akarpov/tools/shortener/views.py | 51 +++++++++++++----- clipboard.min.js | 7 +++ poetry.lock | 15 +++++- pyproject.toml | 1 + 17 files changed, 267 insertions(+), 34 deletions(-) create mode 100644 akarpov/static/js/clipboard.min.js delete mode 100644 akarpov/templates/tools/shortener/create.html create mode 100644 akarpov/templates/tools/shortener/list_create.html create mode 100644 akarpov/tools/shortener/migrations/0002_alter_link_options.py create mode 100644 akarpov/tools/shortener/migrations/0003_linkviewmeta_user.py create mode 100644 akarpov/tools/shortener/migrations/0004_alter_linkviewmeta_options.py create mode 100644 akarpov/tools/shortener/tasks.py create mode 100644 clipboard.min.js diff --git a/akarpov/static/js/clipboard.min.js b/akarpov/static/js/clipboard.min.js new file mode 100644 index 0000000..c32b5cc --- /dev/null +++ b/akarpov/static/js/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.10 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return o}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),c=n.n(e);function a(t){try{return document.execCommand(t)}catch(t){return}}var f=function(t){t=c()(t);return a("cut"),t};var l=function(t){var e,n,o,r=1
+ {# TODO: add cache for sidebar #}