Liyas Thomas 4 years ago
parent
commit
1587a44cd7

+ 4 - 10
assets/css/fonts.scss

@@ -9,7 +9,7 @@
   // Do not use font-display: swap for the icon font - it looks really bad when the page
   // loads.
   font-display: block;
-  src: url("~static/fonts/material-icons-v48.woff2") format("woff2");
+  src: url("~static/fonts/material-icons-v52.woff2") format("woff2");
 }
 
 .material-icons {
@@ -40,9 +40,7 @@
   font-display: swap;
   src: local("Poppins Medium"), local("Poppins-Medium"),
     url("~static/fonts/poppins-v9-latin-500.woff2") format("woff2"),
-    /* Chrome 26+, Opera 23+, Firefox 39+ */
-      url("~static/fonts/poppins-v9-latin-500.woff") format("woff");
-  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
+    url("~static/fonts/poppins-v9-latin-500.woff") format("woff");
 }
 
 /* poppins-700 - latin */
@@ -53,9 +51,7 @@
   font-display: swap;
   src: local("Poppins Bold"), local("Poppins-Bold"),
     url("~static/fonts/poppins-v9-latin-700.woff2") format("woff2"),
-    /* Chrome 26+, Opera 23+, Firefox 39+ */
-      url("~static/fonts/poppins-v9-latin-700.woff") format("woff");
-  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
+    url("~static/fonts/poppins-v9-latin-700.woff") format("woff");
 }
 
 /* roboto-mono-regular - latin */
@@ -66,7 +62,5 @@
   font-display: swap;
   src: local("Roboto Mono"), local("RobotoMono-Regular"),
     url("~static/fonts/roboto-mono-v7-latin-regular.woff2") format("woff2"),
-    /* Chrome 26+, Opera 23+, Firefox 39+ */
-      url("~static/fonts/roboto-mono-v7-latin-regular.woff") format("woff");
-  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
+    url("~static/fonts/roboto-mono-v7-latin-regular.woff") format("woff");
 }

+ 3 - 3
assets/css/styles.scss

@@ -389,7 +389,7 @@ button {
   // justify-content: center;
   margin: 4px;
   padding: 6px 16px;
-  border-radius: 20px;
+  border-radius: 8px;
   background-color: var(--ac-color);
   color: var(--act-color);
   font-size: 16px;
@@ -457,7 +457,7 @@ button {
 
 fieldset {
   margin: 16px 0;
-  border-radius: 16px;
+  border-radius: 8px;
   background-color: var(--bg-dark-color);
   transition: all 0.2s ease-in-out;
 
@@ -814,7 +814,7 @@ ol li {
 section {
   display: flex;
   flex-wrap: wrap;
-  border-radius: 16px;
+  border-radius: 8px;
 }
 
 .toasted-container .toasted {

+ 6 - 6
assets/js/curlparser.js

@@ -7,7 +7,7 @@ import * as querystring from "querystring"
  * output this: 'msg1=value1&msg2=value2'
  * @param dataArguments
  */
-const joinDataArguments = dataArguments => {
+const joinDataArguments = (dataArguments) => {
   let data = ""
   dataArguments.forEach((argument, i) => {
     if (i === 0) {
@@ -19,7 +19,7 @@ const joinDataArguments = dataArguments => {
   return data
 }
 
-const parseCurlCommand = curlCommand => {
+const parseCurlCommand = (curlCommand) => {
   let newlineFound = /\r|\n/.exec(curlCommand)
   if (newlineFound) {
     // remove newlines
@@ -47,7 +47,7 @@ const parseCurlCommand = curlCommand => {
   }
   let headers
 
-  const parseHeaders = headerFieldName => {
+  const parseHeaders = (headerFieldName) => {
     if (parsedArguments[headerFieldName]) {
       if (!headers) {
         headers = {}
@@ -55,7 +55,7 @@ const parseCurlCommand = curlCommand => {
       if (!Array.isArray(parsedArguments[headerFieldName])) {
         parsedArguments[headerFieldName] = [parsedArguments[headerFieldName]]
       }
-      parsedArguments[headerFieldName].forEach(header => {
+      parsedArguments[headerFieldName].forEach((header) => {
         if (header.includes("Cookie")) {
           // stupid javascript tricks: closure
           cookieString = header
@@ -95,7 +95,7 @@ const parseCurlCommand = curlCommand => {
     if (!Array.isArray(parsedArguments.F)) {
       parsedArguments.F = [parsedArguments.F]
     }
-    parsedArguments.F.forEach(multipartArgument => {
+    parsedArguments.F.forEach((multipartArgument) => {
       // input looks like key=value. value could be json or a file path prepended with an @
       const [key, value] = multipartArgument.split("=", 2)
       multipartUploads[key] = value
@@ -103,7 +103,7 @@ const parseCurlCommand = curlCommand => {
   }
   if (cookieString) {
     const cookieParseOptions = {
-      decode: s => s,
+      decode: (s) => s,
     }
     // separate out cookie headers into separate data structure
     // note: cookie is case insensitive

+ 7 - 7
assets/js/oauth.js

@@ -12,7 +12,7 @@ const redirectUri = `${window.location.origin}/`
 
 const sendPostRequest = async (url, params) => {
   const body = Object.keys(params)
-    .map(key => `${key}=${params[key]}`)
+    .map((key) => `${key}=${params[key]}`)
     .join("&")
   const options = {
     method: "post",
@@ -38,11 +38,11 @@ const sendPostRequest = async (url, params) => {
  * @returns {Object}
  */
 
-const parseQueryString = searchQuery => {
+const parseQueryString = (searchQuery) => {
   if (searchQuery === "") {
     return {}
   }
-  const segments = searchQuery.split("&").map(s => s.split("="))
+  const segments = searchQuery.split("&").map((s) => s.split("="))
   const queryString = segments.reduce((obj, el) => ({ ...obj, [el[0]]: el[1] }), {})
   return queryString
 }
@@ -53,7 +53,7 @@ const parseQueryString = searchQuery => {
  * @returns {Object}
  */
 
-const getTokenConfiguration = async endpoint => {
+const getTokenConfiguration = async (endpoint) => {
   const options = {
     method: "GET",
     headers: {
@@ -81,7 +81,7 @@ const getTokenConfiguration = async endpoint => {
 const generateRandomString = () => {
   const array = new Uint32Array(28)
   window.crypto.getRandomValues(array)
-  return Array.from(array, dec => `0${dec.toString(16)}`.substr(-2)).join("")
+  return Array.from(array, (dec) => `0${dec.toString(16)}`.substr(-2)).join("")
 }
 
 /**
@@ -90,7 +90,7 @@ const generateRandomString = () => {
  * @returns {Promise<ArrayBuffer>}
  */
 
-const sha256 = plain => {
+const sha256 = (plain) => {
   const encoder = new TextEncoder()
   const data = encoder.encode(plain)
   return window.crypto.subtle.digest("SHA-256", data)
@@ -121,7 +121,7 @@ const base64urlencode = (
  * @returns {String}
  */
 
-const pkceChallengeFromVerifier = async v => {
+const pkceChallengeFromVerifier = async (v) => {
   const hashed = await sha256(v)
   return base64urlencode(hashed)
 }

+ 2 - 2
assets/js/pwa.js

@@ -18,7 +18,7 @@ export default () => {
 
   //*** If the PWA has not been installed, show the install PWA prompt.. ***//
   let deferredPrompt = null
-  window.addEventListener("beforeinstallprompt", event => {
+  window.addEventListener("beforeinstallprompt", (event) => {
     deferredPrompt = event
 
     // Show the install button if the prompt appeared.
@@ -28,7 +28,7 @@ export default () => {
   })
 
   // When the app is installed, remove install prompts.
-  window.addEventListener("appinstalled", event => {
+  window.addEventListener("appinstalled", (event) => {
     localStorage.setItem("pwaInstalled", "yes")
     pwaInstalled = true
     document.getElementById("installPWA").style.display = "none"

+ 1 - 1
components/collections/collection.vue

@@ -120,7 +120,7 @@ export default {
       this.$store.commit("postwoman/removeCollection", {
         collectionIndex: this.collectionIndex,
       })
-      this.syncCollections();
+      this.syncCollections()
     },
     editFolder(collectionIndex, folder, folderIndex) {
       this.$emit("edit-folder", { collectionIndex, folder, folderIndex })

+ 2 - 2
components/collections/editCollection.vue

@@ -80,8 +80,8 @@ export default {
         collection: collectionUpdated,
         collectionIndex: this.$props.editingCollectionIndex,
       })
-      this.$emit("hide-modal");
-      this.syncCollections();
+      this.$emit("hide-modal")
+      this.syncCollections()
     },
     hideModal() {
       this.$emit("hide-modal")

+ 1 - 1
components/collections/editFolder.vue

@@ -71,7 +71,7 @@ export default {
         folderIndex: this.$props.folderIndex,
       })
       this.hideModal()
-      this.syncCollections();
+      this.syncCollections()
     },
     hideModal() {
       this.$emit("hide-modal")

+ 1 - 1
components/collections/editRequest.vue

@@ -139,7 +139,7 @@ export default {
       })
 
       this.hideModal()
-      this.syncCollections();
+      this.syncCollections()
     },
     hideModal() {
       this.$emit("hide-modal")

+ 1 - 1
components/collections/folder.vue

@@ -106,7 +106,7 @@ export default {
         collectionIndex: this.collectionIndex,
         folderIndex: this.folderIndex,
       })
-      this.syncCollections();
+      this.syncCollections()
     },
     editFolder() {
       this.$emit("edit-folder")

Some files were not shown because too many files changed in this diff