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] : '/';
|
||||
|
||||
console.log(
|
||||
isVersion > -1
|
||||
? `Building docs for version ${VERSION}`
|
||||
: 'Building docs for latest version'
|
||||
isVersion > -1 ? `Building docs for version ${VERSION}` : 'Building docs for latest version'
|
||||
);
|
||||
|
||||
const description =
|
||||
@ -56,22 +54,10 @@ export default defineConfig({
|
||||
head: [
|
||||
// Attach a custom favicon
|
||||
['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',
|
||||
{ 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', { rel: 'apple-touch-icon', sizes: '57x57', href: `${BASE_URL}apple-icon-57x57.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',
|
||||
{
|
||||
@ -151,10 +137,7 @@ export default defineConfig({
|
||||
|
||||
['link', { rel: 'manifest', href: `${BASE_URL}manifest.json` }],
|
||||
['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: 'description', content: description }],
|
||||
|
||||
@ -251,16 +234,13 @@ export default defineConfig({
|
||||
items: [
|
||||
{ text: 'Latest', link: url },
|
||||
{ text: 'v0.x', link: `${url}/v0/` }
|
||||
].filter((i) =>
|
||||
BASE_URL === '/' ? i.text !== 'Latest' : !i.link.includes(BASE_URL)
|
||||
)
|
||||
].filter((i) => (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
|
||||
editLink: {
|
||||
pattern:
|
||||
'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
|
||||
pattern: 'https://github.com/arthurfiorette/axios-cache-interceptor/edit/main/docs/src/:path'
|
||||
},
|
||||
|
||||
footer: {
|
||||
@ -318,6 +298,6 @@ export default defineConfig({
|
||||
light: 'kanagawa-lotus'
|
||||
},
|
||||
|
||||
typographer: true,
|
||||
typographer: true
|
||||
}
|
||||
});
|
||||
|
||||
@ -71,4 +71,4 @@
|
||||
.VPTeamMembers.medium.count-1 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import Theme from 'vitepress/theme';
|
||||
import './style.css';
|
||||
import './homepage.css'
|
||||
import './homepage.css';
|
||||
|
||||
export default Theme;
|
||||
|
||||
@ -134,4 +134,4 @@
|
||||
|
||||
.DocSearch {
|
||||
--docsearch-primary-color: var(--vp-c-brand-1) !important;
|
||||
}
|
||||
}
|
||||
|
||||
10
package.json
10
package.json
@ -2,15 +2,7 @@
|
||||
"name": "axios-cache-interceptor",
|
||||
"version": "1.8.0",
|
||||
"description": "Cache interceptor for axios",
|
||||
"keywords": [
|
||||
"axios",
|
||||
"cache",
|
||||
"interceptor",
|
||||
"adapter",
|
||||
"http",
|
||||
"plugin",
|
||||
"wrapper"
|
||||
],
|
||||
"keywords": ["axios", "cache", "interceptor", "adapter", "http", "plugin", "wrapper"],
|
||||
"homepage": "https://axios-cache-interceptor.js.org",
|
||||
"bugs": "https://github.com/arthurfiorette/axios-cache-interceptor/issues",
|
||||
"repository": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user