Skip to content

Commit

Permalink
[release] v1.3.3, check the CHANGELOG.md for details
Browse files Browse the repository at this point in the history
- update documents for releasing v1.3.3
- fix files data generating issue

Signed-off-by: edonyzpc <[email protected]>
  • Loading branch information
edonyzpc committed Mar 21, 2024
1 parent 0794621 commit a570aae
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.3.3](https://github.com/edonyzpc/personal-assistant/compare/1.3.2...1.3.3) (2024-03-21)
### Feature
- show vault statistics data in chart view

## [1.3.2](https://github.com/edonyzpc/personal-assistant/compare/1.3.1...1.3.2) (2023-11-16)
### Improve
- list callout command support inserting in current cursor
Expand Down
6 changes: 5 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
<img alt="Downloads" src="https://img.shields.io/github/downloads/edonyzpc/personal-assistant/total?label=下载量&logo=obsidian&logoColor=%23b300ff&style=social" />
</p>

> ***号外***: 新特性来啦!记录预览支持渲染块引用wiki链接以及从预览卡跳转到原始笔记文件。
> ***号外***: 新特性来啦!渲染 chart 图标用于展示 vault 的统计数据。
<div align="center">
<img src="./docs/personal-assistant-v1.3.3.gif" alt="usage video"/>
</div>
<div align="center">
<img src="./docs/personal-assistant-v1.3.1.gif" alt="usage video"/>
</div>
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

</p>

> ***NOTE***: New shiny feature: preview record supports rendering block reference wiki link and jumping from preview card to original note file
> ***NOTE***: New shiny feature: Rendering statistics of the current vault including characters, words, sections, citations, lines and pages.
<div align="center">
<img src="./docs/personal-assistant-v1.3.3.gif" alt="usage video"/>
</div>
<div align="center">
<img src="./docs/personal-assistant-v1.3.1.gif" alt="usage video"/>
</div>
Expand Down Expand Up @@ -117,6 +121,7 @@ Now Personal Assistant plugin is available in [plugin market](https://obsidian.m
## Attribution
- Best thanks for project [obsidian-advanced-new-file](https://github.com/vanadium23/obsidian-advanced-new-file) for the code of `createNote`, `createDirectory`
- Best thanks for project [obsidian-callout-manager](https://github.com/eth-p/obsidian-callout-manager) for the `class CalloutPreviewComponent` and `color.ts`
- Best thanks for project [better-word-count](https://github.com/lukeleppan/better-word-count) for the `package stats`

## Contact

Expand Down
Binary file added docs/personal-assistant-v1.3.3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "personal-assistant",
"name": "Personal Assistant",
"version": "1.3.2",
"version": "1.3.3",
"minAppVersion": "1.1.0",
"description": "Streamline workflows within Obsidian, managing memos and plugins with just one command.",
"author": "edony",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "personal-assistant",
"name": "Personal Assistant",
"version": "1.3.2",
"version": "1.3.3",
"minAppVersion": "1.1.0",
"description": "Streamline workflows within Obsidian, managing memos and plugins with just one command.",
"author": "edony",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "personal-assistant",
"version": "1.3.2",
"version": "1.3.3",
"description": "An plugin which help you to automatically manage Obsidian.",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { monkeyPatchConsole } from './obsidian-hack/obsidian-mobile-debug';
import { CalloutModal } from './callout';
import { RecordPreview, RECORD_PREVIEW_TYPE } from './preview';
import { STAT_PREVIEW_TYPE, Stat } from './statsView'
import StatsManager from './stats/statsManager'
import { pluginField, statusBarEditorPlugin, sectionWordCountEditorPlugin } from './stats/editorPlugin'
import StatsManager from './stats/StatsManager'
import { pluginField, statusBarEditorPlugin, sectionWordCountEditorPlugin } from './stats/EditorPlugin'
import { STATS_FILE_NAME } from './constant'

const debug = (debug: boolean, ...msg: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any
Expand Down
7 changes: 6 additions & 1 deletion src/stats/StatsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ export default class StatsManager {
}

this.today = moment().format("YYYY-MM-DD");
let counter = 1;
while (!this.vaultStats.history.hasOwnProperty(moment().subtract(counter, 'days').format("YYYY-MM-DD"))) {
counter++;
}
const lastRecordDay = moment().subtract(counter, 'days').format("YYYY-MM-DD");
const totalWords = await this.calcTotalWords();
const totalCharacters = await this.calcTotalCharacters();
const totalSentences = await this.calcTotalSentences();
Expand All @@ -95,7 +100,7 @@ export default class StatsManager {
characters: 0,
sentences: 0,
pages: 0,
files: 0,
files: this.vaultStats.history[lastRecordDay].files,
footnotes: 0,
citations: 0,
totalWords: totalWords,
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@
"1.2.9": "1.1.0",
"1.3.0": "1.1.0",
"1.3.1": "1.1.0",
"1.3.2": "1.1.0"
"1.3.2": "1.1.0",
"1.3.3": "1.1.0"
}

0 comments on commit a570aae

Please sign in to comment.