Skip to content

Commit

Permalink
v1.0.01
Browse files Browse the repository at this point in the history
add json format, fix tests
  • Loading branch information
ewilan-riviere committed Oct 4, 2024
1 parent 4dca135 commit 05a4bee
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/body.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Podcast } from '@/models/Podcast'
import type { PropType } from 'vue'
import type { Podcast } from '../models/Podcast'
import { h } from 'vue'
import header from './header'
import main from './main'
Expand Down
2 changes: 1 addition & 1 deletion src/components/header.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Podcast } from '@/models/Podcast'
import type { PropType } from 'vue'
import type { Podcast } from '../models/Podcast'
import { h } from 'vue'

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/components/html.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Podcast } from '@/models/Podcast'
import type { PropType } from 'vue'
import type { Podcast } from '../models/Podcast'
import { h } from 'vue'
import body from './body'
import head from './head'
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Podcast } from '@/models/Podcast'
import type { Podcast } from '../models/Podcast'
import { readFile } from 'node:fs/promises'
import { cwd } from 'node:process'
import { renderToString } from 'vue/server-renderer'
Expand Down
4 changes: 2 additions & 2 deletions src/components/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Episode } from '@/models/Episode'
import type { Podcast } from '@/models/Podcast'
import type { PropType } from 'vue'
import type { Episode } from '../models/Episode'
import type { Podcast } from '../models/Podcast'
import { h } from 'vue'

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/models/Episode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ChannelItem } from '@/types'
import type { ChannelItem } from '../types'
import sanitizeHtml from 'sanitize-html'

export class Episode {
Expand Down
9 changes: 4 additions & 5 deletions src/models/Podcast.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Channel } from '@/types'
import { format } from 'node:path'
import { renderDom } from '@/components'
import { Episode } from '@/models/Episode'
import { route } from '@/routes/router'
import type { Channel } from '../types'
import sanitizeHtml from 'sanitize-html'
import { renderDom } from '../components'
import { Episode } from '../models/Episode'
import { route } from '../routes/router'

export class Podcast {
protected constructor(
Expand Down
2 changes: 1 addition & 1 deletion tests/feeds.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Parser } from '@/services'
import { expect, it } from 'vitest'
import { Parser } from '../src/services'

const feeds = [
'https://feedpress.me/rdvjeux',
Expand Down

0 comments on commit 05a4bee

Please sign in to comment.