Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis G committed May 16, 2024
1 parent 56c4c70 commit 6a177e9
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 446 deletions.
Binary file removed api/favicon.png
Binary file not shown.
137 changes: 6 additions & 131 deletions api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,153 +7,28 @@
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<link rel="icon" type="image/png" href="favicon.png" sizes="16x16">

<style>
body {
margin: 0;
padding: 0;
}
.menu-content {
line-height: initial;
}
.menu-content .operation-type.post {
margin-left: 15px;
color: #333333;
width: 10px;
overflow: hidden;
height: 10px;
margin-top: 5px;
}
.redoc-json {
font-size: 14px;
}
code {
font-family: Consolas,'Lucida Console','DejaVu Sans Mono',Monaco,'Courier New',Courier,monospace;
}
.react-tabs__tab-list, .sc-eqIVtm, .sc-elJkPf, .sc-hSdWYo {
display: none;
}
.sc-gisBJw {
margin-top: 0 !important;
}
.sc-ifAKCX {
margin-top: 30px !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.sc-eNQAEJ {
border-radius: 5px;
}
.sc-kgoBCf {
border-bottom: 1px solid #e4edf1 !important;
}
.sc-dxgOiQ tr:last-child > .sc-kgoBCf {
border-bottom: 0 !important;
}
/* Logo */
.sc-feJyhm {
margin: 35px 0 35px 20px;
background-image: url(maxma-logo.svg);
background-repeat: no-repeat;
background-size: auto 40px;
}
.sc-kafWEX {
cursor: pointer;
height: 40px;
padding: 0 !important;
width: initial !important;
opacity: 0;
}

.tabbar {
font-family: Roboto, sans-serif;
background-color: rgb(250, 250, 250);
border-bottom: 1px solid rgb(230, 230, 230);
}
.tabbar ul {
margin: 0;
padding: 0;
}
.tabbar li {
display: inline-block;
margin: 0;
}
.tabbar li a, .tabbar li span {
padding: 5px 15px;
display: inline-block;
min-width: 60px;
text-align: center;
color: rgb(118, 108, 185);
}
.tabbar li a:hover {
color: rgb(182, 177, 218);
}
.tabbar li.active {
background-color: rgb(230, 230, 230);
}
</style>
<link rel="icon" type="image/png" href="//s.maxma.com/logo/MX_Logo_2023_favicon_32_new_2023_02.png" sizes="16x16">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="tabbar">
<ul>
<li class="active"><span>API</span></li>
<li><a href="/api/webhooks.html">Webhooks</a></li>
<li><a href="/api/jsapi.html">JS API</a></li>
<li><a href="/api/messaging.html">Messaging API</a></li>
</ul>
</div>
<div id="redoc-container"></div>
<script src="redoc.standalone.js"></script>
<script src="redoc-options.js"></script>
<script>
var options = {
hideLoading: true,
disableSearch: true,
pathInMiddlePanel: true,
hideSingleRequestSampleTab: true,
expandResponses: 'all',
theme: {
colors: {
http: {
post: "#333333",
},
primary: {
"main": "#766cb9"
},
success: {
"main": "#6ec5ab"
},
error: {
"main": "#c05f68"
},
},
typography: {
fontSize: '16px',
lineHeight: '24px',
headings: {
fontFamily: 'Roboto, sans-serif',
},
code: {
color: "#C05F68",
fontFamily: "Consolas,'Lucida Console','DejaVu Sans Mono',Monaco,'Courier New',Courier,monospace",
fontSize: '14px',
},
},
logo: {
gutter: '10px',
},
},
};
Redoc.init(
'https://api.maxma.com/openapi.yaml',
options,
document.getElementById('redoc-container')
)

document.getElementById('redoc-container').addEventListener('click', function(event) {
if (event.target.classList.contains('sc-kafWEX')) {
window.scrollTo(0, 0);
}
});
);
setupClickListener();
</script>
</body>
</html>
34 changes: 34 additions & 0 deletions api/jsapi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<title>MAXMA API - JS API</title>

<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<link rel="icon" type="image/png" href="//s.maxma.com/logo/MX_Logo_2023_favicon_32_new_2023_02.png" sizes="16x16">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="tabbar">
<ul>
<li><a href="/api/">API</a></li>
<li><a href="/api/webhooks.html">Webhooks</a></li>
<li class="active">JS API</li>
<li><a href="/api/messaging.html">Messaging API</a></li>
</ul>
</div>
<div id="redoc-container"></div>
<script src="redoc.standalone.js"></script>
<script src="redoc-options.js"></script>
<script>
Redoc.init(
'https://js-api.maxma.com/openapi.yaml',
options,
document.getElementById('redoc-container')
);
setupClickListener();
</script>
</body>
</html>
Binary file removed api/logo.png
Binary file not shown.
47 changes: 0 additions & 47 deletions api/maxma-logo.svg

This file was deleted.

Loading

0 comments on commit 6a177e9

Please sign in to comment.