Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-community/axios-module
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.12.1
Choose a base ref
...
head repository: nuxt-community/axios-module
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.12.2
Choose a head ref
  • 13 commits
  • 31 files changed
  • 6 contributors

Commits on Aug 12, 2020

  1. docs: migrate docs to nuxt/content (#404)

    * docs: installed nuxt docs theme
    
    * docs: added docs files to content folder
    
    * docs: updated colors in tailwind.config.js
    
    * docs: updated colors and added global component
    
    * docs: added assets for global component
    
    * docs: update index.md
    
    * docs: fix link
    
    * docs: added features block
    
    * docs: updated styles for promote block
    
    * docs: fix hover
    
    * docs: moved docs files to docs/
    
    * docs: moved docs directories, created own package.json for docs and removed vuepress
    cogor authored Aug 12, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    tonistiigi Tõnis Tiigi
    Copy the full SHA
    18c9735 View commit details

Commits on Aug 21, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    tonistiigi Tõnis Tiigi
    Copy the full SHA
    4942979 View commit details

Commits on Aug 25, 2020

  1. fix(types): extend Axios.AxiosRequestConfig with "progress" option (#408

    )
    
    As documented in https://axios.nuxtjs.org/options.html#progress, Nuxt Axios
    supports passing "progress" boolean through request options.
    rchl authored Aug 25, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    tonistiigi Tõnis Tiigi
    Copy the full SHA
    ea4ea7e View commit details
  2. chore(deps): update all non-major dependencies (#400)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 25, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    tonistiigi Tõnis Tiigi
    Copy the full SHA
    85840c6 View commit details
  3. chore(ci): use github actions

    pi0 committed Aug 25, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    tonistiigi Tõnis Tiigi
    Copy the full SHA
    22c65a5 View commit details
  4. chore: update issue template

    pi0 committed Aug 25, 2020
    Copy the full SHA
    465fc56 View commit details
  5. chore: remove husky

    pi0 committed Aug 25, 2020
    Copy the full SHA
    d9dd5f2 View commit details
  6. chore: fix netlify.toml

    pi0 committed Aug 25, 2020
    Copy the full SHA
    f09f5e6 View commit details
  7. chore: update badges

    pi0 committed Aug 25, 2020
    Copy the full SHA
    20c9dc3 View commit details
  8. fix: fix netlify.toml

    pi0 committed Aug 25, 2020
    Copy the full SHA
    3a2e427 View commit details
  9. chore: simplify readme

    pi0 committed Aug 25, 2020
    Copy the full SHA
    8fc02f7 View commit details
  10. docs: fix syntax highlight

    pi0 committed Aug 25, 2020
    Copy the full SHA
    6dd299e View commit details
  11. chore(release): 5.12.2

    pi0 committed Aug 25, 2020
    Copy the full SHA
    d8bd168 View commit details
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
<!--
IMPORTANT: Please use the following link to create a new issue:
https://cmty.app/nuxt/issues/new?repo=axios-module
If your issue was not created using the app above, it will be closed immediately.
-->
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: ci

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [12]

steps:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: checkout
uses: actions/checkout@master

- name: cache node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn

- name: Lint
run: yarn lint

- name: Test
run: yarn jest

- name: Coverage
uses: codecov/codecov-action@v1
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [5.12.2](https://github.com/nuxt-community/axios-module/compare/v5.12.1...v5.12.2) (2020-08-25)


### Bug Fixes

* fix netlify.toml ([3a2e427](https://github.com/nuxt-community/axios-module/commit/3a2e427a3e85e8180cfdbf48b435cd9600917d88))
* **types:** extend Axios.AxiosRequestConfig with "progress" option ([#408](https://github.com/nuxt-community/axios-module/issues/408)) ([ea4ea7e](https://github.com/nuxt-community/axios-module/commit/ea4ea7e323e053d6ae025210534c675e468a273c))

### [5.12.1](https://github.com/nuxt-community/axios-module/compare/v5.12.0...v5.12.1) (2020-08-05)


38 changes: 8 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
# 📦 Axios Module


[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Circle CI][circle-ci-src]][circle-ci-href]
[![Checks][checks-src]][checks-href]
[![Codecov][codecov-src]][codecov-href]
[![Dependencies][david-dm-src]][david-dm-href]
[![Standard JS][standard-js-src]][standard-js-href]

> Secure and Easy <a href="https://github.com/mzabriskie/axios">Axios</a> integration with Nuxt.js
## ✅ 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)

✓ Fetch Style requests

✓ Integrated with Nuxt.js Progressbar while making requests

✓ Integrated with [Proxy Module](https://github.com/nuxt-community/proxy-module)

✓ Auto retry requests with [axios-retry](https://github.com/softonic/axios-retry)

📖 [**Read Documentation**](https://axios.nuxtjs.org)

## Development
@@ -42,15 +23,12 @@
Copyright (c) Nuxt Community

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/dt/@nuxtjs/axios.svg?style=flat-square
<!-- Badges -->
[npm-version-src]: https://flat.badgen.net/npm/v/@nuxtjs/axios
[npm-version-href]: https://npmjs.com/package/@nuxtjs/axios
[npm-downloads-src]: https://img.shields.io/npm/v/@nuxtjs/axios/latest.svg?style=flat-square
[npm-downloads-src]: https://flat.badgen.net/npm/dm/@nuxtjs/axios
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/axios
[circle-ci-src]: https://img.shields.io/circleci/project/github/nuxt-community/axios-module.svg?style=flat-square
[circle-ci-href]: https://circleci.com/gh/nuxt-community/axios-module
[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/axios-module.svg?style=flat-square
[checks-src]: https://flat.badgen.net/github/checks/nuxt-community/axios-module/dev
[checks-href]: https://github.com/nuxt-community/axios-module/actions
[codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt-community/axios-module
[codecov-href]: https://codecov.io/gh/nuxt-community/axios-module
[david-dm-src]: https://david-dm.org/nuxt-community/axios-module/status.svg?style=flat-square
[david-dm-href]: https://david-dm.org/nuxt-community/axios-module
[standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
[standard-js-href]: https://standardjs.com
5 changes: 0 additions & 5 deletions commitlint.config.js

This file was deleted.

10 changes: 9 additions & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
.vuepress/dist
node_modules
*.iml
.idea
*.log*
.nuxt
.vscode
.DS_Store
coverage
dist
40 changes: 0 additions & 40 deletions docs/.vuepress/config.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
<template>
<div>
<a href="https://vueschool.io/lessons/the-axios-module?friend=nuxt" target="_blank" class="Promote">
<img src="/async-data-with-nuxtjs-2x.png" alt="AsyncData Nuxt course by Vue School">
<div class="Promote__Content">
<h4 class="Promote__Content__Title">Learn how to use the Axios module with a short video lesson</h4>
<p class="Promote__Content__Description">Get up to speed quickly with Vue School's free video lesson.</p>
<p class="Promote__Content__Signature">Video courses made by VueSchool to support Nuxt.js developpement.</p>
</div>
</a>
</div>
</template>

<script>
export default {
name: 'PromoteBlock'
}
</script>

<style>
.Promote {
background-color: #edf2f7;
color: #2f495e;
@@ -7,11 +27,11 @@
margin-top: 1rem;
margin-bottom: 1rem;
border-radius: .25rem;
text-decoration: none !important;
}

.Promote:hover {
background-color: #e2e8f0 !important;
background-color: #e2e8f0;
text-decoration: none !important;
}
@@ -20,6 +40,7 @@
height: auto;
border-radius: .25rem;
margin-bottom: .75rem;
margin-top: 0;
}
.Promote .Promote__Content {
@@ -60,7 +81,6 @@
padding-left: 1rem;
}

.Promote .Promote__Content__Title {
margin: 0;
}
@@ -71,4 +91,16 @@
}
}

.dark-mode .Promote {
background: #2d3041;
}
.dark-mode .Promote .Promote__Content__Description {
color: #fff;
}
.dark-mode .Promote .Promote__Content__Signature {
color: #ebebeb;
}
.dark-mode .Promote:hover {
background: #43485a;
}
</style>
8 changes: 7 additions & 1 deletion docs/extend.md → docs/content/en/extend.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Extending Axios
---
title: 'Extending Axios'
description: ''
position: 2
category: 'Extending Axios'
---


If you need to customize axios by registering interceptors and changing global config, you have to create a nuxt plugin.

8 changes: 7 additions & 1 deletion docs/helpers.md → docs/content/en/helpers.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Helpers
---
title: 'Helpers'
description: ''
position: 3
category: 'Helpers'
---


## Interceptors

36 changes: 36 additions & 0 deletions docs/content/en/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: 'Introduction'
description: ''
position: 1
category: 'Getting started'
menuTitle: 'Intro'
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)
- Fetch Style requests
- Integrated with Nuxt.js Progressbar while making requests
- Integrated with Proxy Module
- Auto retry requests with axios-retry
---

## Features

<list :items="features"></list>

> Secure and Easy [Axios](https://github.com/axios/axios) integration with Nuxt.js.
## Links

* [GitHub](https://github.com/nuxt-community/axios-module)
* [Release Notes](/releases)
* [Migration Guide](migration)
* [Examples](https://axios.nuxtjs.org/usage.html)

> 👉 To get started head to [Setup](/setup) section.
## Online courses

<promote-block>
</promote-block>
8 changes: 7 additions & 1 deletion docs/migration.md → docs/content/en/migration.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Migration guides
---
title: 'Migration guides'
description: ''
position: 6
category: 'Migration'
---


### From 4.x to 5.x

Loading