Skip to content

Commit

Permalink
fix(build): fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanharrell committed Jul 23, 2024
1 parent 2893907 commit eae71ea
Show file tree
Hide file tree
Showing 27 changed files with 30,281 additions and 26,205 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: install
run: npm install
- name: build
Expand All @@ -36,7 +38,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '18.x'
- name: install
run: npm install
- name: build
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 10.19.0
nodejs 18.19.1
3 changes: 2 additions & 1 deletion docs/.vuepress/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
extends: ['vuepress'],
rules: {
// override rules
"vue/multi-word-component-names": "off",
"vue/no-v-html": "off"
}
};
4 changes: 2 additions & 2 deletions docs/.vuepress/theme/components/DropdownTransition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
unsetHeight(items) {
items.style.height = '';
}
}
},
},
};
</script>

Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
computed: {
data() {
return this.$page.frontmatter;
}
}
},
},
};
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/.vuepress/theme/components/NavLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
props: {
item: {
type: Object,
required: true
}
required: true,
},
},
computed: {
Expand All @@ -37,16 +37,16 @@
exact() {
if (this.$site.locales) {
return Object.keys(this.$site.locales).some(
rootLink => rootLink === this.link
(rootLink) => rootLink === this.link
);
}
return this.link === '/';
}
},
},
methods: {
isExternal
}
isExternal,
},
};
</script>
24 changes: 11 additions & 13 deletions docs/.vuepress/theme/components/NavLinks.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<div class="nav-links" aria-labelledby="site-links-label">
<h2 id="site-links-label" class="is-visually-hidden">
Site Links
</h2>
<h2 id="site-links-label" class="is-visually-hidden">Site Links</h2>
<nav v-if="userLinks.length" class="primary-links">
<ul>
<li v-for="item in userLinks" :key="item.link" class="nav-item">
Expand Down Expand Up @@ -34,9 +32,9 @@
<button
v-if="theme"
class="theme-toggle"
:title="
`Change theme to ${theme === 'light' ? 'dark' : 'light'}`
"
:title="`Change theme to ${
theme === 'light' ? 'dark' : 'light'
}`"
@click="toggleTheme"
>
<SunIcon v-if="theme === 'light'" />
Expand All @@ -56,13 +54,13 @@
components: {
SunIcon,
MoonIcon,
NavLink
NavLink,
},
data() {
return {
version: '...',
theme: undefined
theme: undefined,
};
},
Expand All @@ -72,9 +70,9 @@
},
userLinks() {
return (this.nav || []).map(link => {
return (this.nav || []).map((link) => {
return Object.assign(resolveNavLinkItem(link), {
items: (link.items || []).map(resolveNavLinkItem)
items: (link.items || []).map(resolveNavLinkItem),
});
});
},
Expand All @@ -86,7 +84,7 @@
repoLabel() {
return 'Github';
}
},
},
mounted() {
Expand Down Expand Up @@ -129,8 +127,8 @@
localStorage.setItem('theme', newTheme);
this.$emit('alert', `Theme changed to ${newTheme}`);
}
}
},
},
};
</script>

Expand Down
8 changes: 4 additions & 4 deletions docs/.vuepress/theme/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<span class="is-visually-hidden">Home page</span>
</RouterLink>
<div class="links">
<NavLinks @alert="$event => $emit('alert', $event)" />
<SearchBox @alert="$event => $emit('alert', $event)" />
<NavLinks @alert="($event) => $emit('alert', $event)" />
<SearchBox @alert="($event) => $emit('alert', $event)" />
</div>
</header>
</template>
Expand All @@ -26,8 +26,8 @@
components: {
SidebarButton,
NavLinks,
SearchBox
}
SearchBox,
},
};
</script>

Expand Down
14 changes: 7 additions & 7 deletions docs/.vuepress/theme/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
export default {
components: {
PageEdit,
PageNav
PageNav,
},
props: {
sidebarItems: {
type: Array,
default: () => []
}
default: () => [],
},
},
computed: {
Expand Down Expand Up @@ -59,7 +59,7 @@
editLinks,
docsDir = '',
docsBranch = 'master',
docsRepo = repo
docsRepo = repo,
} = this.$site.themeConfig;
let path = normalize(this.$page.path);
Expand All @@ -84,7 +84,7 @@
this.$site.themeConfig.editLinkText ||
`Edit this page`
);
}
},
},
methods: {
Expand All @@ -97,8 +97,8 @@
(docsDir ? '/' + docsDir.replace(endingSlashRE, '') : '') +
path
);
}
}
},
},
};
</script>

Expand Down
8 changes: 4 additions & 4 deletions docs/.vuepress/theme/components/PageEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
repo,
docsDir = '',
docsBranch = 'master',
docsRepo = repo
docsRepo = repo,
} = this.$site.themeConfig;
if (showEditLink && docsRepo && this.$page.relativePath) {
Expand All @@ -68,7 +68,7 @@
this.$site.themeConfig.editLinkText ||
`Edit this page`
);
}
},
},
methods: {
Expand All @@ -82,8 +82,8 @@
(docsDir ? docsDir.replace(endingSlashRE, '') + '/' : '') +
path
);
}
}
},
},
};
</script>

Expand Down
14 changes: 7 additions & 7 deletions docs/.vuepress/theme/components/PageNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
props: {
sidebarItems: {
type: Array,
default: () => []
}
default: () => [],
},
},
computed: {
Expand All @@ -41,8 +41,8 @@
next() {
return resolvePageLink(LINK_TYPES.NEXT, this);
}
}
},
},
};
function resolvePrev(page, items) {
Expand All @@ -57,13 +57,13 @@
NEXT: {
resolveLink: resolveNext,
getThemeLinkConfig: ({ nextLinks }) => nextLinks,
getPageLinkConfig: ({ frontmatter }) => frontmatter.next
getPageLinkConfig: ({ frontmatter }) => frontmatter.next,
},
PREV: {
resolveLink: resolvePrev,
getThemeLinkConfig: ({ prevLinks }) => prevLinks,
getPageLinkConfig: ({ frontmatter }) => frontmatter.prev
}
getPageLinkConfig: ({ frontmatter }) => frontmatter.prev,
},
};
function resolvePageLink(
Expand Down
16 changes: 8 additions & 8 deletions docs/.vuepress/theme/components/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
AisHits,
AisInstantSearch,
AisSearchBox,
AisSnippet
AisSnippet,
} from 'vue-instantsearch';
export default {
Expand All @@ -154,14 +154,14 @@
AisHits,
AisInstantSearch,
AisSearchBox,
AisSnippet
AisSnippet,
},
data() {
return {
query: '',
focused: false,
focusIndex: -1
focusIndex: -1,
};
},
Expand All @@ -183,19 +183,19 @@
const navCount = (this.$site.themeConfig.nav || []).length;
const repo = this.$site.repo ? 1 : 0;
return navCount + repo <= 2;
}
},
},
watch: {
query(value) {
this.focusIndex = -1;
this.$emit('alert', `Searched for query ${value}`);
}
},
},
mounted() {
document.addEventListener('click', this.handleClick);
document.addEventListener('keydown', event => {
document.addEventListener('keydown', (event) => {
if (event.key === '/') {
if (document.activeElement === this.$refs.input) return;
this.$refs.input.focus();
Expand Down Expand Up @@ -256,8 +256,8 @@
unfocus() {
this.focusIndex = -1;
}
}
},
},
};
</script>

Expand Down
Loading

0 comments on commit eae71ea

Please sign in to comment.