mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
remove announcements list from Announcement.tsx, added in comments
This commit is contained in:
parent
b263b6adba
commit
f0b04d2acf
7 changed files with 35 additions and 47 deletions
|
|
@ -11,8 +11,6 @@ interface AnnouncementProps {
|
|||
const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
||||
const { t, ready } = useTranslation("translation", { keyPrefix: "announcement", useSuspense: false })
|
||||
|
||||
const newChangesList = t("newChangesList", { returnObjects: true }) as Array<string>
|
||||
|
||||
const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0
|
||||
return (
|
||||
ready && (
|
||||
|
|
@ -33,16 +31,29 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
|||
</VSCodeButton>
|
||||
<h3 style={{ margin: "0 0 8px" }}>{t("newInVersion", { version: minorVersion })}</h3>
|
||||
<ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}>
|
||||
{newChangesList.map((transcluded, index) => (
|
||||
<li>
|
||||
<Trans
|
||||
components={{
|
||||
Link: <VSCodeLink href="#" />,
|
||||
}}>
|
||||
{transcluded}
|
||||
</Trans>
|
||||
</li>
|
||||
))}
|
||||
<li>
|
||||
<b>Plan/Act mode toggle:</b> Plan mode turns Cline into an architect that gathers information, asks
|
||||
clarifying questions, and designs a solution. Switch back to Act mode to let him execute the plan!{" "}
|
||||
<VSCodeLink href="https://x.com/sdrzn/status/1881761978986934582" style={{ display: "inline" }}>
|
||||
See a demo here.
|
||||
</VSCodeLink>
|
||||
</li>
|
||||
<li>
|
||||
<b>Quick API/model switching</b> with a new popup menu under the chat field
|
||||
</li>
|
||||
<li>
|
||||
<b>VS Code LM API</b> lets you use models from other extensions like GitHub Copilot
|
||||
</li>
|
||||
<li>
|
||||
<b>MCP server improvements:</b> On/off toggle to disable servers when not in use, and Auto-approve option
|
||||
for individual tools
|
||||
</li>
|
||||
<li>
|
||||
In case you missed it, Cline now supports Checkpoints!{" "}
|
||||
<VSCodeLink href="https://x.com/sdrzn/status/1876378124126236949" style={{ display: "inline" }}>
|
||||
See it in action here.
|
||||
</VSCodeLink>
|
||||
</li>
|
||||
</ul>
|
||||
<div
|
||||
style={{
|
||||
|
|
|
|||
|
|
@ -41,6 +41,18 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|||
setModelIdErrorMessage(undefined)
|
||||
}, [apiConfiguration])
|
||||
|
||||
// validate as soon as the component is mounted
|
||||
/*
|
||||
useEffect will use stale values of variables if they are not included in the dependency array. so trying to use useEffect with a dependency array of only one value for example will use any other variables' old values. In most cases you don't want this, and should opt to use react-use hooks.
|
||||
|
||||
useEffect(() => {
|
||||
// uses someVar and anotherVar
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [someVar])
|
||||
|
||||
If we only want to run code once on mount we can use react-use's useEffectOnce or useMount
|
||||
*/
|
||||
|
||||
const handleResetState = () => {
|
||||
vscode.postMessage({ type: "resetState" })
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
"announcement": {
|
||||
"newInVersion": "Neu in Version {{version}}",
|
||||
"newChangesList": [
|
||||
"<b>Plan/Act-Modus-Umschaltung:</b> Im Plan-Modus konzentriert sich Cline darauf, Informationen zu sammeln, klärende Fragen zu stellen, Ideen zu brainstormen und eine Lösung zu entwerfen. Wechseln Sie zurück in den Act-Modus, um den Plan auszuführen!",
|
||||
"<b>Schnelles API/Modell-Wechseln</b> mit einem neuen Popup-Menü unter dem Chat-Feld",
|
||||
"<b>VS Code LM API</b> ermöglicht die Verwendung von Modellen aus anderen Erweiterungen wie GitHub Copilot",
|
||||
"<b>MCP-Server-Verbesserungen:</b> Ein-/Ausschaltfunktion zum Deaktivieren von Servern, wenn sie nicht verwendet werden, und Auto-Approve-Option für einzelne Tools",
|
||||
"Falls Sie es verpasst haben, Cline unterstützt jetzt Checkpoints! <Link href=\"https://x.com/sdrzn/status/1876378124126236949\">Sehen Sie es hier in Aktion.</Link>"
|
||||
],
|
||||
"joinOurCommunities": "Treten Sie unserem <DiscordLink>Discord</DiscordLink> oder <RedditLink>Reddit</RedditLink> für weitere Updates bei!"
|
||||
},
|
||||
"settingsView": {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
"announcement": {
|
||||
"newInVersion": "New in version {{version}}",
|
||||
"newChangesList": [
|
||||
"<b>Plan/Act mode toggle:</b> Plan mode lets Cline focus on gathering information, asking clarifying questions, brainstorm ideas, and architect a solution. Switch back to Act mode to let him execute the plan!",
|
||||
"<b>Quick API/model switching</b> with a new popup menu under the chat field",
|
||||
"<b>VS Code LM API</b> lets you use models from other extensions like GitHub Copilot",
|
||||
"<b>MCP server improvements:</b> On/off toggle to disable servers when not in use, and Auto-approve option for individual tools",
|
||||
"In case you missed it, Cline now supports Checkpoints! <Link href=\"https://x.com/sdrzn/status/1876378124126236949\">See it in action here.</Link>"
|
||||
],
|
||||
"joinOurCommunities": "Join our <DiscordLink>Discord</DiscordLink> or <RedditLink>Reddit</RedditLink> for more updates!"
|
||||
},
|
||||
"settingsView": {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
"announcement": {
|
||||
"newInVersion": "バージョン{{version}}の新機能",
|
||||
"newChangesList": [
|
||||
"<b>プラン/アクトモードの切り替え:</b> プランモードでは、Clineが情報収集、質問の明確化、アイデアのブレインストーミング、ソリューションの設計に集中します。アクトモードに戻すと、計画を実行します!",
|
||||
"<b>新しいポップアップメニュー</b>でチャットフィールドの下にあるAPI/モデルのクイック切り替え",
|
||||
"<b>VS Code LM API</b>は、GitHub Copilotのような他の拡張機能からモデルを使用できます",
|
||||
"<b>MCPサーバーの改善:</b> 使用していないときにサーバーを無効にするオン/オフ切り替え、および個々のツールの自動承認オプション",
|
||||
"見逃した場合のために、Clineは現在チェックポイントをサポートしています! <Link href=\"https://x.com/sdrzn/status/1876378124126236949\">こちらでアクションを確認してください。</Link>"
|
||||
],
|
||||
"joinOurCommunities": "最新情報を得るために、<DiscordLink>Discord</DiscordLink>または<RedditLink>Reddit</RedditLink>に参加してください!"
|
||||
},
|
||||
"settingsView": {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
"announcement": {
|
||||
"newInVersion": "版本 {{version}} 中的新功能",
|
||||
"newChangesList": [
|
||||
"<b>计划/执行模式切换:</b> 计划模式让 Cline 专注于收集信息、提出澄清问题、头脑风暴和架构解决方案。切换回执行模式,让他执行计划!",
|
||||
"<b>快速 API/模型切换</b>,在聊天字段下有一个新的弹出菜单",
|
||||
"<b>VS Code LM API</b> 允许您使用其他扩展中的模型,如 GitHub Copilot",
|
||||
"<b>MCP 服务器改进:</b> 开/关切换以在不使用时禁用服务器,并为单个工具提供自动批准选项",
|
||||
"如果您错过了,Cline 现在支持检查点!<Link href=\"https://x.com/sdrzn/status/1876378124126236949\">在这里查看。</Link>"
|
||||
],
|
||||
"joinOurCommunities": "加入我们的 <DiscordLink>Discord</DiscordLink> 或 <RedditLink>Reddit</RedditLink> 获取更多更新!"
|
||||
},
|
||||
"settingsView": {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
"announcement": {
|
||||
"newInVersion": "版本 {{version}} 中的新功能",
|
||||
"newChangesList": [
|
||||
"<b>計劃/執行模式切換:</b> 計劃模式讓 Cline 專注於收集信息、提出澄清問題、頭腦風暴和架構解決方案。切換回執行模式,讓他執行計劃!",
|
||||
"<b>快速 API/模型切換</b>,在聊天字段下有一個新的彈出菜單",
|
||||
"<b>VS Code LM API</b> 允許您使用其他擴展中的模型,如 GitHub Copilot",
|
||||
"<b>MCP 伺服器改進:</b> 開/關切換以在不使用時禁用伺服器,並為單個工具提供自動批准選項",
|
||||
"如果您錯過了,Cline 現在支持檢查點!<Link href=\"https://x.com/sdrzn/status/1876378124126236949\">在這裡查看。</Link>"
|
||||
],
|
||||
"joinOurCommunities": "加入我們的 <DiscordLink>Discord</DiscordLink> 或 <RedditLink>Reddit</RedditLink> 獲取更多更新!"
|
||||
},
|
||||
"settingsView": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue