diff --git a/package-lock.json b/package-lock.json index e247c1a..88b67d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "loquendo-bot", - "version": "2.0.0", + "version": "2.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "loquendo-bot", - "version": "2.0.0", + "version": "2.1.0", "license": "ISC", "dependencies": { "axios": "^1.4.0", @@ -15,6 +15,7 @@ "franc": "^6.1.0", "i18next-electron-language-detector": "^0.0.10", "ini": "^2.0.0", + "kill-port": "^2.0.1", "langdetect": "^0.2.1", "node-google-tts-api": "^1.1.1", "querystring": "^0.2.1", @@ -3331,6 +3332,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-them-args": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/get-them-args/-/get-them-args-1.3.2.tgz", + "integrity": "sha512-LRn8Jlk+DwZE4GTlDbT3Hikd1wSHgLMme/+7ddlqKd7ldwR6LjJgTVWzBnR01wnYGe4KgrXjg287RaI22UHmAw==" + }, "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -4013,6 +4019,18 @@ "json-buffer": "3.0.1" } }, + "node_modules/kill-port": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/kill-port/-/kill-port-2.0.1.tgz", + "integrity": "sha512-e0SVOV5jFo0mx8r7bS29maVWp17qGqLBZ5ricNSajON6//kmb7qqqNnml4twNE8Dtj97UQD+gNFOaipS/q1zzQ==", + "dependencies": { + "get-them-args": "1.3.2", + "shell-exec": "1.0.2" + }, + "bin": { + "kill-port": "cli.js" + } + }, "node_modules/kuler": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", @@ -5899,6 +5917,11 @@ "node": ">=8" } }, + "node_modules/shell-exec": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/shell-exec/-/shell-exec-1.0.2.tgz", + "integrity": "sha512-jyVd+kU2X+mWKMmGhx4fpWbPsjvD53k9ivqetutVW/BQ+WIZoDoP4d8vUMGezV6saZsiNoW2f9GIhg9Dondohg==" + }, "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", diff --git a/package.json b/package.json index a4fca9f..b88cd65 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "franc": "^6.1.0", "i18next-electron-language-detector": "^0.0.10", "ini": "^2.0.0", + "kill-port": "^2.0.1", "langdetect": "^0.2.1", "node-google-tts-api": "^1.1.1", "querystring": "^0.2.1", @@ -45,4 +46,4 @@ "@electron-forge/plugin-auto-unpack-natives": "^6.2.1", "electron": "25.4.0" } -} \ No newline at end of file +} diff --git a/src/css/chat.css b/src/css/chat.css index b205162..b41a751 100644 --- a/src/css/chat.css +++ b/src/css/chat.css @@ -369,7 +369,7 @@ select { .AdvancedMenu { border: 1px var(--main-color2) solid; margin-top: 10px; - width: 300px; + min-width: 555px; border-radius: 5px; border-radius: 5px; } @@ -377,6 +377,8 @@ select { .legendStyle { margin-left: 1em; padding: 0.2em 0.8em; + display: flex; + align-items: center; } .AdvancedMenuRow { diff --git a/src/css/logger.css b/src/css/logger.css index 5deb96a..6b40515 100644 --- a/src/css/logger.css +++ b/src/css/logger.css @@ -14,15 +14,15 @@ td { } .info { - background-color: lightblue; + background-color: lightblue !important; } .warn { - background-color: yellow; + background-color: #f39c12 !important; } .error { - background-color: lightcoral; + background-color: #e74c3c !important; } #logTable { diff --git a/src/css/menu.css b/src/css/menu.css index 640884b..0a5b65d 100644 --- a/src/css/menu.css +++ b/src/css/menu.css @@ -28,6 +28,7 @@ .OptionPanel.show { display: block; + overflow: auto; } .menu { diff --git a/src/css/sliders.css b/src/css/sliders.css index fed7173..f9eea45 100644 --- a/src/css/sliders.css +++ b/src/css/sliders.css @@ -1,184 +1,179 @@ /*generated with Input range slider CSS style generator (version 20211225) https://toughengineer.github.io/demo/slider-styler*/ -input[type=range].styled-slider { - /* height: 500px; */ - background: transparent; - -webkit-appearance: none; - width: 300px; +input[type='range'].styled-slider { + /* height: 500px; */ + background: transparent; + -webkit-appearance: none; + width: 300px; } /*progress support*/ -input[type=range].styled-slider.slider-progress1 { - --range: calc(var(--max) - var(--min)); - --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); - --sx: calc(0.5* 2em + var(--ratio) * (100% - 2em)); +input[type='range'].styled-slider.slider-progress1 { + --range: calc(var(--max) - var(--min)); + --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); + --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); } -input[type=range].styled-slider.slider-progress2 { - --range: calc(var(--max) - var(--min)); - --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); - --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); +input[type='range'].styled-slider.slider-progress2 { + --range: calc(var(--max) - var(--min)); + --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); + --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); } -input[type=range].styled-slider.slider-progress3 { - --range: calc(var(--max) - var(--min)); - --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); - --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); +input[type='range'].styled-slider.slider-progress3 { + --range: calc(var(--max) - var(--min)); + --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); + --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); } -input[type=range].styled-slider.slider-progress4 { - --range: calc(var(--max) - var(--min)); - --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); - --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); +input[type='range'].styled-slider.slider-progress4 { + --range: calc(var(--max) - var(--min)); + --ratio: calc((var(--tiempotemporal) - var(--min)) / var(--range)); + --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em)); } /*webkit*/ -input[type=range].styled-slider::-webkit-slider-thumb { - -webkit-appearance: none; - width: 2em; - height: 40px; - border-radius: 20px; - background: #FFFFFF; - border: none; - box-shadow: 0 0 2px black; - margin-top: calc(2em * 0.5 - 2em * 0.5); +input[type='range'].styled-slider::-webkit-slider-thumb { + -webkit-appearance: none; + width: 2em; + height: 40px; + border-radius: 20px; + background: #ffffff; + border: none; + box-shadow: 0 0 2px black; + margin-top: calc(2em * 0.5 - 2em * 0.5); } -input[type=range].styled-slider::-webkit-slider-runnable-track { - height: 40px; - border: none; - border-radius: 20px; - background: #1a1a1a; - box-shadow: none; +input[type='range'].styled-slider::-webkit-slider-runnable-track { + height: 40px; + border: none; + border-radius: 20px; + background: #1a1a1a; + box-shadow: none; } -input[type=range].styled-slider.slider-progress1::-webkit-slider-runnable-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #1a1a1a; - ; +input[type='range'].styled-slider.slider-progress1::-webkit-slider-runnable-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #1a1a1a; } -input[type=range].styled-slider.slider-progress2::-webkit-slider-runnable-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #1a1a1a; - ; +input[type='range'].styled-slider.slider-progress2::-webkit-slider-runnable-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #1a1a1a; } -input[type=range].styled-slider.slider-progress3::-webkit-slider-runnable-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #1a1a1a; - ; +input[type='range'].styled-slider.slider-progress3::-webkit-slider-runnable-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #1a1a1a; } -input[type=range].styled-slider.slider-progress4::-webkit-slider-runnable-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #1a1a1a; - ; +input[type='range'].styled-slider.slider-progress4::-webkit-slider-runnable-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #1a1a1a; } /*mozilla*/ -input[type=range].styled-slider::-moz-range-thumb { - width: 2em; - height: 40px; - border-radius: 20px; - background: #FFFFFF; - border: none; - box-shadow: 0 0 2px black; +input[type='range'].styled-slider::-moz-range-thumb { + width: 2em; + height: 40px; + border-radius: 20px; + background: #ffffff; + border: none; + box-shadow: 0 0 2px black; } -input[type=range].styled-slider::-moz-range-track { - height: 40px; - border: none; - border-radius: 20px; - background: #1a1a1a; - box-shadow: none; +input[type='range'].styled-slider::-moz-range-track { + height: 40px; + border: none; + border-radius: 20px; + background: #1a1a1a; + box-shadow: none; } -input[type=range].styled-slider.slider-progress1::-moz-range-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #464646; +input[type='range'].styled-slider.slider-progress1::-moz-range-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #464646; } -input[type=range].styled-slider.slider-progress2::-moz-range-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #464646; +input[type='range'].styled-slider.slider-progress2::-moz-range-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #464646; } -input[type=range].styled-slider.slider-progress3::-moz-range-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #464646; +input[type='range'].styled-slider.slider-progress3::-moz-range-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #464646; } -input[type=range].styled-slider.slider-progress4::-moz-range-track { - background: linear-gradient(#7b2cbf, #7b2cbf) 0/var(--sx) 100% no-repeat, #464646; +input[type='range'].styled-slider.slider-progress4::-moz-range-track { + background: linear-gradient(#7b2cbf, #7b2cbf) 0 / var(--sx) 100% no-repeat, #464646; } /*ms*/ -input[type=range].styled-slider::-ms-fill-upper { - background: transparent; - border-color: transparent; +input[type='range'].styled-slider::-ms-fill-upper { + background: transparent; + border-color: transparent; } -input[type=range].styled-slider::-ms-fill-lower { - background: transparent; - border-color: transparent; +input[type='range'].styled-slider::-ms-fill-lower { + background: transparent; + border-color: transparent; } -input[type=range].styled-slider::-ms-thumb { - width: 2em; - height: 40px; - border-radius: 20px; - background: #FFFFFF; - border: none; - box-shadow: 0 0 2px black; - margin-top: 0; - box-sizing: border-box; +input[type='range'].styled-slider::-ms-thumb { + width: 2em; + height: 40px; + border-radius: 20px; + background: #ffffff; + border: none; + box-shadow: 0 0 2px black; + margin-top: 0; + box-sizing: border-box; } -input[type=range].styled-slider::-ms-track { - height: 40px; - border-radius: 20px; - background: #1a1a1a; - border: none; - box-shadow: none; - box-sizing: border-box; +input[type='range'].styled-slider::-ms-track { + height: 40px; + border-radius: 20px; + background: #1a1a1a; + border: none; + box-shadow: none; + box-sizing: border-box; } -input[type=range].styled-slider.slider-progress1::-ms-fill-lower { - height: 40px; - border-radius: 1em 0 0 1em; - margin: -undefined 0 -undefined -undefined; - background: #7b2cbf; - border: none; - border-right-width: 0; +input[type='range'].styled-slider.slider-progress1::-ms-fill-lower { + height: 40px; + border-radius: 1em 0 0 1em; + margin: -undefined 0 -undefined -undefined; + background: #7b2cbf; + border: none; + border-right-width: 0; } -input[type=range].styled-slider.slider-progress2::-ms-fill-lower { - height: 40px; - border-radius: 1em 0 0 1em; - margin: -undefined 0 -undefined -undefined; - background: #7b2cbf; - border: none; - border-right-width: 0; +input[type='range'].styled-slider.slider-progress2::-ms-fill-lower { + height: 40px; + border-radius: 1em 0 0 1em; + margin: -undefined 0 -undefined -undefined; + background: #7b2cbf; + border: none; + border-right-width: 0; } -input[type=range].styled-slider.slider-progress3::-ms-fill-lower { - height: 40px; - border-radius: 1em 0 0 1em; - margin: -undefined 0 -undefined -undefined; - background: #7b2cbf; - border: none; - border-right-width: 0; +input[type='range'].styled-slider.slider-progress3::-ms-fill-lower { + height: 40px; + border-radius: 1em 0 0 1em; + margin: -undefined 0 -undefined -undefined; + background: #7b2cbf; + border: none; + border-right-width: 0; } -input[type=range].styled-slider.slider-progress4::-ms-fill-lower { - height: 40px; - border-radius: 1em 0 0 1em; - margin: -undefined 0 -undefined -undefined; - background: #7b2cbf; - border: none; - border-right-width: 0; +input[type='range'].styled-slider.slider-progress4::-ms-fill-lower { + height: 40px; + border-radius: 1em 0 0 1em; + margin: -undefined 0 -undefined -undefined; + background: #7b2cbf; + border: none; + border-right-width: 0; } .inputBox { - border: none; - width: 50px; - border-radius: 10px; - text-align: center; - font-size: 14pt; - font-weight: bold; - margin-left: 10px; -} \ No newline at end of file + border: none; + width: 38px; + border-radius: 10px; + text-align: center; + font-size: 14pt; + font-weight: bold; +} diff --git a/src/css/tabs.css b/src/css/tabs.css index 7d147fe..47cef1b 100644 --- a/src/css/tabs.css +++ b/src/css/tabs.css @@ -73,7 +73,7 @@ section { .scale { height: 2em; width: 2em; - vertical-align: bottom + vertical-align: bottom; } .tab { @@ -83,15 +83,14 @@ section { cursor: pointer; } -input:checked+label { - border-top-color: #FFB03D; - border-right-color: #DDD; - border-left-color: #DDD; +input:checked + label { + border-top-color: #ffb03d; + border-right-color: #ddd; + border-left-color: #ddd; border-bottom-color: transparent; text-decoration: none; } - /* --------------------------------- */ .radius { @@ -129,13 +128,13 @@ input:checked+label { .tabx-bar .tabx::before { position: absolute; - content: ""; + content: ''; width: 26%; height: 13%; border-top-left-radius: 200px; border-top-right-radius: 200px; border-bottom: none; - background-color: #607D8B; + background-color: #607d8b; /* bottom: -8px; */ opacity: 0; transition: all 0.3s ease-in-out; @@ -153,7 +152,8 @@ input:checked+label { bottom: 0px; } -.tabx-bar .tabx::after {} +.tabx-bar .tabx::after { +} .tabx-bar .tabx:hover { padding-bottom: 10px; @@ -192,7 +192,7 @@ input:checked+label { } select { - font-size: .9rem; + font-size: 0.9rem; height: 40px; border-radius: 20px; background-color: var(--main-color3); @@ -258,7 +258,7 @@ select { padding-left: 10px; } -input[type="password"] { +input[type='password'] { background: var(--main-color3); border: none; height: 40px; @@ -272,7 +272,19 @@ input[type="password"] { /* To make space for the reveal button */ } -input[type="lol"] { +input[type='url'] { + background: var(--main-color3); + border: none; + height: 40px; + border-radius: 40px; + width: 260px; + outline: none; + color: var(--main-color2); + font-size: 10pt; + margin-left: 10px; +} + +input[type='lol'] { background: var(--main-color3); border: none; height: 40px; @@ -292,7 +304,7 @@ input[type="lol"] { background-color: transparent; border: none; cursor: pointer; - left: 450px; + left: 425px; } /* Hide the default appearance of the button */ @@ -331,20 +343,20 @@ input[type="lol"] { } /* Apply different colors based on the toast type */ -.toast.info { - background-color: #3498db; +.info { + background-color: lightblue !important; } -.toast.success { - background-color: #2ecc71; +.success { + background-color: #2ecc71 !important; } -.toast.warning { - background-color: #f39c12; +.warning { + background-color: #f39c12 !important; } -.toast.error { - background-color: #e74c3c; +.error { + background-color: #e74c3c !important; } /* CSS animation for the toast appearance */ @@ -413,19 +425,30 @@ input[type="lol"] { visibility: visible; } */ -input[type=text]:disabled { - background: #dddddd; +div[type='text']:disabled { + background: #4b4b4b; + display: none; } -input[type2=text]:disabled { - background: #dddddd; +input[type='text']:disabled { + background: #4b4b4b; } -button[type=text]:disabled { - background: #dddddd; +button[type='text']:disabled { + background: #4b4b4b; + display: none; +} + +input[type2='text']:disabled { + background: #4b4b4b; } div:disabled { - background: #dddddd; + background: #4b4b4b; filter: brightness(200%); -} \ No newline at end of file +} + +div:disabled { + background: #4b4b4b; + filter: brightness(200%); +} diff --git a/src/css/tts-menu.css b/src/css/tts-menu.css index c204953..a44cfe8 100644 --- a/src/css/tts-menu.css +++ b/src/css/tts-menu.css @@ -22,9 +22,10 @@ #volume-icon { color: var(--main-color2); - width: 50px; + scale: 0.75; cursor: pointer; text-align: center; + align-self: center; } #image { @@ -131,4 +132,4 @@ textarea { /* filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(350deg) brightness(104%) contrast(101%); */ align-items: flex-start; margin: auto; -} \ No newline at end of file +} diff --git a/src/css/volume-slider.css b/src/css/volume-slider.css index e96a86f..15fc8d9 100644 --- a/src/css/volume-slider.css +++ b/src/css/volume-slider.css @@ -67,11 +67,14 @@ box-shadow: 0 0 0 3px rgba(255, 255, 255, 1); } -.volume-icon-container { +.option-icon-container { display: flex; flex-direction: column; - justify-content: center; + /* justify-content: center; */ align-items: center; + /* width: 78px; */ + /* float: right; */ + flex-grow: 1; } .brush-icon-container { @@ -81,4 +84,4 @@ .icon { fill: var(--main-color2); -} \ No newline at end of file +} diff --git a/src/images/icon.ico b/src/images/icon.ico index ed9c83b..7303011 100644 Binary files a/src/images/icon.ico and b/src/images/icon.ico differ diff --git a/src/images/icon.png b/src/images/icon.png index be75fe1..c145646 100644 Binary files a/src/images/icon.png and b/src/images/icon.png differ diff --git a/src/images/note.svg b/src/images/note.svg new file mode 100644 index 0000000..8f060d3 --- /dev/null +++ b/src/images/note.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/images/stt.svg b/src/images/stt.svg new file mode 100644 index 0000000..2b35389 --- /dev/null +++ b/src/images/stt.svg @@ -0,0 +1,48 @@ + + + + \ No newline at end of file diff --git a/src/images/theme.svg b/src/images/theme.svg new file mode 100644 index 0000000..eaa9401 --- /dev/null +++ b/src/images/theme.svg @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/src/images/tts.svg b/src/images/tts.svg new file mode 100644 index 0000000..6d20ed6 --- /dev/null +++ b/src/images/tts.svg @@ -0,0 +1,26 @@ + + + + \ No newline at end of file diff --git a/src/index.html b/src/index.html index f869de2..55a4d06 100644 --- a/src/index.html +++ b/src/index.html @@ -1,47 +1,44 @@ -
- - - + + +