mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Rename parseGithubDate to parseDate
This commit is contained in:
parent
95b692a3be
commit
a5333b1939
6 changed files with 8 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import parseGithubDate from '~/helpers/parse-github-date'
|
||||
import parseDate from '~/helpers/parse-date'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
@ -16,7 +16,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
relativeTime () {
|
||||
return parseGithubDate(this.timestamp).relative
|
||||
return parseDate(this.timestamp).relative
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import slugify from 'slugify'
|
|||
import axios from 'axios'
|
||||
|
||||
import statuses from './statuses'
|
||||
import parseGithubDate from './parse-github-date'
|
||||
import parseDate from './parse-date'
|
||||
import { getAppEndpoint } from './app-derived'
|
||||
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ export default async function () {
|
|||
|
||||
const lastUpdated = (lastUpdatedRaw) ? {
|
||||
raw: lastUpdatedRaw,
|
||||
timestamp: parseGithubDate(lastUpdatedRaw).timestamp,
|
||||
timestamp: parseDate(lastUpdatedRaw).timestamp,
|
||||
} : null
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import axios from 'axios'
|
||||
|
||||
// import statuses from './statuses'
|
||||
// import parseGithubDate from './parse-github-date'
|
||||
// import parseDate from './parse-github-date'
|
||||
|
||||
const marked = require('marked')
|
||||
const HTMLParser = require(`node-html-parser`)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import axios from 'axios'
|
|||
|
||||
import { byTimeThenNull } from './sort-list.js'
|
||||
import { getVideoEndpoint } from './app-derived.js'
|
||||
import parseGithubDate from './parse-github-date'
|
||||
|
||||
export function matchesWholeWord (needle, haystack) {
|
||||
return new RegExp('\\b' + needle + '\\b').test(haystack)
|
||||
}
|
||||
import parseDate from './parse-date'
|
||||
|
||||
const videoFeaturesApp = function (app, video) {
|
||||
const appFuzzyName = app.name.toLowerCase()
|
||||
|
|
@ -152,7 +152,7 @@ export default async function ( applist ) {
|
|||
|
||||
const lastUpdated = {
|
||||
raw: fetchedVideos[videoId].rawData.snippet.publishedAt,
|
||||
timestamp: parseGithubDate(fetchedVideos[videoId].rawData.snippet.publishedAt).timestamp,
|
||||
timestamp: parseDate(fetchedVideos[videoId].rawData.snippet.publishedAt).timestamp,
|
||||
}
|
||||
|
||||
// console.log('fetchedVideos[videoId].thumbnails', fetchedVideos[videoId].thumbnails)
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import parseGithubDate from '~/helpers/parse-github-date'
|
||||
import parseDate from '~/helpers/parse-date'
|
||||
import { getAppEndpoint } from '~/helpers/app-derived.js'
|
||||
|
||||
import LinkButton from '~/components/link-button.vue'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue