diff --git a/assets/css/themes.scss b/assets/css/themes.scss index 11606549b..d611740f3 100644 --- a/assets/css/themes.scss +++ b/assets/css/themes.scss @@ -10,6 +10,8 @@ --bg-dark-color: #000000; // Background color --bg-color: #121212; + // Auto-complete color + --atc-color: #212121; // Text color --fg-color: #FFF; @@ -26,6 +28,8 @@ --bg-dark-color: #ffffff; // Background color --bg-color: #F6F8FA; + // Auto-complete color + --atc-color: #F1F1F1; // Text color --fg-color: #121212; @@ -36,4 +40,4 @@ --ac-color: #51FF0D; // Active text color --act-color: #121212; -} \ No newline at end of file +} diff --git a/components/autocomplete.vue b/components/autocomplete.vue new file mode 100644 index 000000000..0ec662627 --- /dev/null +++ b/components/autocomplete.vue @@ -0,0 +1,190 @@ + + + + + + + + {{ suggestion }} + + + + + + + + diff --git a/package-lock.json b/package-lock.json index 1886a6dc1..fce563864 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10121,6 +10121,11 @@ "resolved": "https://registry.npmjs.org/vue-virtual-scroll-list/-/vue-virtual-scroll-list-1.4.2.tgz", "integrity": "sha512-jcXl1cYDxGZX+aF9vsUauXWnUkXm8oQxnvLTJ8UMTmMxwzbmlHX7vs0xGDdEej91vJpBNrdNNseWPxboTvI+UA==" }, + "vuejs-auto-complete": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/vuejs-auto-complete/-/vuejs-auto-complete-0.9.0.tgz", + "integrity": "sha512-7UV3s9bXdnsbGARhHcOuDAszGUsz7JpsFKBfHQuQvo4rfH0yQIru2Rb/x2bWU+m+VW4fS9DKDSYi6tY511QSIA==" + }, "vuex": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.1.tgz", diff --git a/package.json b/package.json index 06ba5fa06..4c6dbad63 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,12 @@ "author": "liyasthomas", "private": true, "scripts": { - "predev": "node build.js --dev", + "predev": "node build.js --dev", "dev": "nuxt", - - "prebuild": "node build.js", + "prebuild": "node build.js", "build": "nuxt build", "start": "nuxt start", - - "pregenerate": "node build.js", + "pregenerate": "node build.js", "generate": "nuxt generate" }, "dependencies": { @@ -20,6 +18,7 @@ "@nuxtjs/pwa": "^3.0.0-0", "nuxt": "^2.0.0", "vue-virtual-scroll-list": "^1.4.2", + "vuejs-auto-complete": "^0.9.0", "vuex-persist": "^2.0.1" }, "devDependencies": { diff --git a/pages/index.vue b/pages/index.vue index d782a9b0b..0e8df6321 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,560 +1,589 @@ - - - - - Method - - GET - HEAD - POST - PUT - DELETE - OPTIONS - PATCH - - - - URL - - - - Path - - - - - Send Again - - - - - - - Content Type - - application/json - www-form/urlencoded - - - - Raw Input + + + + + Method + + GET + HEAD + POST + PUT + DELETE + OPTIONS + PATCH + + + + URL + + + + Path + + + + + Send Again + + + + + + + Content Type + + + + Raw input {{ rawInput ? "enabled" : "disabled" }} + - - - - - - Key {{index + 1}} - - - - Value {{index + 1}} - - - - - Remove - - - - - Action - Add - - - - - Parameter List - {{rawRequestBody || '(add at least one parameter)'}} - - - - - - - - - - - Authentication Type - - None - Basic - Bearer Token - - - - - - User - - - - Password - - - - - - Token - - - - - - - - Key {{index + 1}} - - - - Value {{index + 1}} - - - - - Remove - - - - - Action - Add - - - - - Header List - {{headerString || '(add at least one header)'}} - - - - - - - Key {{index + 1}} - - - - Value {{index + 1}} - - - - - Remove - - - - - Action - Add - - - - - Parameter List - {{queryString || '(add at least one parameter)'}} - - - - - - - status - - - - - - {{key}} - - - - - - - response - Copy Response - - - {{response.body || '(waiting to send request)'}} - - - - {{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }} - - - - - - + + + + + + Key {{index + 1}} + + + + Value {{index + 1}} + + + + + Remove + + + + + Action + Add + + + + + Parameter List + {{rawRequestBody || '(add at least one parameter)'}} + + + + + + + + + + + Authentication Type + + None + Basic + Bearer Token + + + + + + User + + + + Password + + + + + + Token + + + + + + + + Key {{index + 1}} + + + + Value {{index + 1}} + + + + + Remove + + + + + Action + Add + + + + + Header List + {{headerString || '(add at least one header)'}} + + + + + + + Key {{index + 1}} + + + + Value {{index + 1}} + + + + + Remove + + + + + Action + Add + + + + + Parameter List + {{queryString || '(add at least one parameter)'}} + + + + + + + status + + + + + + {{key}} + + + + + + + response + Copy Response + + + {{response.body || '(waiting to send request)'}} + + + + {{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }} + + + + + +