Skip to content

Commit

Permalink
Merge pull request #1 from frostime/migrate
Browse files Browse the repository at this point in the history
现代化改造
  • Loading branch information
frostime authored Nov 9, 2023
2 parents 71ea8d6 + 3bcf940 commit 628fac3
Show file tree
Hide file tree
Showing 21 changed files with 94 additions and 72 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3

- name: Run script to package files
run: |
chmod +x script/make-zip.sh
./script/make-zip.sh
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "package.zip"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
*.zip
44 changes: 33 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 0.0.4版本更新介绍
1. 修改了获取的周期数。2022 年 1 月 1 日是新年的第一周,1 月 2 日是第二周。如果要按常理一个星期才算一周的话,则 2022 年 1 月 1 日与 2 日依然属于 2021 年的第 53 周,就需要手动调整。
2. “距离 xx 还有 xx 天” 可自行在模板中更改。


# Normal模板使用介绍

## 1.日计划与周总结模板

“日计划” 是和 “周计划” 联动的。即启用日计划模板后自己的每日安排记录上,周总结模板会自动同步每日安排,这样就起到了一个“总结”的作用。


Expand All @@ -12,36 +12,58 @@


## 2.周计划

这个跟日计划周总结是配合使用的。每周伊始,只需在笔记中加载一下“周计划”模板即可创建一个周一到周日的待办事项列表,之后以日期命名创建日计划,到周日时,运用周总结模板总结这一周的事项。

![周计划][4]


## 3.四象限

所谓“四象限”,是把事项按照轻重缓急来分类,因为我有一个名为 “项目” 的笔记,因此正好用四象限合理安排。建议使用这个模板时只记录一些较大的事项,例如工作项目、文章发布、视频制作、摄影安排等等。日常生活和工作中的一些小事则可以写在 “日计划” 中,例如项目中的某一安排、理发、下班聚餐等。

另外还加了一个列出未完成项目的功能,目前只能列出所有笔记中的待办事项,而不能单独指定某个笔记。

![四象限][6]

## 4.读/观后感

可以新建一个汇总笔记,然后使用汇总模板,子笔记就是书籍和电影的名字

![请输入图片描述][7]
![][10]
## 5.其他模板

## 4. 日记模板

![日记模板][5]

## 其他模板

由于是中文命名的,也不难看出所有每个模板是什么用法,可以自行尝试一下。





[1]: https://pic.somepic.cn/img/%E6%A8%A1%E6%9D%BF%E6%B1%87%E6%80%BB.png
[2]: https://github.com/shawnblues/normal/blob/475df4d30ce7a184f4d95ff5106758fc1694f894/preview.png
[3]: https://pic.somepic.cn/img/%E5%91%A8%E6%80%BB%E7%BB%93.png
[4]: https://pic.somepic.cn/img/%E5%91%A8%E8%AE%A1%E5%88%92.png
[5]: https://pic.somepic.cn/img/dailynote.png
[6]: https://pic.somepic.cn/img/%E5%9B%9B%E8%B1%A1%E9%99%90.png
[7]: https://github.com/shawnblues/pic/blob/main/%E7%94%B5%E5%BD%B1%E6%B1%87%E6%80%BB.png
[2]: preview.png
[3]: assets/周总结.png
[4]: assets/周计划.png
[5]: assets/dailynote.png
[6]: assets/四象限.png
[7]: assets/电影汇总.png
[8]: https://github.com/shawnblues/normal
[9]: https://ifblog.lanzouy.com/i1SyGxpqp1a
[10]:https://github.com/shawnblues/pic/blob/main/%E7%94%B5%E5%BD%B1.png
[10]:assets/电影.png

# CHANGELOG

## v0.1.0...v1.0.0 现代化改造

- 根据新的集市规范进行适应性移植
- 修复旧有的一些 bug

## v0.0.4

1. 修改了获取的周期数。2022 年 1 月 1 日是新年的第一周,1 月 2 日是第二周。如果要按常理一个星期才算一周的话,则 2022 年 1 月 1 日与 2 日依然属于 2021 年的第 53 周,就需要手动调整。
2. “距离 xx 还有 xx 天” 可自行在模板中更改。
Binary file added assets/dailynote.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/分栏.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/周总结.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/周计划.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/四象限.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/已完成清单.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/日计划.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/模板汇总.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/电影.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/电影汇总.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/读后感.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions script/make-zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# 搜寻 png md css json 文件
find . -type f \( -name "*.png" -o -name "*.md" -o -name "*.json" \) -print > file-list.txt

# 打包所有文件为 package.zip
zip package.zip -@ < file-list.txt
16 changes: 15 additions & 1 deletion template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,19 @@
"name": "Normal",
"author": "shawnblues",
"url": "https://github.com/shawnblues/normal",
"version": "0.0.4"
"version": "1.0.0",
"displayName": {
"default": "Normal Templates",
"zh_CN": "Normal 模板"
},
"description": {
"default": "Normal Templates",
"zh_CN": "经典的 Normal 模板"
},
"readme": {
"default": "README.md",
"zh_CN": "README.md"
},
"funding": {
}
}
6 changes: 4 additions & 2 deletions templates/一周/日计划.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@



.action{$dayleft := (div ((toDate "2006-01-02" "2023-01-01").Sub now).Hours 24)}
.action{ $nextYear := now.Year | add 1 }
.action{ $nextYearStart := $nextYear | printf "%d-01-01" | toDate "2006-01-02" }
.action{ $dayleft := (div (($nextYearStart).Sub now).Hours 24) }
.action{$week := add (mod (div ((toDate "2006-01-02" "2050-03-13").Sub now).Hours 24) 7) 1}

{{{col
{{{row
🕐 创建时间:.action{now | date "2006-01-02 15:04"} .action{last (slice (list "星期六" "星期五" "星期四" "星期三" "星期二" "星期一" "星期天") 0 $week )}
}}}
{{{row
距离 `2023-01-01` 还剩 `.action{$dayleft}` 天,加油!
距离 `.action{ $nextYearStart.Year }-01-01` 还剩 `.action{$dayleft}` 天,加油!
}}}
{: style="color: var(--b3-card-info-color); background-color: var(--b3-card-info-background);"}
}}}
Expand Down
28 changes: 0 additions & 28 deletions templates/目录/5级目录(块).md

This file was deleted.

28 changes: 0 additions & 28 deletions templates/目录/5级目录(链接).md

This file was deleted.

7 changes: 5 additions & 2 deletions templates/随机复习.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.action{$dayleft := (div ((toDate "2006-01-02" "2022-01-01").Sub now).Hours 24)}
.action{ $nextYear := now.Year | add 1 }
.action{ $nextYearStart := $nextYear | printf "%d-01-01" | toDate "2006-01-02" }
.action{ $dayleft := (div (($nextYearStart).Sub now).Hours 24) }

## 🚴 随机复习

> 距离 `2022-01-01` 还剩 `.action{$dayleft}` 天,加油!
> 距离 `.action{ $nextYearStart.Year }` 年还剩 `.action{$dayleft}` 天,加油!
>
{{SELECT * FROM blocks where type = 'd' and root_id != '.action{.id}' and path not like '%daily%' ORDER BY random() LIMIT 1}}

0 comments on commit 628fac3

Please sign in to comment.