From bbea6116af3061ec7c2777ed590b02581f21ed99 Mon Sep 17 00:00:00 2001 From: Maurice Oegerli Date: Wed, 7 Apr 2021 13:42:32 +0200 Subject: [PATCH 1/2] Add prettier configuration --- .prettierignore | 2 ++ .prettierrc.json | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .prettierignore create mode 100644 .prettierrc.json diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..db4c6d9b --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +dist +node_modules \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..7cf63d9d --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,11 @@ +{ + "singleQuote": false, + "trailingComma": "all", + "semi": true, + "tabWidth": 4, + "embeddedLanguageFormatting": "auto", + "endOfLine": "lf", + "printWidth": 120, + "vueIndentScriptAndStyle": false, + "quoteProps": "as-needed" +} From 8eed88f17fd1e43311508e1e1c3e1ae035dfc697 Mon Sep 17 00:00:00 2001 From: Maurice Oegerli Date: Wed, 7 Apr 2021 13:45:40 +0200 Subject: [PATCH 2/2] Format all code files using the new configuration --- src/App.vue | 8 +- src/Constants.js | 6 +- src/components/Channel.vue | 51 ++---- src/components/Player.vue | 91 ++++------- src/components/Playlist.vue | 53 ++----- src/components/Preferences.vue | 94 +++-------- src/components/SearchResults.vue | 39 ++--- src/components/TrendingPage.vue | 22 +-- src/components/WatchVideo.vue | 66 ++------ src/main.js | 53 +++---- src/registerServiceWorker.js | 28 ++-- src/router/router.js | 65 ++++---- src/utils/DashUtils.js | 265 +++++++++++++++---------------- yarn.lock | 7 +- 14 files changed, 323 insertions(+), 525 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0fca9e1d..16f66d5f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,15 +8,11 @@
- +   - + 13MoHioctZkC7LDSZSb4m32TDT8xNmei1p
diff --git a/src/Constants.js b/src/Constants.js index 838b169e..806ea65d 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -1,4 +1,4 @@ export default { - BASE_URL: localStorage.getItem("instance") || 'https://pipedapi.kavin.rocks', - AUTO_PLAY: localStorage.getItem("autoplay") || false -} + BASE_URL: localStorage.getItem("instance") || "https://pipedapi.kavin.rocks", + AUTO_PLAY: localStorage.getItem("autoplay") || false, +}; diff --git a/src/components/Channel.vue b/src/components/Channel.vue index c7762ccb..b54b2d1f 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -1,14 +1,7 @@