mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03:00
chore: update seed data
This commit is contained in:
parent
06fc29aecd
commit
2fe2b82809
@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"sort"
|
||||
|
||||
"github.com/usememos/memos/api"
|
||||
|
||||
@ -44,6 +45,8 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
|
||||
tagList = append(tagList, tag)
|
||||
}
|
||||
|
||||
sort.Strings(tagList)
|
||||
|
||||
c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSONCharsetUTF8)
|
||||
if err := json.NewEncoder(c.Response().Writer).Encode(composeResponse(tagList)); err != nil {
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to encode tags response").SetInternal(err)
|
||||
|
@ -7,8 +7,7 @@ INSERT INTO
|
||||
VALUES
|
||||
(
|
||||
101,
|
||||
'#memos
|
||||
👋 Welcome to memos',
|
||||
'#Hello 👋 Welcome to memos',
|
||||
101
|
||||
);
|
||||
|
||||
@ -21,6 +20,23 @@ INSERT INTO
|
||||
VALUES
|
||||
(
|
||||
102,
|
||||
'好好学习,天天向上。',
|
||||
'#TODO
|
||||
- [x] Clean my room in weekend;
|
||||
- [ ] Take more photos about **🌄 sunset**;
|
||||
- [x] Reading *📖 The Little Prince*;
|
||||
',
|
||||
101
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
memo (
|
||||
`id`,
|
||||
`content`,
|
||||
`creator_id`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
103,
|
||||
'好好学习,天天向上。🤜🤛',
|
||||
101
|
||||
);
|
||||
|
@ -21,7 +21,11 @@
|
||||
|
||||
.counter-block,
|
||||
.todo-block {
|
||||
@apply inline-block text-center w-6 font-mono select-none cursor-pointer hover:shadow-inner;
|
||||
@apply inline-block text-center w-7 font-mono select-none;
|
||||
}
|
||||
|
||||
.todo-block {
|
||||
@apply rounded select-none cursor-pointer hover:shadow-inner;
|
||||
}
|
||||
|
||||
pre {
|
||||
|
Loading…
Reference in New Issue
Block a user