mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 18:51:30 +08:00
Update docs and sort content
This commit is contained in:
@ -22,7 +22,7 @@ description: null
|
|||||||
slug: diary-2025-02-27
|
slug: diary-2025-02-27
|
||||||
category: 日记
|
category: 日记
|
||||||
date_created: 20250227
|
date_created: 20250227
|
||||||
date_modified: 20250302
|
date_modified: 20250307
|
||||||
---
|
---
|
||||||
|
|
||||||
## 长期任务和目标
|
## 长期任务和目标
|
||||||
@ -46,11 +46,11 @@ sort file.ctime desc
|
|||||||
|
|
||||||
## memos
|
## memos
|
||||||
|
|
||||||
- 00:38 重要时刻 iphone 发热卡死的话真的很急
|
- 00:38 重要时刻 iphone 发热卡死的话真的很急
|
||||||
- 10:52
|
- 10:52
|
||||||
感觉 cherry studio 的设计会比 chatwise 更好
|
感觉 cherry studio 的设计会比 chatwise 更好
|
||||||
而且它是开源的
|
而且它是开源的
|
||||||
- 11:01
|
- 11:01
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
@ -59,12 +59,12 @@ sort file.ctime desc
|
|||||||
|
|
||||||
[Stripe Press — Ideas for progress](<https://press.stripe.com/>)
|
[Stripe Press — Ideas for progress](<https://press.stripe.com/>)
|
||||||
|
|
||||||
- 14:40
|
- 14:40
|
||||||
觉得 arc 或者很多浏览器都不支持很完美的插件同步
|
觉得 arc 或者很多浏览器都不支持很完美的插件同步
|
||||||
这一点还挺可惜的
|
这一点还挺可惜的
|
||||||
- 14:41 Yak shaving 是一种 adhd 症状也说不定
|
- 14:41 Yak shaving 是一种 adhd 症状也说不定
|
||||||
- 14:46 如何实现比较好的字段转化(映射) #前端
|
- 14:46 如何实现比较好的字段转化(映射) #前端
|
||||||
- 23:47
|
- 23:47
|
||||||
使用 milanote 规划的输入输出工作流 希望可以实践起来
|
使用 milanote 规划的输入输出工作流 希望可以实践起来
|
||||||
|
|
||||||
大体思路社交平台作为最随意的入口,通过 n8n + rss 定时获取内容调接口写入到 raindrop 和 子弹笔记里面(目前用 thino 比较多),然后用 milanote 筛选一层,然后记录比较详细的个人的脑洞和想法,然后输出为项目或者企划,做进一步详细规划。
|
大体思路社交平台作为最随意的入口,通过 n8n + rss 定时获取内容调接口写入到 raindrop 和 子弹笔记里面(目前用 thino 比较多),然后用 milanote 筛选一层,然后记录比较详细的个人的脑洞和想法,然后输出为项目或者企划,做进一步详细规划。
|
||||||
@ -79,8 +79,6 @@ sort file.ctime desc
|
|||||||
|
|
||||||
#Milanote #工作流
|
#Milanote #工作流
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ description: null
|
|||||||
slug: diary-2025-02-28
|
slug: diary-2025-02-28
|
||||||
category: 日记
|
category: 日记
|
||||||
date_created: 20250228
|
date_created: 20250228
|
||||||
date_modified: 20250304
|
date_modified: 20250307
|
||||||
---
|
---
|
||||||
|
|
||||||
## 长期任务和目标
|
## 长期任务和目标
|
||||||
@ -39,13 +39,13 @@ sort file.ctime desc
|
|||||||
|
|
||||||
## memos
|
## memos
|
||||||
|
|
||||||
- 11:17
|
- 11:17
|
||||||
其实可以写一个面向于粉丝的教程
|
其实可以写一个面向于粉丝的教程
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- 14:29 希望 cherry studio 导入目录的时候支持忽略文件
|
- 14:29 希望 cherry studio 导入目录的时候支持忽略文件
|
||||||
- 15:37
|
- 15:37
|
||||||
不能直接通过 `git diff > 剪贴板` 这样的命令实现,因为重定向 `>` 只能用于文件。但是,您可以使用一些工具和命令组合来实现将 `git diff` 的输出直接复制到剪贴板,而无需先写入文件。
|
不能直接通过 `git diff > 剪贴板` 这样的命令实现,因为重定向 `>` 只能用于文件。但是,您可以使用一些工具和命令组合来实现将 `git diff` 的输出直接复制到剪贴板,而无需先写入文件。
|
||||||
|
|
||||||
以下是几种常见的方法,适用于不同的操作系统:
|
以下是几种常见的方法,适用于不同的操作系统:
|
||||||
@ -70,7 +70,7 @@ sort file.ctime desc
|
|||||||
|
|
||||||
Linux 系统通常没有自带的剪贴板工具,需要安装 `xclip` 或 `xsel`。
|
Linux 系统通常没有自带的剪贴板工具,需要安装 `xclip` 或 `xsel`。
|
||||||
|
|
||||||
* **`xclip`**:
|
- **`xclip`**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git diff | xclip -selection clipboard
|
git diff | xclip -selection clipboard
|
||||||
@ -82,7 +82,7 @@ sort file.ctime desc
|
|||||||
git diff | xclip -in -selection clipboard
|
git diff | xclip -in -selection clipboard
|
||||||
```
|
```
|
||||||
|
|
||||||
* **`xsel`**:
|
- **`xsel`**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git diff | xsel --clipboard --input
|
git diff | xsel --clipboard --input
|
||||||
@ -98,7 +98,7 @@ sort file.ctime desc
|
|||||||
|
|
||||||
如果您的 Linux 系统上没有安装 `xclip` 或 `xsel`,可以使用以下命令安装:
|
如果您的 Linux 系统上没有安装 `xclip` 或 `xsel`,可以使用以下命令安装:
|
||||||
|
|
||||||
* **Debian/Ubuntu:**
|
- **Debian/Ubuntu:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@ -111,7 +111,7 @@ sort file.ctime desc
|
|||||||
sudo apt-get install xsel
|
sudo apt-get install xsel
|
||||||
```
|
```
|
||||||
|
|
||||||
* **Fedora/CentOS/RHEL:**
|
- **Fedora/CentOS/RHEL:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo yum install xclip
|
sudo yum install xclip
|
||||||
@ -138,8 +138,8 @@ sort file.ctime desc
|
|||||||
|
|
||||||
由于题目没有提供操作系统信息,以上提供了各种操作系统下的方案,请根据实际情况选择。
|
由于题目没有提供操作系统信息,以上提供了各种操作系统下的方案,请根据实际情况选择。
|
||||||
|
|
||||||
- 17:10
|
- 17:10
|
||||||
- 17:58
|
- 17:58
|
||||||

|

|
||||||
|
|
||||||
调用 grop 调不通,然后发现官方 dev console 也直接 404 了
|
调用 grop 调不通,然后发现官方 dev console 也直接 404 了
|
||||||
@ -147,5 +147,3 @@ sort file.ctime desc
|
|||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
---
|
|
||||||
toAstro: true
|
|
||||||
astroType: null
|
|
||||||
published: false
|
|
||||||
toWexin: null
|
|
||||||
toJuejin: null
|
|
||||||
toZhihu: null
|
|
||||||
title: 2025-03-03 星期一
|
|
||||||
date: 2025-03-03T00:00:00.000Z
|
|
||||||
day_of_week: 星期一
|
|
||||||
author: KazooTTT
|
|
||||||
tags:
|
|
||||||
- 日记
|
|
||||||
description: null
|
|
||||||
slug: diary-2025-03-03
|
|
||||||
category: 日记
|
|
||||||
date_created: 20250303
|
|
||||||
date_modified: 20250304
|
|
||||||
---
|
|
||||||
|
|
||||||
## 长期任务和目标
|
|
||||||
|
|
||||||
## 今天要做的事情
|
|
||||||
|
|
||||||
- [x] 继续调试 oss 的上传 [[oss 上传]] ✅ 2025-03-05
|
|
||||||
- [ ] [[卡顿问题的优化]]
|
|
||||||
- [ ] 异常页面的增加(也就是如果页面有异常不应该显示 react 原始的白屏报错)
|
|
||||||
|
|
||||||
## 值得分享的事情
|
|
||||||
|
|
||||||
## 资料收集
|
|
||||||
|
|
||||||
## 打卡
|
|
||||||
|
|
||||||
## 今天记录的内容
|
|
||||||
|
|
||||||
``` dataview
|
|
||||||
list file.ctime
|
|
||||||
from ""
|
|
||||||
where dateformat(file.ctime, "yyyy-MM-dd") = "2025-03-03"
|
|
||||||
sort file.ctime desc
|
|
||||||
```
|
|
||||||
|
|
||||||
## memos
|
|
||||||
|
|
||||||
- 16:02 Commit message 包括三个部分:Header,Body 和 Footer。
|
|
||||||
- 16:06
|
|
||||||
- [x] 关于 [rsshub中新增asianfanfics路由](/posts/fragmented-notes-2025-02-21-16-38-50) 需要添加一些反思 ✅ 2025-03-04
|
|
||||||
|
|
||||||
- 16:21
|
|
||||||
Lineage 和 outliner 的一些快捷键是冲突的
|
|
||||||
由于我使用前者比较多,所以禁用了后者
|
|
@ -5,7 +5,7 @@ published: true
|
|||||||
toWexin: null
|
toWexin: null
|
||||||
toJuejin: null
|
toJuejin: null
|
||||||
toZhihu: null
|
toZhihu: null
|
||||||
title: 分享一下我的zustand错误使用案例
|
title: 分享一下我的 zustand 错误使用案例
|
||||||
date: 2024-12-17T00:00:00.000Z
|
date: 2024-12-17T00:00:00.000Z
|
||||||
author: KazooTTT
|
author: KazooTTT
|
||||||
tags:
|
tags:
|
||||||
@ -23,7 +23,7 @@ description: >-
|
|||||||
来只获取需要的数据。同时,应该遵循最小粒度原则,只获取需要的数据,而不是使用多个 store 去存储不同的 state。另外,与 UI 无关的 state
|
来只获取需要的数据。同时,应该遵循最小粒度原则,只获取需要的数据,而不是使用多个 store 去存储不同的 state。另外,与 UI 无关的 state
|
||||||
不需要通过 selector 获取,正确的做法是直接在 handleSave 方法内部访问 store。
|
不需要通过 selector 获取,正确的做法是直接在 handleSave 方法内部访问 store。
|
||||||
date_created: 20250207
|
date_created: 20250207
|
||||||
date_modified: 20250304
|
date_modified: 20250313
|
||||||
banner: 'https://pictures.kazoottt.top/2025/02/20250201-og-1738417688145.png'
|
banner: 'https://pictures.kazoottt.top/2025/02/20250201-og-1738417688145.png'
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -128,15 +128,15 @@ const CurrentCamera: React.FC = () => {
|
|||||||
|
|
||||||
> [!quote]
|
> [!quote]
|
||||||
> Recommended patterns 推荐模式
|
> Recommended patterns 推荐模式
|
||||||
>
|
>
|
||||||
> Single store 单一存储
|
> Single store 单一存储
|
||||||
>
|
>
|
||||||
> Your applications global state should be located in a single Zustand store.
|
> Your applications global state should be located in a single Zustand store.
|
||||||
>
|
>
|
||||||
> 你的应用程序的全局状态应该位于一个单一的 Zustand 存储中。
|
> 你的应用程序的全局状态应该位于一个单一的 Zustand 存储中。
|
||||||
>
|
>
|
||||||
> If you have a large application, Zustand supports splitting the store into slices.
|
> If you have a large application, Zustand supports splitting the store into slices.
|
||||||
>
|
>
|
||||||
> 如果你有一个大型应用程序,Zustand 支持将存储拆分为切片。
|
> 如果你有一个大型应用程序,Zustand 支持将存储拆分为切片。
|
||||||
|
|
||||||
## 错误用法 4 与 UI 无关的 state 通过 selector 获取
|
## 错误用法 4 与 UI 无关的 state 通过 selector 获取
|
||||||
@ -183,6 +183,6 @@ const ComponentA = () => {
|
|||||||
|
|
||||||
[Zustand](<https://zustand-demo.pmnd.rs/>)
|
[Zustand](<https://zustand-demo.pmnd.rs/>)
|
||||||
|
|
||||||
[master 分支下的 notes/zustand 学习笔记.md --- notes/zustand学习笔记.md at master · puxiao/notes](<https://github.com/puxiao/notes/blob/master/zustand%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0.md>)
|
[master 分支下的 notes/zustand 学习笔记。md --- notes/zustand 学习笔记。md at master · puxiao/notes](<https://github.com/puxiao/notes/blob/master/zustand%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0.md>)
|
||||||
|
|
||||||
[如何有效率地管理 React 局部狀態? 這次我選擇了 Zustand! | Bosh 的技術探索筆記](<https://notes.boshkuo.com/docs/React/zustand#%E7%82%BA%E4%BD%95%E9%81%B8%E6%93%87%E4%BD%BF%E7%94%A8-zustand->)
|
[如何有效率地管理 React 局部狀態? 這次我選擇了 Zustand! | Bosh 的技術探索筆記](<https://notes.boshkuo.com/docs/React/zustand#%E7%82%BA%E4%BD%95%E9%81%B8%E6%93%87%E4%BD%BF%E7%94%A8-zustand->)
|
||||||
|
Reference in New Issue
Block a user