From dfc30468cf814b9333c68c2dad3bfcd2fdb08aef Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Thu, 16 Apr 2020 19:57:34 +0200 Subject: [PATCH] re-organized js files, first attempt of adding Vue SFC --- .jsbeautifyrc | 27 +- .prettierrc | 4 +- public/index.html | 28 +- public/js/app/app.js | 249 +++++------ public/js/app/components/App.vue | 20 + public/js/app/downloadList.js | 156 +++---- public/js/app/search.js | 203 +++++---- public/js/app/utils.js | 27 +- public/js/app/v-app.js | 5 + public/js/vendor/httpVueLoader.js | 478 +++++++++++++++++++++ public/js/{ => vendor}/i18n.min.js | 0 public/js/{ => vendor}/jquery-3.3.1.min.js | 0 public/js/{ => vendor}/socket.io.js | 0 public/js/{ => vendor}/socket.io.js.map | 0 public/js/{ => vendor}/toastify.js | 0 public/js/{ => vendor}/vue.min.js | 0 16 files changed, 875 insertions(+), 322 deletions(-) create mode 100644 public/js/app/components/App.vue create mode 100644 public/js/app/v-app.js create mode 100644 public/js/vendor/httpVueLoader.js rename public/js/{ => vendor}/i18n.min.js (100%) rename public/js/{ => vendor}/jquery-3.3.1.min.js (100%) mode change 100755 => 100644 rename public/js/{ => vendor}/socket.io.js (100%) rename public/js/{ => vendor}/socket.io.js.map (100%) mode change 100755 => 100644 rename public/js/{ => vendor}/toastify.js (100%) rename public/js/{ => vendor}/vue.min.js (100%) mode change 100755 => 100644 diff --git a/.jsbeautifyrc b/.jsbeautifyrc index f06aeab..09a846d 100644 --- a/.jsbeautifyrc +++ b/.jsbeautifyrc @@ -1,14 +1,19 @@ { "css": { - "allowed_file_extensions": ["css", "scss", "sass", "less"], - "end_with_newline": true, - "indent_char": " ", - "indent_size": 2, - "indent_with_tabs": true, - "newline_between_rules": true, - "selector_separator": " ", - "selector_separator_newline": true, - "preserve_newlines": true, - "max_preserve_newlines": 10 + "allowed_file_extensions": [ + "css", + "scss", + "sass", + "less" + ], + "end_with_newline": true, + "indent_char": " ", + "indent_size": 2, + "indent_with_tabs": true, + "newline_between_rules": true, + "selector_separator": " ", + "selector_separator_newline": true, + "preserve_newlines": true, + "max_preserve_newlines": 10 } -} \ No newline at end of file +} diff --git a/.prettierrc b/.prettierrc index 7b1117a..f8bc8d6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,9 +1,11 @@ { - "tabWidth": 2, "useTabs": true, + "tabWidth": 2, "semi": false, "singleQuote": true, "bracketSpacing": true, + "trailingComma": "none", + "printWidth": 120, "arrowParens": "avoid", "vueIndentScriptAndStyle": false } \ No newline at end of file diff --git a/public/index.html b/public/index.html index 986607b..b1983a5 100644 --- a/public/index.html +++ b/public/index.html @@ -42,6 +42,9 @@ +
+ +