Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
50f36e3e
Unverified
Commit
50f36e3e
authored
Mar 11, 2023
by
boojack
Committed by
GitHub
Mar 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: upgrade version to `0.11.2` (#1336)
parent
ca6839f5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
14 deletions
+30
-14
version.go
server/version/version.go
+2
-2
AboutSiteDialog.tsx
web/src/components/AboutSiteDialog.tsx
+1
-5
daily-memo.less
web/src/less/daily-memo.less
+2
-2
DailyReview.tsx
web/src/pages/DailyReview.tsx
+25
-5
No files found.
server/version/version.go
View file @
50f36e3e
...
@@ -9,10 +9,10 @@ import (
...
@@ -9,10 +9,10 @@ import (
// Version is the service current released version.
// Version is the service current released version.
// Semantic versioning: https://semver.org/
// Semantic versioning: https://semver.org/
var
Version
=
"0.11.
1
"
var
Version
=
"0.11.
2
"
// DevVersion is the service current development version.
// DevVersion is the service current development version.
var
DevVersion
=
"0.11.
1
"
var
DevVersion
=
"0.11.
2
"
func
GetCurrentVersion
(
mode
string
)
string
{
func
GetCurrentVersion
(
mode
string
)
string
{
if
mode
==
"dev"
||
mode
==
"demo"
{
if
mode
==
"dev"
||
mode
==
"demo"
{
...
...
web/src/components/AboutSiteDialog.tsx
View file @
50f36e3e
...
@@ -53,11 +53,7 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
...
@@ -53,11 +53,7 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
/>
/>
<
span
>
Sticky notes
</
span
>
<
span
>
Sticky notes
</
span
>
</
a
>
</
a
>
<
a
<
a
href=
"https://star-history.com"
target=
"_blank"
className=
"flex items-center underline text-blue-600 hover:opacity-80"
>
href=
"https://github.com/boojack/sticky-notes"
target=
"_blank"
className=
"flex items-center underline text-blue-600 hover:opacity-80"
>
<
img
className=
"w-4 h-auto mr-1"
src=
"https://star-history.com/icon.png"
alt=
""
/>
<
img
className=
"w-4 h-auto mr-1"
src=
"https://star-history.com/icon.png"
alt=
""
/>
<
span
>
Star history
</
span
>
<
span
>
Star history
</
span
>
</
a
>
</
a
>
...
...
web/src/less/daily-memo.less
View file @
50f36e3e
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
}
}
> .split-line {
> .split-line {
@apply h-full px-px bg-gray-50 dark:bg-zinc-600 absolute top-1 left-6
z-0
-ml-px;
@apply h-full px-px bg-gray-50 dark:bg-zinc-600 absolute top-1 left-6 -ml-px;
}
}
> .time-wrapper {
> .time-wrapper {
@apply mt-px mr-4 w-12 h-7 shrink-0 text-xs leading-6 text-center font-mono rounded-lg bg-gray-100 dark:bg-zinc-600 border-2 border-white
dark:border-zinc-700 text-gray-600 dark:text-gray-300 z-1
0;
@apply mt-px mr-4 w-12 h-7 shrink-0 text-xs leading-6 text-center font-mono rounded-lg bg-gray-100 dark:bg-zinc-600 border-2 border-white
z-1 dark:border-zinc-700 text-gray-600 dark:text-gray-30
0;
}
}
> .memo-container {
> .memo-container {
...
...
web/src/pages/DailyReview.tsx
View file @
50f36e3e
import
{
useRef
,
useState
}
from
"react"
;
import
{
last
}
from
"lodash-es"
;
import
{
useEffect
,
useRef
,
useState
}
from
"react"
;
import
toast
from
"react-hot-toast"
;
import
{
useTranslation
}
from
"react-i18next"
;
import
{
useTranslation
}
from
"react-i18next"
;
import
{
useMemoStore
,
useUserStore
}
from
"../store/module"
;
import
{
useMemoStore
,
useUserStore
}
from
"../store/module"
;
import
{
DAILY_TIMESTAMP
}
from
"../helpers/consts"
;
import
{
DAILY_TIMESTAMP
,
DEFAULT_MEMO_LIMIT
}
from
"../helpers/consts"
;
import
*
as
utils
from
"../helpers/utils"
;
import
*
as
utils
from
"../helpers/utils"
;
import
MobileHeader
from
"../components/MobileHeader"
;
import
MobileHeader
from
"../components/MobileHeader"
;
import
useToggle
from
"../hooks/useToggle"
;
import
useToggle
from
"../hooks/useToggle"
;
...
@@ -37,6 +39,24 @@ const DailyReview = () => {
...
@@ -37,6 +39,24 @@ const DailyReview = () => {
})
})
.
sort
((
a
,
b
)
=>
utils
.
getTimeStampByDate
(
a
.
createdTs
)
-
utils
.
getTimeStampByDate
(
b
.
createdTs
));
.
sort
((
a
,
b
)
=>
utils
.
getTimeStampByDate
(
a
.
createdTs
)
-
utils
.
getTimeStampByDate
(
b
.
createdTs
));
useEffect
(()
=>
{
const
fetchMoreMemos
=
async
()
=>
{
try
{
const
fetchedMemos
=
await
memoStore
.
fetchMemos
();
if
(
fetchedMemos
.
length
===
DEFAULT_MEMO_LIMIT
)
{
const
lastMemo
=
last
(
fetchedMemos
);
if
(
lastMemo
&&
lastMemo
.
createdTs
>
currentDateStamp
)
{
await
fetchMoreMemos
();
}
}
}
catch
(
error
:
any
)
{
console
.
error
(
error
);
toast
.
error
(
error
.
response
.
data
.
message
);
}
};
fetchMoreMemos
();
},
[
currentDateStamp
]);
const
handleShareBtnClick
=
()
=>
{
const
handleShareBtnClick
=
()
=>
{
if
(
!
memosElRef
.
current
)
{
if
(
!
memosElRef
.
current
)
{
return
;
return
;
...
@@ -99,8 +119,8 @@ const DailyReview = () => {
...
@@ -99,8 +119,8 @@ const DailyReview = () => {
handleDateStampChange=
{
handleDataPickerChange
}
handleDateStampChange=
{
handleDataPickerChange
}
/>
/>
</
div
>
</
div
>
<
div
className=
"w-full h-auto flex flex-col justify-start items-start p
-12 pt-26
"
ref=
{
memosElRef
}
>
<
div
className=
"w-full h-auto flex flex-col justify-start items-start p
x-2 sm:px-12 pt-14 pb-8
"
ref=
{
memosElRef
}
>
<
div
className=
"flex flex-col justify-center items-center mx-auto pb-
6
select-none"
>
<
div
className=
"flex flex-col justify-center items-center mx-auto pb-
10
select-none"
>
<
div
className=
"mx-auto font-bold text-gray-600 dark:text-gray-300 text-center leading-6 mb-2"
>
{
currentDate
.
getFullYear
()
}
</
div
>
<
div
className=
"mx-auto font-bold text-gray-600 dark:text-gray-300 text-center leading-6 mb-2"
>
{
currentDate
.
getFullYear
()
}
</
div
>
<
div
className=
"flex flex-col justify-center items-center m-auto w-24 h-24 shadow rounded-3xl dark:bg-zinc-800"
>
<
div
className=
"flex flex-col justify-center items-center m-auto w-24 h-24 shadow rounded-3xl dark:bg-zinc-800"
>
<
div
className=
"text-center w-full leading-6 text-sm text-white bg-blue-700 rounded-t-3xl"
>
<
div
className=
"text-center w-full leading-6 text-sm text-white bg-blue-700 rounded-t-3xl"
>
...
@@ -113,7 +133,7 @@ const DailyReview = () => {
...
@@ -113,7 +133,7 @@ const DailyReview = () => {
</
div
>
</
div
>
</
div
>
</
div
>
{
dailyMemos
.
length
===
0
?
(
{
dailyMemos
.
length
===
0
?
(
<
div
className=
"mx-auto p
y-6 pb-12
px-0"
>
<
div
className=
"mx-auto p
t-4 pb-5
px-0"
>
<
p
className=
"italic text-gray-400"
>
{
t
(
"daily-review.oops-nothing"
)
}
</
p
>
<
p
className=
"italic text-gray-400"
>
{
t
(
"daily-review.oops-nothing"
)
}
</
p
>
</
div
>
</
div
>
)
:
(
)
:
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment