@molecule/app-home-page-vue

Feature · home-page · App (browser) · v1.1.1 · Apache-2.0

Authenticated home page rendering a personalized greeting (h2 with user name or fallback). Reads auth + i18n; styled via ClassMap.

npm install @molecule/app-home-page-vue

npm · Source on GitHub

How it works

@molecule/app-home-page-vue is a ready-made home-page feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.

import { createApp, h } from 'vue'
import { Home } from '@molecule/app-home-page-vue'

createApp({ render: () => h(Home) }).mount('#app')

Works with: @molecule/app-auth, @molecule/app-ui, @molecule/app-ui-vue, @molecule/app-vue

Reference

<Home /> (Vue) — authenticated home page with personalized greeting.

The Vue counterpart of @molecule/app-home-page-react: same export, same DOM for the same input. Renders a single H2 of the form {home.greeting}{name|email|home.world}! using the universal common-locale bond. Used as the default post-login landing page when the app has no app-specific dashboard.

Replaces the byte-identical pages/Home.tsx shipped by 19 of the 38 flagship apps that have an authenticated Home route. Apps that override home.greeting per-app (e.g. note-taking's "Hello, {{name}}.") get the override automatically — the page reads the resolved translation, which spreads the bond default beneath any per-app override.

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

import { createApp, h } from 'vue'
import { Home } from '@molecule/app-home-page-vue'

createApp({ render: () => h(Home) }).mount('#app')

Type

feature

Installation

npm install @molecule/app-home-page-vue @molecule/app-auth @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue

API

Constants

Home

Authenticated home page — a personalized greeting headline.

Reads auth and i18n reactively: a sign-in, a sign-out or a locale switch anywhere in the app re-renders the headline, the way React's useAuth() / useTranslation() re-render on one.

const Home: DefineComponent<
  {},
  () => ReturnType<typeof h>,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<{}> & Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>

Returns: The Vue Home component.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-auth ^3.0.0
  • @molecule/app-ui ^1.0.1
  • @molecule/app-ui-vue ^1.1.0
  • @molecule/app-vue ^3.5.0 || ^4.0.0
  • vue ^3.4.0

Runtime Dependencies

  • @molecule/app-auth

  • @molecule/app-ui

  • @molecule/app-ui-vue

  • @molecule/app-vue

  • vue

  • Calls useAuth() and useTranslation() — both THROW unless the app is installed with moleculePlugin (from @molecule/app-vue) configured with auth and i18n (scaffolded apps do this in main.ts).

  • home.greeting / home.world have NO inline English fallback: they resolve from @molecule/app-locales-common, which the app's i18n setup merges automatically. A custom i18n setup must register the common bond or the raw keys render on screen.