code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
<template>
<view class="monitor-page">
<!-- 顶部状态卡片 -->
<view class="status-header">
<view class="status-card" :class="serverStatus">
<view class="status-icon">
<text>{{ serverStatus === 'online' ? '✓' : '!' }}</text>
</view>
<view class="status-info">
<text class="status-title">服务器状态</text... | 2201_75827989/zhi_shi_ku | pages/mine/server-monitor.vue | Vue | unknown | 20,541 |
<template>
<view class="account-page">
<view class="page-header">
<text class="page-title">账号设置</text>
</view>
<!-- 头像设置 -->
<view class="section">
<view class="section-title">头像</view>
<view class="avatar-row" @click="chooseAvatar">
<view class="current-avatar">
<image v-if="userAvatar && t... | 2201_75827989/zhi_shi_ku | pages/mine/settings/account.vue | Vue | unknown | 7,195 |
<template>
<view class="ai-page">
<!-- 标题 -->
<view class="page-header">
<text class="page-title">AI 配置</text>
<text class="page-desc">分别配置各个 AI 服务</text>
</view>
<!-- Tab 切换 -->
<view class="tabs">
<view
class="tab"
:class="{ active: activeTab === 'chat' }"
@click="activeTab = 'chat... | 2201_75827989/zhi_shi_ku | pages/mine/settings/ai.vue | Vue | unknown | 26,046 |
<template>
<view class="avatar-page">
<view class="section">
<text class="section-title">AI 头像</text>
<view class="avatar-card" @click="chooseAIAvatar">
<view class="avatar-preview">
<image v-if="aiAvatar && !aiAvatar.startsWith('emoji:')" class="avatar-img" :src="aiAvatar" mode="aspectFill" />
<... | 2201_75827989/zhi_shi_ku | pages/mine/settings/avatar.vue | Vue | unknown | 7,754 |
<template>
<view class="bg-page" :style="pageStyle">
<view class="card">
<text class="title">背景设置</text>
<text class="desc">支持输入颜色(#ffffff)、CSS 渐变(linear-gradient)或图片 URL</text>
<input
class="input"
v-model="backgroundInput"
placeholder="示例:#ffffff 或 linear-gradient(...) 或 https://xxx.jpg"
... | 2201_75827989/zhi_shi_ku | pages/mine/settings/background.vue | Vue | unknown | 4,723 |
<template>
<view class="settings-page" :style="pageStyle">
<view class="section">
<text class="section-title">通用</text>
<view class="card">
<view class="row" @click="goAvatar">
<view class="row-texts">
<text class="row-title">头像设置</text>
<text class="row-desc">自定义用户和 AI 头像</text>
</vi... | 2201_75827989/zhi_shi_ku | pages/mine/settings.vue | Vue | unknown | 2,373 |
<template>
<view class="files-page" :style="pageStyle">
<!-- 顶部标题 -->
<view class="page-header">
<text class="page-title">云端文件</text>
<text class="file-count">共 {{ totalCount }} 个文件</text>
</view>
<!-- 分类标签 -->
<view class="type-tabs">
<view
class="type-tab"
:class="{ active: currentTyp... | 2201_75827989/zhi_shi_ku | pages/monitor/index.vue | Vue | unknown | 15,172 |
<template>
<view>
<page-head :title="title"></page-head>
<image :src="logo" mode="aspectFit" style="width: 100%;"></image>
</view>
</template>
<script>
import { getLogoPath } from '../../uni_modules/uts-advance'
export default {
data() {
return {
title: '资源加载示例',
logo:""
}
},
on... | 2201_75827989/zhi_shi_ku | pages/resource/resource.vue | Vue | unknown | 420 |
<template>
<view class="stats" :style="pageStyle">
<!-- 时间选择 -->
<view class="time-tabs">
<view
class="tab-item"
:class="{ 'active': timeRange === 'week' }"
@click="timeRange = 'week'"
>本周</view>
<view
class="tab-item"
:class="{ 'active': timeRange === 'month' }"
@click="timeRa... | 2201_75827989/zhi_shi_ku | pages/stats/index.vue | Vue | unknown | 11,801 |
from fastapi import APIRouter
from .user import router as user_router
from .chat import router as chat_router
from .knowledge import router as knowledge_router
from .ai import router as ai_router
from .category import router as category_router
from .monitor import router as monitor_router
from .upload import router as ... | 2201_75827989/zhi_shi_ku | server/app/api/__init__.py | Python | unknown | 890 |
from fastapi import APIRouter, Depends
from sqlalchemy.ext.asyncio import AsyncSession
from pydantic import BaseModel
from typing import Optional
from app.core.database import get_db
from app.core.security import get_current_user_id
from app.services.ai_service import ai_service
router = APIRouter()
class ContentRe... | 2201_75827989/zhi_shi_ku | server/app/api/ai.py | Python | unknown | 1,213 |
from fastapi import APIRouter, Depends, HTTPException
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select, update, func
from pydantic import BaseModel
from typing import Optional
from app.core.database import get_db
from app.core.security import get_current_user_id
from app.models.knowledge i... | 2201_75827989/zhi_shi_ku | server/app/api/category.py | Python | unknown | 3,929 |
from fastapi import APIRouter, Depends, HTTPException, Query
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select, update
from pydantic import BaseModel
from typing import Optional, List
import re
from app.core.database import get_db
from app.core.security import get_current_user_id
from app.m... | 2201_75827989/zhi_shi_ku | server/app/api/chat.py | Python | unknown | 15,526 |
from fastapi import APIRouter, Depends, HTTPException, Query
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select, update, func, or_, text
from pydantic import BaseModel
from typing import Optional, List
from app.core.database import get_db
from app.core.security import get_current_user_id
fro... | 2201_75827989/zhi_shi_ku | server/app/api/knowledge.py | Python | unknown | 7,586 |
from fastapi import APIRouter, Depends, HTTPException
from pydantic import BaseModel
from typing import Optional
import json
import uuid
import psutil
import os
from datetime import datetime
from app.core.redis import redis_client
from app.core.security import get_current_user_id
from app.core.security_middleware impo... | 2201_75827989/zhi_shi_ku | server/app/api/monitor.py | Python | unknown | 6,723 |
from fastapi import APIRouter, Depends, HTTPException, UploadFile, File, Form
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select
from typing import Optional
from pydantic import BaseModel
import os
import uuid
import base64
from app.core.database import get_db
from app.core.security import g... | 2201_75827989/zhi_shi_ku | server/app/api/upload.py | Python | unknown | 8,699 |
from fastapi import APIRouter, Depends, HTTPException, status, Request
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select, func
from pydantic import BaseModel
from typing import Optional
from datetime import datetime, timedelta
from app.... | 2201_75827989/zhi_shi_ku | server/app/api/user.py | Python | unknown | 12,942 |
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
# 应用配置
APP_NAME: str = "知识库API"
DEBUG: bool = True
# 数据库
DATABASE_URL: str = "postgresql+asyncpg://postgres:password@localhost:5432/knowledge_db"
REDIS_URL: str = "redis://localhost:63... | 2201_75827989/zhi_shi_ku | server/app/core/config.py | Python | unknown | 1,331 |
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession, async_sessionmaker
from sqlalchemy.orm import declarative_base
from sqlalchemy import text
from .config import settings
engine = create_async_engine(
settings.DATABASE_URL,
echo=settings.DEBUG,
pool_pre_ping=True,
pool_size=10,
m... | 2201_75827989/zhi_shi_ku | server/app/core/database.py | Python | unknown | 1,140 |
import redis.asyncio as redis
import json
from typing import Optional, List
from .config import settings
class RedisClient:
def __init__(self):
self.redis = None
async def connect(self):
self.redis = redis.from_url(settings.REDIS_URL, decode_responses=True)
async def close(self):... | 2201_75827989/zhi_shi_ku | server/app/core/redis.py | Python | unknown | 1,935 |
from datetime import datetime, timedelta
from typing import Optional
from jose import JWTError, jwt
import bcrypt
from fastapi import Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
from .config import settings
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/api/user/login")
def veri... | 2201_75827989/zhi_shi_ku | server/app/core/security.py | Python | unknown | 1,512 |
"""
安全中间件 - 请求频率限制、IP黑名单、安全日志
"""
from fastapi import Request, HTTPException
from fastapi.responses import JSONResponse
from starlette.middleware.base import BaseHTTPMiddleware
import time
import hashlib
import logging
from typing import Dict, Tuple, List
from collections import defaultdict
from datetime import datetim... | 2201_75827989/zhi_shi_ku | server/app/core/security_middleware.py | Python | unknown | 8,457 |
from .user import User
from .conversation import Conversation, Message
from .knowledge import Knowledge, Category, Tag
from .file_storage import FileStorage
__all__ = ["User", "Conversation", "Message", "Knowledge", "Category", "Tag", "FileStorage"]
| 2201_75827989/zhi_shi_ku | server/app/models/__init__.py | Python | unknown | 251 |
from sqlalchemy import Column, Integer, String, Text, DateTime, SmallInteger, ForeignKey, JSON
from sqlalchemy.sql import func
from app.core.database import Base
class Conversation(Base):
__tablename__ = "conversations"
id = Column(Integer, primary_key=True, index=True)
user_id = Column(Integer, Fore... | 2201_75827989/zhi_shi_ku | server/app/models/conversation.py | Python | unknown | 1,736 |
"""文件存储模型"""
from sqlalchemy import Column, Integer, String, Text, DateTime, SmallInteger, ForeignKey, BigInteger
from sqlalchemy.sql import func
from app.core.database import Base
class FileStorage(Base):
"""文件存储表 - 记录上传到 COS 的文件"""
__tablename__ = "file_storage"
id = Column(Integer, primary_key=Tru... | 2201_75827989/zhi_shi_ku | server/app/models/file_storage.py | Python | unknown | 1,502 |
from sqlalchemy import Column, Integer, String, Text, DateTime, SmallInteger, ForeignKey, JSON
from sqlalchemy.sql import func
from app.core.database import Base
from app.core.config import settings
# pgvector 向量类型
from pgvector.sqlalchemy import Vector
VECTOR_TYPE = Vector(settings.EMBEDDING_DIMENSION)
class Knowle... | 2201_75827989/zhi_shi_ku | server/app/models/knowledge.py | Python | unknown | 2,133 |
from sqlalchemy import Column, Integer, String, DateTime, SmallInteger, Text
from sqlalchemy.sql import func
from app.core.database import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
username = Column(String(64), unique=True, nullable=False, index... | 2201_75827989/zhi_shi_ku | server/app/models/user.py | Python | unknown | 817 |
from typing import List, Optional, Dict, Any
from openai import AsyncOpenAI
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select, text
from app.core.config import settings
from app.core.redis import redis_client
from app.models.knowledge import Knowledge
from app.models.user import User
from ap... | 2201_75827989/zhi_shi_ku | server/app/services/ai_service.py | Python | unknown | 34,817 |
"""腾讯云 COS 文件存储服务"""
from qcloud_cos import CosConfig, CosS3Client
from app.core.config import settings
import uuid
from datetime import datetime
import os
class COSService:
def __init__(self):
config = CosConfig(
Region=settings.COS_REGION,
SecretId=settings.COS_SECRET_ID,
... | 2201_75827989/zhi_shi_ku | server/app/services/cos_service.py | Python | unknown | 3,554 |
import re
import httpx
from bs4 import BeautifulSoup
from typing import Optional, Dict
from urllib.parse import urlparse
class WebScraper:
"""网页抓取服务"""
def __init__(self):
self.headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like G... | 2201_75827989/zhi_shi_ku | server/app/services/web_scraper.py | Python | unknown | 6,738 |
from fastapi import FastAPI, Request
from fastapi.middleware.cors import CORSMiddleware
from fastapi.exceptions import RequestValidationError
from fastapi.responses import JSONResponse
from contextlib import asynccontextmanager
import os
from app.core.config import settings
from app.core.database import init_db
from a... | 2201_75827989/zhi_shi_ku | server/main.py | Python | unknown | 2,117 |
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* ... | 2201_75827989/zhi_shi_ku | uni.scss | SCSS | unknown | 2,409 |
<template>
<view class="defaultStyles">
</view>
</template>
<script lang="uts">
import Animator from 'android.animation.Animator'
import TextUtils from 'android.text.TextUtils'
import View from 'android.view.View'
import LottieAnimationView from 'com.airbnb.lottie.LottieAnimationView'
impor... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-android/index.vue | Vue | unknown | 5,921 |
<template>
<view class="defaultStyles">
</view>
</template>
<script lang="uts">
// import {
// LottieAnimationView,
// LottieAnimation,
// LottieLoopMode
// } from 'Lottie'
import {
URL
} from 'Foundation'
// import {
// UTSiOS
// } from "DCloudUTSFoundation"
//原生提供以下属性或方法的实现... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/index.vue | Vue | unknown | 5,958 |
// Created by Cal Stephens on 1/6/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAAnimation {
/// Creates a `CAAnimation` that wraps this animation,
/// applying timing-related configuration from the given `LayerAnimationContext`.
/// - This animation should start at the ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/CAAnimation+TimingConfiguration.swift | Swift | unknown | 4,275 |
// Created by Cal Stephens on 12/14/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
extension CALayer {
// MARK: Internal
/// Constructs a `CAKeyframeAnimation` that reflects the given keyframes,
/// and adds it to this `CALayer`.
@nonobjc
func addAnimation<KeyframeValue: AnyInt... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/CALayer+addAnimation.swift | Swift | unknown | 18,201 |
// Created by Cal Stephens on 1/28/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAShapeLayer {
/// Adds animations for the given `CombinedShapeItem` to this `CALayer`
@nonobjc
func addAnimations(
for combinedShapes: CombinedShapeItem,
context: LayerAnimationContex... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/CombinedShapeAnimation.swift | Swift | unknown | 2,330 |
// Created by Cal Stephens on 12/21/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAShapeLayer {
/// Adds animations for the given `BezierPath` keyframes to this `CALayer`
@nonobjc
func addAnimations(
for customPath: KeyframeGroup<BezierPath>,
context: LayerAnimati... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/CustomPathAnimation.swift | Swift | unknown | 2,432 |
// Created by Cal Stephens on 8/15/23.
// Copyright © 2023 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - DropShadowModel
protocol DropShadowModel {
/// The opacity of the drop shadow, from 0 to 100.
var _opacity: KeyframeGroup<LottieVector1D>? { get }
/// The shadow radius of the blur
var _r... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/DropShadowAnimation.swift | Swift | unknown | 5,785 |
// Created by Cal Stephens on 12/21/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAShapeLayer {
/// Adds animations for the given `Ellipse` to this `CALayer`
@nonobjc
func addAnimations(
for ellipse: Ellipse,
context: LayerAnimationContext,
pathMultiplier: Pat... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/EllipseAnimation.swift | Swift | unknown | 1,445 |
// Created by Cal Stephens on 1/7/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - GradientShapeItem
/// A `ShapeItem` that represents a gradient
protocol GradientShapeItem: OpacityAnimationModel {
var startPoint: KeyframeGroup<LottieVector3D> { get }
var endPoint: KeyframeGr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/GradientAnimations.swift | Swift | unknown | 7,911 |
// Created by Cal Stephens on 1/11/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - LayerProperty
/// A strongly typed value that can be used as the `keyPath` of a `CAAnimation`
///
/// Supported key paths and their expected value types are described
/// at https://developer.appl... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/LayerProperty.swift | Swift | unknown | 13,566 |
// Created by Cal Stephens on 5/17/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - OpacityAnimationModel
protocol OpacityAnimationModel {
/// The opacity animation to apply to a `CALayer`
var opacity: KeyframeGroup<LottieVector1D> { get }
}
// MARK: - Transform + OpacityAni... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/OpacityAnimation.swift | Swift | unknown | 1,464 |
// Created by Cal Stephens on 12/21/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAShapeLayer {
/// Adds animations for the given `Rectangle` to this `CALayer`
@nonobjc
func addAnimations(
for rectangle: Rectangle,
context: LayerAnimationContext,
pathMultiplie... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/RectangleAnimation.swift | Swift | unknown | 1,849 |
// Created by Cal Stephens on 1/7/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAShapeLayer {
/// Adds a `path` animation for the given `ShapeItem`
@nonobjc
func addAnimations(
for shape: ShapeItem,
context: LayerAnimationContext,
pathMultiplier: PathMultiplie... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/ShapeAnimation.swift | Swift | unknown | 9,284 |
// Created by Cal Stephens on 1/10/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
extension CAShapeLayer {
// MARK: Internal
/// Adds animations for the given `Rectangle` to this `CALayer`
@nonobjc
func addAnimations(
for star: Star,
context: LayerAnimationContext,
pa... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/StarAnimation.swift | Swift | unknown | 3,717 |
// Created by Cal Stephens on 2/10/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - StrokeShapeItem
/// A `ShapeItem` that represents a stroke
protocol StrokeShapeItem: ShapeItem, OpacityAnimationModel {
var strokeColor: KeyframeGroup<LottieColor>? { get }
var width: Keyframe... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/StrokeAnimation.swift | Swift | unknown | 2,626 |
// Created by Cal Stephens on 12/17/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - TransformModel
/// This protocol mirrors the interface of `Transform`,
/// but is also implemented by `ShapeTransform` to allow
/// both transform types to share the same animation implementation... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/TransformAnimations.swift | Swift | unknown | 12,198 |
// Created by Cal Stephens on 12/21/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
extension CALayer {
/// Adds an animation for the given `inTime` and `outTime` to this `CALayer`
@nonobjc
func addVisibilityAnimation(
inFrame: AnimationFrameTime,
outFrame: AnimationFrameTime,... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Animations/VisibilityAnimation.swift | Swift | unknown | 2,601 |
// Created by Cal Stephens on 5/4/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
// MARK: - CompatibilityIssue
/// A compatibility issue that was encountered while setting up an animation with the Core Animation engine
struct CompatibilityIssue: CustomStringConvertible {
let message: String
let context:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/CompatibilityTracker.swift | Swift | unknown | 3,920 |
// Created by Cal Stephens on 12/13/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - CoreAnimationLayer
/// The root `CALayer` of the Core Animation rendering engine
final class CoreAnimationLayer: BaseAnimationLayer {
// MARK: Lifecycle
/// Initializes a `CALayer` that ren... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/CoreAnimationLayer.swift | Swift | unknown | 20,875 |
// Created by Cal Stephens on 12/15/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - CALayer + fillBoundsOfSuperlayer
extension CALayer {
/// Updates the `bounds` of this layer to fill the bounds of its `superlayer`
/// without setting `frame` (which is not permitted if the l... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Extensions/CALayer+fillBounds.swift | Swift | unknown | 1,075 |
// Created by Cal Stephens on 1/11/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
// MARK: - KeyframeGroup + exactlyOneKeyframe
extension KeyframeGroup {
/// Retrieves the first `Keyframe` from this group,
/// and asserts that there are not any extra keyframes that would be ignored
/// - This should ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Extensions/KeyframeGroup+exactlyOneKeyframe.swift | Swift | unknown | 965 |
// Created by Cal Stephens on 1/28/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
// MARK: - Keyframes
enum Keyframes {
// MARK: Internal
/// Combines the given keyframe groups of `Keyframe<T>`s into a single keyframe group of of `Keyframe<[T]>`s
/// - If all of the `KeyframeGroup`s have the exact ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Extensions/Keyframes+combined.swift | Swift | unknown | 13,451 |
// Created by Cal Stephens on 1/8/24.
// Copyright © 2024 Airbnb Inc. All rights reserved.
extension Keyframes {
/// Manually interpolates the given keyframes, and applies `context.complexTimeRemapping`.
/// - Since `complexTimeRemapping` is a mapping from "global time" to "local time",
/// we have to manual... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Extensions/Keyframes+timeRemapping.swift | Swift | unknown | 1,899 |
// Created by Cal Stephens on 12/14/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - AnimationLayer
/// A type of `CALayer` that can be used in a Lottie animation
/// - Layers backed by a `LayerModel` subclass should subclass `BaseCompositionLayer`
protocol AnimationLayer: CALay... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/AnimationLayer.swift | Swift | unknown | 7,206 |
// Created by Cal Stephens on 1/27/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
/// A base `CALayer` that manages the frame and animations
/// of its `sublayers` and `mask`
class BaseAnimationLayer: CALayer, AnimationLayer {
// MARK: Internal
override func layoutSublayers() {
s... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/BaseAnimationLayer.swift | Swift | unknown | 819 |
// Created by Cal Stephens on 12/20/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - BaseCompositionLayer
/// The base type of `AnimationLayer` that can contain other `AnimationLayer`s
class BaseCompositionLayer: BaseAnimationLayer {
// MARK: Lifecycle
init(layerModel: Laye... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/BaseCompositionLayer.swift | Swift | unknown | 3,716 |
// Created by Cal Stephens on 1/11/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
extension CALayer {
// MARK: Internal
/// Sets up an `AnimationLayer` / `CALayer` hierarchy in this layer,
/// using the given list of layers.
@nonobjc
func setupLayerHierarchy(
for layers: [L... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/CALayer+setupLayerHierarchy.swift | Swift | unknown | 6,090 |
// Created by Cal Stephens on 1/10/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - GradientRenderLayer
/// A `CAGradientLayer` subclass used to render a gradient _outside_ the normal layer bounds
///
/// - `GradientFill.startPoint` and `GradientFill.endPoint` are expressed
/// ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/GradientRenderLayer.swift | Swift | unknown | 3,691 |
// Created by Cal Stephens on 1/10/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - ImageLayer
/// The `CALayer` type responsible for rendering `ImageLayerModel`s
final class ImageLayer: BaseCompositionLayer {
// MARK: Lifecycle
init(
imageLayer: ImageLayerModel,
co... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/ImageLayer.swift | Swift | unknown | 2,067 |
// Created by Cal Stephens on 10/10/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - ExpandedAnimationLayer
/// A `BaseAnimationLayer` subclass that renders its background color
/// as if the layer is infinitely large, without affecting its bounds
/// or the bounds of its sublaye... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/InfiniteOpaqueAnimationLayer.swift | Swift | unknown | 1,739 |
// Created by Cal Stephens on 12/20/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
// MARK: - LayerContext
/// Context available when constructing an `AnimationLayer`
struct LayerContext {
let animation: LottieAnimation
let imageProvider: AnimationImageProvider
let textProvider: AnimationKeypathTextPr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/LayerModel+makeAnimationLayer.swift | Swift | unknown | 1,852 |
// Created by Cal Stephens on 1/6/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - MaskCompositionLayer
/// The CALayer type responsible for rendering the `Mask` of a `BaseCompositionLayer`
final class MaskCompositionLayer: CALayer {
// MARK: Lifecycle
init(masks: [Mask]) {... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/MaskCompositionLayer.swift | Swift | unknown | 3,754 |
// Created by Cal Stephens on 12/14/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - PreCompLayer
/// The `CALayer` type responsible for rendering `PreCompLayerModel`s
final class PreCompLayer: BaseCompositionLayer {
// MARK: Lifecycle
init(preCompLayer: PreCompLayerModel) ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/PreCompLayer.swift | Swift | unknown | 3,940 |
// Created by Cal Stephens on 8/1/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - RepeaterLayer
/// A layer that renders a child layer at some offset using a `Repeater`
final class RepeaterLayer: BaseAnimationLayer {
// MARK: Lifecycle
init(repeater: Repeater, childLayer: ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/RepeaterLayer.swift | Swift | unknown | 2,737 |
// Created by Cal Stephens on 12/13/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - ShapeItemLayer
/// A CALayer type that renders an array of `[ShapeItem]`s,
/// from a `Group` in a `ShapeLayerModel`.
final class ShapeItemLayer: BaseAnimationLayer {
// MARK: Lifecycle
///... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/ShapeItemLayer.swift | Swift | unknown | 11,617 |
// Created by Cal Stephens on 12/14/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - ShapeLayer
/// The CALayer type responsible for rendering `ShapeLayerModel`s
final class ShapeLayer: BaseCompositionLayer {
// MARK: Lifecycle
init(shapeLayer: ShapeLayerModel, context: Lay... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/ShapeLayer.swift | Swift | unknown | 22,166 |
// Created by Cal Stephens on 12/13/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - SolidLayer
final class SolidLayer: BaseCompositionLayer {
// MARK: Lifecycle
init(_ solidLayer: SolidLayerModel) {
self.solidLayer = solidLayer
super.init(layerModel: solidLayer)
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/SolidLayer.swift | Swift | unknown | 2,084 |
// Created by Cal Stephens on 2/9/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
/// The `CALayer` type responsible for rendering `TextLayer`s
final class TextLayer: BaseCompositionLayer {
// MARK: Lifecycle
init(
textLayerModel: TextLayerModel,
context: LayerContext)
thr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/TextLayer.swift | Swift | unknown | 4,716 |
// Created by Cal Stephens on 12/21/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
/// The CALayer type responsible for only rendering the `transform` of a `LayerModel`
final class TransformLayer: BaseCompositionLayer {
/// `TransformLayer`s don't render any visible content,
/// they just `transform` th... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/Layers/TransformLayer.swift | Swift | unknown | 389 |
// Created by Cal Stephens on 1/13/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - ValueProviderStore
/// Registration and storage for `AnyValueProvider`s that can dynamically
/// provide custom values for `AnimationKeypath`s within a `LottieAnimation`.
final class ValueProvider... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/CoreAnimation/ValueProviderStore.swift | Swift | unknown | 5,784 |
// Created by Laura Skelton on 11/25/16.
// Copyright © 2016 Airbnb. All rights reserved.
// MARK: - Collection
extension Collection where Element: Diffable, Index == Int {
/// Diffs two collections (e.g. `Array`s) of `Diffable` items, returning an `IndexChangeset`
/// representing the minimal set of changes t... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Diffing/Collection+Diff.swift | Swift | unknown | 8,094 |
// Created by Laura Skelton on 5/11/17.
// Copyright © 2017 Airbnb. All rights reserved.
// MARK: - Diffable
/// A protocol that allows us to check identity and equality between items for the purposes of
/// diffing.
protocol Diffable {
/// Checks for equality between items when diffing.
///
/// - Parameters... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Diffing/Diffable.swift | Swift | unknown | 588 |
// Created by eric_horacek on 12/9/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - DiffableSection
/// A protocol that allows us to check identity and equality between sections of `Diffable` items
/// for the purposes of diffing.
protocol DiffableSection: Diffable {
/// The diffable items in thi... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Diffing/DiffableSection.swift | Swift | unknown | 537 |
// Created by Laura Skelton on 11/25/16.
// Copyright © 2016 Airbnb. All rights reserved.
import Foundation
// MARK: - IndexChangeset
/// A set of inserts, deletes, updates, and moves that define the changes between two collections.
struct IndexChangeset {
// MARK: Lifecycle
init(
inserts: [Int] = [],
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Diffing/IndexChangeset.swift | Swift | unknown | 6,576 |
// Created by Laura Skelton on 5/11/17.
// Copyright © 2017 Airbnb. All rights reserved.
/// A set of the minimum changes to get from one array of `DiffableSection`s to another, used for
/// diffing.
struct SectionedChangeset {
// MARK: Lifecycle
init(
sectionChangeset: IndexSetChangeset,
itemChangeset... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Diffing/SectionedChangeset.swift | Swift | unknown | 900 |
// Created by eric_horacek on 12/9/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
/// A shared logger that allows consumers to intercept Epoxy assertions and warning messages to pipe
/// into their own logging systems.
final class EpoxyLogger {
// MARK: Lifecycle
init(
assert: @escaping Assert = { ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Logging/EpoxyLogger.swift | Swift | unknown | 2,935 |
// Created by eric_horacek on 12/15/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
/// An Epoxy model with an associated context type that's passed into callback closures.
protocol CallbackContextEpoxyModeled: EpoxyModeled {
/// A context type that's passed into callback closures.
associatedtype Callback... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/CallbackContextEpoxyModeled.swift | Swift | unknown | 331 |
// Created by eric_horacek on 3/15/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
/// A generic result builder that enables a DSL for building arrays of Epoxy models.
@resultBuilder
enum EpoxyModelArrayBuilder<Model> {
typealias Expression = Model
typealias Component = [Model]
static func buildExpress... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModelArrayBuilder.swift | Swift | unknown | 1,162 |
// Created by eric_horacek on 11/18/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - EpoxyModelProperty
/// A property that can be stored in any concrete `EpoxyModeled` type.
///
/// Custom model properties can be declared in any module. It's recommended that properties are
/// declared as `var`s i... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModelProperty.swift | Swift | unknown | 4,880 |
// Created by eric_horacek on 11/18/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - EpoxyModelStorage
/// The underlying storage for an `EpoxyModeled` model that is capable of storing any
/// `EpoxyModelProperty`.
///
/// Supports being extended with additional storage capabilities in other module... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModelStorage.swift | Swift | unknown | 3,241 |
// Created by eric_horacek on 11/18/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - EpoxyModeled
/// A protocol that all concrete Epoxy declarative UI model types conform to.
///
/// This protocol should be conditionally extended to fulfill provider protocols and with chainable
/// setters for tho... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/EpoxyModeled.swift | Swift | unknown | 1,957 |
// Created by eric_horacek on 12/1/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - AnyEpoxyModelProperty
/// An erased `EpoxyModelProperty`, with the ability to call the `UpdateStrategy` even when the type
/// has been erased.
protocol AnyEpoxyModelProperty {
/// Returns the updated property fro... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Internal/AnyEpoxyModelProperty.swift | Swift | unknown | 1,067 |
// Created by Cal Stephens on 10/15/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
// MARK: - ClassReference
/// A `Hashable` value wrapper around an `AnyClass` value
/// - Unlike `ObjectIdentifier(class)`, `ClassReference(class)`
/// preserves the `AnyClass` value and is more human-readable.
struct Cla... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Internal/ClassReference.swift | Swift | unknown | 903 |
// Created by eric_horacek on 12/16/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
/// The capability of providing a flag indicating whether an operation should be animated.
///
/// Typically conformed to by the `CallbackContext` of a `CallbackContextEpoxyModeled`.
protocol AnimatedProviding {
/// Whether ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/AnimatedProviding.swift | Swift | unknown | 387 |
// Created by eric_horacek on 12/1/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - DataIDProviding
/// The capability of providing a stable data identifier with an erased type.
///
/// While it has similar semantics, this type cannot inherit from `Identifiable` as this would give
/// it an associa... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DataIDProviding.swift | Swift | unknown | 1,725 |
// Created by eric_horacek on 1/6/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
// MARK: - DidDisplayProviding
/// A sentinel protocol for enabling an `CallbackContextEpoxyModeled` to provide a `didDisplay`
/// closure property.
///
/// - SeeAlso: `WillDisplayProviding`
/// - SeeAlso: `DidEndDisplayingProv... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DidDisplayProviding.swift | Swift | unknown | 1,363 |
// Created by eric_horacek on 12/15/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - DidEndDisplayingProviding
/// A sentinel protocol for enabling an `CallbackContextEpoxyModeled` to provide a
/// `didEndDisplaying` closure property.
protocol DidEndDisplayingProviding { }
// MARK: - CallbackConte... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DidEndDisplayingProviding.swift | Swift | unknown | 1,485 |
// Created by eric_horacek on 12/2/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - DidSelectProviding
/// A sentinel protocol for enabling an `CallbackContextEpoxyModeled` to provide a `didSelect`
/// closure property.
protocol DidSelectProviding { }
// MARK: - CallbackContextEpoxyModeled
extens... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/DidSelectProviding.swift | Swift | unknown | 1,151 |
// Created by eric_horacek on 12/2/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - ErasedContentProviding
/// The capability of providing an type-erased `Equatable` content instance.
protocol ErasedContentProviding {
/// The type-erased content instance of this model, else `nil` if there is no c... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/ErasedContentProviding.swift | Swift | unknown | 1,813 |
// Created by eric_horacek on 12/1/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - MakeViewProviding
/// The capability of constructing a `UIView`.
protocol MakeViewProviding {
/// The view constructed when the `MakeView` closure is called.
associatedtype View: ViewType
/// A closure that's... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/MakeViewProviding.swift | Swift | unknown | 2,121 |
// Created by eric_horacek on 12/2/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - SetBehaviorsProviding
/// A sentinel protocol for enabling an `CallbackContextEpoxyModeled` to provide a `setBehaviors`
/// closure property.
protocol SetBehaviorsProviding { }
// MARK: - CallbackContextEpoxyModele... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/SetBehaviorsProviding.swift | Swift | unknown | 1,350 |
// Created by eric_horacek on 12/1/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - SetContentProviding
/// A sentinel protocol for enabling an `CallbackContextEpoxyModeled` to provide a `setContent`
/// closure property.
protocol SetContentProviding { }
// MARK: - CallbackContextEpoxyModeled
ext... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/SetContentProviding.swift | Swift | unknown | 1,316 |
// Created by eric_horacek on 12/1/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - StyleIDProviding
protocol StyleIDProviding {
/// An optional ID for a style type to use for reuse of a view.
///
/// Use this to differentiate between different styling configurations.
var styleID: AnyHashab... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/StyleIDProviding.swift | Swift | unknown | 943 |
// Created by eric_horacek on 12/16/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
#if !os(macOS)
import UIKit
/// The capability of providing a `UITraitCollection` instance.
///
/// Typically conformed to by the `CallbackContext` of a `CallbackContextEpoxyModeled`.
protocol TraitCollectionProviding {
///... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/TraitCollectionProviding.swift | Swift | unknown | 436 |
// Created by Bryan Keller on 12/17/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - ViewDifferentiatorProviding
/// The capability of providing a view differentiator that facilitates generating collection view
/// cell reuse identifiers.
protocol ViewDifferentiatorProviding {
/// The view differ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/ViewDifferentiatorProviding.swift | Swift | unknown | 1,128 |
// Created by eric_horacek on 12/16/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
/// The capability of providing an `View` instance
///
/// Typically conformed to by the `CallbackContext` of a `CallbackContextEpoxyModeled`.
protocol ViewProviding {
/// The `UIView` view of this type.
associatedtype Vie... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/ViewProviding.swift | Swift | unknown | 417 |
// Created by eric_horacek on 12/15/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - WillDisplayProviding
/// A sentinel protocol for enabling an `CallbackContextEpoxyModeled` to provide a `willDisplay`
/// closure property.
///
/// - SeeAlso: `DidDisplayProviding`
/// - SeeAlso: `DidEndDisplayingP... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/Providers/WillDisplayProviding.swift | Swift | unknown | 1,377 |
// Created by eric_horacek on 12/4/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
/// An Epoxy model with an associated `UIView` type.
protocol ViewEpoxyModeled: EpoxyModeled {
/// The view type associated with this model.
///
/// An instance of this view is typically configured by this model.
associ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Model/ViewEpoxyModeled.swift | Swift | unknown | 347 |