mirror of
https://github.com/yawaflua/api-docs.git
synced 2025-12-08 19:39:28 +02:00
добавил сайт
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
_site/*
|
||||
!_site/styles.css
|
||||
!_site/logo.svg
|
||||
@@ -1,3 +1,9 @@
|
||||
---
|
||||
title: 'Аутентификация для API сайтов СП'
|
||||
layout: 'layout.11ty.js'
|
||||
permalink: '/authorization/'
|
||||
---
|
||||
|
||||
# Аутентификация для API сайтов СП
|
||||
|
||||
## Получение токена и ID карты
|
||||
|
||||
8
CARD.md
8
CARD.md
@@ -1,8 +1,14 @@
|
||||
---
|
||||
title: 'Как переводить деньги с карты при помощи API?'
|
||||
layout: 'layout.11ty.js'
|
||||
permalink: '/card/'
|
||||
---
|
||||
|
||||
# Как переводить деньги с карты при помощи API?
|
||||
|
||||
## Аутентификация
|
||||
|
||||
Все запросы, о которых говориться в этом документе должны иметь корректный хедер "Authorization", подробнее [тут](AUTHORIZATION.md)
|
||||
Все запросы, о которых говориться в этом документе должны иметь корректный хедер "Authorization", подробнее [тут](./AUTHORIZATION.md)
|
||||
|
||||
## Запрос баланса
|
||||
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
---
|
||||
title: 'Как встроить оплату АРами на свой сайт / приложение?'
|
||||
layout: 'layout.11ty.js'
|
||||
permalink: '/payments/'
|
||||
---
|
||||
|
||||
# Как встроить оплату АРами на свой сайт / приложение?
|
||||
|
||||
## Аутентификация
|
||||
|
||||
Все запросы, о которых говориться в этом документе должны иметь корректный хедер "Authorization", подробнее [тут](AUTHORIZATION.md)
|
||||
Все запросы, о которых говориться в этом документе должны иметь корректный хедер "Authorization", подробнее [тут](./AUTHORIZATION.md)
|
||||
|
||||
## Создание запроса на оплату
|
||||
|
||||
|
||||
14
README.md
14
README.md
@@ -1,3 +1,9 @@
|
||||
---
|
||||
title: 'Вступление'
|
||||
layout: 'layout.11ty.js'
|
||||
permalink: '/'
|
||||
---
|
||||
|
||||
# Документация API сайтов СП
|
||||
|
||||
## Вступление
|
||||
@@ -26,7 +32,7 @@ API может в любой момент измениться и это ваш
|
||||
|
||||
## Читать далее
|
||||
|
||||
1. [Авторизация](AUTHORIZATION.md)
|
||||
2. [Как встроить оплату АРами на свой сайт / приложение?](PAYMENTS.md)
|
||||
3. [Как переводить управлять деньгами на карте?](CARD.md)
|
||||
4. [Как сделать вход на сайт с помощью сайтов СП?](USERS.md)
|
||||
1. [Авторизация](./AUTHORIZATION.md)
|
||||
2. [Как встроить оплату АРами на свой сайт / приложение?](./PAYMENTS.md)
|
||||
3. [Как переводить управлять деньгами на карте?](./CARD.md)
|
||||
4. [Как сделать вход на сайт с помощью сайтов СП?](./USERS.md)
|
||||
|
||||
8
USERS.md
8
USERS.md
@@ -1,8 +1,14 @@
|
||||
---
|
||||
title: 'Как сделать вход на сайт с помощью сайтов СП?'
|
||||
layout: 'layout.11ty.js'
|
||||
permalink: '/users/'
|
||||
---
|
||||
|
||||
# Как сделать вход на сайт с помощью сайтов СП?
|
||||
|
||||
## Аутентификация
|
||||
|
||||
Все запросы, о которых говориться в этом документе должны иметь корректный хедер "Authorization", подробнее [тут](AUTHORIZATION.md)
|
||||
Все запросы, о которых говориться в этом документе должны иметь корректный хедер "Authorization", подробнее [тут](./AUTHORIZATION.md)
|
||||
|
||||
## Получение Discord ID
|
||||
|
||||
|
||||
31
_includes/layout.11ty.js
Normal file
31
_includes/layout.11ty.js
Normal file
@@ -0,0 +1,31 @@
|
||||
module.exports = {
|
||||
render(data) {
|
||||
let content = data.content;
|
||||
data.collections.all.forEach(
|
||||
({ url, inputPath }) => (content = content.replaceAll(`href="${inputPath}"`, `href="${url}"`))
|
||||
);
|
||||
['GET', 'POST'].forEach(
|
||||
m => (content = content.replaceAll(m, `<span class="${m.toLowerCase()}">${m}</span>`))
|
||||
);
|
||||
return `<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
<link rel="shortcut icon" href="/logo.svg" type="image/svg+xml">
|
||||
<title>${data.title} - Документация SPWorlds</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="/">
|
||||
<img src="/logo.svg" height="42" width="42" alt="" />
|
||||
Документация API Сайтов СП
|
||||
</a>
|
||||
</header>
|
||||
<main>${content}</main>
|
||||
</body>
|
||||
</html>`;
|
||||
}
|
||||
};
|
||||
1
_site/logo.svg
Normal file
1
_site/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="42" height="42" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="42" height="42" rx="14" fill="url(#a)" fill-opacity=".15"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.396 10.375a6.023 6.023 0 0 0-6.021 6.02v1.56h7.792a4.603 4.603 0 0 0 4.604-4.605v-2.975h-6.375Zm0-2.125a8.148 8.148 0 0 0-8.146 8.146v9.208a8.148 8.148 0 0 0 8.146 8.146h9.208a8.148 8.148 0 0 0 8.146-8.146v-9.208a8.148 8.148 0 0 0-8.146-8.146h-9.208Zm8.5 2.125v2.975a6.728 6.728 0 0 1-6.73 6.73h-7.791v5.524a6.023 6.023 0 0 0 6.02 6.021h.71V28.65a6.728 6.728 0 0 1 6.728-6.73h7.792v-5.524a6.023 6.023 0 0 0-6.02-6.021h-.71Zm6.729 13.67h-7.792a4.603 4.603 0 0 0-4.604 4.605v2.975h6.375a6.023 6.023 0 0 0 6.021-6.02v-1.56Z" fill="url(#b)"/><defs><linearGradient id="a" x1="-.412" y1="-.412" x2="42.412" y2="42.412" gradientUnits="userSpaceOnUse"><stop stop-color="#6763FF"/><stop offset=".5" stop-color="#7E4FE8"/><stop offset="1" stop-color="#B857FF"/></linearGradient><linearGradient id="b" x1="8" y1="8" x2="34" y2="34" gradientUnits="userSpaceOnUse"><stop stop-color="#6763FF"/><stop offset=".5" stop-color="#7E4FE8"/><stop offset="1" stop-color="#B857FF"/></linearGradient></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
119
_site/styles.css
Normal file
119
_site/styles.css
Normal file
@@ -0,0 +1,119 @@
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html:focus-within {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
text-rendering: optimizeSpeed;
|
||||
line-height: 1.5;
|
||||
color-scheme: dark;
|
||||
accent-color: #6563ee;
|
||||
background-color: #15151b;
|
||||
color: #8f8f94;
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
|
||||
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
}
|
||||
|
||||
main a {
|
||||
color: white;
|
||||
text-decoration-skip-ink: auto;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html:focus-within {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
height: 0.5rem !important;
|
||||
width: 0.5rem !important;
|
||||
border-radius: 9999px !important;
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
margin: 0px !important;
|
||||
height: 0.5rem !important;
|
||||
width: 0.5rem !important;
|
||||
border-radius: 9999px !important;
|
||||
border: none !important;
|
||||
background-color: #8f8f94 !important;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:active {
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: ui-monospace, 'Cascadia Code', 'Fira Code', 'Fira Mono', 'Ubuntu Modo',
|
||||
SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
pre {
|
||||
border-radius: 1rem;
|
||||
background-color: #111116;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
main,
|
||||
header {
|
||||
max-width: 900px;
|
||||
padding: 1rem;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
header a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: #ffffff;
|
||||
font-size: 1.5rem;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.get,
|
||||
span.post {
|
||||
user-select: none;
|
||||
padding: 0.25rem;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
span.get {
|
||||
background-color: #0074c7;
|
||||
}
|
||||
|
||||
span.post {
|
||||
background-color: #32854e;
|
||||
}
|
||||
Reference in New Issue
Block a user