mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
d398aa9a71
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved file and image attachment handling by including MIME type information for uploads. * Added a new query to fetch document summaries by workspace and document IDs. * **Refactor** * Minor adjustments to method signatures and property initializations to streamline code and maintain consistency. * Updated access levels for certain properties and methods to internal, enhancing encapsulation. * **Style** * Formatting and whitespace clean-up for improved code readability. No changes to user-facing functionality or behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
18 lines
388 B
Swift
18 lines
388 B
Swift
//
|
|
// AffineViewController+AIButton.swift
|
|
// App
|
|
//
|
|
// Created by 秋星桥 on 2025/1/8.
|
|
//
|
|
|
|
import Intelligents
|
|
import UIKit
|
|
|
|
extension AFFiNEViewController: IntelligentsButtonDelegate {
|
|
func onIntelligentsButtonTapped(_: IntelligentsButton) {
|
|
// if it shows up then we are ready to go
|
|
let controller = IntelligentsController()
|
|
present(controller, animated: true)
|
|
}
|
|
}
|