Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the milestone-plugin timeline feature. #4

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build plugin

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "*" # Push events to matching any tag format, i.e. 1.0, 20.15.10

env:
PLUGIN_NAME: logseq-files-manager

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "16.x" # You might need to adjust this value to your own version
- name: Build
id: build
run: |
npm install
npm run build
mkdir ${{ env.PLUGIN_NAME }}
cp logo.png LICENSE package.json README.md ${{ env.PLUGIN_NAME }}
mv dist images ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"

- name: Create Release
uses: ncipollo/release-action@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}
with:
allowUpdates: true
draft: false
prerelease: false

- name: Upload zip file
id: upload_zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.PLUGIN_NAME }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
asset_content_type: application/zip

- name: Upload package.json
id: upload_metadata
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./package.json
asset_name: package.json
asset_content_type: application/json
29 changes: 0 additions & 29 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
8 changes: 0 additions & 8 deletions CHANGELOG.md

This file was deleted.

33 changes: 18 additions & 15 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# logseq-plugin-milestone
> 在日历中显示时间节点
# logseq-plugin-milestone-pro
> 在日历中显示时间节点,fork from [logseq-plugin-milestone](https://github.com/haydenull/logseq-plugin-milestone)

简体中文 | [English](./README.md)
- ## 示例

## 示例
![demo](./demo.gif)
![demo1](/images/image.png)
![demo1](/images/image%20copy.png)
![demo1](/images/image%20copy%202.png)

## 使用方法
1. 安装插件
2. 填写插件配置, **必须填写 `dateFormatter`**
3. 输入 `/` 命令, 选择 `milestone`
4. 在 milestones 的子节点中输入时间节点

## 插件配置
- ## 使用方法
1. 安装插件
2. 填写插件配置, **必须填写 `dateFormatter`**
3. 输入 `/` 命令, 选择 `milestone` \ `milestones-page` \ `milestones-all`
4. milestone:在 milestones 的子节点中输入时间节点
5. milestones-page:拉取页面在各个journal中的信息作为里程碑
6. milestones-all:综合4和5
- ## 插件配置
- dateFormatter: 参考 [moment](https://momentjs.com/docs/#/displaying/) 填写时间格式化字符串, 必须匹配您笔记里的时间格式

## 配置示例
```json
{
- ## 配置示例
```json
{
"dateFormatter": "YYYY-MM-DD ddd"
}
}
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# logseq-plugin-milestone
> show milestone in calendar
# logseq-plugin-milestone-pro
> show milestone in calendar; fork from [logseq-plugin-milestone](https://github.com/haydenull/logseq-plugin-milestone)

[![latest release version](https://img.shields.io/github/v/release/haydenull/logseq-plugin-milestone)](https://github.com/haydenull/logseq-plugin-milestone/releases)
[![License](https://img.shields.io/github/license/haydenull/logseq-plugin-milestone?color=blue)](https://github.com/haydenull/logseq-plugin-markdown-table/blob/main/LICENSE)
Expand All @@ -8,12 +8,19 @@ English | [简体中文](./README-zh_CN.md)

## Demo
![demo](./demo.gif)
![demo1](/images/image.png)
![demo1](/images/image%20copy.png)
![demo1](/images/image%20copy%202.png)


## Usage
1. Install plugin
2. Fill in the plugin configuration, **must fill in `dateFormatter`**
3. Input `/` command, select `milestone`
4. In milestones' sub-nodes, input time node
3. Input `/` command, select `milestone` \ `milestones-page` \ `milestones-all`
4. milestone: Enter time nodes as sub-items within the "milestones" section.
5. milestones-page: Pull information from various journals on the page to serve as milestones.
6. milestones-all: Integrate steps 4 and 5 to create a comprehensive overview of milestones.


## Plugin configuration
- dateFormatter: Refer to [moment](https://momentjs.com/docs/#/displaying/) fill in time format string, must match your notes' time format
Expand All @@ -22,4 +29,4 @@ English | [简体中文](./README-zh_CN.md)
```json
{
"dateFormatter": "YYYY-MM-DD ddd"
}
}
15 changes: 15 additions & 0 deletions dist/assets/favicon.17e50649.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions dist/assets/index.6ef7eb25.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/assets/index.76d0466f.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

212 changes: 212 additions & 0 deletions dist/assets/vendor.800c6984.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/assets/vendor.a843939f.css

Large diffs are not rendered by default.

Loading