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
18 changed files
with
1,399 additions
and
983 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ node_modules | |
.DS_Store | ||
coverage | ||
dist | ||
sw.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
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 |
---|---|---|
@@ -1,36 +1,47 @@ | ||
--- | ||
title: 'Introduction' | ||
description: '' | ||
description: 'The Axios module for Nuxt' | ||
position: 1 | ||
category: 'Getting started' | ||
menuTitle: 'Intro' | ||
category: '' | ||
menuTitle: 'Introduction' | ||
features: | ||
- Automatically set base URL for client & server side | ||
- Exposes `setToken` function to `$axios` so we can easily and globally set authentication tokens | ||
- Automatically enables `withCredentials` when requesting to base URL | ||
- Proxy request headers in SSR (Useful for auth) | ||
- Proxy request headers in SSR | ||
- Fetch Style requests | ||
- Integrated with Nuxt.js Progressbar while making requests | ||
- Integrated with Nuxt progress bar | ||
- Integrated with Proxy Module | ||
- Auto retry requests with axios-retry | ||
--- | ||
|
||
<img src="/preview.png" class="light-img" width="1280" height="640" alt="Nuxt Axios"/> | ||
<img src="/preview-dark.png" class="dark-img" width="1280" height="640" alt="Nuxt Axios"/> | ||
|
||
Secure and easy [Axios](https://github.com/axios/axios) integration for [Nuxt](https://nuxtjs.org). | ||
|
||
## Features | ||
|
||
<list :items="features"></list> | ||
|
||
> Secure and Easy [Axios](https://github.com/axios/axios) integration with Nuxt.js. | ||
<p class="flex items-center">Enjoy light and dark mode: <app-color-switcher class="inline-flex ml-2"></app-color-switcher></p> | ||
|
||
## Logo | ||
|
||
Axios does not have an official module yet, we decided to use the actual proposal submitted here: https://github.com/axios/axios/issues/2130 | ||
|
||
## Links | ||
|
||
* [GitHub](https://github.com/nuxt-community/axios-module) | ||
* [Release Notes](/releases) | ||
* [Migration Guide](migration) | ||
* [Examples](https://axios.nuxtjs.org/usage.html) | ||
* [Migration Guide](/migration) | ||
|
||
<alert type="info"> | ||
|
||
To get started head to [Setup](/setup) section. | ||
|
||
> 👉 To get started head to [Setup](/setup) section. | ||
</alert> | ||
|
||
## Online courses | ||
|
||
<promote-block> | ||
</promote-block> | ||
<promote-block></promote-block> |
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
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{ | ||
"title": "Axios Module", | ||
"github": "nuxt-community/axios-module" | ||
"url": "https://axios.nuxtjs.org", | ||
"logo": { | ||
"light": "/logo-light.svg", | ||
"dark": "/logo-dark.svg" | ||
}, | ||
"github": "nuxt-community/axios-module", | ||
"twitter": "@nuxt_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,18 +1,18 @@ | ||
import theme from '@nuxt/content-theme-docs' | ||
|
||
export default theme({ | ||
loading: { color: '#00CD81' }, | ||
i18n: { | ||
locales: () => [{ | ||
code: 'en', | ||
iso: 'en-US', | ||
file: 'en-US.js', | ||
name: 'English' | ||
}], | ||
defaultLocale: 'en' | ||
docs: { | ||
primaryColor: '#AA7AB5' | ||
}, | ||
content: { | ||
liveEdit: false | ||
buildModules: ['nuxt-ackee'], | ||
ackee: { | ||
server: 'https://ackee.nuxtjs.com', | ||
domainId: 'a1a834f9-be7a-45ca-a18e-4ab559cd8452', | ||
detailed: true | ||
}, | ||
components: true | ||
pwa: { | ||
manifest: { | ||
name: 'Nuxt Axios' | ||
} | ||
} | ||
}) |
Oops, something went wrong.