-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddf065f
commit bb335e7
Showing
72 changed files
with
5,147 additions
and
985 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: OpenAPI | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- '**/schemas/v2/api' | ||
- '**/schemas/v2/resources' | ||
- '**/scripts/v2/openapi' | ||
branches: main | ||
jobs: | ||
update: | ||
name: Update specs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
repository: ghostrider-05/patreon-api-spec | ||
event-type: spec_update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,3 @@ dist | |
|
||
# Test file for example | ||
example.ts | ||
|
||
# Generated by scripts | ||
src/schemas/v2/generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<script setup lang="ts"> | ||
import { onMounted, ref } from 'vue'; | ||
import { VPLink } from 'vitepress/theme' | ||
const stat = ref(0) | ||
const props = defineProps<{ | ||
repo: string | ||
keyName: string | ||
iconClass: string | ||
label: string | ||
}>() | ||
onMounted(async () => { | ||
const res = await fetch('https://api.github.com/repos/' + props.repo) | ||
.then(res => res.json() as Promise<Record<string, number>>) | ||
.then(res => res[props.keyName]) | ||
if (res) stat.value = res | ||
}) | ||
</script> | ||
|
||
<template> | ||
<p> | ||
<VPLink :href="'https://github.com/' + repo"><span :class="iconClass"></span> {{ stat }} {{ label }}</VPLink> | ||
</p> | ||
</template> | ||
|
||
<style scoped> | ||
.VPNavScreenMenu p { | ||
margin-top: 20px; | ||
} | ||
p { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
a:hover { | ||
cursor: pointer; | ||
} | ||
a { | ||
line-height: 20px; | ||
border-radius: 3px; | ||
padding: 0px 4px; | ||
background-color: var(--vp-c-bg-soft); | ||
color: var(--vp-c-brand-1) !important; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
a span { | ||
background-color: var(--vp-c-white); | ||
border-color: var(--vp-c-white); | ||
width: 20px !important; | ||
height: 20px !important; | ||
margin: 5px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.