-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCopy.txt
3 lines (2 loc) · 7.81 KB
/
Copy.txt
1
2
3
.main-sidebar-cont{padding:1rem}.main-sidebar-cont *{box-sizing:border-box}.main-sidebar-cont .sidebar-ai-heading{text-align:center;padding-bottom:15px}.main-sidebar-cont .prompt-area{width:100%;font:initial;font-size:.9rem;padding:10px;border-radius:5px;border:1px solid gray;outline:none;color:var(--primary-text-color);resize:none;margin-bottom:8px;background:rgba(0,0,0,0)}.main-sidebar-cont .prompt-area:focus-visible{border-color:var(--button-background-color)}.main-sidebar-cont .size-selector{width:100%;margin-bottom:16px;background:rgba(0,0,0,0);padding:10px;border-radius:5px;border:1px solid gray;outline:none;color:var(--primary-text-color)}.main-sidebar-cont .size-selector:focus-visible{border-color:var(--button-background-color)}.main-sidebar-cont .generatorBtn{border:none;background:var(--button-background-color);color:var(--button-text-color);padding:10px 16px;border-top-left-radius:15px;border-bottom-right-radius:15px;font-weight:600;font-size:16px}.main-sidebar-cont .img-fluid{max-width:100%;margin-top:10px}#acode-plugin-chatgpt *{box-sizing:border-box}#acode-plugin-chatgpt .mainApp{position:absolute;left:0;width:100%;height:calc(100% - 80px);background:var(--primary-color)}#acode_stack_overflow_PluginBox{height:100%;width:100%;white-space:pre-wrap;overflow-y:auto}#.wrapper{padding-block:12px;padding-inline:10px}#acode-plugin-chatgpt .wrapper .chat{display:flex;align-items:flex-start;gap:10px}#acode-plugin-chatgpt .wrapper .chat .profile{height:35px;width:35px;border-radius:8px;background:#5436da;display:flex;align-items:center;justify-content:center}#acode-plugin-chatgpt .wrapper .chat .profile img{width:60%}#acode-plugin-chatgpt .wrapper .chat .message{flex:1;color:var(--primary-text-color);font-size:16px;line-height:1.5;-webkit-user-select:text;-moz-user-select:text;user-select:text}#acode-plugin-chatgpt .ai_wrapper{padding-block:12px 30px;padding-inline:10px;background-color:var(--secondary-color)}#acode-plugin-chatgpt .ai_wrapper .ai_chat{display:flex;align-items:flex-start;gap:10px}#acode-plugin-chatgpt .ai_wrapper .ai_chat .ai_profile{height:35px;width:35px;border-radius:8px;background:#10a37f;display:flex;align-items:center;justify-content:center}#acode-plugin-chatgpt .ai_wrapper .ai_chat .ai_profile img{width:60%}#acode-plugin-chatgpt .ai_wrapper .ai_message{flex:1;color:var(--secondary-text-color);font-size:16px;line-height:1.5;overflow:hidden;-webkit-user-select:text;-moz-user-select:text;user-select:text}#acode-plugin-chatgpt .ai_wrapper .ai_message .codeBlock{border:2px solid var(--border-color);width:100%;border-radius:5px;overflow-x:auto;position:relative}#acode-plugin-chatgpt .ai_wrapper .ai_message .codeBlock .copy-button{position:absolute;top:4px;right:8px;border:none;outline:none;border-radius:8px;height:24px;width:28px;color:#d3d3d3;display:flex;justify-content:center;align-items:center;font-weight:bold;background:#1a222e;box-shadow:0 4px 0 #1b232f;transition:all .3s ease-in-out}#acode-plugin-chatgpt .ai_wrapper .ai_message .codeBlock .copy-button:active{box-shadow:0;color:gray}#acode-plugin-chatgpt .ai_wrapper .ai_message .codeBlock .codesArea{box-sizing:border-box;padding:12px;margin-bottom:0}#acode-plugin-chatgpt .ai_wrapper .ai_message .codeBlock .codesArea::-webkit-scrollbar{height:10px}#acode-plugin-chatgpt .ai_wrapper .ai_message .codeBlock .codesArea::-webkit-scrollbar-thumb{background:#d3d3d3;border-radius:4px}#acode-plugin-chatgpt .ai_wrapper .ai_message hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}#acode-plugin-chatgpt .ai_wrapper .ai_message h6,#acode-plugin-chatgpt .ai_wrapper .ai_message h5,#acode-plugin-chatgpt .ai_wrapper .ai_message h4,#acode-plugin-chatgpt .ai_wrapper .ai_message h3,#acode-plugin-chatgpt .ai_wrapper .ai_message h2,#acode-plugin-chatgpt .ai_wrapper .ai_message h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:inherit}#acode-plugin-chatgpt .ai_wrapper .ai_message h1{font-size:calc(1.375rem + 1.5vw)}#acode-plugin-chatgpt .ai_wrapper .ai_message h2{font-size:calc(1.325rem + .9vw)}#acode-plugin-chatgpt .ai_wrapper .ai_message h3{font-size:calc(1.3rem + .6vw)}#acode-plugin-chatgpt .ai_wrapper .ai_message h4{font-size:calc(1.275rem + .3vw)}#acode-plugin-chatgpt .ai_wrapper .ai_message h5{font-size:1.25rem}#acode-plugin-chatgpt .ai_wrapper .ai_message h6{font-size:1rem}#acode-plugin-chatgpt .ai_wrapper .ai_message p{margin-top:0;margin-bottom:1rem}#acode-plugin-chatgpt .ai_wrapper .ai_message ul,#acode-plugin-chatgpt .ai_wrapper .ai_message ol{margin:1em 0;padding:0 0 0 2em}#acode-plugin-chatgpt .ai_wrapper .ai_message ul{list-style-type:disc}#acode-plugin-chatgpt .ai_wrapper .ai_message li p:last-child{margin:0}#acode-plugin-chatgpt .ai_wrapper .ai_message dt{font-weight:700}#acode-plugin-chatgpt .ai_wrapper .ai_message dd{margin-bottom:.5rem;margin-left:0}#acode-plugin-chatgpt .ai_wrapper .ai_message blockquote{margin:0 0 1rem}#acode-plugin-chatgpt .ai_wrapper .ai_message b,#acode-plugin-chatgpt .ai_wrapper .ai_message strong{font-weight:bolder}#acode-plugin-chatgpt .ai_wrapper .ai_message small,#acode-plugin-chatgpt .ai_wrapper .ai_message .small{font-size:.875em}#acode-plugin-chatgpt .ai_wrapper .ai_message pre,#acode-plugin-chatgpt .ai_wrapper .ai_message code,#acode-plugin-chatgpt .ai_wrapper .ai_message kbd,#acode-plugin-chatgpt .ai_wrapper .ai_message samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}#acode-plugin-chatgpt .ai_wrapper .ai_message pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}#acode-plugin-chatgpt .ai_wrapper .ai_message pre code{font-size:inherit;color:inherit}#acode-plugin-chatgpt .ai_wrapper .ai_message code{font-size:.875em;color:var(--link-text-color);word-wrap:break-word}#acode-plugin-chatgpt .ai_wrapper .ai_message a>code{color:inherit}#acode-plugin-chatgpt .ai_wrapper .ai_message kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--primary-text-color);background-color:var(--popup-background-color);border-radius:.25rem}#acode-plugin-chatgpt .ai_wrapper .ai_message kbd kbd{padding:0;font-size:1em}#acode-plugin-chatgpt .error-box{border:1px solid var(--error-text-color);color:var(--error-text-color);font-weight:700;padding:8px;white-space:pre-wrap;word-break:break-word;border-radius:10px}#acode-plugin-chatgpt .inputBox{position:fixed;bottom:0;width:100%;height:80px;padding:8px;display:flex;background-color:var(--popup-background-color);box-shadow:0px -2px 4px var(--box-shadow-color);z-index:1}#acode-plugin-chatgpt .chatTextarea{flex:1;height:100%;resize:none;border:none;outline:none;background:none;font:initial;font-size:1.1rem;color:var(--primary-text-color);-webkit-padding-end:8px;padding-inline-end:8px}#acode-plugin-chatgpt .sendBtn{height:40px;width:40px;border-radius:8px;border:none;outline:none;background-color:rgba(0,0,0,.2);color:gray;display:grid;place-items:center}#acode-plugin-chatgpt .sendBtn:active{background-color:var(--button-background-color);color:var(--primary-text-color
document.head.append(this.$githubDarkFile,this.$higlightJsFile,this.$markdownItFile,this.$style),R.commands.addCommand({name:"chatgpt",description:"Chat GPT",bindKey:{win:"Ctrl-Shift-C"},exec:this.run.bind(this)}),R.commands.addCommand({name:"chatgpt_update_token",description:"Update Chat GPT Token",exec:this.updateApiToken.bind(this)}),r.id="acode-plugin-chatgpt",r.settitle("Chat GPT"),this.$page=r,n=t()("span",{className:"icon more_vert",dataset:{action:"toggle-menu"}}),a=t()("span",{className:"icon add",dataset:{action:"new-chat"}}),this.$page.header.append(a,n),n.onclick=this.myHistory.bind(this),a.onclick=this.newChat.bind(this),o=t()("div",{className:"mainApp"}),this.$chatBox=t()("div",{className:"chatBox"}),this.$inputBox=t()("div",{className:"inputBox"}),this.$chatTextarea=t()("textarea",{className:"chatTextarea",placeholder:"Type your query..."}),this.$sendBtn=t()("button",{className:"sendBtn"}),this.$sendBtn.innerHTML