Onboarding changes (#347)

* modal

* Finish tutorial phase

* Finish onboarding, tutorial, and url front end handlng

* Run lint

* Update pnpm-lock.yaml

* Fixed bad refactor

* Fixed #341

* lint

* Fixes #315

* Update ModInstallModal.vue

* Initial onboarding changes

* importing card

* Run lint

* Update ImportingCard.vue

* Fixed home page errors

* Fixes

* Linter

* Login page

* Tweaks

* Update ImportingCard.vue

* Onboarding finishing changes

* Linter

* update to new auth

* bump version

* backend for linking

---------

Co-authored-by: Jai A <jaiagr+gpg@pm.me>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
Adrian O.V
2023-08-03 11:07:35 -04:00
committed by GitHub
parent 69645eafd0
commit ddbd08bc8c
52 changed files with 4151 additions and 75 deletions

View File

@@ -2,10 +2,13 @@
<Card
class="card button-base"
@click="
$router.push({
path: `/project/${project.project_id}/`,
query: { i: props.instance ? props.instance.path : undefined },
})
() => {
emits('open')
$router.push({
path: `/project/${project.project_id ?? project.id}/`,
query: { i: props.instance ? props.instance.path : undefined },
})
}
"
>
<div class="icon">
@@ -14,7 +17,7 @@
<div class="content-wrapper">
<div class="title joined-text">
<h2>{{ project.title }}</h2>
<span>by {{ project.author }}</span>
<span v-if="project.author">by {{ project.author }}</span>
</div>
<div class="description">
{{ project.description }}
@@ -42,14 +45,14 @@
</div>
<div class="badge">
<HeartIcon />
{{ formatNumber(project.follows) }}
{{ formatNumber(project.follows ?? project.followers) }}
</div>
<div class="badge">
<CalendarIcon />
{{ formatCategory(dayjs(project.date_modified).fromNow()) }}
{{ formatCategory(dayjs(project.date_modified ?? project.updated).fromNow()) }}
</div>
</div>
<div class="install">
<div v-if="project.author" class="install">
<Button color="primary" :disabled="installed || installing" @click.stop="install()">
<DownloadIcon v-if="!installed" />
<CheckIcon v-else />
@@ -124,6 +127,8 @@ const props = defineProps({
},
})
const emits = defineEmits(['open'])
const installing = ref(false)
const installed = ref(props.installed)