(client *Client)
| 75 | } |
| 76 | |
| 77 | func newOAuthTabModel(client *Client) oauthTabModel { |
| 78 | ti := textinput.New() |
| 79 | ti.Placeholder = "http://localhost:.../auth/callback?code=...&state=..." |
| 80 | ti.CharLimit = 2048 |
| 81 | ti.Prompt = " 回调 URL: " |
| 82 | return oauthTabModel{ |
| 83 | client: client, |
| 84 | callbackInput: ti, |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | func (m oauthTabModel) Init() tea.Cmd { |
| 89 | return nil |