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
2fe2b828
Commit
2fe2b828
authored
Jul 02, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update seed data
parent
06fc29ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
tag.go
server/tag.go
+3
-0
10002__memo.sql
store/db/seed/10002__memo.sql
+19
-3
memo-content.less
web/src/less/memo-content.less
+5
-1
No files found.
server/tag.go
View file @
2fe2b828
...
...
@@ -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
)
...
...
store/db/seed/10002__memo.sql
View file @
2fe2b828
...
...
@@ -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
);
web/src/less/memo-content.less
View file @
2fe2b828
...
...
@@ -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 {
...
...
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