Skip to content

Commit

Permalink
feat: remove README.vue page
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Aug 17, 2024
1 parent 3ba9791 commit 5705980
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 64 deletions.
6 changes: 3 additions & 3 deletions examples/videojs-player/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const reactBasicExample = {
language: 'typescript'
}

const vueComponents = import.meta.glob<{ default: any }>('./*.vue', { eager: true })
const vueComponentRaws = import.meta.glob<string>('./*.vue', { as: 'raw', eager: true })
const vueComponents = import.meta.glob<{ default: any }>('./*.vue', { eager: true, import: 'default' })
const vueComponentRaws = import.meta.glob<string>('./*.vue', { eager: true, query: '?raw', import: 'default' })
const vueExamples: Array<ExampleComponentConfig> = Object.keys(vueComponents).map((id) => ({
component: vueComponents[id].default,
component: vueComponents[id],
raw: vueComponentRaws[id],
language: 'vue'
}))
Expand Down
6 changes: 3 additions & 3 deletions examples/vue-awesome-swiper/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true })
const raws = import.meta.glob<string>('./*.vue', { as: 'raw', eager: true })
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true, import: 'default' })
const raws = import.meta.glob<string>('./*.vue', { eager: true, query: '?raw', import: 'default' })

export default Object.keys(components).map((id) => ({
component: components[id].default,
component: components[id],
raw: raws[id],
language: 'vue'
}))
6 changes: 3 additions & 3 deletions examples/vue-touch-ripple/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true })
const raws = import.meta.glob<string>('./*.vue', { as: 'raw', eager: true })
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true, import: 'default' })
const raws = import.meta.glob<string>('./*.vue', { eager: true, query: '?raw', import: 'default' })

export default Object.keys(components).map((id) => ({
component: components[id].default,
component: components[id],
raw: raws[id],
language: 'vue'
}))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"vue": "^3.4.x",
"vue-codemirror": "^6.1.1",
"vue-router": "^4.4.x",
"vue-touch-ripple": "^4.1.1"
"vue-touch-ripple": "^4.x"
},
"devDependencies": {
"@eslint/js": "^9.x",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions projects.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"Readme": {
"route": "readme-vue",
"repository": "README.vue"
},
"NaiveBayes": {
"route": "naivebayes",
"repository": "naivebayes",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const createUniversalApp = (options: AppCreatorOptions) => {
app.use(head)
app.use(theme)
app.use(visitor)
app.component(UlinkComponent.name, UlinkComponent)
app.component(UlinkComponent.name!, UlinkComponent)

return {
app,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { APP_META, GITHUB_USER_URL } from '@/config'
const meta = reactive({ ...APP_META })
useSeoMeta(() => meta)
useSeoMeta(meta)
onBeforeMount(() => {
meta.title = `Redirect to GitHub ...`
location.href = GITHUB_USER_URL
Expand Down
45 changes: 0 additions & 45 deletions src/pages/readme-vue.vue

This file was deleted.

4 changes: 2 additions & 2 deletions src/transforms/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { getGitHubFileSourceURL } from '@/transforms/url'
import { GITHUB_PROJECT_NAME } from '@/config'

export interface ExampleComponent {
name: string
title: string
name?: string
title?: string
path: string
url: string
raw: string
Expand Down

0 comments on commit 5705980

Please sign in to comment.