Skip to content

Commit

Permalink
remove devternity merch; fix avatar fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduards Sizovs committed Jan 16, 2024
1 parent 2609cce commit ead57fb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"editor.formatOnSave": true,
"vetur.validation.template": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
11 changes: 3 additions & 8 deletions vue/src/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<template lang="pug">
footer.footer.has-background-white
.content.has-text-centered.is-size-6
p
| Coded at night under caffeine by
p
| Coded at night under caffeine by
a(href="https://twitter.com/eduardsi" rel="nofollow noopener noreferrer") @eduardsi
| . No ads, no tracking, open source.
p
strong
| 🚀 Inspired by
a(href='https://devternity.com?utm_source=devtube' target='_blank') DevTernity
| &ndash; the top software developer conference.
p.is-size-5
a.mr-3.has-text-grey-dark(href='https://github.com/watch-devtube/web' rel="nofollow noopener noreferrer"): font-awesome-icon(:icon="['fab', 'github']" title="Our GitHub")
a.mr-3.has-text-grey-dark(href='https://twitter.com/watchdevtube' rel="nofollow noopener noreferrer"): font-awesome-icon(:icon="['fab', 'twitter']" title="Our Twitter")
Expand All @@ -21,5 +16,5 @@ footer.footer.has-background-white
| on your browser. Read our
a(href='/privacy.html') privacy policy
| .

</template>
30 changes: 0 additions & 30 deletions vue/src/PromoVideoComment.vue

This file was deleted.

19 changes: 4 additions & 15 deletions vue/src/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,10 @@ section.section.pt-0
Categories.mb-6(:class="{ 'is-hidden-mobile': !forceShowCategories }"
v-observe-visibility="categoryVisibilityChanged")
.column.is-8
.columns.is-multiline.is-mobile
.column.mb-6
.columns.is-mobile.is-multiline.is-vcentered.promo
.column.is-narrow
MagicCircle(:width='48')
a(href="https://devternity.com?utm_source=devtube")
figure.image.is-48x48
img.avatar.is-rounded(src="/devternity.png" alt="DevTernity logo" width="48px" height="48px")
.column
h1.is-4.title
a.devternity.has-text-white.has-text-weight-bold.is-size-2.is-size-4-mobile(href="https://devternity.com?utm_source=devtube") Join DevTernity - The #1 Dev Conference
VideoCard.is-12(v-for="video in videos"
:speakerIndex="speakerIndex"
:video="video" :key="video.objectID"
)
VideoCard.is-12(v-for="video in videos"
:speakerIndex="speakerIndex"
:video="video" :key="video.objectID"
)
button.button.is-small(v-if="more" @click="showMore()") More
button.button.submit-video.is-info(@click="submitVideo()") Submit a talk
component(v-bind:is="component" v-on:close="component = ''")
Expand Down
4 changes: 1 addition & 3 deletions vue/src/VideoComments.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<template lang="pug">
.comments.is-size-7(v-if="commentsEnabled")
VideoCommentEditor(:replyUrl="'/youtube/' + video.objectID + '/comments'" @commented="newCommentAdded")
PromoVideoComment(:video="video")
VideoComment(v-for="comment in comments" :key="comment.id" :comment="comment" :video="video")
section.section
button.button.is-small(v-if="nextPageToken" @click="fetchMoreComments()") More
</template>
<script>
import { api } from "./api";
import VideoCommentEditor from "./VideoCommentEditor.vue";
import PromoVideoComment from "./PromoVideoComment.vue";
export default {
components: { VideoCommentEditor, PromoVideoComment },
components: { VideoCommentEditor },
props: {
video: {
type: Object,
Expand Down
5 changes: 1 addition & 4 deletions vue/src/helpers/videos.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export function avatar(video, speakerIndex) {
russolsen: "/speakers/russ_olsen.jpg"
};
const speaker = video.speakerTwitters[speakerIndex];
return (
customAvatars[speaker] ||
`https://res.cloudinary.com/eduardsi/image/twitter_name/w_128,h_128,f_auto/${speaker}.jpg`
);
return customAvatars[speaker] || `https://unavatar.io/twitter/${speaker}`;
}

export function addedAgo(video) {
Expand Down

0 comments on commit ead57fb

Please sign in to comment.