mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-30 10:16:10 +00:00
feat: add gemini quick start button (#128)
This commit is contained in:
parent
b2a395fcd8
commit
aabbd57aa2
2 changed files with 5 additions and 1 deletions
|
|
@ -326,6 +326,7 @@ struct SessionCreateView: View {
|
|||
private var quickStartCommands: [QuickStartItem] {
|
||||
[
|
||||
QuickStartItem(title: "claude", command: "claude", icon: "sparkle"),
|
||||
QuickStartItem(title: "gemini", command: "gemini", icon: "sparkle"),
|
||||
QuickStartItem(title: "zsh", command: "zsh", icon: "terminal"),
|
||||
QuickStartItem(title: "bash", command: "bash", icon: "terminal.fill"),
|
||||
QuickStartItem(title: "python3", command: "python3", icon: "chevron.left.forwardslash.chevron.right"),
|
||||
|
|
@ -340,6 +341,8 @@ struct SessionCreateView: View {
|
|||
|
||||
private func commandIcon(for command: String) -> String {
|
||||
switch command {
|
||||
case "gemini":
|
||||
"sparkle"
|
||||
case "claude":
|
||||
"sparkle"
|
||||
case "zsh", "bash":
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ export class SessionCreateForm extends LitElement {
|
|||
|
||||
private quickStartCommands = [
|
||||
{ label: 'claude', command: 'claude' },
|
||||
{ label: 'gemini', command: 'gemini' },
|
||||
{ label: 'zsh', command: 'zsh' },
|
||||
{ label: 'bash', command: 'bash' },
|
||||
{ label: 'python3', command: 'python3' },
|
||||
|
|
@ -445,7 +446,7 @@ export class SessionCreateForm extends LitElement {
|
|||
}"
|
||||
?disabled=${this.disabled || this.isCreating}
|
||||
>
|
||||
${label === 'claude' ? '✨ ' : ''}${
|
||||
${label === 'gemini' ? '✨ ' : ''}${label === 'claude' ? '✨ ' : ''}${
|
||||
label === 'pnpm run dev' ? '▶️ ' : ''
|
||||
}${label}
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue