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
e1363554
Commit
e1363554
authored
Nov 28, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak setting button style
parent
5069476d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
CreateWebhookDialog.tsx
web/src/components/CreateWebhookDialog.tsx
+15
-3
PreferencesSection.tsx
web/src/components/Settings/PreferencesSection.tsx
+4
-2
SystemSection.tsx
web/src/components/Settings/SystemSection.tsx
+9
-3
No files found.
web/src/components/CreateWebhookDialog.tsx
View file @
e1363554
...
@@ -110,15 +110,27 @@ const CreateWebhookDialog: React.FC<Props> = (props: Props) => {
...
@@ -110,15 +110,27 @@ const CreateWebhookDialog: React.FC<Props> = (props: Props) => {
Title
<
span
className=
"text-red-600"
>
*
</
span
>
Title
<
span
className=
"text-red-600"
>
*
</
span
>
</
span
>
</
span
>
<
div
className=
"relative w-full"
>
<
div
className=
"relative w-full"
>
<
Input
className=
"w-full"
type=
"text"
placeholder=
""
value=
{
state
.
name
}
onChange=
{
handleTitleInputChange
}
/>
<
Input
className=
"w-full"
type=
"text"
placeholder=
"An easy-to-remember name"
value=
{
state
.
name
}
onChange=
{
handleTitleInputChange
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"w-full flex flex-col justify-start items-start mb-3"
>
<
div
className=
"w-full flex flex-col justify-start items-start mb-3"
>
<
span
className=
"mb-2"
>
<
span
className=
"mb-2"
>
Url
<
span
className=
"text-red-600"
>
*
</
span
>
Payload URL
<
span
className=
"text-red-600"
>
*
</
span
>
</
span
>
</
span
>
<
div
className=
"relative w-full"
>
<
div
className=
"relative w-full"
>
<
Input
className=
"w-full"
type=
"text"
placeholder=
"Callback endpoint"
value=
{
state
.
url
}
onChange=
{
handleUrlInputChange
}
/>
<
Input
className=
"w-full"
type=
"text"
placeholder=
"https://example.com/postreceive"
value=
{
state
.
url
}
onChange=
{
handleUrlInputChange
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"w-full flex flex-row justify-end items-center mt-4 space-x-2"
>
<
div
className=
"w-full flex flex-row justify-end items-center mt-4 space-x-2"
>
...
...
web/src/components/Settings/PreferencesSection.tsx
View file @
e1363554
...
@@ -95,7 +95,9 @@ const PreferencesSection = () => {
...
@@ -95,7 +95,9 @@ const PreferencesSection = () => {
<
span
className=
"text-sm mr-1"
>
{
t
(
"setting.preference-section.telegram-user-id"
)
}
</
span
>
<
span
className=
"text-sm mr-1"
>
{
t
(
"setting.preference-section.telegram-user-id"
)
}
</
span
>
<
LearnMore
url=
"https://usememos.com/docs/integration/telegram-bot"
/>
<
LearnMore
url=
"https://usememos.com/docs/integration/telegram-bot"
/>
</
div
>
</
div
>
<
Button
onClick=
{
handleSaveTelegramUserId
}
>
{
t
(
"common.save"
)
}
</
Button
>
<
Button
variant=
"outlined"
color=
"neutral"
onClick=
{
handleSaveTelegramUserId
}
>
{
t
(
"common.save"
)
}
</
Button
>
</
div
>
</
div
>
<
Input
<
Input
className=
"w-full"
className=
"w-full"
...
@@ -108,7 +110,7 @@ const PreferencesSection = () => {
...
@@ -108,7 +110,7 @@ const PreferencesSection = () => {
placeholder=
{
t
(
"setting.preference-section.telegram-user-id-placeholder"
)
}
placeholder=
{
t
(
"setting.preference-section.telegram-user-id-placeholder"
)
}
/>
/>
<
Divider
className=
"!m
t-3 !m
y-4"
/>
<
Divider
className=
"!my-4"
/>
<
WebhookSection
/>
<
WebhookSection
/>
</
div
>
</
div
>
...
...
web/src/components/Settings/SystemSection.tsx
View file @
e1363554
...
@@ -325,7 +325,9 @@ const SystemSection = () => {
...
@@ -325,7 +325,9 @@ const SystemSection = () => {
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
Button
onClick=
{
handleSaveTelegramBotToken
}
>
{
t
(
"common.save"
)
}
</
Button
>
<
Button
variant=
"outlined"
color=
"neutral"
onClick=
{
handleSaveTelegramBotToken
}
>
{
t
(
"common.save"
)
}
</
Button
>
</
div
>
</
div
>
<
Input
<
Input
className=
"w-full"
className=
"w-full"
...
@@ -340,7 +342,9 @@ const SystemSection = () => {
...
@@ -340,7 +342,9 @@ const SystemSection = () => {
<
Divider
className=
"!mt-3 !my-4"
/>
<
Divider
className=
"!mt-3 !my-4"
/>
<
div
className=
"form-label"
>
<
div
className=
"form-label"
>
<
span
className=
"normal-text"
>
{
t
(
"setting.system-section.additional-style"
)
}
</
span
>
<
span
className=
"normal-text"
>
{
t
(
"setting.system-section.additional-style"
)
}
</
span
>
<
Button
onClick=
{
handleSaveAdditionalStyle
}
>
{
t
(
"common.save"
)
}
</
Button
>
<
Button
variant=
"outlined"
color=
"neutral"
onClick=
{
handleSaveAdditionalStyle
}
>
{
t
(
"common.save"
)
}
</
Button
>
</
div
>
</
div
>
<
Textarea
<
Textarea
className=
"w-full"
className=
"w-full"
...
@@ -356,7 +360,9 @@ const SystemSection = () => {
...
@@ -356,7 +360,9 @@ const SystemSection = () => {
/>
/>
<
div
className=
"form-label mt-2"
>
<
div
className=
"form-label mt-2"
>
<
span
className=
"normal-text"
>
{
t
(
"setting.system-section.additional-script"
)
}
</
span
>
<
span
className=
"normal-text"
>
{
t
(
"setting.system-section.additional-script"
)
}
</
span
>
<
Button
onClick=
{
handleSaveAdditionalScript
}
>
{
t
(
"common.save"
)
}
</
Button
>
<
Button
variant=
"outlined"
color=
"neutral"
onClick=
{
handleSaveAdditionalScript
}
>
{
t
(
"common.save"
)
}
</
Button
>
</
div
>
</
div
>
<
Textarea
<
Textarea
className=
"w-full"
className=
"w-full"
...
...
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