Skip to content

Commit

Permalink
Merge pull request #9 from Aiko-IT-Systems/feat/oauth2-web
Browse files Browse the repository at this point in the history
Implement OAuth2 Web Client
  • Loading branch information
Lulalaby authored Aug 20, 2023
2 parents afc05da + 1d89548 commit 4a68d0f
Show file tree
Hide file tree
Showing 137 changed files with 4,443 additions and 2,699 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
dotnet: [7.0.203]
dotnet: [7.0.306]
runs-on: ${{ matrix.os }}
name: Build library
steps:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 7.0.203
dotnet-version: 7.0.306
- name: Git fetch unshallow
run: git fetch --unshallow
- name: Install DocFX
Expand All @@ -28,8 +28,6 @@ jobs:
- name: Build library
run: dotnet build -c Release --no-restore -v minimal
continue-on-error: true
- name: Add Custom Plugins
run: cp -R DisCatSharp.Extensions.Docs/dcs/plugins/* /home/runner/.dotnet/tools/.store/docfx/2.67.0/docfx/2.67.0/tools/net7.0/any/
- name: Build Docs
run: docfx DisCatSharp.Extensions.Docs/docfx.json
- name: Pack Docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 7.0.203
dotnet-version: 7.0.306
- name: Restore dependencies
run: dotnet restore
- name: Build library as full release
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
uid: api_discatsharp_extensions_oauth2web_index
title: DisCatSharp OAuth2 Web Extension API Reference
---

# API Reference

Welcome to the DisCatSharp OAuth2 Web Extension API reference.

To begin, select a namespace, then a class, from the table of contents on the left.

If you encounter any problems or see typos, please inform us on our [Discord server](https://discord.gg/Uk7sggRBTm).
3 changes: 2 additions & 1 deletion DisCatSharp.Extensions.Docs/api/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
uid: api_index
title: DisCatSharp Global API
title: DisCatSharp Extensions Global API
---
# API Reference

Welcome to the DisCatSharp Extensions Global API reference.

- [DisCatSharp.Extensions.TwoFactorCommands](xref:api_discatsharp_extensions_twofactorcommands_index)
- [DisCatSharp.Extensions.OAuth2Web](xref:api_discatsharp_extensions_oauth2web_index)
2 changes: 1 addition & 1 deletion DisCatSharp.Extensions.Docs/dcs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
RewriteRule ^ %1 [R=301,L]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
RewriteRule ^([^\.]+)$ $1.html [NC,L]
76 changes: 64 additions & 12 deletions DisCatSharp.Extensions.Docs/dcs/layout/_master.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,58 @@
<meta name="theme-color" content="#ffffff">
<link rel="icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
<link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
{{#hasDiscordComponents}}
<script>
window.$discordMessage = {
profiles: {
dcs: {
author: "DisCatSharp",
avatar: "https://cdn.discordapp.com/avatars/887519008604180541/cc3b7410330027b0682900b6c612b735.png?size=256",
roleColor: "#eb0404",
roleName: "System Bots",
roleIcon: "https://cdn.discordapp.com/role-icons/858098536759820379/bda0df094fa6f95b01c4846518034835.png?size=256",
bot: true,
verified: true
},
user: {
author: "Discord User",
avatar: "https://cdn.discordapp.com/embed/avatars/5.png",
roleColor: "#00c0ff",
roleName: "Users"
},
dcs_user: {
author: "Drac",
avatar: "https://cdn.discordapp.com/avatars/666339628613107725/a97c269a653ecc2ff143f7bddb36a782.png?size=256",
roleColor: "#a221e6",
roleName: "VIP",
roleIcon: "https://cdn.discordapp.com/role-icons/858099411434209280/ce6432b51488efd0fa09fadb12cbfb47.png?size=256"
},
dcs_owner: {
author: "Lala Sabathil",
avatar: "https://cdn.discordapp.com/avatars/856780995629154305/cca4f0fdd07fa17a31f99139f8f45e87.png?size=256",
roleColor: "#fc0fc0",
roleName: "AITSYS Leader",
roleIcon: "https://cdn.discordapp.com/role-icons/1070126281422819380/b829ba0483ed2723034292651731f357.png?size=256"
},
user_dm: {
author: "Discord User",
avatar: "https://cdn.discordapp.com/embed/avatars/5.png"
},
dcs_user_dm: {
author: "Drac",
avatar: "https://cdn.discordapp.com/avatars/666339628613107725/a97c269a653ecc2ff143f7bddb36a782.png?size=256"
}
},
defaultMode: "cozy",
defaultTheme: "dark", // replace with amoled soon
defaultBackground: "discord"
};
</script>
<script type="module" src="https://unpkg.com/@aitsys/discord-components-core"></script>
{{/hasDiscordComponents}}
<link rel="stylesheet" href="{{_rel}}public/docfx.min.css">
<link rel="stylesheet" href="{{_rel}}public/main.css">
<link rel="stylesheet" href="{{_rel}}public/collapsible.css">
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css" type="text/css"
rel="stylesheet" />
<meta name="docfx:navrel" content="{{_navRel}}">
Expand All @@ -119,26 +169,30 @@
{{#_disableTocFilter}}
<meta name="docfx:disabletocfilter" content="true">{{/_disableTocFilter}}
{{#docurl}}
{{#_urlNormalizationActive}}
<meta name="docfx:urlnormalizationactive" content="true">{{/_urlNormalizationActive}}
<meta name="docfx:docurl" content="{{docurl}}">{{/docurl}}
<script src="//code.jquery.com/jquery-latest.js"></script>
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "de6c22ce0b3e4c17bb78c8c31b4e695b"}'></script>
<script type="module">
import docfx from './{{_rel}}public/main.js'
window.docfx = docfx
window.MathJax = {
options: {
processHtmlClass: ['tex2jax_process', 'math']
}
}
</script>
<script type="text/javascript" src="{{_rel}}public/docfx.min.js"></script>
<script type="module" src="{{_rel}}public/main.js"></script>
<script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript"
charset="utf-8"></script>
<script type="text/javascript" src="{{_rel}}public/plugin-featherlight.js"></script>
<script type="text/javascript" src="{{_rel}}public/collapsible.js"></script>
{{/redirect_url}}
</head>
{{^redirect_url}}
<script type="module">
import options from './{{_rel}}public/main.js'
import { init } from './{{_rel}}public/docfx.min.js'
init(options)
</script>

<script>
const theme = 'dark' //localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', 'dark') //document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>

{{#_googleAnalyticsTagId}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{_googleAnalyticsTagId}}"></script>
Expand All @@ -150,8 +204,6 @@
</script>
{{/_googleAnalyticsTagId}}

{{^redirect_url}}

<body class="tex2jax_ignore" data-layout="{{_layout}}{{layout}}" data-yaml-mime="{{yamlmime}}">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
Expand Down
Loading

0 comments on commit 4a68d0f

Please sign in to comment.