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
f7cd0398
Unverified
Commit
f7cd0398
authored
Mar 05, 2023
by
boojack
Committed by
GitHub
Mar 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: rename common to base component (#1279)
parent
43358973
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
35 additions
and
36 deletions
+35
-36
CreateShortcutDialog.tsx
web/src/components/CreateShortcutDialog.tsx
+1
-1
DailyReviewDialog.tsx
web/src/components/DailyReviewDialog.tsx
+1
-1
MemoEditor.tsx
web/src/components/MemoEditor.tsx
+1
-1
MemoResources.tsx
web/src/components/MemoResources.tsx
+1
-1
ResourcesDialog.tsx
web/src/components/ResourcesDialog.tsx
+1
-1
MemberSection.tsx
web/src/components/Settings/MemberSection.tsx
+1
-1
SSOSection.tsx
web/src/components/Settings/SSOSection.tsx
+1
-1
StorageSection.tsx
web/src/components/Settings/StorageSection.tsx
+1
-1
UsageHeatMap.tsx
web/src/components/UsageHeatMap.tsx
+10
-10
UserBanner.tsx
web/src/components/UserBanner.tsx
+1
-1
DatePicker.tsx
web/src/components/base/DatePicker.tsx
+0
-0
Dropdown.tsx
web/src/components/base/Dropdown.tsx
+0
-0
README.md
web/src/components/base/README.md
+1
-0
Selector.tsx
web/src/components/base/Selector.tsx
+0
-0
SquareDiv.tsx
web/src/components/base/SquareDiv.tsx
+0
-0
usage-heat-map.less
web/src/less/usage-heat-map.less
+15
-17
No files found.
web/src/components/CreateShortcutDialog.tsx
View file @
f7cd0398
...
...
@@ -7,7 +7,7 @@ import useLoading from "../hooks/useLoading";
import
Icon
from
"./Icon"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
toastHelper
from
"./Toast"
;
import
Selector
from
"./
common
/Selector"
;
import
Selector
from
"./
base
/Selector"
;
import
"../less/create-shortcut-dialog.less"
;
interface
Props
extends
DialogProps
{
...
...
web/src/components/DailyReviewDialog.tsx
View file @
f7cd0398
...
...
@@ -7,7 +7,7 @@ import { DAILY_TIMESTAMP } from "../helpers/consts";
import
*
as
utils
from
"../helpers/utils"
;
import
Icon
from
"./Icon"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
DatePicker
from
"./
common
/DatePicker"
;
import
DatePicker
from
"./
base
/DatePicker"
;
import
showPreviewImageDialog
from
"./PreviewImageDialog"
;
import
DailyMemo
from
"./DailyMemo"
;
import
"../less/daily-review-dialog.less"
;
...
...
web/src/components/MemoEditor.tsx
View file @
f7cd0398
...
...
@@ -16,7 +16,7 @@ import {
import
*
as
storage
from
"../helpers/storage"
;
import
Icon
from
"./Icon"
;
import
toastHelper
from
"./Toast"
;
import
Selector
from
"./
common
/Selector"
;
import
Selector
from
"./
base
/Selector"
;
import
Editor
,
{
EditorRefActions
}
from
"./Editor/Editor"
;
import
ResourceIcon
from
"./ResourceIcon"
;
import
showResourcesSelectorDialog
from
"./ResourcesSelectorDialog"
;
...
...
web/src/components/MemoResources.tsx
View file @
f7cd0398
import
{
absolutifyLink
}
from
"../helpers/utils"
;
import
{
getResourceUrl
}
from
"../utils/resource"
;
import
SquareDiv
from
"./
common
/SquareDiv"
;
import
SquareDiv
from
"./
base
/SquareDiv"
;
import
showPreviewImageDialog
from
"./PreviewImageDialog"
;
import
MemoResource
from
"./MemoResource"
;
import
"../less/memo-resources.less"
;
...
...
web/src/components/ResourcesDialog.tsx
View file @
f7cd0398
...
...
@@ -7,7 +7,7 @@ import { useResourceStore } from "../store/module";
import
{
getResourceUrl
}
from
"../utils/resource"
;
import
Icon
from
"./Icon"
;
import
toastHelper
from
"./Toast"
;
import
Dropdown
from
"./
common
/Dropdown"
;
import
Dropdown
from
"./
base
/Dropdown"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
{
showCommonDialog
}
from
"./Dialog/CommonDialog"
;
import
showPreviewImageDialog
from
"./PreviewImageDialog"
;
...
...
web/src/components/Settings/MemberSection.tsx
View file @
f7cd0398
...
...
@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
import
{
useUserStore
}
from
"../../store/module"
;
import
*
as
api
from
"../../helpers/api"
;
import
toastHelper
from
"../Toast"
;
import
Dropdown
from
"../
common
/Dropdown"
;
import
Dropdown
from
"../
base
/Dropdown"
;
import
{
showCommonDialog
}
from
"../Dialog/CommonDialog"
;
import
showChangeMemberPasswordDialog
from
"../ChangeMemberPasswordDialog"
;
import
"../../less/settings/member-section.less"
;
...
...
web/src/components/Settings/SSOSection.tsx
View file @
f7cd0398
...
...
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import
{
useTranslation
}
from
"react-i18next"
;
import
*
as
api
from
"../../helpers/api"
;
import
showCreateIdentityProviderDialog
from
"../CreateIdentityProviderDialog"
;
import
Dropdown
from
"../
common
/Dropdown"
;
import
Dropdown
from
"../
base
/Dropdown"
;
import
{
showCommonDialog
}
from
"../Dialog/CommonDialog"
;
import
toastHelper
from
"../Toast"
;
...
...
web/src/components/Settings/StorageSection.tsx
View file @
f7cd0398
...
...
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
import
{
useGlobalStore
}
from
"../../store/module"
;
import
*
as
api
from
"../../helpers/api"
;
import
showCreateStorageServiceDialog
from
"../CreateStorageServiceDialog"
;
import
Dropdown
from
"../
common
/Dropdown"
;
import
Dropdown
from
"../
base
/Dropdown"
;
import
{
showCommonDialog
}
from
"../Dialog/CommonDialog"
;
import
toastHelper
from
"../Toast"
;
...
...
web/src/components/UsageHeatMap.tsx
View file @
f7cd0398
...
...
@@ -98,15 +98,6 @@ const UsageHeatMap = () => {
return
(
<
div
className=
"usage-heat-map-wrapper"
ref=
{
containerElRef
}
>
<
div
className=
"day-tip-text-container"
>
<
span
className=
"tip-text"
>
{
t
(
"days.sun"
)
}
</
span
>
<
span
className=
"tip-text"
></
span
>
<
span
className=
"tip-text"
>
{
t
(
"days.tue"
)
}
</
span
>
<
span
className=
"tip-text"
></
span
>
<
span
className=
"tip-text"
>
{
t
(
"days.thu"
)
}
</
span
>
<
span
className=
"tip-text"
></
span
>
<
span
className=
"tip-text"
>
{
t
(
"days.sat"
)
}
</
span
>
</
div
>
<
div
className=
"usage-heat-map"
>
{
allStat
.
map
((
v
,
i
)
=>
{
const
count
=
v
.
count
;
...
...
@@ -139,10 +130,19 @@ const UsageHeatMap = () => {
})
}
{
nullCell
.
map
((
_
,
i
)
=>
(
<
div
className=
"stat-wrapper"
key=
{
i
}
>
<
span
className=
"null"
></
span
>
<
span
className=
"
stat-container
null"
></
span
>
</
div
>
))
}
</
div
>
<
div
className=
"day-tip-text-container"
>
<
span
className=
"tip-text"
>
{
t
(
"days.sun"
)
}
</
span
>
<
span
className=
"tip-text"
></
span
>
<
span
className=
"tip-text"
>
{
t
(
"days.tue"
)
}
</
span
>
<
span
className=
"tip-text"
></
span
>
<
span
className=
"tip-text"
>
{
t
(
"days.thu"
)
}
</
span
>
<
span
className=
"tip-text"
></
span
>
<
span
className=
"tip-text"
>
{
t
(
"days.sat"
)
}
</
span
>
</
div
>
</
div
>
);
};
...
...
web/src/components/UserBanner.tsx
View file @
f7cd0398
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useTranslation
}
from
"react-i18next"
;
import
{
useUserStore
}
from
"../store/module"
;
import
Dropdown
from
"./
common
/Dropdown"
;
import
Dropdown
from
"./
base
/Dropdown"
;
import
showAboutSiteDialog
from
"./AboutSiteDialog"
;
import
UserAvatar
from
"./UserAvatar"
;
import
showSettingDialog
from
"./SettingDialog"
;
...
...
web/src/components/
common
/DatePicker.tsx
→
web/src/components/
base
/DatePicker.tsx
View file @
f7cd0398
File moved
web/src/components/
common
/Dropdown.tsx
→
web/src/components/
base
/Dropdown.tsx
View file @
f7cd0398
File moved
web/src/components/base/README.md
0 → 100644
View file @
f7cd0398
# Base components in memos
web/src/components/
common
/Selector.tsx
→
web/src/components/
base
/Selector.tsx
View file @
f7cd0398
File moved
web/src/components/
common
/SquareDiv.tsx
→
web/src/components/
base
/SquareDiv.tsx
View file @
f7cd0398
File moved
web/src/less/usage-heat-map.less
View file @
f7cd0398
.usage-heat-map-wrapper {
@apply flex flex-row justify-start items-center flex-nowrap w-full h-32 pr-2 pb-3 shrink-0;
&:hover {
> .day-tip-text-container {
@apply visible;
}
}
> .day-tip-text-container {
@apply w-6 h-full grid grid-rows-7 invisible;
> .tip-text {
@apply pr-1 w-full h-full text-right font-mono text-gray-400;
font-size: 10px;
}
}
@apply flex flex-row justify-start items-center flex-nowrap w-full h-32 pl-6 pb-3 shrink-0;
> .usage-heat-map {
@apply h-full grid grid-rows-7;
width: 1
8
6px;
width: 1
9
6px;
grid-template-columns: repeat(11, 1fr);
grid-auto-flow: column;
...
...
@@ -47,7 +32,20 @@
&.today {
@apply border border-black dark:border-gray-400;
}
&.null {
@apply opacity-40;
}
}
}
}
> .day-tip-text-container {
@apply w-6 h-full grid grid-rows-7;
> .tip-text {
@apply pl-1 w-full h-full text-right font-mono text-gray-400;
font-size: 10px;
}
}
}
...
...
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