repo_id stringlengths 6 101 | size int64 367 5.14M | file_path stringlengths 1 269 | content stringlengths 367 5.14M |
|---|---|---|---|
000haoji/deep-student | 9,108 | src-tauri/src/enhanced_anki_service.rs | use crate::models::{
DocumentTask, TaskStatus, AnkiCard, AnkiGenerationOptions, AppError, StreamedCardPayload,
StreamEvent, AnkiDocumentGenerationRequest
};
use crate::database::Database;
use crate::llm_manager::LLMManager;
use crate::document_processing_service::DocumentProcessingService;
use crate::streaming_... |
000haoji/deep-student | 13,878 | src-tauri/src/lib.rs | // Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
pub mod models;
pub mod llm_manager;
pub mod analysis_service;
pub mod commands;
pub mod crypto;
pub mod database;
pub mod file_manager;
pub mod batch_operations;
pub mod database_optimizations;
pub mod anki_connect_service;
pub mod apkg_expo... |
000haoji/deep-student | 55,374 | src-tauri/src/rag_manager.rs | use crate::models::{
DocumentChunk, DocumentChunkWithEmbedding, RetrievedChunk, RagQueryOptions,
KnowledgeBaseStatusPayload, DocumentProcessingStatus, DocumentProcessingStage,
RagQueryResponse, AppError
};
use crate::vector_store::{SqliteVectorStore, VectorStore};
use crate::llm_manager::LLMManager;
use c... |
0015/map_tiles | 9,617 | README.md | # Map Tiles Component for LVGL 9.x
A comprehensive map tiles component for ESP-IDF projects using LVGL 9.x. This component provides functionality to load and display map tiles with GPS coordinate conversion, designed for embedded applications requiring offline map display capabilities.
## Features
- **LVGL 9.x Compa... |
000haoji/deep-student | 16,777 | src-tauri/src/debug_logger.rs | /**
* 后端调试日志记录模块
* 用于记录数据库操作、API调用、流式处理等关键信息
*/
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fs::{File, OpenOptions};
use std::io::Write;
use std::path::PathBuf;
use std::sync::{Arc, Mutex};
use tauri::Manager;
use tracing::{error, info, warn};
#[derive(... |
000ylop/galgame_cn | 5,667 | readme.md | # galgame_cn
如标题所叙,本项目主要收集galgame汉化资源站点/频道
附带一个 `generate_list` 工具来生成markdown文档。
## 免责声明
本项目只是出于个人兴趣,收集一些入门门槛较低的资源站点/频道。
本项目不保证您通过这些站点/频道下载的资源是安全的,请您自行斟酌。
## 生成
```bash
cd generate_list &&
touch ../readme.md &&
mkdir res &&
cargo run -- -o ../readme.md -s ../sites.txt &&
mv res ..
```
## 频道
[莱茵图... |
0015/map_tiles | 15,307 | map_tiles.cpp | #include "map_tiles.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "esp_log.h"
#include "esp_heap_caps.h"
static const char* TAG = "map_tiles";
// Internal structure for map tiles instance
struct map_tiles_t {
// Configuration
char* base_path;
char* tile_folders[M... |
0015/map_tiles | 5,525 | script/lvgl_map_tile_converter.py | import os
import struct
import argparse
import threading
from concurrent.futures import ThreadPoolExecutor, as_completed
from PIL import Image # pip install pillow
# No implicit defaults; these are set from CLI in main()
INPUT_ROOT = None
OUTPUT_ROOT = None
# Convert RGB to 16-bit RGB565
def to_rgb565(r, g, b):
... |
0015/map_tiles | 2,451 | script/README.md | # **LVGL Map Tile Converter**
This Python script is designed to convert a directory of PNG map tiles into a format compatible with LVGL (Light and Versatile Graphics Library) version 9\. The output is a series of binary files (.bin) with a header and pixel data in the RGB565 format, optimized for direct use with LVGL'... |
0015/map_tiles | 8,744 | examples/basic_map_display.c | #include "map_tiles.h"
#include "lvgl.h"
#include "esp_log.h"
static const char* TAG = "map_example";
// Map tiles handle
static map_tiles_handle_t map_handle = NULL;
// LVGL objects for displaying tiles
static lv_obj_t* map_container = NULL;
static lv_obj_t** tile_images = NULL; // Dynamic array for configurable g... |
0015/map_tiles | 7,960 | include/map_tiles.h | #pragma once
#include <stdint.h>
#include <stdbool.h>
#include "lvgl.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Map tiles component for LVGL 9.x
*
* This component provides functionality to load and display map tiles with GPS coordinate conversion.
* Tiles are assumed to be 256x256 pixels in RGB565 ... |
000haoji/deep-student | 31,459 | src-tauri/src/models.rs | use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
use std::fmt;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChatMessage {
pub role: String, // "user" 或 "assistant"
pub content: String,
pub timestamp: DateTime<Utc>,
#[serde(default, skip_serializing_if = "Option::is_none")... |
000haoji/deep-student | 10,538 | src-tauri/src/document_parser.rs | /**
* 文档解析核心模块
*
* 提供统一的文档文本提取功能,支持DOCX和PDF格式
* 支持文件路径、字节流和Base64编码三种输入方式
*/
use std::io::Cursor;
use std::fs;
use std::path::Path;
use serde::{Deserialize, Serialize};
use base64::{Engine, engine::general_purpose};
/// 文档文件大小限制 (100MB)
const MAX_DOCUMENT_SIZE: usize = 100 * 1024 * 1024;
/// 流式处理时的缓冲区大小 (1MB)
... |
0015/LVGL_Joystick | 2,798 | README.md | # LVGL Joystick Library
This library provides an easy way to create virtual joysticks for use in an LVGL environment. It supports both ESP-IDF and Arduino platforms and allows you to handle joystick input with customizable styles and callbacks.
[](https://youtu.be/ZhhSd6L... |
0015/RPI-Projects | 1,171 | README.md | <pre>
██████╗ █████╗ ███████╗██████╗ ██████╗ ███████╗██████╗ ██████╗ ██╗ ██╗ ██████╗ ██╗
██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔══██╗██║
██████╔╝███████║███████╗██████╔╝██████╔╝█████╗ ██████╔╝██████╔╝ ╚████╔╝ ██████╔╝██║
██╔══██╗██╔══██║╚════██║██╔═══╝ ██╔══██╗██╔══╝ ... |
0015/LVGL_Joystick | 5,164 | src/lvgl_joystick.c | #include "lvgl_joystick.h"
#include <math.h>
#include <stdlib.h>
static void joystick_trigger_callback(joystick_data_t *data, int16_t x,
int16_t y) {
if (data->position_callback) {
data->position_callback(data->joystick_id, x, y);
}
}
static void joystick_handle_release(... |
0015/LVGL_Joystick | 1,193 | src/lvgl_joystick.h | #ifndef LVGL_JOYSTICK_H
#define LVGL_JOYSTICK_H
#ifdef __cplusplus
extern "C" {
#endif
#pragma once
#include <lvgl.h>
// Callback function type
typedef void (*joystick_position_cb_t)(uint8_t joystick_id, int16_t x,
int16_t y);
// Enum for how joystick reports data in the callb... |
000haoji/deep-student | 145,648 | src-tauri/src/database.rs | use std::path::{Path, PathBuf};
use std::fs;
use std::sync::Mutex;
use anyhow::{Context, Result};
use rusqlite::{Connection, params, OptionalExtension};
use chrono::{Utc, DateTime};
use crate::models::{MistakeItem, ChatMessage, Statistics, SubjectConfig, SubjectPrompts, DocumentTask, TaskStatus, AnkiCard, SubLibrary, C... |
000haoji/deep-student | 12,770 | src-tauri/src/anki_connect_service.rs | use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use crate::models::AnkiCard;
use std::net::TcpStream;
use std::time::Duration;
const ANKI_CONNECT_URL: &str = "http://127.0.0.1:8765";
#[derive(Serialize)]
struct AnkiConnectRequest {
action: String,
version: u32,
#[serde(skip_serializing... |
000haoji/deep-student | 22,135 | src-tauri/src/vector_store.rs | use crate::models::{
DocumentChunk, DocumentChunkWithEmbedding, RetrievedChunk, VectorStoreStats, AppError
};
use crate::database::Database;
use std::sync::Arc;
use serde_json::Value;
use rusqlite::params;
type Result<T> = std::result::Result<T, AppError>;
/// 向量存储抽象接口
pub trait VectorStore {
/// 添加文档块和对应的向量
... |
000haoji/deep-student | 16,531 | src-tauri/src/batch_operations.rs | /**
* Batch Operations Module
*
* Provides efficient batch operations for database operations to improve performance
* when dealing with multiple mistakes, chat messages, or other bulk operations.
*/
use anyhow::Result;
use rusqlite::{Connection, params};
use chrono::Utc;
use crate::models::{MistakeItem, ChatMes... |
0015/RPI-Projects | 1,417 | WIFI Streaming Camera/0.RPI_Scripts/connect_cam.sh | #!/bin/bash
# Set the WiFi SSID and password
SSID="AMB82-Mini"
PASSWORD="Password"
# Path to the wpa_supplicant configuration file
WPA_CONF_FILE="/etc/wpa_supplicant/wpa_supplicant.conf"
# Add network configuration to wpa_supplicant configuration file
# This part needs to run with root privileges
echo "network={" >>... |
000ylop/galgame_cn | 4,474 | generate_list/src/main.rs | use std::fs::{self, OpenOptions};
use std::io::{BufWriter, Write};
use std::path::PathBuf;
use std::time::Duration;
use playwright::Playwright;
use std::sync::Arc;
use tokio::task::JoinSet;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let Args {
sites,
output,
proxy,
} = Args... |
000haoji/deep-student | 9,124 | src-tauri/src/analysis_service.rs | use crate::models::{ChatMessage, MistakeItem};
use crate::llm_manager::LLMManager;
use crate::database::Database;
use anyhow::Result;
use serde_json::json;
use std::collections::HashMap;
use std::sync::Arc;
use tauri::Window;
// 分析结果结构
#[derive(Debug, Clone)]
pub struct AnalysisResult {
pub ocr_text: String,
p... |
000haoji/deep-student | 20,046 | src-tauri/src/database_optimizations.rs | /**
* Database Optimization Module
*
* Provides optimized database query functions for better performance,
* especially for tag filtering and complex search operations.
*/
use anyhow::Result;
use rusqlite::Connection;
use chrono::{Utc, DateTime};
use crate::models::MistakeItem;
use std::collections::HashMap;
pu... |
0015/RPI-Projects | 2,946 | WIFI Streaming Camera/1.AMB82_RTSP_APMode/1.AMB82_RTSP_APMode.ino | /////////////////////////////////////////////////////////////////
/*
WiFi Streaming Camera for AMB32-Mini
For More Information: https://youtu.be/FEs1RIjfO3Y
Created by Eric N. (ThatProject)
*/
/////////////////////////////////////////////////////////////////
#include "WiFi.h"
#include "StreamIO.h"
#include "Vide... |
0015/LVGL_Joystick | 77,022 | examples/espidf_example/sdkconfig | #
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.3.0 Project Configuration
#
CONFIG_SOC_MPU_MIN_REGION_SIZE=0x20000000
CONFIG_SOC_MPU_REGIONS_MAX_NUM=8
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_PCNT_SUPPORTED=y
CONFIG_SOC_PHY_SUPPORTED=y
CONFIG_SOC... |
0015/LVGL_Joystick | 77,022 | examples/espidf_example/sdkconfig.wt32sc01plus | #
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.3.0 Project Configuration
#
CONFIG_SOC_MPU_MIN_REGION_SIZE=0x20000000
CONFIG_SOC_MPU_REGIONS_MAX_NUM=8
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_PCNT_SUPPORTED=y
CONFIG_SOC_PHY_SUPPORTED=y
CONFIG_SOC... |
0015/LVGL_Joystick | 1,870 | examples/arduino_example/LGFX_WT32-SC01-Plus.h | #define LGFX_USE_V1
#include <LovyanGFX.hpp>
class LGFX : public lgfx::LGFX_Device {
lgfx::Panel_ST7796 _panel_instance;
lgfx::Bus_Parallel8 _bus_instance;
lgfx::Light_PWM _light_instance;
lgfx::Touch_FT5x06 _touch_instance;
public:
LGFX(void) {
{
auto cfg = _bus_instance.config();
cfg.freq_... |
000haoji/deep-student | 40,367 | src-tauri/src/streaming_anki_service.rs | use crate::models::{
DocumentTask, TaskStatus, AnkiCard, AnkiGenerationOptions, AppError, StreamedCardPayload,
StreamEvent, SubjectConfig, FieldType, FieldExtractionRule
};
use crate::llm_manager::ApiConfig;
use crate::database::Database;
use crate::llm_manager::LLMManager;
use std::sync::Arc;
use uuid::Uuid;
... |
000haoji/deep-student | 6,997 | src-tauri/src/gemini_adapter.rs | // src-tauri/src/gemini_adapter.rs
use crate::models::{AppError, ChatMessage, StandardModel2Output, StreamChunk};
use crate::llm_manager::ApiConfig;
use futures_util::StreamExt;
use reqwest::Client;
use serde_json::{json, Value};
use tauri::{Emitter, Window};
use std::time::Duration;
type Result<T> = std::result::Res... |
0015/LVGL_Joystick | 3,446 | examples/arduino_example/arduino_example.ino | /*
This example is based on WT32-SC01-Plus in Arduino environment. The graphics library uses LovyanGFX.
$ Tested version
Arduino ESP32: 3.0.4
LVGL: 9.2.0
LovyanGFX: 1.1.16
*/
#include "LGFX_WT32-SC01-Plus.h"
#include <lvgl.h>
#include <lvgl_joystick.h>
static LGFX tft;
#define TFT_HOR_RES 320
#define TFT_VER_RES 48... |
0015/LVGL_Joystick | 10,838 | examples/espidf_example/main/main.c | /*
This example is based on WT32-SC01-Plus in ESP-IDF environment.
Using BSP-IDF5-ESP_LCD-LVGL9 [https://github.com/sukesh-ak/BSP-IDF5-ESP_LCD-LVGL9]
$ Tested version
ESP-IDF: 5.3.0
LVGL: 9.2.0
esp_lvgl_port: 2.3.1
esp_lcd_st7796: 1.3.0
esp_lcd_touch_ft5x06: 1.0.6
*/
#include <stdio.h>
#include <inttypes.h>
#include... |
000haoji/deep-student | 5,045 | src-tauri/src/cogni_graph/models.rs | use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ProblemCard {
pub id: String,
pub content_problem: String,
pub content_insight: String,
pub status: String, // 'unsolved', 'solved'
pub embedding: Option<Vec<f32>>,
pub c... |
000haoji/deep-student | 12,040 | src-tauri/src/cogni_graph/handlers.rs | use crate::cogni_graph::{
GraphConfig, GraphService, SearchService, CreateCardRequest, SearchRequest,
RecommendationRequest, ProblemCard, SearchResult, Recommendation, Tag,
CreateTagRequest, TagHierarchy, TagType
};
use crate::commands::AppState;
use crate::llm_manager::LLMManager;
use anyhow::{Result, any... |
000haoji/deep-student | 1,044 | src-tauri/src/cogni_graph/config.rs | use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Neo4jConfig {
pub uri: String,
pub username: String,
pub password: String,
pub database: Option<String>,
}
impl Default for Neo4jConfig {
fn default() -> Self {
Self {
uri: "bolt://l... |
000haoji/deep-student | 10,812 | src-tauri/src/cogni_graph/services/search_service.rs | use crate::cogni_graph::{
GraphConfig, ProblemCard, SearchRequest, SearchResult, Neo4jService, Tag, TagType
};
use crate::llm_manager::LLMManager;
use anyhow::{Result, anyhow};
use std::sync::Arc;
use std::collections::{HashMap, HashSet};
use tokio::sync::RwLock;
pub struct SearchService {
neo4j: Neo4jService,... |
000haoji/deep-student | 10,053 | src-tauri/src/cogni_graph/services/graph_service.rs | use crate::cogni_graph::{
GraphConfig, ProblemCard, Tag, CreateCardRequest, RecommendationRequest,
Recommendation, RelationshipType, Neo4jService, CreateTagRequest, TagHierarchy, TagType
};
use crate::llm_manager::LLMManager;
use anyhow::{Result, anyhow};
use std::sync::Arc;
use tokio::sync::RwLock;
pub struc... |
000haoji/deep-student | 19,219 | src-tauri/src/cogni_graph/services/neo4j_service.rs | use crate::cogni_graph::{GraphConfig, ProblemCard, Tag, RelationshipType, CreateTagRequest, TagHierarchy, TagType};
use anyhow::{Result, anyhow};
use neo4rs::{Graph, Query};
use serde_json::Value;
use std::collections::HashMap;
pub struct Neo4jService {
pub graph: Graph,
config: GraphConfig,
}
impl Neo4jServi... |
000haoji/deep-student | 8,022 | src/components/MessageWithThinking.tsx | import React, { useState } from 'react';
import { MarkdownRenderer } from './MarkdownRenderer';
import { StreamingMarkdownRenderer } from './StreamingMarkdownRenderer';
import { SummaryBox } from './SummaryBox';
import { ChatMessageContentPart, ChatMessage } from '../types';
interface MessageWithThinkingProps {
cont... |
000haoji/deep-student | 19,790 | src/components/TemplateManagementPage.css | /* 模板管理页面 - 彻底重写,优先保证卡片完整显示 */
.template-management-page {
min-height: 100vh;
display: flex;
flex-direction: column;
background: #fafafa;
/* 移除所有高度限制,让内容自然扩展 */
/* height: 100vh; */
/* max-height: 100vh; */
/* overflow: hidden; */
/* 强制移除所有可能的限制 */
width: auto !important;
height: auto !important;
... |
000haoji/deep-student | 9,416 | src/components/SimplifiedChatInterface.tsx | /**
* Simplified Chat Interface
*
* Replaces the complex AI SDK implementation with a simpler approach
* that uses the unified stream handler directly.
*/
import React, { useState, useRef, useEffect } from 'react';
import { useUnifiedStream, StreamMessage, MarkdownRenderer, MessageWithThinking } from '../chat-co... |
000haoji/deep-student | 25,006 | src/components/ImageOcclusion.tsx | import React, { useState, useRef, useCallback, useEffect } from 'react';
import { invoke } from '@tauri-apps/api/core';
import './ImageOcclusion.css';
interface TextRegion {
text: string;
bbox: [number, number, number, number];
confidence: number;
region_id: string;
}
interface ImageOcrResponse {
success: b... |
000haoji/deep-student | 2,488 | src/components/MarkdownRenderer.tsx | import React from 'react';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
interface MarkdownRendererProps {
content: string;
className?: string;
}
// 简化的LaTeX预处理,最小化干预
const preprocessLatex = (content: s... |
000haoji/deep-student | 20,531 | src/components/ReviewAnalysisSessionView_old.tsx | import React, { useState, useEffect, useRef, useCallback } from 'react';
import { ReviewSessionTask, ChatMessage } from '../types/index';
import { useNotification } from '../hooks/useNotification';
import { TauriAPI } from '../utils/tauriApi';
import { listen } from '@tauri-apps/api/event';
import { MessageWithThinking... |
000haoji/deep-student | 12,423 | src/components/TemplateManager.css | /* 模板管理器主容器 */
.template-manager-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.template-manager-backdrop {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.... |
000haoji/deep-student | 3,374 | src/components/WindowControls.tsx | import { useState, useEffect } from 'react';
import { getCurrentWindow } from '@tauri-apps/api/window';
export const WindowControls: React.FC = () => {
const [isMaximized, setIsMaximized] = useState(false);
useEffect(() => {
const initWindow = async () => {
const window = getCurrentWindow();
... |
000haoji/deep-student | 9,586 | src/components/EnhancedRagQueryView.css | /* 增强RAG查询视图样式 */
.enhanced-rag-query-view {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
background: #f8fafc;
min-height: 100vh;
}
/* 查询头部 */
.query-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 20px;
background: white;
border-r... |
000haoji/deep-student | 22,970 | src/components/TemplateManager.tsx | import React, { useState, useEffect, useRef } from 'react';
import { CustomAnkiTemplate, CreateTemplateRequest, FieldExtractionRule, AnkiCardTemplate } from '../types';
import { templateManager } from '../data/ankiTemplates';
import './TemplateManager.css';
import { IframePreview, renderCardPreview } from './SharedPrev... |
000haoji/deep-student | 10,366 | src/components/KnowledgeGraphManagement.css | .knowledge-graph-management {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.knowledge-graph-management h2 {
color: #2c3e50;
border-bottom: 3px solid #3498db;
padding-bottom: 10px;
margin-bottom: 30px;
}
.error-message {
background-... |
000haoji/deep-student | 1,806 | src/components/ModernSelect.tsx | import React, { useState, useRef, useEffect } from 'react';
import './ModernSelect.css';
export interface ModernSelectProps {
options: string[];
value: string;
onChange: (value: string) => void;
placeholder?: string;
disabled?: boolean;
fullWidth?: boolean;
}
// 一个轻量级、无依赖的自定义下拉选择器
const ModernSelect: Reac... |
000haoji/deep-student | 13,480 | src/components/ReviewAnalysis.css | /* 统一回顾分析组件样式 */
/* 通用容器样式 */
.review-analysis-container {
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
}
.review-analysis-main {
flex: 1;
padding: 20px;
overflow-y: auto;
background-color: #f8fafc;
}
/* 头部样式 */
.review-analysis-header {
background: white;
... |
000haoji/deep-student | 55,570 | src/components/BatchAnalysis.tsx | import React, { useState, useEffect, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { BatchTask, ChatMessage } from '../types';
import UniversalAppChatHost, { UniversalAppChatHostProps } from './UniversalAppChatHost';
interface BatchAnalysisProps {
onBack: () => void;
}
export cons... |
000haoji/deep-student | 6,519 | src/components/TagManagement.css | .tag-management-container {
padding: 20px;
background: #f8f9fa;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tag-management-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #3498db;
}
... |
000haoji/deep-student | 28,833 | src/components/ReviewAnalysisDashboard.tsx | import React, { useState, useEffect } from 'react';
import { ReviewSessionTask } from '../types/index';
import { useNotification } from '../hooks/useNotification';
import { TauriAPI, ReviewAnalysisItem } from '../utils/tauriApi';
import { useSubject } from '../contexts/SubjectContext';
import { UnifiedSubjectSelector }... |
000haoji/deep-student | 8,100 | src/components/AIChatInterface.tsx | /**
* AI Chat Interface using Vercel AI SDK
*
* This component replaces the custom streaming implementation with
* Vercel AI SDK's useChat hook for better performance and reliability.
*/
import React, { useState, useMemo } from 'react';
import { useChat } from '@ai-sdk/react';
import { createAISdkFetch, convertF... |
000haoji/deep-student | 6,106 | src/components/ImageOcclusion.css | .image-occlusion-container {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h2 {
color: #2c3e50;
margin-bottom: 10px;
font-size: 2rem;
font-weight: 600;... |
000haoji/deep-student | 9,374 | src/components/RagQueryView.css | /* RAG查询测试组件样式 */
.rag-query-view {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
color: #333;
}
.rag-query-header {
margin-bottom: 30px;
text-align: center;
}
.rag-query-header h2 {
color: #2c3e50;
margin: 0 0 8px 0;
font-size: 1.8rem;
}
.subtitle {
color: #7f8c8d;
margin: 0;
font-size: ... |
000haoji/deep-student | 7,987 | src/components/SummaryBox.tsx | import React, { useState, useEffect } from 'react';
import { ChatMessage } from '../types';
interface SummaryBoxProps {
chatHistory: ChatMessage[];
isVisible: boolean;
onClose?: () => void;
subject?: string;
mistakeId?: string; // 用于错题库详情
reviewSessionId?: string; // 用于批量分析详情
// 新增:与AI调用一致的接口
onGenerat... |
000haoji/deep-student | 27,511 | src/components/TemplateManagementPage.tsx | import React, { useState, useEffect } from 'react';
import { CustomAnkiTemplate, CreateTemplateRequest, FieldExtractionRule } from '../types';
import { templateManager } from '../data/ankiTemplates';
import { IframePreview, renderCardPreview } from './SharedPreview';
import './TemplateManagementPage.css';
interface Te... |
000haoji/deep-student | 17,018 | src/components/Dashboard.tsx | import React, { useState, useEffect } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { BarChart3, Settings, AlertTriangle, FileText, Search, BookOpen, Tag, PieChart } from 'lucide-react';
interface DashboardProps {
onBack: () => void;
}
interface Statistics {
totalMistakes: number;
totalRevi... |
0000cd/wolf-set | 5,877 | readme.md | ## 一、简介
Bluf 是一款**慵懒**的瀑布流网址导航 Hugo 主题,源于 Wolf Set([狼集](https://ws.0000cd.com/)) 导航的实践。
与传统“规整”的网址导航相比,**自适应瀑布流**的 bluf 要随性得多,长短随意,插图随心。还有标签或颜色**筛选**、**深色**模式、网站统计、访客问候等贴心功能,更支持**多链接、多图画廊**等模式。
一切只需 YAML 轻松配置。

## 二、安装
### 2.1 快速上手
本教程基于“无需修改代码”的难度,几乎无需付费,只需三步在 [狼集](https://ws.0000cd.com/... |
000haoji/deep-student | 10,206 | src/components/StreamingChatInterface.tsx | /**
* Streaming Chat Interface for AI SDK Analysis
*
* A simplified chat interface optimized for handling Tauri streaming events
* with proper thinking chain support and real-time rendering.
*/
import React, { useState, useImperativeHandle, useEffect, useRef } from 'react';
import { MessageWithThinking } from '.... |
0000cd/wolf-set | 1,484 | hugo.toml | baseURL = "https://ws.0000cd.com/" #你的网址,以斜杠 / 结尾
languageCode = "zh-CN"
title = "狼牌网址导航 - 狼集 Wolf Set" #网站名称
theme = "bluf"
[params]
pagename = "狼集 Wolf Set" #首页标题
description = " 狼集 Wolf Set, 源自“狼牌工作网址导航”,集设计、Markdown、软件、安全、办公必备网址于一体,All in One 最佳选择。" #SEO,你的网站描述
keywords = [
"狼集",
"Wolf Set",
"狼牌",
"狼... |
000haoji/deep-student | 48,374 | src/components/GeminiAdapterTest.tsx | import React, { useState, useEffect } from 'react';
import { invoke } from '@tauri-apps/api/core';
import { listen } from '@tauri-apps/api/event';
interface TestResult {
success: boolean;
message: string;
details?: any;
duration?: number;
}
interface ApiConfig {
id: string;
name: string;
apiKey: string;... |
000haoji/deep-student | 10,173 | src/components/ReviewAnalysisSessionView.tsx | import React, { useState, useEffect, useCallback, useRef } from 'react';
import { useNotification } from '../hooks/useNotification';
import { TauriAPI, ReviewAnalysisItem } from '../utils/tauriApi';
import UniversalAppChatHost from './UniversalAppChatHost';
interface ReviewAnalysisSessionViewProps {
sessionId: strin... |
0000cd/wolf-set | 8,115 | data/cards.yaml | # https://github.com/0000cd/wolf-set
- title: 欢迎回来
hex: "#0000cd"
tags:
- 置顶
date: 24/04
description: 狼集 Wolf Set:宇宙总需要些航天器,“📀各位都好吧?” 让我们路过些互联网小行星。
links:
- name: 关于
url: https://ws.0000cd.com/posts/about/
- name: GitHub
url: https://github.com/0000cd/wolf-set
- name: 网站统计
url: https://e... |
000haoji/deep-student | 40,607 | src/components/EnhancedKnowledgeBaseManagement.tsx | import React, { useState, useEffect, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useNotification } from '../hooks/useNotification';
import './EnhancedKnowledgeBaseManagement.css';
import type {
RagDocument,
KnowledgeBaseStatusPayload,
RagProcessingEvent,
RagDocumentSta... |
0015/StickiNote | 82,172 | sdkconfig | #
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Configuration
#
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_ANA_CMPR_SUPPORTED=y
CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_GDMA_SUPPORTED=y
CONFIG_SOC_AHB_GDMA_SUPPORTED=y
CONFIG_SOC... |
0015/StickiNote | 4,136 | Readme.md | ## **StickiNote – ESP32-P4 Digital Sticky Notes App**
<div align="center">

</div>
**StickiNote** is a **modern, e-paper-styled digital sticky note app** designed specifically for high-performance **ESP32-P4-based embedded systems**. This project leverages the **fast clock speed ... |
0015/StickiNote | 1,523 | sdkconfig.defaults | # This file was generated using idf.py save-defconfig. It can be edited manually.
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Minimal Configuration
#
CONFIG_IDF_TARGET="esp32p4"
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_COMPILER_OPTIMIZAT... |
000haoji/deep-student | 16,878 | src/components/SubjectConfig.tsx | import React, { useState, useEffect } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useSubject } from '../contexts/SubjectContext';
import { Target, Plus, RefreshCcw, Edit, Trash2, CheckCircle, XCircle, Lightbulb, FileText, Tag, X } from 'lucide-react';
interface SubjectConfig {
id: string;
... |
0000cd/wolf-set | 2,646 | content/achrive/2024-12.md | ---
author: 逊狼
title: 2024-12
date: 2024-12-26
draft: false
---
```yaml
- title: Button Stealer
hex: "#ff5100"
tags:
- 网页
- 有趣
- 开源
date: "2024/12"
description: 从路过的每个网页“窃取”按钮,欣赏你的按钮藏品。
links:
- name: 官网
url: https://anatolyzenkov.com/stolen-buttons/button-stealer
- name: GitHub
url: https... |
0000cd/wolf-set | 2,449 | content/achrive/legacy.md | ---
author: 逊狼
title: Legacy
date: 2024-04-04
draft: false
---
```yaml
- title: Unsplash
hex: "#000000"
tags:
- 推荐
- 网页
- 图片
date: "2024/04"
description: 全球摄影师 300万 高清免费图片。
links:
- name: 官网
url: https://unsplash.com
- name: 背景
url: https://unsplash.com/backgrounds
- name: 壁纸
url: htt... |
000haoji/deep-student | 18,869 | src/components/ReviewAnalysis.tsx | /**
* DEPRECATED COMPONENT - 已废弃的组件
*
* 废弃日期: 2024年6月5日
* 废弃原因: 单次回顾功能已被统一回顾模块替代,为简化用户体验而停用
* 替代方案: 请使用 ReviewAnalysisDashboard 和相关的统一回顾功能
*
* 注意: 此组件已从主界面隐藏,但保留代码以供将来可能的恢复需要
* 如需重新启用,请修改 App.tsx 中的相关注释
*/
import { useState, useEffect } from 'react';
import { TauriAPI, MistakeItem } from '../utils/tau... |
0015/StickiNote | 82,172 | sdkconfig.esp32-p4-nano | #
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Configuration
#
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_ANA_CMPR_SUPPORTED=y
CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_GDMA_SUPPORTED=y
CONFIG_SOC_AHB_GDMA_SUPPORTED=y
CONFIG_SOC... |
000haoji/deep-student | 25,719 | src/components/KnowledgeBaseManagement.css | /* Knowledge Base Management 组件专用样式 */
.knowledge-base-container {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
overflow-x: hidden;
overflow-y: auto;
transition: all 0.3s ease;
}
.knowledge-base-container.drag-over {
background: linear-gradient(13... |
0015/StickiNote | 4,186 | main/NVSManager.cpp | #include "NVSManager.hpp"
#include "esp_log.h"
#include "esp_random.h"
#include <cstdlib>
#include <cstdio>
std::string NVSManager::generateUUID() {
char uuid[9];
sprintf(uuid, "%08X", esp_random());
ESP_LOGI("NVS", "ID: %s", uuid);
return std::string(uuid);
}
void NVSManager::init() {
esp_err_t r... |
0015/StickiNote | 12,950 | main/LVGL_WidgetManager.cpp | #include "LVGL_WidgetManager.hpp"
#include "esp_log.h"
#include <algorithm>
#include "esp_timer.h"
#define DOUBLE_TAP_TIME 300
#define MAX_POSTITS 10
LV_IMG_DECLARE(icon_resize);
LV_FONT_DECLARE(sticky_font_32)
lv_obj_t *LVGL_WidgetManager::screen_ = nullptr;
lv_obj_t *LVGL_WidgetManager::kb_ = nullptr;
LVGL_WidgetM... |
0000cd/wolf-set | 1,917 | content/posts/about.md | ---
author: 狼
title: 关于狼集
date: 2024-04-04
draft: false
---
- [这是开源项目,你也可以快速创建**属于你自己的**网址导航。](https://github.com/0000cd/wolf-set)
- [点我访问【**首页**】,浏览共 {{< total >}} 个有趣网址导航,和 {{< total "开源" >}} 个开源项目!](/)
## 狼集 Wolf Set
[
一只青海可可西里的野狼因被游客频繁投喂而成为“网红”,其行为模式从野生狼转变为类似家犬的依赖,引起网友热议与专家担忧。
## 新闻报道
近日,一头青海可可西里的野狼意外成为网络红星。最初,这只野狼因不明原因被狼群赶出,瘦弱到皮包骨。然而,自从今年7月一位过路的网友在国道附近给它投喂了两个蛋黄派后,它的命运戏剧性地改变了。
这只野狼开始每天在公路上讨食,游客们被它那瘦骨嶙峋的模样所吸引,纷纷投喂食物。经过一段时间,这头狼与人类变得亲... |
0000cd/wolf-set | 3,809 | themes/bluf/layouts/404.html | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<!--https://github.com/vicevolf/retro-404-->
<!-- https://github.com/gaoryrt/retro-404 -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1, ma... |
0000cd/wolf-set | 19,618 | themes/bluf/layouts/index.html | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head.html" . }}
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="keywords" content="{{ range .Site.Params.keywords }}{{ . }},{{ end }}" />
</head>
<body>
... |
000haoji/deep-student | 20,891 | src/components/MistakeLibrary.tsx | import React, { useState, useEffect, useMemo } from 'react';
import { TauriAPI, MistakeItem } from '../utils/tauriApi';
import { useSubject } from '../contexts/SubjectContext';
interface MistakeLibraryProps {
onSelectMistake: (mistake: MistakeItem) => void;
onBack: () => void;
// 🎯 修复:添加刷新触发器,每次切换到错题库页面时会变化
r... |
000haoji/deep-student | 10,158 | src/components/ReviewAnalysisLibrary.tsx | /**
* DEPRECATED: 此组件已废弃 - 2024年6月8日
* 原因: 功能已被统一回顾分析(ReviewAnalysisDashboard)替代
*
* 这个组件使用localStorage存储数据,与新的数据库存储系统不兼容
* 请使用 ReviewAnalysisDashboard 代替此组件
*/
import React, { useState, useEffect } from 'react';
import { ReviewSessionTask } from '../types/index';
import { useNotification } from '../hooks/useNo... |
000haoji/deep-student | 9,843 | src/components/GraphVisualization.tsx | import React, { useState, useRef, useEffect } from 'react';
import { GraphConfig, GraphNode, GraphRelationship } from '../types/cogni-graph';
import './GraphVisualization.css';
interface GraphVisualizationProps {
config: GraphConfig;
isInitialized: boolean;
}
const GraphVisualization: React.FC<GraphVisualizationP... |
0015/StickiNote | 3,189 | main/main.cpp | #include "nvs_flash.h"
#include "nvs.h"
#include "esp_log.h"
#include "esp_err.h"
#include "esp_check.h"
#include "lvgl.h"
#include "bsp/esp-bsp.h"
#include "bsp/display.h"
#include "LVGL_WidgetManager.hpp"
#include "SplashScreen.hpp"
extern int screen_width;
extern int screen_height;
void createNotebookBackground(lv... |
0015/StickiNote | 2,114 | main/SplashScreen.cpp | #include "SplashScreen.hpp"
#include "esp_log.h"
#define SPLASH_ANIM_TIME 400
#define SPLASH_HOLD_TIME 1500
LV_IMG_DECLARE(notes);
int screen_width = 800; // Default value, will be set in main
int screen_height = 480;
struct SplashData {
lv_obj_t *splash_img;
std::function<void()> on_complete;
};
static vo... |
000haoji/deep-student | 8,443 | src/components/RagQueryView.tsx | import React, { useState, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useNotification } from '../hooks/useNotification';
import type { RetrievedChunk, RagQueryOptions } from '../types';
import './RagQueryView.css';
import { Search, Lightbulb, Sparkles } from 'lucide-react';
inter... |
000haoji/deep-student | 7,787 | src/components/SharedPreview.tsx | import React, { useRef, useEffect } from 'react';
import { AnkiCardTemplate } from '../types';
export const IframePreview: React.FC<{ htmlContent: string; cssContent: string; }> = ({ htmlContent, cssContent }) => {
const iframeRef = useRef<HTMLIFrameElement>(null);
useEffect(() => {
const iframe = iframeRef.c... |
0000cd/wolf-set | 17,823 | themes/bluf/layouts/index - 副本2.html | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head.html" . }}
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="keywords" content="{{ range .Site.Params.keywords }}{{ . }},{{ end }}" />
</head>
<body>
... |
0000cd/wolf-set | 13,047 | themes/bluf/layouts/index - 副本.html | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head.html" . }}
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="keywords" content="{{ range .Site.Params.keywords }}{{ . }},{{ end }}" />
</head>
<body>
... |
000haoji/deep-student | 74,644 | src/components/Settings.tsx | import React, { useState, useEffect, useCallback } from 'react';
import { SubjectConfig } from './SubjectConfig';
import {
Bot,
FlaskConical,
Target,
Settings as SettingsIcon,
Plus,
TestTube,
Edit,
Trash2,
X,
Check,
AlertTriangle,
Save,
Undo2,
Zap,
CheckCircle,
XCircle,
... |
0015/StickiNote | 29,801 | main/ui_resources/icon_resize.c | #ifdef __has_include
#if __has_include("lvgl.h")
#ifndef LV_LVGL_H_INCLUDE_SIMPLE
#define LV_LVGL_H_INCLUDE_SIMPLE
#endif
#endif
#endif
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef LV_ATTRIBUTE_MEM_ALIGN
#define LV_ATT... |
000haoji/deep-student | 1,891 | src/components/UnifiedTemplateSelector.css | /* 统一模板选择器样式 */
.unified-template-selector {
margin-bottom: 24px;
}
.current-template-display {
margin-bottom: 16px;
}
.current-template-card {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 20px;
transition: all 0.2s ease;
}
.current-template-card:hover {
border-color:... |
0000cd/wolf-set | 35,445 | themes/bluf/static/js/isotope.min.js | /*!
* Isotope PACKAGED v3.0.6
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* https://isotope.metafizzy.co
* Copyright 2010-2018 Metafizzy
*/
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e... |
0000cd/wolf-set | 3,472 | themes/bluf/static/js/Meting.min.js | "use strict";function _objectSpread(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(functi... |
000haoji/deep-student | 20,571 | src/components/EnhancedRagQueryView.tsx | import React, { useState, useEffect, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useNotification } from '../hooks/useNotification';
import { MarkdownRenderer } from './MarkdownRenderer';
import type {
RagQueryResponse,
RetrievedChunk
} from '../types';
import './EnhancedRagQu... |
000haoji/deep-student | 4,447 | src/components/StreamingMarkdownRenderer.tsx | import React, { useState, useEffect, useMemo } from 'react';
import { MarkdownRenderer } from './MarkdownRenderer';
interface StreamingMarkdownRendererProps {
content: string;
isStreaming: boolean;
chainOfThought?: {
enabled: boolean;
details?: any;
};
}
type ParsedContent = {
thinkingContent: strin... |
0015/StickiNote | 101,409 | main/ui_resources/sticky_font_32.c | /*******************************************************************************
* Size: 32 px
* Bpp: 4
* Opts: --bpp 4 --size 32 --no-compress --font Sticky Notes.otf --range 32-127 --format lvgl -o sticky_font_32.c
******************************************************************************/
#ifdef __has_incl... |