Skip to content

Commit

Permalink
Functional testing
Browse files Browse the repository at this point in the history
  • Loading branch information
BNDong committed Jul 4, 2024
1 parent 80a6c5e commit 32e655e
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
<img src="https://contrib.rocks/image?repo=BNDong/Cnblogs-Theme-SimpleMemory" />
</a>

## Special Thanks

<a href="https://github.com/wangyang0210">
<img width="64" height="64" src="https://avatars.githubusercontent.com/u/36377605?v=4" alt="wangyang0210">
</a>

## Author

**Cnblogs-Theme-SimpleMemory** © [BNDong](https://github.com/BNDong), Released under the [MIT](./LICENSE) License.<br>
Expand Down

Large diffs are not rendered by default.

Binary file added dist/script/comBefore.da252035.js.gz
Binary file not shown.
Binary file removed dist/script/comBefore.f9966144.js.gz
Binary file not shown.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/simpleMemory.js

Large diffs are not rendered by default.

Binary file modified dist/simpleMemory.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 2 additions & 0 deletions docs/v2.1/docs/src/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
* 文章页复制内容携带版权信息 [(#429)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/429)
* 文章页评论框打字动效 [(#431)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/431)
* 友链页增加配置 [(#435)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/435)
* 国家公祭日和自定义缅怀的日期 [(#439)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/439)
* 修复拓展图标展示异常 [(#436)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/436)
* 修复文章页关注博主按钮错位 [(#440)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/440)

## 2024.01.02 - v2.1.4
* 修改了博客运行时间的文字描述
Expand Down
16 changes: 16 additions & 0 deletions docs/v2.1/docs/src/reference/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,22 @@ window.cnblogsConfig = {
}
```

## memorialDays - 国家公祭日和自定义缅怀的日期 <Badge type="tip" text="v2.1.5" /> [(#439)](https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/pull/439)

* 类型:`Array`
* 默认值:`[]`

国家公祭日和自定义缅怀的日期,日期配置为带有前导零的月日,格式 MM-DD

```javascript
window.cnblogsConfig = {
memorialDays: [
'07-04',
'12-13'
],
}
```

## consoleList - 控制台输出

* 类型:`Array`
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/comBefore.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function main(_) {
* 国家公祭日和自定义缅怀的日期
*/
const today = _.__tools.getFormattedDate();
if (today == '12-13' || _.__config.memorialDays.includes(today)) $('html').css('filter', 'grayscale(100%)');
if (today === '12-13' || _.__config.memorialDays.includes(today)) $('html').css('filter', 'grayscale(100%)');

let loadingObj = loading(_);

Expand Down

0 comments on commit 32e655e

Please sign in to comment.