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
011fcc7d
Commit
011fcc7d
authored
Jun 27, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: rename module
parent
a62c982a
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
54 additions
and
36 deletions
+54
-36
system.go
api/system.go
+1
-1
root.go
bin/server/cmd/root.go
+4
-4
main.go
bin/server/main.go
+1
-1
go.mod
go.mod
+1
-1
auth.go
server/auth.go
+3
-2
basic_auth.go
server/basic_auth.go
+3
-2
memo.go
server/memo.go
+3
-2
profile.go
server/profile/profile.go
+2
-1
resource.go
server/resource.go
+2
-1
server.go
server/server.go
+3
-2
shortcut.go
server/shortcut.go
+2
-1
system.go
server/system.go
+2
-1
tag.go
server/tag.go
+2
-1
user.go
server/user.go
+3
-2
webhook.go
server/webhook.go
+2
-1
db.go
store/db/db.go
+3
-2
memo.go
store/memo.go
+3
-2
memo_organizer.go
store/memo_organizer.go
+3
-2
resource.go
store/resource.go
+3
-2
shortcut.go
store/shortcut.go
+3
-2
store.go
store/store.go
+2
-1
user.go
store/user.go
+3
-2
No files found.
api/system.go
View file @
011fcc7d
package
api
package
api
import
"memos/server/profile"
import
"
github.com/usememos/
memos/server/profile"
type
SystemStatus
struct
{
type
SystemStatus
struct
{
Owner
*
User
`json:"owner"`
Owner
*
User
`json:"owner"`
...
...
bin/server/cmd/root.go
View file @
011fcc7d
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"fmt"
"fmt"
"os"
"os"
"memos/server"
"
github.com/usememos/
memos/server"
"memos/server/profile"
"
github.com/usememos/
memos/server/profile"
"memos/store"
"
github.com/usememos/
memos/store"
DB
"memos/store/db"
DB
"
github.com/usememos/
memos/store/db"
)
)
const
(
const
(
...
...
bin/server/main.go
View file @
011fcc7d
package
main
package
main
import
"memos/bin/server/cmd"
import
"
github.com/usememos/
memos/bin/server/cmd"
func
main
()
{
func
main
()
{
cmd
.
Execute
()
cmd
.
Execute
()
...
...
go.mod
View file @
011fcc7d
module memos
module
github.com/usememos/
memos
go 1.17
go 1.17
...
...
server/auth.go
View file @
011fcc7d
...
@@ -3,10 +3,11 @@ package server
...
@@ -3,10 +3,11 @@ package server
import
(
import
(
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"memos/api"
"memos/common"
"net/http"
"net/http"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/bcrypt"
)
)
...
...
server/basic_auth.go
View file @
011fcc7d
...
@@ -2,11 +2,12 @@ package server
...
@@ -2,11 +2,12 @@ package server
import
(
import
(
"fmt"
"fmt"
"memos/api"
"memos/common"
"net/http"
"net/http"
"strconv"
"strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/gorilla/sessions"
"github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
...
...
server/memo.go
View file @
011fcc7d
...
@@ -3,11 +3,12 @@ package server
...
@@ -3,11 +3,12 @@ package server
import
(
import
(
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"memos/api"
"memos/common"
"net/http"
"net/http"
"strconv"
"strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)
)
...
...
server/profile/profile.go
View file @
011fcc7d
...
@@ -2,11 +2,12 @@ package profile
...
@@ -2,11 +2,12 @@ package profile
import
(
import
(
"fmt"
"fmt"
"memos/common"
"os"
"os"
"path/filepath"
"path/filepath"
"strconv"
"strconv"
"strings"
"strings"
"github.com/usememos/memos/common"
)
)
// Profile is the configuration to start main server.
// Profile is the configuration to start main server.
...
...
server/resource.go
View file @
011fcc7d
...
@@ -4,10 +4,11 @@ import (
...
@@ -4,10 +4,11 @@ import (
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"io/ioutil"
"io/ioutil"
"memos/api"
"net/http"
"net/http"
"strconv"
"strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)
)
...
...
server/server.go
View file @
011fcc7d
...
@@ -2,10 +2,11 @@ package server
...
@@ -2,10 +2,11 @@ package server
import
(
import
(
"fmt"
"fmt"
"memos/server/profile"
"memos/store"
"time"
"time"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
"github.com/gorilla/securecookie"
"github.com/gorilla/securecookie"
"github.com/gorilla/sessions"
"github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo-contrib/session"
...
...
server/shortcut.go
View file @
011fcc7d
...
@@ -3,10 +3,11 @@ package server
...
@@ -3,10 +3,11 @@ package server
import
(
import
(
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"memos/api"
"net/http"
"net/http"
"strconv"
"strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)
)
...
...
server/system.go
View file @
011fcc7d
...
@@ -2,9 +2,10 @@ package server
...
@@ -2,9 +2,10 @@ package server
import
(
import
(
"encoding/json"
"encoding/json"
"memos/api"
"net/http"
"net/http"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)
)
...
...
server/tag.go
View file @
011fcc7d
...
@@ -2,10 +2,11 @@ package server
...
@@ -2,10 +2,11 @@ package server
import
(
import
(
"encoding/json"
"encoding/json"
"memos/api"
"net/http"
"net/http"
"regexp"
"regexp"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)
)
...
...
server/user.go
View file @
011fcc7d
...
@@ -3,11 +3,12 @@ package server
...
@@ -3,11 +3,12 @@ package server
import
(
import
(
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"memos/api"
"memos/common"
"net/http"
"net/http"
"strconv"
"strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/bcrypt"
)
)
...
...
server/webhook.go
View file @
011fcc7d
...
@@ -4,10 +4,11 @@ import (
...
@@ -4,10 +4,11 @@ import (
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"io/ioutil"
"io/ioutil"
"memos/api"
"net/http"
"net/http"
"strconv"
"strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)
)
...
...
store/db/db.go
View file @
011fcc7d
...
@@ -6,11 +6,12 @@ import (
...
@@ -6,11 +6,12 @@ import (
"errors"
"errors"
"fmt"
"fmt"
"io/fs"
"io/fs"
"memos/common"
"memos/server/profile"
"os"
"os"
"sort"
"sort"
"github.com/usememos/memos/common"
"github.com/usememos/memos/server/profile"
_
"github.com/mattn/go-sqlite3"
_
"github.com/mattn/go-sqlite3"
)
)
...
...
store/memo.go
View file @
011fcc7d
...
@@ -3,9 +3,10 @@ package store
...
@@ -3,9 +3,10 @@ package store
import
(
import
(
"database/sql"
"database/sql"
"fmt"
"fmt"
"memos/api"
"memos/common"
"strings"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
)
// memoRaw is the store model for an Memo.
// memoRaw is the store model for an Memo.
...
...
store/memo_organizer.go
View file @
011fcc7d
...
@@ -3,8 +3,9 @@ package store
...
@@ -3,8 +3,9 @@ package store
import
(
import
(
"database/sql"
"database/sql"
"fmt"
"fmt"
"memos/api"
"memos/common"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
)
// memoOrganizerRaw is the store model for an MemoOrganizer.
// memoOrganizerRaw is the store model for an MemoOrganizer.
...
...
store/resource.go
View file @
011fcc7d
...
@@ -3,9 +3,10 @@ package store
...
@@ -3,9 +3,10 @@ package store
import
(
import
(
"database/sql"
"database/sql"
"fmt"
"fmt"
"memos/api"
"memos/common"
"strings"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
)
// resourceRaw is the store model for an Resource.
// resourceRaw is the store model for an Resource.
...
...
store/shortcut.go
View file @
011fcc7d
...
@@ -3,9 +3,10 @@ package store
...
@@ -3,9 +3,10 @@ package store
import
(
import
(
"database/sql"
"database/sql"
"fmt"
"fmt"
"memos/api"
"memos/common"
"strings"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
)
// shortcutRaw is the store model for an Shortcut.
// shortcutRaw is the store model for an Shortcut.
...
...
store/store.go
View file @
011fcc7d
...
@@ -2,7 +2,8 @@ package store
...
@@ -2,7 +2,8 @@ package store
import
(
import
(
"database/sql"
"database/sql"
"memos/server/profile"
"github.com/usememos/memos/server/profile"
)
)
// Store provides database access to all raw objects
// Store provides database access to all raw objects
...
...
store/user.go
View file @
011fcc7d
...
@@ -3,9 +3,10 @@ package store
...
@@ -3,9 +3,10 @@ package store
import
(
import
(
"database/sql"
"database/sql"
"fmt"
"fmt"
"memos/api"
"memos/common"
"strings"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
)
// userRaw is the store model for an User.
// userRaw is the store model for an User.
...
...
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