refactor: 拆分品牌业务类型与页面方案
CI / Static checks (push) Has been cancelled
CI / Production build (push) Has been cancelled
CI / API integration (push) Has been cancelled
CI / Taro builds (acheng-campus-food) (push) Has been cancelled
CI / Taro builds (atelier-solopreneur) (push) Has been cancelled
CI / Taro builds (linjing-editorial) (push) Has been cancelled
CI / Browser regression (push) Has been cancelled

This commit is contained in:
que01 committed 2026-10-20 17:04:30 +08:00
1 parent f02e2cafbb
commit 0d9f4a7d6f
86 files changed
+4111 -1543

No files matched your search

+13
View File
@@ -11,10 +11,15 @@ export type {
export type {
AdminBrandMember,
AdminBrandMembership,
BrandCreationOptions,
BrandCreationOptionBusiness,
BrandCreationOptionPageScheme,
BrandPageSchemeOptions,
BrandPresentationUpdate,
BrandProfile,
BrandReleaseSummary,
BrandUpdate,
CreateBrandInput,
} from "./types/brand.js";
export type { MiniAppReleaseSettings, MiniAppReleaseTask } from "./types/brand.js";
export type { CapabilityInstallation } from "./types/capability.js";
@@ -192,6 +197,11 @@ export class ApiClient
this.resources.brand.getAdminBrand(...arguments_);
listAdminBrands = (...arguments_: Parameters<BrandMethods["listAdminBrands"]>) =>
this.resources.brand.listAdminBrands(...arguments_);
getAdminBrandCreationOptions = (
...arguments_: Parameters<BrandMethods["getAdminBrandCreationOptions"]>
) => this.resources.brand.getAdminBrandCreationOptions(...arguments_);
createAdminBrand = (...arguments_: Parameters<BrandMethods["createAdminBrand"]>) =>
this.resources.brand.createAdminBrand(...arguments_);
switchAdminBrand = (...arguments_: Parameters<BrandMethods["switchAdminBrand"]>) =>
this.resources.brand.switchAdminBrand(...arguments_);
listAdminMembers = (...arguments_: Parameters<BrandMethods["listAdminMembers"]>) =>
@@ -291,6 +301,9 @@ export class ApiClient
getAdminTemplateOperationFailures = (
...arguments_: Parameters<TemplateMethods["getAdminTemplateOperationFailures"]>
) => this.resources.template.getAdminTemplateOperationFailures(...arguments_);
getAdminPageSchemeOptions = (
...arguments_: Parameters<TemplateMethods["getAdminPageSchemeOptions"]>
) => this.resources.template.getAdminPageSchemeOptions(...arguments_);
getPublicOffering = (...arguments_: Parameters<OfferingMethods["getPublicOffering"]>) =>
this.resources.offering.getPublicOffering(...arguments_);
listPublicOfferings = (...arguments_: Parameters<OfferingMethods["listPublicOfferings"]>) =>
@@ -2,9 +2,11 @@ import type { RequestFn } from "../client/request.js";
import type {
AdminBrandMember,
AdminBrandMembership,
BrandCreationOptions,
BrandPresentationUpdate,
BrandProfile,
BrandReleaseSummary,
CreateBrandInput,
MiniAppReleaseTask,
MiniAppReleaseSettings,
BrandUpdate,
@@ -13,6 +15,11 @@ import type {
export interface BrandMethods {
getAdminBrand(): Promise<BrandProfile>;
listAdminBrands(): Promise<AdminBrandMembership[]>;
getAdminBrandCreationOptions(): Promise<BrandCreationOptions>;
createAdminBrand(body: CreateBrandInput): Promise<{
role: string;
brand: AdminBrandMembership["brand"];
}>;
switchAdminBrand(
brandId: string,
): Promise<{ role: string; brand: AdminBrandMembership["brand"] }>;
@@ -74,6 +81,8 @@ export function brandMethods({ request }: { request: RequestFn }): BrandMethods
return {
getAdminBrand: () => request("/admin/config/brand"),
listAdminBrands: () => request("/admin/brands"),
getAdminBrandCreationOptions: () => request("/admin/brands/creation-options"),
createAdminBrand: (body) => request("/admin/brands", { method: "POST", body }),
switchAdminBrand: (brandId) =>
request(`/admin/brands/${encodeURIComponent(brandId)}/switch`, { method: "POST" }),
listAdminMembers: () => request("/admin/brands/members"),
@@ -1,6 +1,6 @@
import type { BrandTemplateKey, RuntimeWorkspace } from "@personal-brand/types";
import type { RequestFn } from "../client/request.js";
import type { BrandProfile } from "../types/brand.js";
import type { BrandPageSchemeOptions, BrandProfile } from "../types/brand.js";
import type { CapabilityWithMetadata } from "../types/capability.js";
import type { BrandFieldDefinition } from "../types/field.js";
import type { Offering } from "../types/offering.js";
@@ -8,6 +8,7 @@ import type { AdminTemplateContent } from "../types/template.js";
import type { BrandTemplateDefinition } from "../types/template-definition.js";
export interface TemplateMethods {
getAdminPageSchemeOptions(): Promise<BrandPageSchemeOptions>;
listAdminTemplatePackages(params?: {
page?: number;
pageSize?: number;
@@ -310,6 +311,7 @@ export interface TemplatePackageImportResult {
export function templateMethods({ request }: { request: RequestFn }): TemplateMethods {
return {
getAdminPageSchemeOptions: () => request("/admin/workspace/template/options"),
listAdminTemplatePackages: (params = {}) => {
const query = [
params.page === undefined ? null : `page=${encodeURIComponent(String(params.page))}`,
+34 -2
View File
@@ -2,7 +2,7 @@ import type { BrandTemplateKey } from "@personal-brand/types";
export interface BrandProfile {
id: string;
slug?: string;
slug: string;
name: string;
templateKey: BrandTemplateKey;
tagline: string | null;
@@ -20,7 +20,39 @@ export interface BrandProfile {
export interface AdminBrandMembership {
id: string;
role: string;
brand: Pick<BrandProfile, "id" | "name" | "templateKey"> & { slug?: string };
brand: Pick<BrandProfile, "id" | "name" | "templateKey" | "slug">;
}
export interface BrandCreationOptionBusiness {
key: BrandTemplateKey;
name: string;
description: string;
}
export interface BrandCreationOptionPageScheme {
templatePackageVersionId: string;
name: string;
description: string;
version: string;
supportedBusinessTypes: BrandTemplateKey[];
isLatestForPackage: boolean;
}
export interface BrandCreationOptions {
businesses: BrandCreationOptionBusiness[];
pageSchemes: BrandCreationOptionPageScheme[];
}
export interface BrandPageSchemeOptions {
business: BrandCreationOptionBusiness;
pageSchemes: BrandCreationOptionPageScheme[];
}
export interface CreateBrandInput {
name: string;
slug: string;
businessType: BrandTemplateKey;
templatePackageVersionId: string;
}
export interface AdminBrandMember {
+35 -1
View File
@@ -101,6 +101,40 @@ test("品牌切换客户端不再接收 token", async () => {
]);
});
test("创建品牌与品牌内页面方案选项使用各自授权接口", async () => {
const calls: Array<{ url: string; method?: string; body?: string }> = [];
const client = new ApiClient({
baseUrl: "http://api.test",
token: "owner-token",
fetcher: async (url, init) => {
calls.push({ url, method: init?.method, body: init?.body });
return response({});
},
});
await client.getAdminBrandCreationOptions();
await client.createAdminBrand({
name: "林境门窗",
slug: "linjing-windows",
businessType: "doors",
templatePackageVersionId: "version-1",
});
await client.getAdminPageSchemeOptions();
assert.deepEqual(calls, [
{ url: "http://api.test/admin/brands/creation-options", method: "GET", body: undefined },
{
url: "http://api.test/admin/brands",
method: "POST",
body: JSON.stringify({
name: "林境门窗",
slug: "linjing-windows",
businessType: "doors",
templatePackageVersionId: "version-1",
}),
},
{ url: "http://api.test/admin/workspace/template/options", method: "GET", body: undefined },
]);
});
test("客户端将统一错误响应转换为 ApiClientError", async () => {
const client = new ApiClient({
baseUrl: "http://api.test",
@@ -206,7 +240,7 @@ test("模板目录客户端发送分页并支持版本发布和审计", async ()
]);
});
test("模板升级和回滚提交预览版本、checksum 与逐项保留确认", async () => {
test("模板升级和回滚提交预览版本、checksum 与全部保留确认", async () => {
const calls: Array<{ url: string; method?: string; body?: string }> = [];
const client = new ApiClient({
baseUrl: "http://api.test",
@@ -4417,12 +4417,11 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
{
"packageKey": "linjing-editorial",
"version": "1.0.6",
"version": "1.0.7",
"displayName": "林境建筑画册",
"defaultBrandSlug": "linjing-doors",
"runtimeContract": "1.0",
"supportedIndustryTemplates": [
"personal",
"doors"
],
"entrypoints": {
@@ -5765,7 +5764,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "序章·入户门",
"summary": "为别墅入口定制的整樘门系统",
"categoryKey": "entrance-door",
"coverUrl": "/assets/content/doors-hero.jpg",
"coverUrl": "/assets/content/entry-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「万籁」重型天地轴入户系统",
@@ -5784,7 +5783,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/doors-hero.jpg",
"url": "/assets/content/entry-door.jpg",
"alt": "",
"type": "image"
}
@@ -5796,7 +5795,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "庭院·边界门",
"summary": "连接建筑与庭院的定制门",
"categoryKey": "garden-door",
"coverUrl": "/assets/content/doors-yard-gate.jpg",
"coverUrl": "/assets/content/courtyard-gate.jpg",
"priceText": "按项目确认",
"config": {
"series": "「虚实」透光私家庭院门",
@@ -5815,7 +5814,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/doors-yard-gate.jpg",
"url": "/assets/content/courtyard-gate.jpg",
"alt": "",
"type": "image"
}
@@ -5827,7 +5826,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "室内·静谧门",
"summary": "统一室内空间秩序的户内门",
"categoryKey": "interior-door",
"coverUrl": "/assets/content/doors-room-door.jpg",
"coverUrl": "/assets/content/interior-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「空灵」2.8m - 3.2m 满高通顶系统",
@@ -5846,7 +5845,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/doors-room-door.jpg",
"url": "/assets/content/interior-door.jpg",
"alt": "",
"type": "image"
}
@@ -5858,7 +5857,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "一对一门系统设计咨询",
"summary": "从现场到方案的完整设计沟通",
"categoryKey": "custom",
"coverUrl": "/assets/content/personal-consulting.jpg",
"coverUrl": "/assets/content/design-consultation.jpg",
"priceText": "按项目确认",
"config": {
"series": "「无垠」密室及背景墙融合门",
@@ -5877,7 +5876,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"url": "/assets/content/design-consultation.jpg",
"alt": "",
"type": "image"
}
@@ -6100,8 +6099,8 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"phone": "186-0218-9908",
"wechat": "LIN-ATELIER-2024",
"studioAddress": "上海市静安区威海路设计中心 A 座 / 杭州良渚研造工坊",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/doors-hero.jpg",
"avatarUrl": "/assets/content/founder-portrait.jpg",
"heroImage": "/assets/content/entry-door.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
@@ -6181,151 +6180,6 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
]
}
}
},
"personal": {
"templateKey": "personal",
"inquiryFormName": "合作咨询表单",
"offerings": [
{
"kind": "service",
"name": "示例·品牌定位咨询",
"summary": "梳理品牌定位与下一步行动。",
"categoryKey": "consulting",
"coverUrl": "/assets/content/personal-consulting.jpg",
"priceText": "按需求确认",
"config": {
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"alt": "",
"type": "image"
}
]
}
},
{
"kind": "service",
"name": "示例·长期顾问支持",
"summary": "围绕表达和转化提供持续支持。",
"categoryKey": "advisory",
"coverUrl": "/assets/content/personal-advisory.jpg",
"priceText": "按服务周期确认",
"config": {
"media": [
{
"url": "/assets/content/personal-advisory.jpg",
"alt": "",
"type": "image"
}
]
}
}
],
"trustContent": [
{
"type": "credential",
"title": "关于主理人",
"content": "示例内容,待品牌主理人完善。"
},
{
"type": "process",
"title": "合作方法",
"content": "示例内容,待品牌主理人完善。"
}
],
"fields": [
{
"key": "name",
"label": "您的称呼",
"type": "text",
"required": true
},
{
"key": "phone",
"label": "联系方式",
"type": "phone",
"required": true
},
{
"key": "remark",
"label": "合作需求",
"type": "textarea",
"required": true
}
],
"capabilityKey": "inquiry",
"brandConfig": {
"templateData": {
"designPhilosophy": "先厘清问题,再设计表达"
},
"title": "品牌策略顾问",
"slogan": "用清晰的定位与可执行的表达,让专业被看见。",
"phone": "",
"wechat": "",
"studioAddress": "上海市徐汇区创意园区",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/personal-consulting.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
"proofEyebrow": "专业经验与合作成果",
"proofTitle": "经验与方法",
"manifestoEyebrow": "工作原则",
"manifestoTitle": "先厘清问题,再设计表达",
"worksEyebrow": "合作方式",
"worksTitle": "品牌策略与顾问服务",
"worksAction": "查看全部 →"
},
"offerings": {
"title": "合作方式",
"subtitle": "围绕定位、表达与业务转化,选择适合当前阶段的支持。",
"materialLabel": "包含:",
"hardwareLabel": "定制说明:",
"detailAction": "查看详情 →",
"inquiryAction": "发起咨询"
},
"detail": {
"priceLabel": "价格参考",
"spaceLabel": "适合场景",
"backgroundTitle": "项目背景",
"conceptTitle": "设计思路",
"craftsTitle": "交付要点",
"materialsTitle": "材料与说明",
"inquiryAction": "发起咨询",
"inquiryHint": "提交信息后由主理人与您沟通。"
},
"profile": {
"phoneLabel": "联系电话",
"wechatLabel": "微信",
"addressLabel": "工作地点",
"callAction": "呼叫",
"copyAction": "复制",
"recordsTitle": "我的咨询记录",
"recordsCountUnit": "条记录"
},
"inquiry": {
"eyebrow": "COLLABORATION",
"title": "合作咨询",
"subtitle": "留下你的需求与目标,主理人会尽快联系。",
"submitLabel": "提交咨询"
},
"success": {
"eyebrow": "COLLABORATION",
"title": "已收到你的咨询",
"intro": "主理人会尽快与你联系。",
"recordsAction": "查看咨询记录",
"homeAction": "返回首页"
},
"records": {
"title": "我的咨询记录",
"createAction": "新增咨询",
"emptyTitle": "还没有咨询记录",
"emptyDescription": "提交一次咨询,开始与你的主理人沟通。",
"emptyAction": "开始咨询"
}
},
"founder": "示例主理人"
}
}
},
"pages": [
@@ -6335,7 +6189,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
],
"visualTemplateKey": "linjing-editorial",
"visualPresentation": {
"description": "适合高端定制、建筑作品和项目型个人品牌。",
"description": "适合高端定制的门窗、建筑入口和私宅项目。",
"variants": {
"hero": "architectural",
"offeringList": "editorial",
@@ -6389,7 +6243,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "序章·入户门",
"summary": "为别墅入口定制的整樘门系统",
"categoryKey": "entrance-door",
"coverUrl": "/assets/content/doors-hero.jpg",
"coverUrl": "/assets/content/entry-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「万籁」重型天地轴入户系统",
@@ -6408,7 +6262,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/doors-hero.jpg",
"url": "/assets/content/entry-door.jpg",
"alt": "",
"type": "image"
}
@@ -6420,7 +6274,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "庭院·边界门",
"summary": "连接建筑与庭院的定制门",
"categoryKey": "garden-door",
"coverUrl": "/assets/content/doors-yard-gate.jpg",
"coverUrl": "/assets/content/courtyard-gate.jpg",
"priceText": "按项目确认",
"config": {
"series": "「虚实」透光私家庭院门",
@@ -6439,7 +6293,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/doors-yard-gate.jpg",
"url": "/assets/content/courtyard-gate.jpg",
"alt": "",
"type": "image"
}
@@ -6451,7 +6305,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "室内·静谧门",
"summary": "统一室内空间秩序的户内门",
"categoryKey": "interior-door",
"coverUrl": "/assets/content/doors-room-door.jpg",
"coverUrl": "/assets/content/interior-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「空灵」2.8m - 3.2m 满高通顶系统",
@@ -6470,7 +6324,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/doors-room-door.jpg",
"url": "/assets/content/interior-door.jpg",
"alt": "",
"type": "image"
}
@@ -6482,7 +6336,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"name": "一对一门系统设计咨询",
"summary": "从现场到方案的完整设计沟通",
"categoryKey": "custom",
"coverUrl": "/assets/content/personal-consulting.jpg",
"coverUrl": "/assets/content/design-consultation.jpg",
"priceText": "按项目确认",
"config": {
"series": "「无垠」密室及背景墙融合门",
@@ -6501,7 +6355,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
},
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"url": "/assets/content/design-consultation.jpg",
"alt": "",
"type": "image"
}
@@ -6724,8 +6578,8 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"phone": "186-0218-9908",
"wechat": "LIN-ATELIER-2024",
"studioAddress": "上海市静安区威海路设计中心 A 座 / 杭州良渚研造工坊",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/doors-hero.jpg",
"avatarUrl": "/assets/content/founder-portrait.jpg",
"heroImage": "/assets/content/entry-door.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
@@ -6811,168 +6665,9 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[
"customerRecords": "disabled",
"contactActions": "disabled"
}
},
"personal": {
"schemaVersion": "1",
"brand": {
"name": "林境建筑画册 · 预览",
"tagline": "用于独立预览的模板演示内容",
"description": "此内容仅用于平台模板预览,不代表真实品牌或客户案例。",
"deliveryNote": "演示预览已禁用真实咨询和联系操作。"
},
"content": {
"templateKey": "personal",
"inquiryFormName": "合作咨询表单",
"offerings": [
{
"kind": "service",
"name": "示例·品牌定位咨询",
"summary": "梳理品牌定位与下一步行动。",
"categoryKey": "consulting",
"coverUrl": "/assets/content/personal-consulting.jpg",
"priceText": "按需求确认",
"config": {
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"alt": "",
"type": "image"
}
]
}
},
{
"kind": "service",
"name": "示例·长期顾问支持",
"summary": "围绕表达和转化提供持续支持。",
"categoryKey": "advisory",
"coverUrl": "/assets/content/personal-advisory.jpg",
"priceText": "按服务周期确认",
"config": {
"media": [
{
"url": "/assets/content/personal-advisory.jpg",
"alt": "",
"type": "image"
}
]
}
}
],
"trustContent": [
{
"type": "credential",
"title": "关于主理人",
"content": "示例内容,待品牌主理人完善。"
},
{
"type": "process",
"title": "合作方法",
"content": "示例内容,待品牌主理人完善。"
}
],
"fields": [
{
"key": "name",
"label": "您的称呼",
"type": "text",
"required": true
},
{
"key": "phone",
"label": "联系方式",
"type": "phone",
"required": true
},
{
"key": "remark",
"label": "合作需求",
"type": "textarea",
"required": true
}
],
"capabilityKey": "inquiry",
"brandConfig": {
"templateData": {
"designPhilosophy": "先厘清问题,再设计表达"
},
"title": "品牌策略顾问",
"slogan": "用清晰的定位与可执行的表达,让专业被看见。",
"phone": "",
"wechat": "",
"studioAddress": "上海市徐汇区创意园区",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/personal-consulting.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
"proofEyebrow": "专业经验与合作成果",
"proofTitle": "经验与方法",
"manifestoEyebrow": "工作原则",
"manifestoTitle": "先厘清问题,再设计表达",
"worksEyebrow": "合作方式",
"worksTitle": "品牌策略与顾问服务",
"worksAction": "查看全部 →"
},
"offerings": {
"title": "合作方式",
"subtitle": "围绕定位、表达与业务转化,选择适合当前阶段的支持。",
"materialLabel": "包含:",
"hardwareLabel": "定制说明:",
"detailAction": "查看详情 →",
"inquiryAction": "发起咨询"
},
"detail": {
"priceLabel": "价格参考",
"spaceLabel": "适合场景",
"backgroundTitle": "项目背景",
"conceptTitle": "设计思路",
"craftsTitle": "交付要点",
"materialsTitle": "材料与说明",
"inquiryAction": "发起咨询",
"inquiryHint": "提交信息后由主理人与您沟通。"
},
"profile": {
"phoneLabel": "联系电话",
"wechatLabel": "微信",
"addressLabel": "工作地点",
"callAction": "呼叫",
"copyAction": "复制",
"recordsTitle": "我的咨询记录",
"recordsCountUnit": "条记录"
},
"inquiry": {
"eyebrow": "COLLABORATION",
"title": "合作咨询",
"subtitle": "留下你的需求与目标,主理人会尽快联系。",
"submitLabel": "提交咨询"
},
"success": {
"eyebrow": "COLLABORATION",
"title": "已收到你的咨询",
"intro": "主理人会尽快与你联系。",
"recordsAction": "查看咨询记录",
"homeAction": "返回首页"
},
"records": {
"title": "我的咨询记录",
"createAction": "新增咨询",
"emptyTitle": "还没有咨询记录",
"emptyDescription": "提交一次咨询,开始与你的主理人沟通。",
"emptyAction": "开始咨询"
}
},
"founder": "示例主理人"
}
},
"safety": {
"submissions": "disabled",
"customerRecords": "disabled",
"contactActions": "disabled"
}
}
}
}
];
export const generatedTemplatePackageRegistryHash =
"6c629f916b92e889a8984fde3ffc8ea3cb39ba25542b070da1f029ae57665d73";
"06182e0005339404614b39e2051180d15bc6aa83f572194a7f4b7403650d3e8d";
@@ -1,3 +1,3 @@
# 林境建筑画册模板包
林境是个人品牌和项目型业务的编辑式视觉模板。页面只消费公共 Runtime Workspace。
林境是面向门窗与建筑入口项目的编辑式视觉模板,只适配 `doors` 业务类型。页面只消费公共 Runtime Workspace。
Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

@@ -1,6 +1,6 @@
{
"name": "@personal-brand/template-linjing-editorial",
"version": "1.0.6",
"version": "1.0.7",
"private": true,
"type": "module",
"files": [
+23 -327
View File
@@ -1,10 +1,10 @@
{
"packageKey": "linjing-editorial",
"version": "1.0.6",
"version": "1.0.7",
"displayName": "林境建筑画册",
"defaultBrandSlug": "linjing-doors",
"runtimeContract": "1.0",
"supportedIndustryTemplates": ["personal", "doors"],
"supportedIndustryTemplates": ["doors"],
"entrypoints": {
"home": "pages/index/index",
"offerings": "pages/services/index",
@@ -1329,7 +1329,7 @@
"name": "序章·入户门",
"summary": "为别墅入口定制的整樘门系统",
"categoryKey": "entrance-door",
"coverUrl": "/assets/content/doors-hero.jpg",
"coverUrl": "/assets/content/entry-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「万籁」重型天地轴入户系统",
@@ -1348,7 +1348,7 @@
},
"media": [
{
"url": "/assets/content/doors-hero.jpg",
"url": "/assets/content/entry-door.jpg",
"alt": "",
"type": "image"
}
@@ -1360,7 +1360,7 @@
"name": "庭院·边界门",
"summary": "连接建筑与庭院的定制门",
"categoryKey": "garden-door",
"coverUrl": "/assets/content/doors-yard-gate.jpg",
"coverUrl": "/assets/content/courtyard-gate.jpg",
"priceText": "按项目确认",
"config": {
"series": "「虚实」透光私家庭院门",
@@ -1379,7 +1379,7 @@
},
"media": [
{
"url": "/assets/content/doors-yard-gate.jpg",
"url": "/assets/content/courtyard-gate.jpg",
"alt": "",
"type": "image"
}
@@ -1391,7 +1391,7 @@
"name": "室内·静谧门",
"summary": "统一室内空间秩序的户内门",
"categoryKey": "interior-door",
"coverUrl": "/assets/content/doors-room-door.jpg",
"coverUrl": "/assets/content/interior-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「空灵」2.8m - 3.2m 满高通顶系统",
@@ -1410,7 +1410,7 @@
},
"media": [
{
"url": "/assets/content/doors-room-door.jpg",
"url": "/assets/content/interior-door.jpg",
"alt": "",
"type": "image"
}
@@ -1422,7 +1422,7 @@
"name": "一对一门系统设计咨询",
"summary": "从现场到方案的完整设计沟通",
"categoryKey": "custom",
"coverUrl": "/assets/content/personal-consulting.jpg",
"coverUrl": "/assets/content/design-consultation.jpg",
"priceText": "按项目确认",
"config": {
"series": "「无垠」密室及背景墙融合门",
@@ -1441,7 +1441,7 @@
},
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"url": "/assets/content/design-consultation.jpg",
"alt": "",
"type": "image"
}
@@ -1664,8 +1664,8 @@
"phone": "186-0218-9908",
"wechat": "LIN-ATELIER-2024",
"studioAddress": "上海市静安区威海路设计中心 A 座 / 杭州良渚研造工坊",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/doors-hero.jpg",
"avatarUrl": "/assets/content/founder-portrait.jpg",
"heroImage": "/assets/content/entry-door.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
@@ -1745,157 +1745,12 @@
]
}
}
},
"personal": {
"templateKey": "personal",
"inquiryFormName": "合作咨询表单",
"offerings": [
{
"kind": "service",
"name": "示例·品牌定位咨询",
"summary": "梳理品牌定位与下一步行动。",
"categoryKey": "consulting",
"coverUrl": "/assets/content/personal-consulting.jpg",
"priceText": "按需求确认",
"config": {
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"alt": "",
"type": "image"
}
]
}
},
{
"kind": "service",
"name": "示例·长期顾问支持",
"summary": "围绕表达和转化提供持续支持。",
"categoryKey": "advisory",
"coverUrl": "/assets/content/personal-advisory.jpg",
"priceText": "按服务周期确认",
"config": {
"media": [
{
"url": "/assets/content/personal-advisory.jpg",
"alt": "",
"type": "image"
}
]
}
}
],
"trustContent": [
{
"type": "credential",
"title": "关于主理人",
"content": "示例内容,待品牌主理人完善。"
},
{
"type": "process",
"title": "合作方法",
"content": "示例内容,待品牌主理人完善。"
}
],
"fields": [
{
"key": "name",
"label": "您的称呼",
"type": "text",
"required": true
},
{
"key": "phone",
"label": "联系方式",
"type": "phone",
"required": true
},
{
"key": "remark",
"label": "合作需求",
"type": "textarea",
"required": true
}
],
"capabilityKey": "inquiry",
"brandConfig": {
"templateData": {
"designPhilosophy": "先厘清问题,再设计表达"
},
"title": "品牌策略顾问",
"slogan": "用清晰的定位与可执行的表达,让专业被看见。",
"phone": "",
"wechat": "",
"studioAddress": "上海市徐汇区创意园区",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/personal-consulting.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
"proofEyebrow": "专业经验与合作成果",
"proofTitle": "经验与方法",
"manifestoEyebrow": "工作原则",
"manifestoTitle": "先厘清问题,再设计表达",
"worksEyebrow": "合作方式",
"worksTitle": "品牌策略与顾问服务",
"worksAction": "查看全部 →"
},
"offerings": {
"title": "合作方式",
"subtitle": "围绕定位、表达与业务转化,选择适合当前阶段的支持。",
"materialLabel": "包含:",
"hardwareLabel": "定制说明:",
"detailAction": "查看详情 →",
"inquiryAction": "发起咨询"
},
"detail": {
"priceLabel": "价格参考",
"spaceLabel": "适合场景",
"backgroundTitle": "项目背景",
"conceptTitle": "设计思路",
"craftsTitle": "交付要点",
"materialsTitle": "材料与说明",
"inquiryAction": "发起咨询",
"inquiryHint": "提交信息后由主理人与您沟通。"
},
"profile": {
"phoneLabel": "联系电话",
"wechatLabel": "微信",
"addressLabel": "工作地点",
"callAction": "呼叫",
"copyAction": "复制",
"recordsTitle": "我的咨询记录",
"recordsCountUnit": "条记录"
},
"inquiry": {
"eyebrow": "COLLABORATION",
"title": "合作咨询",
"subtitle": "留下你的需求与目标,主理人会尽快联系。",
"submitLabel": "提交咨询"
},
"success": {
"eyebrow": "COLLABORATION",
"title": "已收到你的咨询",
"intro": "主理人会尽快与你联系。",
"recordsAction": "查看咨询记录",
"homeAction": "返回首页"
},
"records": {
"title": "我的咨询记录",
"createAction": "新增咨询",
"emptyTitle": "还没有咨询记录",
"emptyDescription": "提交一次咨询,开始与你的主理人沟通。",
"emptyAction": "开始咨询"
}
},
"founder": "示例主理人"
}
}
},
"pages": ["pages/index/index", "pages/services/index", "pages/bookings/index"],
"visualTemplateKey": "linjing-editorial",
"visualPresentation": {
"description": "适合高端定制、建筑作品和项目型个人品牌。",
"description": "适合高端定制的门窗、建筑入口和私宅项目。",
"variants": {
"hero": "architectural",
"offeringList": "editorial",
@@ -1937,7 +1792,7 @@
"name": "序章·入户门",
"summary": "为别墅入口定制的整樘门系统",
"categoryKey": "entrance-door",
"coverUrl": "/assets/content/doors-hero.jpg",
"coverUrl": "/assets/content/entry-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「万籁」重型天地轴入户系统",
@@ -1956,7 +1811,7 @@
},
"media": [
{
"url": "/assets/content/doors-hero.jpg",
"url": "/assets/content/entry-door.jpg",
"alt": "",
"type": "image"
}
@@ -1968,7 +1823,7 @@
"name": "庭院·边界门",
"summary": "连接建筑与庭院的定制门",
"categoryKey": "garden-door",
"coverUrl": "/assets/content/doors-yard-gate.jpg",
"coverUrl": "/assets/content/courtyard-gate.jpg",
"priceText": "按项目确认",
"config": {
"series": "「虚实」透光私家庭院门",
@@ -1987,7 +1842,7 @@
},
"media": [
{
"url": "/assets/content/doors-yard-gate.jpg",
"url": "/assets/content/courtyard-gate.jpg",
"alt": "",
"type": "image"
}
@@ -1999,7 +1854,7 @@
"name": "室内·静谧门",
"summary": "统一室内空间秩序的户内门",
"categoryKey": "interior-door",
"coverUrl": "/assets/content/doors-room-door.jpg",
"coverUrl": "/assets/content/interior-door.jpg",
"priceText": "按项目确认",
"config": {
"series": "「空灵」2.8m - 3.2m 满高通顶系统",
@@ -2018,7 +1873,7 @@
},
"media": [
{
"url": "/assets/content/doors-room-door.jpg",
"url": "/assets/content/interior-door.jpg",
"alt": "",
"type": "image"
}
@@ -2030,7 +1885,7 @@
"name": "一对一门系统设计咨询",
"summary": "从现场到方案的完整设计沟通",
"categoryKey": "custom",
"coverUrl": "/assets/content/personal-consulting.jpg",
"coverUrl": "/assets/content/design-consultation.jpg",
"priceText": "按项目确认",
"config": {
"series": "「无垠」密室及背景墙融合门",
@@ -2049,7 +1904,7 @@
},
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"url": "/assets/content/design-consultation.jpg",
"alt": "",
"type": "image"
}
@@ -2272,8 +2127,8 @@
"phone": "186-0218-9908",
"wechat": "LIN-ATELIER-2024",
"studioAddress": "上海市静安区威海路设计中心 A 座 / 杭州良渚研造工坊",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/doors-hero.jpg",
"avatarUrl": "/assets/content/founder-portrait.jpg",
"heroImage": "/assets/content/entry-door.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
@@ -2359,165 +2214,6 @@
"customerRecords": "disabled",
"contactActions": "disabled"
}
},
"personal": {
"schemaVersion": "1",
"brand": {
"name": "林境建筑画册 · 预览",
"tagline": "用于独立预览的模板演示内容",
"description": "此内容仅用于平台模板预览,不代表真实品牌或客户案例。",
"deliveryNote": "演示预览已禁用真实咨询和联系操作。"
},
"content": {
"templateKey": "personal",
"inquiryFormName": "合作咨询表单",
"offerings": [
{
"kind": "service",
"name": "示例·品牌定位咨询",
"summary": "梳理品牌定位与下一步行动。",
"categoryKey": "consulting",
"coverUrl": "/assets/content/personal-consulting.jpg",
"priceText": "按需求确认",
"config": {
"media": [
{
"url": "/assets/content/personal-consulting.jpg",
"alt": "",
"type": "image"
}
]
}
},
{
"kind": "service",
"name": "示例·长期顾问支持",
"summary": "围绕表达和转化提供持续支持。",
"categoryKey": "advisory",
"coverUrl": "/assets/content/personal-advisory.jpg",
"priceText": "按服务周期确认",
"config": {
"media": [
{
"url": "/assets/content/personal-advisory.jpg",
"alt": "",
"type": "image"
}
]
}
}
],
"trustContent": [
{
"type": "credential",
"title": "关于主理人",
"content": "示例内容,待品牌主理人完善。"
},
{
"type": "process",
"title": "合作方法",
"content": "示例内容,待品牌主理人完善。"
}
],
"fields": [
{
"key": "name",
"label": "您的称呼",
"type": "text",
"required": true
},
{
"key": "phone",
"label": "联系方式",
"type": "phone",
"required": true
},
{
"key": "remark",
"label": "合作需求",
"type": "textarea",
"required": true
}
],
"capabilityKey": "inquiry",
"brandConfig": {
"templateData": {
"designPhilosophy": "先厘清问题,再设计表达"
},
"title": "品牌策略顾问",
"slogan": "用清晰的定位与可执行的表达,让专业被看见。",
"phone": "",
"wechat": "",
"studioAddress": "上海市徐汇区创意园区",
"avatarUrl": "/assets/content/personal-avatar.jpg",
"heroImage": "/assets/content/personal-consulting.jpg",
"visualPresentation": {
"home": {
"founderBadge": "接受项目沟通",
"proofEyebrow": "专业经验与合作成果",
"proofTitle": "经验与方法",
"manifestoEyebrow": "工作原则",
"manifestoTitle": "先厘清问题,再设计表达",
"worksEyebrow": "合作方式",
"worksTitle": "品牌策略与顾问服务",
"worksAction": "查看全部 →"
},
"offerings": {
"title": "合作方式",
"subtitle": "围绕定位、表达与业务转化,选择适合当前阶段的支持。",
"materialLabel": "包含:",
"hardwareLabel": "定制说明:",
"detailAction": "查看详情 →",
"inquiryAction": "发起咨询"
},
"detail": {
"priceLabel": "价格参考",
"spaceLabel": "适合场景",
"backgroundTitle": "项目背景",
"conceptTitle": "设计思路",
"craftsTitle": "交付要点",
"materialsTitle": "材料与说明",
"inquiryAction": "发起咨询",
"inquiryHint": "提交信息后由主理人与您沟通。"
},
"profile": {
"phoneLabel": "联系电话",
"wechatLabel": "微信",
"addressLabel": "工作地点",
"callAction": "呼叫",
"copyAction": "复制",
"recordsTitle": "我的咨询记录",
"recordsCountUnit": "条记录"
},
"inquiry": {
"eyebrow": "COLLABORATION",
"title": "合作咨询",
"subtitle": "留下你的需求与目标,主理人会尽快联系。",
"submitLabel": "提交咨询"
},
"success": {
"eyebrow": "COLLABORATION",
"title": "已收到你的咨询",
"intro": "主理人会尽快与你联系。",
"recordsAction": "查看咨询记录",
"homeAction": "返回首页"
},
"records": {
"title": "我的咨询记录",
"createAction": "新增咨询",
"emptyTitle": "还没有咨询记录",
"emptyDescription": "提交一次咨询,开始与你的主理人沟通。",
"emptyAction": "开始咨询"
}
},
"founder": "示例主理人"
}
},
"safety": {
"submissions": "disabled",
"customerRecords": "disabled",
"contactActions": "disabled"
}
}
}
}