mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-03 11:11:27 +08:00
v0.2.0
This commit is contained in:
parent
8df21ef245
commit
14c0b9ea18
8 changed files with 42 additions and 28 deletions
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '0e5a9ff452cc319a25fe');
|
||||
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'a127d9515a556a21769e');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3,9 +3,10 @@
|
|||
.mind-popup-input{align-items:center;border-bottom:1px solid #e8e7e7;display:flex;margin-bottom:0}.mind-popup-input>svg{color:var(--mind-brand-color);left:20px;pointer-events:none;position:absolute;top:20px}.mind-popup-input>.components-base-control{flex:1}.mind-popup-input textarea{border:none!important;box-shadow:none!important;color:#151515;font-size:1.15em;max-height:150px;padding:20px 20px 20px 50px;resize:none;width:100%}.mind-popup-input textarea::-moz-placeholder{color:#a3a3a3}.mind-popup-input textarea::placeholder{color:#a3a3a3}.mind-popup-input .mind-popup-input-context{background-color:rgba(0,0,0,.08);border-radius:3px;color:rgba(0,0,0,.6);font-weight:400;margin-right:10px;padding:3px 10px;white-space:nowrap}
|
||||
.mind-popup-loading-line{height:1px;margin-top:-1px;position:relative;width:100%}.mind-popup-loading-line span{animation:mind-popup-loading 1.2s ease-in-out infinite;background:linear-gradient(90deg,transparent 0,rgba(0,0,0,.7) 35%,rgba(0,0,0,.7) 65%,transparent);display:block;height:1px;left:20%;opacity:0;position:absolute;width:60%}@keyframes mind-popup-loading{0%{opacity:0;transform:scaleX(0)}50%{opacity:1;transform:scaleX(1.3)}to{opacity:0;transform:scaleX(2.6)}}
|
||||
.mind-popup-content{flex:1;overflow:auto;padding:10px 20px}.mind-popup-content:empty,.mind-popup-content:has(.mind-popup-request:empty){margin-bottom:-1px;padding:0}.mind-popup-content .mind-popup-request ol,.mind-popup-content .mind-popup-request ul{list-style:auto;padding-left:15px}.mind-popup-content .mind-popup-request table{border-collapse:collapse;width:100%}.mind-popup-content .mind-popup-request table td,.mind-popup-content .mind-popup-request table th{border:1px solid;min-width:1px;padding:.5em;white-space:pre-wrap}.mind-popup-commands{display:flex;flex-direction:column;margin-left:-10px;margin-right:-10px}.mind-popup-commands .mind-popup-commands-category{color:#7f7f7f;padding:28px 10px 10px;position:relative}.mind-popup-commands .mind-popup-commands-category:first-child{padding-top:10px}.mind-popup-commands .mind-popup-commands-category:not(:first-child):before{border-top:1px solid #e8e7e7;content:"";display:block;left:-10px;position:absolute;right:-10px;top:8px}.mind-popup-commands .mind-popup-commands-button{align-items:center;background-color:transparent;border:none;border-radius:5px;color:#000;display:flex;gap:10px;height:auto;min-height:40px;padding:10px;text-align:left}.mind-popup-commands .mind-popup-commands-button:focus,.mind-popup-commands .mind-popup-commands-button:hover{background-color:rgba(0,0,0,.05)}
|
||||
.mind-popup-loading-text:after{animation:mind-popup-loading-text 2s infinite;content:"..."}@keyframes mind-popup-loading-text{0%,to{content:"..."}25%{content:""}50%{content:"."}75%{content:".."}}
|
||||
.mind-popup-notice{background-color:#f4f4f4;border:1px solid #bebebe;border-radius:6px;color:#434343;padding:10px}.mind-popup-notice-error{background-color:#fff5f5;border-color:#eaacac;color:#7c3939}
|
||||
.mind-popup-response{contain:content;transform:translateZ(0);will-change:transform}.mind-popup-response .mind-popup-cursor{animation:mind-cursor-blink 1s step-end infinite;background:currentColor;display:inline-block;height:1em;margin-left:2px;width:1.5px}@keyframes mind-cursor-blink{0%,to{opacity:1}50%{opacity:0}}@media(max-width:768px){.mind-popup-response{contain:strict;height:100%}}
|
||||
.mind-popup-footer{align-items:center;background-color:#f9f9f9;border-top:1px solid #e8e7e7;display:flex;justify-content:space-between;padding:10px 20px}.mind-popup-footer-actions{display:flex;gap:5px;margin:-5px -15px -5px auto}.mind-popup-footer-actions button{border-radius:5px;display:flex;font-weight:500;gap:8px;height:28px}.mind-popup-footer-actions button:focus,.mind-popup-footer-actions button:hover{background-color:rgba(0,0,0,.05);color:#121212}.mind-popup-footer-actions button kbd{background-color:rgba(0,0,0,.08);border-radius:3px;color:rgba(0,0,0,.5);font:inherit;font-weight:400;margin-right:-8px;padding:3px 4px}
|
||||
.mind-popup-loading-text:after{animation:mind-popup-loading-text 2s infinite;content:"..."}@keyframes mind-popup-loading-text{0%,to{content:"..."}25%{content:""}50%{content:"."}75%{content:".."}}
|
||||
.mind-popup-not-connected{width:440px}.mind-popup-connected-screen{display:flex;flex-direction:column;gap:20px;padding:30px;text-align:center}.mind-popup-connected-screen h2{align-items:center;display:flex;font-size:16px;font-weight:500;gap:7px;justify-content:center;margin:0}.mind-popup-connected-screen p{font-size:14px;font-weight:300;margin:0}.mind-popup-connected-screen-button{color:var(--mind-brand-color);display:inline-block;font-weight:500;margin-bottom:-10px;margin-top:-10px;padding:10px 15px;position:relative;text-decoration:none}@supports(-webkit-background-clip:text){.mind-popup-connected-screen-button{-webkit-text-fill-color:transparent;background:linear-gradient(to right,var(--mind-brand-color),var(--mind-brand-color-2));-webkit-background-clip:text;background-clip:text}}.mind-popup-connected-screen-button:after{bottom:0;content:"";left:0;opacity:.05;position:absolute;right:0;top:0}.mind-popup-connected-screen-button:focus:after,.mind-popup-connected-screen-button:hover:after{background-color:var(--mind-brand-color)}
|
||||
.mind-toolbar-toggle svg{color:var(--mind-brand-color)}.mind-toolbar-dropdown{--wp-admin-theme-color:var(--mind-brand-darken-color)}.mind-toolbar-dropdown .components-button.has-icon.has-text{gap:10px}.mind-toolbar-dropdown span[role=img]{font-size:18px;margin-right:6px;vertical-align:middle}.mind-toolbar-dropdown-toggle{width:100%}.mind-toolbar-dropdown-toggle button{gap:10px;padding-left:8px;padding-right:8px;width:100%}.mind-toolbar-dropdown-toggle button svg:last-child{height:auto;margin-left:auto;width:20px}
|
||||
.mind-post-toolbar-toggle{flex:100%;white-space:nowrap}.mind-post-toolbar-toggle button{--wp-components-color-accent:var(--mind-brand-color);color:var(--mind-brand-color);font-weight:500;position:relative}@supports(-webkit-background-clip:text){.mind-post-toolbar-toggle button{-webkit-text-fill-color:transparent;background:linear-gradient(to right,var(--mind-brand-color),var(--mind-brand-color-2));-webkit-background-clip:text;background-clip:text}}.mind-post-toolbar-toggle button:after{bottom:0;content:"";left:0;opacity:.05;position:absolute;right:0;top:0}.mind-post-toolbar-toggle button:focus,.mind-post-toolbar-toggle button:hover{color:var(--mind-brand-color)}.mind-post-toolbar-toggle button:focus:after,.mind-post-toolbar-toggle button:hover:after{background-color:var(--mind-brand-color)}.mind-post-toolbar-toggle svg{margin-bottom:-2px;margin-right:6px;margin-top:-2px}
|
||||
|
|
|
@ -41,9 +41,6 @@
|
|||
"Provide request to receive AI response.": [
|
||||
""
|
||||
],
|
||||
"OpenAI data failed to load.": [
|
||||
""
|
||||
],
|
||||
"OpenAI API Key": [
|
||||
""
|
||||
],
|
||||
|
@ -290,7 +287,7 @@
|
|||
"Create a table about ": [
|
||||
""
|
||||
],
|
||||
"Waiting for AI response": [
|
||||
"Writing": [
|
||||
""
|
||||
],
|
||||
"Get Answer": [
|
||||
|
@ -316,6 +313,12 @@
|
|||
],
|
||||
"Go to Settings": [
|
||||
""
|
||||
],
|
||||
"Failed to parse stream data": [
|
||||
""
|
||||
],
|
||||
"Failed to fetch AI response": [
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
# This file is distributed under the GPLv2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: AI Mind 0.1.3\n"
|
||||
"Project-Id-Version: AI Mind 0.2.0\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nk-crew/mind/issues\n"
|
||||
"Last-Translator: Lazy Blocks Team\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"POT-Creation-Date: 2024-11-27T20:46:11+00:00\n"
|
||||
"POT-Creation-Date: 2024-12-09T11:32:53+00:00\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"X-Generator: WP-CLI 2.11.0\n"
|
||||
"X-Domain: mind\n"
|
||||
|
@ -63,18 +63,14 @@ msgstr ""
|
|||
msgid "You don't have permissions to request Mind API."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-rest.php:125
|
||||
#: classes/class-rest.php:201
|
||||
msgid "Provide OpenAI key in the plugin settings."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-rest.php:129
|
||||
#: classes/class-rest.php:206
|
||||
msgid "Provide request to receive AI response."
|
||||
msgstr ""
|
||||
|
||||
#: classes/class-rest.php:226
|
||||
msgid "OpenAI data failed to load."
|
||||
msgstr ""
|
||||
|
||||
#: src/admin/page-settings/index.js:58
|
||||
msgid "OpenAI API Key"
|
||||
msgstr ""
|
||||
|
@ -121,7 +117,6 @@ msgid "OpenAI API key →"
|
|||
msgstr ""
|
||||
|
||||
#: src/admin/store/settings/actions.js:35
|
||||
#: src/editor/store/popup/actions.js:119
|
||||
msgid "Something went wrong, please, try again…"
|
||||
msgstr ""
|
||||
|
||||
|
@ -409,23 +404,23 @@ msgstr ""
|
|||
msgid "Create a table about "
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/popup/components/content/index.js:161
|
||||
msgid "Waiting for AI response"
|
||||
#: src/editor/popup/components/footer/index.js:38
|
||||
msgid "Writing"
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/popup/components/footer/index.js:43
|
||||
#: src/editor/popup/components/footer/index.js:46
|
||||
msgid "Get Answer"
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/popup/components/footer/index.js:54
|
||||
#: src/editor/popup/components/footer/index.js:57
|
||||
msgid "Regenerate"
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/popup/components/footer/index.js:65
|
||||
#: src/editor/popup/components/footer/index.js:68
|
||||
msgid "Copy"
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/popup/components/footer/index.js:68
|
||||
#: src/editor/popup/components/footer/index.js:71
|
||||
msgid "Insert"
|
||||
msgstr ""
|
||||
|
||||
|
@ -444,3 +439,12 @@ msgstr ""
|
|||
#: src/editor/popup/components/not-connected-screen/index.js:45
|
||||
msgid "Go to Settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/store/popup/actions.js:147
|
||||
msgid "Failed to parse stream data"
|
||||
msgstr ""
|
||||
|
||||
#: src/editor/store/popup/actions.js:202
|
||||
#: src/editor/store/popup/actions.js:212
|
||||
msgid "Failed to fetch AI response"
|
||||
msgstr ""
|
||||
|
|
4
mind.php
4
mind.php
|
@ -4,7 +4,7 @@
|
|||
* Description: Content Assistant Plugin based on OpenAI. Write, improve, rewrite, rephrase, change the tone of your blog posts, and more.
|
||||
* Requires at least: 6.0
|
||||
* Requires PHP: 7.2
|
||||
* Version: 0.1.3
|
||||
* Version: 0.2.0
|
||||
* Author: Mind Team
|
||||
* Author URI: https://www.wp-mind.com/
|
||||
* License: GPLv2 or later
|
||||
|
@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
if ( ! defined( 'MIND_VERSION' ) ) {
|
||||
define( 'MIND_VERSION', '0.1.3' );
|
||||
define( 'MIND_VERSION', '0.2.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mind",
|
||||
"version": "0.1.3",
|
||||
"version": "0.2.0",
|
||||
"description": "Mind - Content Assistant Plugin based on OpenAI",
|
||||
"author": "Mind Team",
|
||||
"license": "GPL-2.0-or-later",
|
||||
|
|
|
@ -4,7 +4,7 @@ Tags: ai, openai, gpt, copywriting, assistant
|
|||
Requires at least: 6.2
|
||||
Tested up to: 6.7
|
||||
Requires PHP: 7.2
|
||||
Stable tag: 0.1.3
|
||||
Stable tag: 0.2.0
|
||||
License: GPL-2.0-or-later
|
||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
@ -127,6 +127,12 @@ Mind is developed for the WordPress page builder - Gutenberg. Currently we don't
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 0.2.0 - Dec 9, 2024 =
|
||||
|
||||
- added stream AI response for better experience
|
||||
- fixed JS error when inserting response to editor
|
||||
- changed model to gpt-4o-mini
|
||||
|
||||
= 0.1.3 - Nov 28, 2024 =
|
||||
|
||||
- fixed the Open Mind button display issue in the WordPress 6.7 posts toolbar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue