Skip to content

Commit

Permalink
feat: 🎸 /reviewing page migrateLinks, migrateImages touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
renoirb committed Oct 9, 2024
1 parent 8c4b164 commit 585adf2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ canonical: >-
status: publish
revising: true
images: true
migratingImages: true
migrateImages: true
migrateLinks: true
gallery: true
caption: true
created: '2010-05-19'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ canonical: >-
https://renoirboulanger.com/blog/2010/05/traduction-libre-de-larticle-why-the-is-microsoft-doing-all-this/
status: publish
revising: true
migratingImages: true
migrateImages: true
gallery: true
caption: true
migratingLinks: true
created: '2010-05-30'
updated: '2023-11-15'
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ status: publish
revising: true
gallery: true
caption: true
migratingImages: true
migrateImages: true
created: '2010-06-22'
updated: '2013-03-27'
tags: []
Expand Down
12 changes: 10 additions & 2 deletions pages/blog/reviewing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@
type NuxtContentResult = WithReviewingProps & INuxtContentResult
interface WithReviewingProps {
caption?: boolean
caracteresBizzares?: boolean
gallery?: boolean
images?: boolean
migrateImages?: boolean
caracteresBizzares?: boolean
migrateLinks?: boolean
}
type FlagsString = (m: WithReviewingProps) => string
export interface Data {
Expand All @@ -69,7 +70,8 @@
const d =
arg.caracteresBizzares && arg.caracteresBizzares === true ? 'é' : '-'
const e = arg.migrateImages && arg.migrateImages === true ? 'M' : '-'
return [a, b, c, d, e]
const f = arg.migrateLinks && arg.migrateLinks === true ? 'L' : '-'
return [a, b, c, d, e, f]
}
const createSortScoreForFlagThing = (input: string[]): number => {
let score = 0
Expand Down Expand Up @@ -134,6 +136,12 @@
.filter((a) => findExcludingRedirectPredicate(a))
.sort(sortCompareFn)
const count = contents.length
const lines = [
...contents.map(({ path }: NuxtContentResult) =>
[path].map((i) => `"${i}"`).join(';'),
),
].join('\n')
console.log(lines)
return {
contents,
count,
Expand Down

0 comments on commit 585adf2

Please sign in to comment.