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/
57 lines
1.2 KiB
Vue
57 lines
1.2 KiB
Vue
<script setup>
|
|
import Button from 'dashboard/components-next/button/Button.vue';
|
|
|
|
const props = defineProps({
|
|
identifier: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
issueUrl: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
});
|
|
|
|
const emit = defineEmits(['unlinkIssue']);
|
|
|
|
const unlinkIssue = () => {
|
|
emit('unlinkIssue');
|
|
};
|
|
|
|
const openIssue = () => {
|
|
window.open(props.issueUrl, '_blank');
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex items-center justify-between">
|
|
<div
|
|
class="flex items-center gap-2 px-2 py-1.5 border rounded-lg border-n-strong"
|
|
>
|
|
<div class="flex items-center gap-1">
|
|
<fluent-icon
|
|
icon="linear"
|
|
size="16"
|
|
class="text-[#5E6AD2]"
|
|
view-box="0 0 19 19"
|
|
/>
|
|
<span class="text-xs font-medium text-n-slate-12">
|
|
{{ identifier }}
|
|
</span>
|
|
</div>
|
|
<span class="w-px h-3 text-n-weak bg-n-weak" />
|
|
|
|
<Button
|
|
link
|
|
xs
|
|
slate
|
|
icon="i-lucide-arrow-up-right"
|
|
class="!size-4"
|
|
@click="openIssue"
|
|
/>
|
|
</div>
|
|
|
|
<Button ghost xs slate icon="i-lucide-unlink" @click="unlinkIssue" />
|
|
</div>
|
|
</template>
|