侧边栏壁纸
  • 累计撰写 793 篇文章
  • 累计创建 1 个标签
  • 累计收到 1 条评论
标签搜索

目 录CONTENT

文章目录

Notion to Halo

Dettan
2022-03-03 / 0 评论 / 0 点赞 / 124 阅读 / 2,174 字
温馨提示:
本文最后更新于 2022-07-24,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。
sss hide;menu;black;noimage;
只有deliver是更新space, 页面被删除而没有更新space就会再请求,就会nullException
go 页面 出问题了
这个页面排版也有问题
简化生成, 去掉notion
去掉halo的面包屑
面包屑美化
环式引用 自己处理,不要让fastjson转, 转之前自己处理
sync log
能添加多个分类, 添加一个notion分类
space页面为空
工具
时间戳转换
id转文章
显示是否已发布
检测博客是否存在
黑名单但文章可以访问
文章不能访问
改成slug ,少很多代码
没有slug就用title查
转到不同博客的话链接要不同
总计数, 下载多少次什么的
root json 里存储 order, 确保patch不会多打或者少打
存一个root 跟 patch的对应关系, 每一个root对着要从第几个patch开始打的信息。
patch 存储重发, 根据获取的时什么版本的root重发
root根据patch存储
出错重启
模板渲染加上try
目标分类
对应space名的分类
space到。。。分类, 子页面到。。。分类
右键指定分类
显示被删除的页面
两个请求返回信息
显示被删除的页面
删除blog
删除信息
清理被删除的页面, 要不然转json的时候会ref
backlink会导致死循环
检测页面是否存在, 有就只渲染页面而不
或者前端检测死循环
递归调用第二次就不递归了
handling 不准
页面地图
space 新加页面, 更新space操作 , 要新抓page_view 页面
改名导致发布失败的
显示日志
日志写入文件
操作成功失败提示
缩减生成内容的大小
白框去掉
图标变白
目录
全局命令接口
开始全部
检查全部
单个命令接口
强制同步
加黑/加白
强制上传
回收站
删除
设置
notion 用户信息
halo 用户信息
更新事件间隔

页面改名
文章唯一标识
id不变, 把id放哪的问题,别名id
表格
竖向分隔
面包屑导航
统一设置,统一拉黑设置
打包

图片右展开方式显示
把css提取出来
展开全部
折叠全部


更长远
代理
多次请求页面,图片的id不一样,初步判断为notion升级导致图片id全部重置
线程通信,一个线程敲命令,一个线程接收命令
面包屑导航
推送到其它博客的接口
注册其它模板的接口
分栏 内容
图片
数据更新
放在哪? 怎么放?
增量更新
日志
When calling macro "text", required parameter "content" (parameter #1) was specified, but had null/missing value.
gui
树形 gui .
一键直达展示



分栏里的
{
    "05de13c9-1bf0-4570-8e86-430a00492d22": {
        "role": "editor",
        "value": {
            "id": "05de13c9-1bf0-4570-8e86-430a00492d22",
            "version": 19,
            "type": "image",
            "properties": {
                "source": [
                    [
                        "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/47e49ec0-0054-4f4f-aad1-777a0530e2c5/20170622131955_h4eZS.thumb.700_0.jpeg"
                    ]
                ]
            },
            "format": {
                "block_width": 700,
                "block_height": 700,
                "display_source": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/47e49ec0-0054-4f4f-aad1-777a0530e2c5/20170622131955_h4eZS.thumb.700_0.jpeg",
                "block_full_width": false,
                "block_page_width": false,
                "block_aspect_ratio": 1,
                "block_preserve_scale": true
            },
            "created_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "created_time": 1567760940000,
            "last_edited_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_time": 1567865880000,
            "parent_id": "f68dfc82-82fc-4564-88be-3dfa35de9428",
            "parent_table": "block",
            "alive": true,
            "file_ids": [
                "47e49ec0-0054-4f4f-aad1-777a0530e2c5"
            ],
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0"
        }
    }
}
https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F47e49ec0-0054-4f4f-aad1-777a0530e2c5%2F20170622131955_h4eZS.thumb.700_0.jpeg?table=block&id=05de13c9-1bf0-4570-8e86-430a00492d22&width=1400&userId=405a6625-4718-4449-92db-afd0c38f7dd0&cache=v2

https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6217bd86-c210-4aa6-ab9a-28ccb2bf4ac9%2Fb32140353c749119ff49040bdb7a9a4a.jpg?table=block&id=36aa6d35-1c26-4ea0-8b00-6d06f15975b1&spaceId=8f5d17db-bfc7-4b7e-855b-2886a043be56&width=2300&userId=405a6625-4718-4449-92db-afd0c38f7dd0&cache=v2

gif
{
    "75be04e2-8e04-41d4-ad05-c5dc635e30fd": {
        "role": "editor",
        "value": {
            "id": "75be04e2-8e04-41d4-ad05-c5dc635e30fd",
            "version": 21,
            "type": "image",
            "properties": {
                "source": [
                    [
                        "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6d4ca4c2-d325-44e6-9826-0fdf17ee07b1/3b7824ed7d91ca1750c3fbb87da30b0d.gif"
                    ]
                ]
            },
            "format": {
                "block_width": 432,
                "block_height": 126,
                "display_source": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6d4ca4c2-d325-44e6-9826-0fdf17ee07b1/3b7824ed7d91ca1750c3fbb87da30b0d.gif",
                "block_full_width": false,
                "block_page_width": false,
                "block_aspect_ratio": 0.5625,
                "block_preserve_scale": true
            },
            "created_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "created_time": 1569416760000,
            "last_edited_by": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_time": 1600492680000,
            "parent_id": "10471688-c09c-4347-9a98-bd56e25046d7",
            "parent_table": "block",
            "alive": true,
            "file_ids": [
                "6d4ca4c2-d325-44e6-9826-0fdf17ee07b1"
            ],
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "shard_id": 245334,
            "space_id": "8f5d17db-bfc7-4b7e-855b-2886a043be56"
        }
    }
}
https://s3.us-west-2.amazonaws.com/secure.notion-static.com/6d4ca4c2-d325-44e6-9826-0fdf17ee07b1/3b7824ed7d91ca1750c3fbb87da30b0d.gif
?X-Amz-Algorithm=AWS4-HMAC-SHA256
&X-Amz-Credential=AKIAT73L2G45O3KS52Y5%2F20210113%2Fus-west-2%2Fs3%2Faws4_request
&X-Amz-Date=20210113T125647Z
&X-Amz-Expires=86400
&X-Amz-Signature=3bcc4afb0ad8a25eb4126fdef1f8d97fbf4c450c6a563a097a7f56a616952dd5
&X-Amz-SignedHeaders=host


cookies

子页面
不是用的连接, 有content包含子页面的所有顶级节点
用子页面的id直接请求loadPageChunk接口就行

table
queryCollection
{"collectionId":"026513e0-6593-4db1-abe2-2ec74c6438e7","collectionViewId":"91a37e10-7a02-49bc-af52-ad16da5abe70","query":{"aggregations":[{"property":"title","aggregator":"count"}]},"loader":{"type":"table","limit":50,"searchQuery":"","userTimeZone":"Asia/Shanghai","loadContentCover":true}}
loadPageChunk
blocks 里 有一个id 等于pageId的,里面有个content是顺序,好多block里都有content

写一个小的程序就行了, 自动运行的, 用themleaf 然后上传到
curl -X POST "http://127.0.0.1:8090/api/admin/login" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"authcode\": \"123456\", \"password\": \"@@120334526\", \"username\": \"1357885013@qq.com\"}"
"data": {
    "access_token": "fa851dc3a92848dbb9e5f6f29a965f0e",
    "expired_in": 86400,
    "refresh_token": "89317e60773748378e82334038d36315"
  }


list
content 里是有序的子内容id
"f009bd04-5059-4571-a4c0-7829b3569075": {
    "value": {
        "role": "reader",
        "value": {
            "id": "f009bd04-5059-4571-a4c0-7829b3569075",
            "version": 2,
            "type": "numbered_list",
            "properties": {
                "title": [
                    [
                        "我本想走出泥潭的,可是我不忍心让你满身泥泞"
                    ]
                ]
            },
            "format": {
                "copied_from_pointer": {
                    "id": "9ebca84d-cb92-43ab-912f-4a8527990a89",
                    "table": "block",
                    "spaceId": "bbad0211-3cc8-498f-8c79-39665c730983"
                }
            },
            "created_time": 1646570177180,
            "last_edited_time": 1646570160000,
            "parent_id": "add011f6-0df1-410b-ac9f-8f570250bc79",
            "parent_table": "block",
            "alive": true,
            "copied_from": "9ebca84d-cb92-43ab-912f-4a8527990a89",
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "space_id": "bbad0211-3cc8-498f-8c79-39665c730983"
        }
    }
},
"87033d80-82c8-41c6-a159-1e5175941d81": {
    "value": {
        "role": "reader",
        "value": {
            "id": "87033d80-82c8-41c6-a159-1e5175941d81",
            "version": 5,
            "type": "callout",
            "properties": {
                "title": [
                    [
                        "柠月清风 风禾尽起",
                        [
                            [
                                "b"
                            ]
                        ]
                    ]
                ]
            },
            "content": [
                "add011f6-0df1-410b-ac9f-8f570250bc79"
            ],
            "format": {
                "page_icon": "🪙",
                "block_color": "gray_background",
                "copied_from_pointer": {
                    "id": "68066241-39ab-4ddd-8326-44d375ca5f01",
                    "table": "block",
                    "spaceId": "bbad0211-3cc8-498f-8c79-39665c730983"
                }
            },
            "created_time": 1646570177180,
            "last_edited_time": 1646570160000,
            "parent_id": "33ed9744-c861-4d51-9c42-c4edc3f7c7d3",
            "parent_table": "block",
            "alive": true,
            "copied_from": "68066241-39ab-4ddd-8326-44d375ca5f01",
            "created_by_table": "notion_user",
            "created_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "last_edited_by_table": "notion_user",
            "last_edited_by_id": "405a6625-4718-4449-92db-afd0c38f7dd0",
            "space_id": "bbad0211-3cc8-498f-8c79-39665c730983"
        }
    }
},

0

评论区