Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
f49f97d4
Commit
f49f97d4
authored
Jun 08, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CORS
parent
6be6ef36
Pipeline
#27583
passed with stages
in 8 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/api/mdproDeck/pull.ts
src/api/mdproDeck/pull.ts
+9
-2
src/ui/Match/index.tsx
src/ui/Match/index.tsx
+1
-1
No files found.
src/api/mdproDeck/pull.ts
View file @
f49f97d4
...
...
@@ -4,7 +4,7 @@ import { MdproDeck } from "./schema";
import
{
mdproHeaders
}
from
"
./util
"
;
const
{
mdproServer
}
=
useConfig
();
const
API_PATH
=
"
api/mdpro3/deck
"
;
const
API_PATH
=
"
api/mdpro3/deck
/list/lite
"
;
export
interface
PullReq
{
page
?:
number
;
...
...
@@ -15,6 +15,11 @@ export interface PullReq {
contributor
?:
string
;
}
const
defaultPullReq
:
PullReq
=
{
page
:
1
,
size
:
20
,
};
export
interface
PullResp
{
code
:
number
;
message
:
string
;
...
...
@@ -27,7 +32,9 @@ export interface PullResp {
};
}
export
async
function
pullDecks
(
req
:
PullReq
):
Promise
<
PullResp
|
undefined
>
{
export
async
function
pullDecks
(
req
:
PullReq
=
defaultPullReq
,
):
Promise
<
PullResp
|
undefined
>
{
const
myHeaders
=
mdproHeaders
();
const
params
=
new
URLSearchParams
();
...
...
src/ui/Match/index.tsx
View file @
f49f97d4
...
...
@@ -321,7 +321,7 @@ export const Component: React.FC = () => {
desc=
{
i18n
(
"
WIPDesc
"
)
}
icon=
{
null
}
onClick=
{
async
()
=>
{
const
mdproDecks
=
await
pullDecks
(
{}
);
const
mdproDecks
=
await
pullDecks
();
console
.
log
(
mdproDecks
);
}
}
/>
...
...
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