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
3fdc5bb2
Commit
3fdc5bb2
authored
May 19, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update demo user
parent
ae87ee6d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
10001__user.sql
store/seed/10001__user.sql
+3
-3
AboutSiteDialog.tsx
web/src/components/AboutSiteDialog.tsx
+1
-1
about-site-dialog.less
web/src/less/about-site-dialog.less
+1
-1
signin.less
web/src/less/signin.less
+7
-7
Signin.tsx
web/src/pages/Signin.tsx
+9
-9
tailwind.config.js
web/tailwind.config.js
+1
-0
No files found.
store/seed/10001__user.sql
View file @
3fdc5bb2
...
...
@@ -10,10 +10,10 @@ INSERT INTO
VALUES
(
101
,
'
steven@
memos.com'
,
'
demo@use
memos.com'
,
'OWNER'
,
'
Steven
'
,
'
steven
_open_id'
,
'
Demo Owner
'
,
'
demo
_open_id'
,
-- raw password: secret
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
);
web/src/components/AboutSiteDialog.tsx
View file @
3fdc5bb2
...
...
@@ -38,7 +38,7 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
</
div
>
<
div
className=
"dialog-content-container"
>
<
p
>
Memos is an
<
i
>
open source
</
i
>
,
<
i
>
self-hosted
</
i
>
knowledge base that works with
local SQLit
e.
Memos is an
<
i
>
open source
</
i
>
,
<
i
>
self-hosted
</
i
>
knowledge base that works with
a SQLite db fil
e.
</
p
>
<
br
/>
<
p
>
...
...
web/src/less/about-site-dialog.less
View file @
3fdc5bb2
...
...
@@ -2,7 +2,7 @@
.about-site-dialog {
> .dialog-container {
@apply w-
96
;
@apply w-
112
;
> .dialog-content-container {
@apply leading-relaxed;
...
...
web/src/less/signin.less
View file @
3fdc5bb2
...
...
@@ -19,7 +19,7 @@
}
> .slogan-text {
@apply mt-2 text-sm text-gray-
6
00;
@apply mt-2 text-sm text-gray-
7
00;
}
}
...
...
@@ -43,14 +43,14 @@
@apply py-2;
> input {
@apply w-full py-3 px-3 text-base shadow-inner rounded-lg border border-solid border-gray-400;
}
&:hover {
@apply opacity-80;
@apply w-full py-3 px-3 text-base shadow-inner rounded-lg border border-solid border-gray-400 hover:opacity-80;
}
}
}
&.requesting {
@apply opacity-80;
}
}
> .action-btns-container {
...
...
@@ -71,7 +71,7 @@
}
> .tip-text {
@apply w-full text-sm mt-4 text-gray-500 text-right;
@apply w-full text-sm mt-4 text-gray-500 text-right
whitespace-pre-wrap
;
}
}
}
web/src/pages/Signin.tsx
View file @
3fdc5bb2
...
...
@@ -26,7 +26,7 @@ const Signin: React.FC<Props> = () => {
api
.
getSystemStatus
().
then
((
status
)
=>
{
setSiteOwner
(
status
.
owner
);
if
(
status
.
profile
.
mode
===
"dev"
)
{
setEmail
(
"
steven@
memos.com"
);
setEmail
(
"
demo@use
memos.com"
);
setPassword
(
"secret"
);
}
pageLoadingState
.
setFinish
();
...
...
@@ -110,28 +110,28 @@ const Signin: React.FC<Props> = () => {
};
return
(
<
div
className=
{
`page-wrapper signin ${pageLoadingState.isLoading ? "hidden" : ""}`
}
>
<
div
className=
"page-wrapper signin"
>
<
div
className=
"page-container"
>
<
div
className=
"page-header-container"
>
<
p
className=
"title-text"
>
<
span
className=
"icon-text"
>
✍️
</
span
>
Memos
</
p
>
<
p
className=
"slogan-text"
>
An
<
i
>
open source
</
i
>
,
<
i
>
self-hosted
</
i
>
knowledge base that works with
local SQLit
e.
An
<
i
>
open source
</
i
>
,
<
i
>
self-hosted
</
i
>
knowledge base that works with
a SQLite db fil
e.
</
p
>
</
div
>
<
div
className=
"page-content-container"
>
<
div
className=
{
`page-content-container ${actionBtnLoadingState.isLoading ? "requesting" : ""}`
}
>
<
div
className=
"form-item-container input-form-container"
>
<
span
className=
{
"normal-text "
+
(
email
===
""
?
""
:
"not-null"
)
}
>
Email
</
span
>
<
span
className=
{
`normal-tex ${email ? "not-null" : ""}`
}
>
Email
</
span
>
<
input
type=
"email"
value=
{
email
}
onChange=
{
handleEmailInputChanged
}
/>
</
div
>
<
div
className=
"form-item-container input-form-container"
>
<
span
className=
{
"normal-text "
+
(
password
===
""
?
""
:
"not-null"
)
}
>
Password
</
span
>
<
span
className=
{
`normal-text ${password ? "not-null" : ""}`
}
>
Password
</
span
>
<
input
type=
"password"
value=
{
password
}
onChange=
{
handlePasswordInputChanged
}
/>
</
div
>
</
div
>
<
div
className=
"action-btns-container"
>
{
siteOwner
?
(
{
siteOwner
||
pageLoadingState
.
isLoading
?
(
<
button
className=
{
`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`
}
onClick=
{
()
=>
handleSigninBtnsClick
()
}
...
...
@@ -148,8 +148,8 @@ const Signin: React.FC<Props> = () => {
)
}
</
div
>
<
p
className=
"tip-text"
>
{
siteOwner
?
"If you don't have an account, please
contact the site owner or login as guest
."
{
siteOwner
||
pageLoadingState
.
isLoading
?
"If you don't have an account, please
\n
contact the site owner
."
:
"You are registering as the site owner."
}
</
p
>
</
div
>
...
...
web/tailwind.config.js
View file @
3fdc5bb2
...
...
@@ -14,6 +14,7 @@ module.exports = {
},
extend
:
{
spacing
:
{
112
:
"28rem"
,
128
:
"32rem"
,
168
:
"42rem"
,
176
:
"44rem"
,
...
...
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