-
Notifications
You must be signed in to change notification settings - Fork 27
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
Showing
52 changed files
with
7,682 additions
and
9,062 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ bin/ | |
test/ | ||
docs/ | ||
example/ | ||
scripts/ | ||
.eslintrc.js | ||
.commitlint.config.js | ||
.husky.config.js | ||
|
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
module.exports = { | ||
hooks: { | ||
"before:git:release": "npm run docs:releases", | ||
}, | ||
git: { | ||
tagName: 'v${version}', | ||
tagName: "v${version}", | ||
commitMessage: "chore(release): ${version}", | ||
}, | ||
github: { | ||
release: true, | ||
releaseName: 'v${version}', | ||
releaseName: "v${version}", | ||
}, | ||
plugins: { | ||
'@release-it/conventional-changelog': { | ||
preset: 'angular', | ||
infile: 'CHANGELOG.md', | ||
"@release-it/conventional-changelog": { | ||
preset: "angular", | ||
infile: "CHANGELOG.md", | ||
}, | ||
}, | ||
}; |
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,4 @@ | ||
dist | ||
node_modules | ||
.output | ||
.nuxt |
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,8 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@nuxt/eslint-config', | ||
rules: { | ||
'vue/max-attributes-per-line': 'off', | ||
'vue/multi-word-component-names': 'off' | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ coverage | |
dist | ||
sw.* | ||
.env | ||
.output |
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,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
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,52 @@ | ||
export default defineAppConfig({ | ||
docus: { | ||
title: "Strapi SDK", | ||
description: "The SDK for seamless integration with your Strapi API.", | ||
url: "https://strapi-sdk-js.netlify.app/", | ||
image: "/preview.png", | ||
|
||
socials: { | ||
twitter: "Stun3R_", | ||
github: "Stun3R/strapi-sdk-js", | ||
}, | ||
|
||
github: { | ||
dir: "docs/content", | ||
branch: "develop", | ||
repo: "strapi-sdk-js", | ||
owner: "Stun3R", | ||
edit: true, | ||
}, | ||
|
||
aside: { | ||
level: 0, | ||
collapsed: false, | ||
exclude: [], | ||
}, | ||
|
||
main: { | ||
padded: true, | ||
fluid: true, | ||
}, | ||
|
||
header: { | ||
logo: true, | ||
showLinkIcon: true, | ||
exclude: [], | ||
fluid: true, | ||
}, | ||
|
||
footer: { | ||
credits: false, | ||
iconLinks: [ | ||
{ | ||
label: "Strapi", | ||
href: "https://strapi.io", | ||
icon: "simple-icons:strapi", | ||
}, | ||
], | ||
}, | ||
|
||
titleTemplate: "%s · Strapi SDK", | ||
}, | ||
}); |
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,145 @@ | ||
<script setup lang="ts"> | ||
const { config } = useDocus(); | ||
const { navigation } = useContent(); | ||
const { hasDocSearch } = useDocSearch(); | ||
const runtimeConfig = useRuntimeConfig(); | ||
const hasDialog = computed( | ||
() => navigation.value?.length > 1 || navigation.value?.[0]?.children?.length | ||
); | ||
defineProps({ | ||
...variants, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<header :class="{ 'has-dialog': hasDialog }"> | ||
<Container :fluid="config?.header?.fluid"> | ||
<div class="section left"> | ||
<AppHeaderDialog v-if="hasDialog" /> | ||
<AppHeaderLogo /> | ||
<NuxtLink to="/releases" class="release left">{{ | ||
runtimeConfig.app.sdkVersion | ||
}}</NuxtLink> | ||
</div> | ||
|
||
<div class="section center"> | ||
<AppHeaderLogo v-if="hasDialog" /> | ||
<AppHeaderNavigation /> | ||
</div> | ||
|
||
<div class="section right"> | ||
<NuxtLink to="/releases" class="release right">{{ | ||
runtimeConfig.app.sdkVersion | ||
}}</NuxtLink> | ||
|
||
<AppDocSearch v-if="hasDocSearch" /> | ||
<AppSearch v-else :fuse="config.fuse" /> | ||
<ThemeSelect /> | ||
<div class="social-icons"> | ||
<AppSocialIcons /> | ||
</div> | ||
</div> | ||
</Container> | ||
</header> | ||
</template> | ||
|
||
<style scoped lang="ts"> | ||
css({ | ||
':deep(.icon)': { | ||
width: '{space.4}', | ||
height: '{space.4}' | ||
}, | ||
'.navbar-logo': { | ||
'.left &': { | ||
'.has-dialog &': { | ||
display: 'none', | ||
'@lg': { | ||
display: 'block' | ||
} | ||
}, | ||
}, | ||
'.center &': { | ||
display: 'block', | ||
'@lg': { | ||
display: 'none' | ||
} | ||
} | ||
}, | ||
header: { | ||
backdropFilter: '{elements.backdrop.filter}', | ||
position: 'sticky', | ||
top: 0, | ||
zIndex: 10, | ||
width: '100%', | ||
borderBottom: '1px solid {elements.border.primary.static}', | ||
backgroundColor: '{elements.backdrop.background}', | ||
height: '{docus.header.height}', | ||
'.release': { | ||
fontWeight: '{fontWeight.medium}', | ||
transition: 'color 150ms', | ||
'&:hover': { | ||
color: '{color.primary.500}' | ||
}, | ||
'&.left': { | ||
display: 'block', | ||
'@sm': { | ||
display: 'none' | ||
} | ||
}, | ||
'&.right': { | ||
display: 'none', | ||
'@sm': { | ||
marginRight: '{space.2}', | ||
display: 'block' | ||
} | ||
} | ||
}, | ||
'.container': { | ||
display: 'grid', | ||
height: '100%', | ||
gridTemplateColumns: 'repeat(12, minmax(0, 1fr))', | ||
gap: '{space.2}' | ||
}, | ||
'.section': { | ||
display: 'flex', | ||
alignItems: 'center', | ||
flex: 'none', | ||
'&.left': { | ||
gridColumn: 'span 4 / span 4', | ||
'@lg': { | ||
marginLeft: 0 | ||
}, | ||
}, | ||
'&.center': { | ||
gridColumn: 'span 4 / span 4', | ||
justifyContent: 'center', | ||
flex: '1', | ||
zIndex: '1' | ||
}, | ||
'&.right': { | ||
display: 'flex', | ||
gridColumn: 'span 4 / span 4', | ||
justifyContent: 'flex-end', | ||
alignItems: 'center', | ||
flex: 'none', | ||
marginRight: 'calc(0px - {space.4})', | ||
'.social-icons': { | ||
display: 'none', | ||
'@md': { | ||
display: 'flex', | ||
alignItems: 'center', | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script setup lang="ts"> | ||
const colorMode = useColorMode(); | ||
</script> | ||
|
||
<template> | ||
<img width="144" src="/logo-light.png" v-if="colorMode.value === 'light'" /> | ||
<img width="144" src="/logo-dark.png" v-if="colorMode.value === 'dark'" /> | ||
</template> |
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,43 @@ | ||
--- | ||
title: Home | ||
navigation: false | ||
layout: page | ||
main: | ||
fluid: false | ||
--- | ||
|
||
:ellipsis{right=0px width=75% blur=150px} | ||
|
||
::block-hero | ||
--- | ||
cta: | ||
- Get started | ||
- /getting-started/setup | ||
secondary: | ||
- Open on GitHub → | ||
- https://github.com/stun3r/strapi-sdk-js | ||
--- | ||
|
||
#title | ||
Strapi SDK | ||
|
||
#description | ||
The SDK for seamless integration with your [Strapi](https://strapi.io) API. | ||
|
||
#extra | ||
::list | ||
- Support Strapi v4 | ||
- RESTful methods | ||
- Typescript support | ||
- Simplified request responses | ||
- Formatted error handling | ||
:: | ||
|
||
#support | ||
::terminal | ||
--- | ||
content: | ||
- npm i --save strapi-sdk-js | ||
--- | ||
:: | ||
:: |
Oops, something went wrong.