Skip to content

Commit

Permalink
Update to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeguimaraes committed Aug 28, 2023
1 parent 2398910 commit 0f90957
Show file tree
Hide file tree
Showing 9 changed files with 1,004 additions and 4,306 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: npm run build
- uses: montudor/action-zip@v1
with:
args: zip -qq -r logseq-plugin-add-PARA-properties.zip dist README.md package.json LICENSE icon.png demo.gif
args: zip -qq -r logseq-plugin-add-para-properties.zip dist README.md package.json LICENSE icon.png demo.gif
- name: Release
run: npx semantic-release
env:
Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
## Add PARA properties
# Add PARA properties

I wanted a quick way to link the current page to a Project, Area or Resource that I already have in Logseq.

That's why I created this plugin.

## Usage

This plugin gives you 3 new slashes commands:

- Project [file page under a project]
- Area [file page under an area]
- Resource [file page under a resource]

Each will create a new property (`project::`, `area::` or `resource::`) into the current page.
Each will create a new property (`project::`, `area::` or `resource::`) into the current page. I use it to link to an existing (or new page) using `[[ New Page ]]`. This way the link is clickable.

This is my workflow. I use those properties to query for pages related to projects, areas and resources.
### Setup for Projects, Areas and Resources pages

For each Project, Area or Resource, I use the following property:

```
page-type: project # or `area`, `resource`
```

This is my workflow. I use those properties to query for pages related to projects, areas and resources.

## Demo

![demo](./demo.gif)

## Recommendations

I also use [Awesome Props](https://github.com/yoyurec/logseq-awesome-props) to have some cool icons for properties in all pages.
26 changes: 14 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Add PARA properties into Page</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="index.ts"></script>
</body>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" />
<title>Add PARA properties into Page</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="./src/main.ts"></script>
</body>
</html>
28 changes: 0 additions & 28 deletions index.ts

This file was deleted.

Loading

0 comments on commit 0f90957

Please sign in to comment.