Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 21, 2022
1 parent cc55998 commit b093fe8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
duration: 800,
},
}"
class="text-white font-thin my-2 lg:my-10 text-base lg:text-lg"
class="text-white font-thin my-2 text-base lg:text-lg text-center"
>
{{ t('about.entity.description') }}
</p>
Expand Down Expand Up @@ -72,7 +72,7 @@
:delay="500"
:content="
t('editor.project.control.title', {
suffix: PROJECT.totalPagesCreated + 1,
suffix: 1,
})
"
type="heading-one"
Expand Down Expand Up @@ -170,7 +170,7 @@
>
{{
t('editor.project.control.title', {
suffix: PROJECT.totalPagesCreated + 1,
suffix: 1,
})
}}
</h2>
Expand All @@ -188,12 +188,9 @@
</template>

<script setup lang="ts">
import { useProjectStore } from '@/store/project'
import { usePopulate } from '@/use/populate'
import { useI18n } from 'vue-i18n'
const PROJECT = useProjectStore()
const { t } = useI18n()
const populate = usePopulate()
</script>
6 changes: 5 additions & 1 deletion packages/better-write-app/src/use/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export const useLanding = () => {

const isNecessaryLogin = ref<boolean>(!!route.query.login)

if (s?.auth?.user()) isNecessaryLogin.value = false
if (s?.auth?.user()) {
isNecessaryLogin.value = false

if (!!route.query.login) router.push('/')
}

onMounted(() => {
document.body.removeAttribute('class')
Expand Down
6 changes: 2 additions & 4 deletions packages/better-write-app/src/use/populate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const usePopulate = () => {
title: project.name,
entities: [
factory.entity().create('heading-one', title || project.name),
factory.entity().create('paragraph', debug().names().paragraph()),
factory.entity().create('paragraph', ''),
],
createdAt: useFormat().actually(),
updatedAt: useFormat().actually(),
Expand Down Expand Up @@ -87,9 +87,7 @@ export const usePopulate = () => {
{
id: 1,
title: project.name,
entities: [
factory.entity().create('paragraph', debug().names().paragraph()),
],
entities: [factory.entity().create('paragraph', '')],
createdAt: useFormat().actually(),
updatedAt: useFormat().actually(),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/better-write-app/src/use/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const useProject = () => {
if (!breakpoints.isMobile().value && type === 'creative')
ABSOLUTE.aside = true

await local.onSaveProject()
await local.onSaveProject(false)
}

return { new: n }
Expand Down

0 comments on commit b093fe8

Please sign in to comment.