Compare commits

...

2 Commits

Author SHA1 Message Date
boojack
8887eecf07 fix: initial memo filter 2022-05-22 17:40:51 +08:00
boojack
6b538cd43d chore: update version v0.1.0 2022-05-22 17:19:05 +08:00
4 changed files with 5 additions and 4 deletions

View File

@@ -30,7 +30,7 @@
## ⚓️ Deploy with Docker
```docker
docker run --name memos --publish 5230:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.0.1
docker run --name memos --publish 5230:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.1.0
```
Memos should now be running at [http://localhost:5230](http://localhost:5230). If the `~/.memos/` does not have a `memos_prod.db` file, then `memos` will auto generate it.

View File

@@ -1,4 +1,4 @@
package common
// Version is the service current released version.
var Version = "0.0.1"
var Version = "0.1.0"

View File

@@ -1,6 +1,6 @@
{
"name": "memos",
"version": "0.0.1",
"version": "0.1.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",

View File

@@ -8,7 +8,8 @@ interface FilterProps {}
const MemoFilter: React.FC<FilterProps> = () => {
const query = useAppSelector((state) => state.location.query);
const { tag: tagQuery, duration, type: memoType, text: textQuery, shortcutId } = query ?? {};
useAppSelector((state) => state.shortcut.shortcuts);
const { tag: tagQuery, duration, type: memoType, text: textQuery, shortcutId } = query;
const shortcut = shortcutId ? shortcutService.getShortcutById(shortcutId) : null;
const showFilter = Boolean(tagQuery || (duration && duration.from < duration.to) || memoType || textQuery || shortcut);