Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
56 lines
1.2 KiB
Vue
56 lines
1.2 KiB
Vue
<script>
|
|
export default {
|
|
name: 'OnboardingStep',
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
isActive: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
isComplete: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="flex items-center gap-2 p-2 text-lg font-bold mb-6 relative before:absolute before:h-10 before:w-[1px] before:bg-n-slate-3 before:-bottom-8 before:left-[24px] hide-before-of-last"
|
|
:class="{
|
|
'text-n-brand ': isActive,
|
|
'text-n-slate-6': !isActive || isComplete,
|
|
'before:bg-n-brand': !isActive && isComplete,
|
|
}"
|
|
>
|
|
<div
|
|
class="grid w-8 h-8 border border-solid rounded-full place-content-center"
|
|
:class="{
|
|
'border-n-brand': !isActive || isComplete,
|
|
'border-n-weak': !isActive && !isComplete,
|
|
'text-n-brand': isComplete,
|
|
}"
|
|
>
|
|
<fluent-icon v-if="isComplete" size="20" icon="checkmark" />
|
|
<fluent-icon v-else size="20" :icon="icon" />
|
|
</div>
|
|
<span>
|
|
{{ title }}
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.hide-before-of-last:last-child::before {
|
|
display: none;
|
|
}
|
|
</style>
|