Skip to content

Commit

Permalink
chore: fix lint and update renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Jan 26, 2025
1 parent 5131850 commit 3c3c800
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 34 deletions.
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
":prHourlyLimitNone",
":prConcurrentLimitNone"
],
"labels": ["dependencies"]
"labels": ["dependencies"],
"rangeStrategy": "bump"
}
4 changes: 2 additions & 2 deletions src/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ export default defineConfig({
markdown,
ignoreDeadLinks: [
// ignore all localhost links
/^https?:\/\/localhost/
/^https?:\/\/localhost/,
],

buildEnd,

vite,
Expand Down
10 changes: 5 additions & 5 deletions src/.vitepress/theme/components/Market.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup lang="ts">
import { useData } from 'vitepress'
import { computed, defineAsyncComponent } from 'vue'
// @ts-expect-error data 是 vitepress 的隐式导出
import { data as _pluginUpdateTime } from '@data/update-time.data'
// @ts-expect-error data 是 vitepress 的隐式导出
import { data as _updateTime } from '@data/time.data'
// @ts-expect-error data 是 vitepress 的隐式导出
import { data as _pluginUpdateTime } from '@data/update-time.data'
import { useData } from 'vitepress'
import { computed, defineAsyncComponent } from 'vue'
import Loading from './Loading.vue'
import MarketHero from './MarketHero.vue'
Expand Down
10 changes: 4 additions & 6 deletions src/.vitepress/theme/components/PluginCharts.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script setup lang="ts">
import type { Board } from '@highcharts/dashboards'
import Dashboards from '@highcharts/dashboards'
// @ts-expect-error data 是 vitepress 的隐式导出
import { data as chartsData } from '@data/charts.data'
import Dashboards from '@highcharts/dashboards'
import DataGrid from '@highcharts/dashboards/datagrid'
import LayoutModule from '@highcharts/dashboards/modules/layout'
import Highcharts from 'highcharts'
Expand All @@ -13,15 +15,12 @@ import MouseWheelZoom from 'highcharts/modules/mouse-wheel-zoom'
import NoDataToDisplay from 'highcharts/modules/no-data-to-display'
import ParallelCoordinates from 'highcharts/modules/parallel-coordinates'
import HighStock from 'highcharts/modules/stock'
import VariablePieGraph from 'highcharts/modules/variable-pie'
import WordCloudGraph from 'highcharts/modules/wordcloud'
import { useData } from 'vitepress'
import { onMounted } from 'vue'
// @ts-expect-error data 是 vitepress 的隐式导出
import { data as chartsData } from '@data/charts.data'
HighchartsMore(Highcharts)
WordCloudGraph(Highcharts)
HighchartsBoost(Highcharts)
Expand Down Expand Up @@ -69,7 +68,6 @@ function loadChartsJson() {
chartsData.components[1].chartOptions!.plotOptions!.series.point!
.events as any
).click = function (this: any) {
// @ts-expect-error 存在此方法
location.href = `https://github.com/${this.custom.repo}`
}
// eslint-disable-next-line no-console
Expand Down
30 changes: 10 additions & 20 deletions src/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
import type { Theme } from 'vitepress'
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
// @ts-expect-error no types
import nprogress from 'nprogress'
import DefaultTheme from 'vitepress/theme'
import { h, type Plugin } from 'vue'

import DocFooter from './components/DocFooter.vue'
import Giscus from './components/Giscus.vue'
import Market from './components/Market.vue'
import SvgImage from './components/SvgImage.vue'

// CSS
import './styles/vars.css'
import './styles/custom.css'
import './styles/csl-styles.css'

// NProgress
// @ts-expect-error no types
import nprogress from 'nprogress'
import './styles/nprogress.css'

// Element Plus
// Dark mode support: https://element-plus.org/zh-CN/guide/dark-mode.html
import 'element-plus/theme-chalk/dark/css-vars.css'

// Git Changelog
// https://nolebase-integrations.ayaka.io/pages/zh-CN/integrations/vitepress-plugin-git-changelog/
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
import DocFooter from './components/DocFooter.vue'

import 'element-plus/theme-chalk/dark/css-vars.css' // Element Plus Dark mode support: https://element-plus.org/zh-CN/guide/dark-mode.html
import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
// Custom Components
import Giscus from './components/Giscus.vue'
import Market from './components/Market.vue'
import SvgImage from './components/SvgImage.vue'
// import HomeSponsors from "./components/HomeSponsors.vue";
// import AsideSponsors from "./components/AsideSponsors.vue";

export default {
extends: DefaultTheme,
Expand All @@ -45,6 +34,7 @@ export default {
app.component('SvgImage', SvgImage)
app.component('Market', Market)

// https://nolebase-integrations.ayaka.io/pages/zh-CN/integrations/vitepress-plugin-git-changelog/
app.use(NolebaseGitChangelogPlugin as Plugin, {
displayAuthorsInsideCommitLine: true,
})
Expand Down

0 comments on commit 3c3c800

Please sign in to comment.