Skip to content

Commit c44b052

Browse files
committed
feat(account): adjust inputs
1 parent b347a77 commit c44b052

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/app/src/pages/Account.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<template>
22
<main class="wb-screen w-full flex flex-row justify-center flex-wrap gap-20 items-center bg-theme-background-2">
3-
<section class="flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-4">
3+
<section class="relative left-25 flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-4">
44
<h2 class="font-bold text-3xl">{{ t('account.common.title') }}</h2>
55
<h3 class="font-bold text-3xl">{{ t('account.common.price') }}</h3>
66
<p class="font-raleway text-lg text-center">{{ t('account.common.description') }}</p>
77
<Button @click="onCreateAccount('common')">{{ t('account.common.enter') }}</Button>
88
</section>
9-
<section class="flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-3">
9+
<section class="flex relative top-8 text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-3">
1010
<h2 class="font-bold text-3xl">{{ t('account.adventure.title') }}</h2>
1111
<h3 class="font-bold text-3xl">{{ t('account.adventure.price') }}</h3>
1212
<p class="font-raleway text-lg text-center">{{ t('account.adventure.description') }}</p>
1313
<Button @click="onCreateAccount('adventure')">{{ t('account.adventure.enter') }}</Button>
1414
</section>
15-
<section class="flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-1">
15+
<section class="relative right-25 flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-1">
1616
<h2 class="font-bold text-3xl">{{ t('account.force.title') }}</h2>
1717
<h3 class="font-bold text-3xl">{{ t('account.force.price') }}</h3>
1818
<p class="font-raleway text-lg text-center">{{ t('account.force.description') }}</p>

packages/plugin-backend/src/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export const DataSet = (
99
) => {
1010
On.backend().PluginRegisterUser(emitter, [
1111
// TODO: backend types
12-
async (data: unknown) => {
12+
async (data: Record<string, any>) => {
1313
const { payload } = await ofetch('/api/users', {
1414
method: 'POST',
15-
body: { some: 'json' },
15+
body: data,
1616
})
1717

1818
stores.AUTH.user = payload

packages/plugin-core/src/on.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ export const backend = () => {
166166
emitter: PluginTypes.PluginEmitter,
167167
content: PluginTypes.PluginContentOn,
168168
) => {
169-
emitter.on('plugin-backend-register-user', (index: number) => {
170-
if (!index) return
169+
emitter.on('plugin-backend-register-user', (type: 'common' | 'adventure' | 'force') => {
170+
if (!type) return
171171

172172
const created = content[0]
173173

174-
created && created(index)
174+
created && created(type)
175175
})
176176
}
177177

0 commit comments

Comments
 (0)