-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Order the Card #360
base: main
Are you sure you want to change the base?
feat: Order the Card #360
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<template> | ||
<div> | ||
<p :class="textClass">200 Free Cards Left</p> | ||
<button type="button" :class="buttonClass"> | ||
<a href="https://wedance.gumroad.com/l/vip-card">Get Free VIP Card</a> | ||
</button> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
buttonClass: 'button', | ||
textClass: 'text', | ||
} | ||
}, | ||
} | ||
</script> | ||
|
||
<style> | ||
.text { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use inline styles. Use Tailwind classes. See how other components are done. Do it similar. |
||
font-size: 1.5em; | ||
text-align: center; | ||
} | ||
.button { | ||
background-color: black; | ||
border: none; | ||
color: white; | ||
padding: 13px 200px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
font-size: 16px; | ||
margin: 4px 3px 4px 20px; | ||
cursor: pointer; | ||
border-radius: 20px; | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.text { | ||
font-size: 1em; | ||
text-align: center; | ||
} | ||
.button { | ||
padding: 10px 100px; | ||
margin: 20px 20px 15px 60px; | ||
font-size: 10px; | ||
} | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<template> | ||
<div> | ||
<template v-if="!uid"><TOrderButton /></template> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's not an order button. Think more abstract. |
||
<THeader> | ||
<TButton | ||
v-if="profile.type === 'City'" | ||
|
@@ -90,12 +91,6 @@ | |
</div> | ||
|
||
<div v-if="profile.type === 'City'" class="flex space-x-2 mt-4"> | ||
<TButton | ||
to="/events/-/edit" | ||
type="primary" | ||
icon="plus" | ||
label="Add Event" | ||
/> | ||
<TReaction | ||
:label="$t('Subscribe')" | ||
:toggled-label="$t('Unsubscribe')" | ||
|
@@ -143,6 +138,11 @@ | |
class="w-full mt-4" | ||
/> | ||
|
||
<TCommunity | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure you rebase your code on top of |
||
v-if="profile.type === 'City' && profile.username !== 'Travel'" | ||
class="pt-4 border-t" | ||
/> | ||
|
||
<template v-if="$route.query.beta"> | ||
<TCalendar | ||
v-if="profile.type === 'City' && profile.username !== 'Travel'" | ||
|
@@ -151,21 +151,14 @@ | |
</template> | ||
|
||
<template v-if="!$route.query.beta"> | ||
<TLoader v-if="!loaded" class="py-4" /> | ||
<TEventListNoLoad | ||
v-else | ||
:community="profile.username" | ||
:username="profile.username" | ||
:docs="events" | ||
class="w-full border-b border-t pt-4" | ||
/> | ||
</template> | ||
|
||
<TCommunity | ||
v-if="profile.type === 'City' && profile.username !== 'Travel'" | ||
class="pt-4 border-t" | ||
/> | ||
|
||
<WTeaser | ||
v-if="!uid && profile.type !== 'City' && profile.place" | ||
:title="$t('profile.invite.header', { count: invitesLeft })" | ||
|
@@ -286,6 +279,7 @@ | |
|
||
<script> | ||
import { computed, onMounted, ref } from 'vue-demi' | ||
import TOrderButton from './TOrderButton.vue' | ||
import { useApp } from '~/use/app' | ||
import { useAuth } from '~/use/auth' | ||
import { useProfiles } from '~/use/profiles' | ||
|
@@ -302,6 +296,9 @@ import { | |
import { useCities } from '~/use/cities' | ||
|
||
export default { | ||
components: { | ||
TOrderButton, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nuxt is doing auto-import of components. No need to define components, they are already available. |
||
}, | ||
props: { | ||
profile: { | ||
type: Object, | ||
|
@@ -311,7 +308,7 @@ export default { | |
head() { | ||
return getMeta('profiles', this.profile) | ||
}, | ||
setup(props, { root }) { | ||
setup(props) { | ||
const internationalChatLink = 'https://t.me/+Vxw15sDG-dWpqHDj' | ||
const { uid, isAdmin, can } = useAuth() | ||
const { profileFields } = useProfiles() | ||
|
@@ -357,17 +354,12 @@ export default { | |
intro.visible = true | ||
} | ||
} | ||
|
||
const events = ref([]) | ||
const loaded = ref(false) | ||
|
||
const subscribersCount = computed(() => { | ||
return props.profile?.watch?.count || 0 | ||
}) | ||
|
||
onMounted(async () => { | ||
let result = [] | ||
|
||
if (props.profile.username === 'Travel') { | ||
result = await getFestivals() | ||
} else if (props.profile.type === 'City') { | ||
|
@@ -391,15 +383,11 @@ export default { | |
), | ||
] | ||
} | ||
|
||
events.value = result | ||
loaded.value = true | ||
}) | ||
|
||
return { | ||
internationalChatLink, | ||
intro, | ||
loaded, | ||
uid, | ||
can, | ||
getExcerpt, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't delete this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't delete it just renamed it to .env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you shouldn't rename it. you should copy it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you see in this pull request, it shows that you deleted this file. revert this change.