mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
style: lint code
This commit is contained in:
parent
c765578edb
commit
01b8e657e8
@ -11,9 +11,7 @@ const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Lat
|
|||||||
const BASE_URL = isVersion > -1 ? process.argv[isVersion + 1] : '/';
|
const BASE_URL = isVersion > -1 ? process.argv[isVersion + 1] : '/';
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
isVersion > -1
|
isVersion > -1 ? `Building docs for version ${VERSION}` : 'Building docs for latest version'
|
||||||
? `Building docs for version ${VERSION}`
|
|
||||||
: 'Building docs for latest version'
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const description =
|
const description =
|
||||||
@ -56,22 +54,10 @@ export default defineConfig({
|
|||||||
head: [
|
head: [
|
||||||
// Attach a custom favicon
|
// Attach a custom favicon
|
||||||
['link', { rel: 'icon', href: `${BASE_URL}favicon.ico', type: 'image/x-icon` }],
|
['link', { rel: 'icon', href: `${BASE_URL}favicon.ico', type: 'image/x-icon` }],
|
||||||
[
|
['link', { rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.png` }],
|
||||||
'link',
|
['link', { rel: 'apple-touch-icon', sizes: '60x60', href: `${BASE_URL}apple-icon-60x60.png` }],
|
||||||
{ rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.png` }
|
['link', { rel: 'apple-touch-icon', sizes: '72x72', href: `${BASE_URL}apple-icon-72x72.png` }],
|
||||||
],
|
['link', { rel: 'apple-touch-icon', sizes: '76x76', href: `${BASE_URL}apple-icon-76x76.png` }],
|
||||||
[
|
|
||||||
'link',
|
|
||||||
{ rel: 'apple-touch-icon', sizes: '60x60', href: `${BASE_URL}apple-icon-60x60.png` }
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'link',
|
|
||||||
{ rel: 'apple-touch-icon', sizes: '72x72', href: `${BASE_URL}apple-icon-72x72.png` }
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'link',
|
|
||||||
{ rel: 'apple-touch-icon', sizes: '76x76', href: `${BASE_URL}apple-icon-76x76.png` }
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
'link',
|
'link',
|
||||||
{
|
{
|
||||||
@ -151,10 +137,7 @@ export default defineConfig({
|
|||||||
|
|
||||||
['link', { rel: 'manifest', href: `${BASE_URL}manifest.json` }],
|
['link', { rel: 'manifest', href: `${BASE_URL}manifest.json` }],
|
||||||
['meta', { name: 'msapplication-TileColor', content: '#e5972a' }],
|
['meta', { name: 'msapplication-TileColor', content: '#e5972a' }],
|
||||||
[
|
['meta', { name: 'msapplication-TileImage', content: `${BASE_URL}ms-icon-144x144.png` }],
|
||||||
'meta',
|
|
||||||
{ name: 'msapplication-TileImage', content: `${BASE_URL}ms-icon-144x144.png` }
|
|
||||||
],
|
|
||||||
['meta', { name: 'theme-color', content: '#e5972a' }],
|
['meta', { name: 'theme-color', content: '#e5972a' }],
|
||||||
['meta', { name: 'description', content: description }],
|
['meta', { name: 'description', content: description }],
|
||||||
|
|
||||||
@ -251,16 +234,13 @@ export default defineConfig({
|
|||||||
items: [
|
items: [
|
||||||
{ text: 'Latest', link: url },
|
{ text: 'Latest', link: url },
|
||||||
{ text: 'v0.x', link: `${url}/v0/` }
|
{ text: 'v0.x', link: `${url}/v0/` }
|
||||||
].filter((i) =>
|
].filter((i) => (BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL)))
|
||||||
BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
//! Temp link for testing, will be changed to the real one before merged to production
|
//! Temp link for testing, will be changed to the real one before merged to production
|
||||||
editLink: {
|
editLink: {
|
||||||
pattern:
|
pattern: 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
|
||||||
'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
footer: {
|
footer: {
|
||||||
@ -318,6 +298,6 @@ export default defineConfig({
|
|||||||
light: 'kanagawa-lotus'
|
light: 'kanagawa-lotus'
|
||||||
},
|
},
|
||||||
|
|
||||||
typographer: true,
|
typographer: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -71,4 +71,4 @@
|
|||||||
.VPTeamMembers.medium.count-1 {
|
.VPTeamMembers.medium.count-1 {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import Theme from 'vitepress/theme';
|
import Theme from 'vitepress/theme';
|
||||||
import './style.css';
|
import './style.css';
|
||||||
import './homepage.css'
|
import './homepage.css';
|
||||||
|
|
||||||
export default Theme;
|
export default Theme;
|
||||||
|
|||||||
@ -134,4 +134,4 @@
|
|||||||
|
|
||||||
.DocSearch {
|
.DocSearch {
|
||||||
--docsearch-primary-color: var(--vp-c-brand-1) !important;
|
--docsearch-primary-color: var(--vp-c-brand-1) !important;
|
||||||
}
|
}
|
||||||
|
|||||||
10
package.json
10
package.json
@ -2,15 +2,7 @@
|
|||||||
"name": "axios-cache-interceptor",
|
"name": "axios-cache-interceptor",
|
||||||
"version": "1.8.0",
|
"version": "1.8.0",
|
||||||
"description": "Cache interceptor for axios",
|
"description": "Cache interceptor for axios",
|
||||||
"keywords": [
|
"keywords": ["axios", "cache", "interceptor", "adapter", "http", "plugin", "wrapper"],
|
||||||
"axios",
|
|
||||||
"cache",
|
|
||||||
"interceptor",
|
|
||||||
"adapter",
|
|
||||||
"http",
|
|
||||||
"plugin",
|
|
||||||
"wrapper"
|
|
||||||
],
|
|
||||||
"homepage": "https://axios-cache-interceptor.js.org",
|
"homepage": "https://axios-cache-interceptor.js.org",
|
||||||
"bugs": "https://github.com/arthurfiorette/axios-cache-interceptor/issues",
|
"bugs": "https://github.com/arthurfiorette/axios-cache-interceptor/issues",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user