当前位置: 首页 > wzjs >正文

wordpress 购物网站主题房地产网站方案

wordpress 购物网站主题,房地产网站方案,wordpress ftp下载,做网站服务器应该怎么配置一、准备工作 figma MCP需要通过figma key来获取设计稿权限,key的生成步骤如下 1. 打开figma网页版/APP,进入账户设定 2. 点击生成token 3. 填写内容生成token(一定要确认复制了,不然关闭弹窗后就不会显示了) 二、配置MCP 4. 进入到cursor…

一、准备工作

figma MCP需要通过figma key来获取设计稿权限,key的生成步骤如下

1. 打开figma网页版/APP,进入账户设定

在这里插入图片描述

2. 点击生成token

在这里插入图片描述

3. 填写内容生成token(一定要确认复制了,不然关闭弹窗后就不会显示了)

在这里插入图片描述
在这里插入图片描述

二、配置MCP

4. 进入到cursor setting

在这里插入图片描述
在这里插入图片描述

5. 点击新增按钮

在这里插入图片描述

6. 会弹出配置文件,用之前生成的figma token替换“<------your-api-key------>”部分后,填充以下内容。

{"mcpServers": {"Framelink Figma MCP": {"command": "npx","args": ["-y","figma-developer-mcp","--figma-api-key=<------your-api-key------>", // 这里需要替换成之前生成的figma key"--stdio"]},"eslint": {"command": "npx","args": ["@eslint/mcp@latest"],"env": {}}}
}

7. 配置好后,打开开关,应该会出现以下工具列表。如果没出现试试重启cursor

在这里插入图片描述
在这里插入图片描述

三:代码生成规则配置

添加rules

  • 官方介绍
  • 官方基础rules
  • 社区分享rules

允许你为代理和 AI 提供系统级指导。可以将它们视为一种持久的方式来编码上下文、偏好或工作流程,用于你的项目或个人

You are an expert in TypeScript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Element Plus, and Sass, with a deep understanding of best practices and performance optimization techniques in these technologies.Code Style and Structure- Write concise, maintainable, and technically accurate TypeScript code with relevant examples.- Use functional and declarative programming patterns; avoid classes.- Favor iteration and modularization to adhere to DRY principles and avoid code duplication.- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).- Organize files systematically: each file should contain only related content, such as exported components, subcomponents, helpers, static content, and types.Naming Conventions- Use lowercase with dashes for directories (e.g., components/auth-wizard).- Favor named exports for functions.TypeScript Usage- Use TypeScript for all code; prefer interfaces over types for their extendability and ability to merge.- Avoid enums; use maps instead for better type safety and flexibility.- Use functional components with TypeScript interfaces.Syntax and Formatting- Use the "function" keyword for pure functions to benefit from hoisting and clarity.- Always use the Vue Composition API script setup style.UI and Styling- Use Element Plus, and Sass for components and styling.- Implement responsive design with Sass;  use a mobile-first approach.Performance Optimization- Leverage VueUse functions where applicable to enhance reactivity and performance.- Wrap asynchronous components in Suspense with a fallback UI.- Use dynamic loading for non-critical components.- Optimize images: use WebP format, include size data, implement lazy loading.- Implement an optimized chunking strategy during the Vite build process, such as code splitting, to generate smaller bundle sizes.Key Conventions- Optimize Web Vitals (LCP, CLS, FID) using tools like Lighthouse or WebPageTest.

在这里插入图片描述
2、添加docs

  • Figma file 帮助cursor了解figma设计稿文件 - https://www.figma.com/developers/api#files
  • bem 提供class name命名规则 - https://juejin.cn/post/7405834903370154022、https://bemcss.com/#
    在这里插入图片描述

3、添加figma link

  • 拷贝需要实现的页面link

4、添加截图

  • 上传需要实现的页面截图

5、添加prompts

  • 从提供的Figma设计稿中获取页面视觉布局的信息,然后参考Figma字段说明文档链接理解布局信息里面的字段含义,参考视觉截图理解页面框架,最后将理解的布局信息内容还原成vue页面,与Figma设计中的视觉效果保持一致。要求:1.生成vue页面,代码存放在src/views目录。2.从Figma导出的图片格式采用png格式,并且以.png格式为扩展名,例如icon-xxx.png,不要使用svg格式,图片命名中不能带中文等非法字符。图片以3倍大小导出,导出的图片存放新建项目目录的src/assets/images目录下。3.处理好页面元素间距。4.可以给出调用示例,不用添加调用示例入口。5.尽可能在原有代码风格基础上做新的代码开发。6.css class遵循bem,style 遵循sass嵌套

文章转载自:

http://uRuNlnZA.hyrdd.cn
http://kd5mlO2K.hyrdd.cn
http://pOxNm16w.hyrdd.cn
http://psl7Pufg.hyrdd.cn
http://zCBSrlvs.hyrdd.cn
http://Lc1BVO34.hyrdd.cn
http://DpqznsqE.hyrdd.cn
http://ReNVAPbk.hyrdd.cn
http://JuOFpc3d.hyrdd.cn
http://guvVTn9x.hyrdd.cn
http://Bb6PAqYz.hyrdd.cn
http://MF3C7hqg.hyrdd.cn
http://ezbW0oe0.hyrdd.cn
http://TVUDXPRe.hyrdd.cn
http://ZFsWiZeh.hyrdd.cn
http://zmPYDQGP.hyrdd.cn
http://0hJ7CPq3.hyrdd.cn
http://6fuMjpJI.hyrdd.cn
http://BIKO7f6j.hyrdd.cn
http://P7epKy8K.hyrdd.cn
http://ZvTbEcra.hyrdd.cn
http://yfV0irfM.hyrdd.cn
http://Rt1DbNOw.hyrdd.cn
http://ruu5uOPr.hyrdd.cn
http://BZ4ZBQwk.hyrdd.cn
http://7WOxmNFC.hyrdd.cn
http://L68I1mca.hyrdd.cn
http://d3GOgEiy.hyrdd.cn
http://WETohfgU.hyrdd.cn
http://BE1CC69G.hyrdd.cn
http://www.dtcms.com/wzjs/663761.html

相关文章:

  • 工业信息部网站备案广东佛山企业
  • 网站建设步骤详解视频教程专门的设计师服务平台
  • 手机网站进不去怎么解决互联网营销 网站 推荐
  • 在智联招聘网站做销售义乌开锁做网站哪个好
  • opencart网站小程序商城开发
  • wordpress用户关注青岛seo经理
  • 适合在线做笔试的网站wordpress文章分类导航
  • 做网站彩票代理多少钱啊大学it网页制作教程
  • 如何将网站部署到服务器彩视网站建设策划
  • 郑州网站建设yipinpai内部建设网站需要什么条件
  • 搜索动图素材的网站哪些网站做魔兽地图
  • 网站的优化安吉网站设计
  • 门户网站用什么源码3秒钟自动跳转网页
  • 生成图片的网站手机移动端
  • 设计公司品牌网站青岛关键词快速排名
  • 做网站最好的公司有哪些网站建设方案规划书
  • 今天的新闻摘抄企业网站优化服务主要围绕哪些要素
  • 网站建设中的问题东莞电子商务网站建设
  • 龙岗区住房和建设局在线网站施工企业自营率怎么算
  • 企业网站制作心得手机端竞价恶意点击能防止吗
  • 大连网站建设找哪家龙岗公司的网站制作
  • 个人网站可以做社交类型凡客登陆
  • 可信网站服务博客导入wordpress
  • 网站建设合优天津网页模板建站
  • 怎么把网站源码扒下来百度免费域名
  • 地情网站建设总结群晖wordpress二级目录
  • 动力网站建设c2c电子商务网站建设栏目结构图
  • 深圳企业网站建设设计制作方案做一个网站开发项目有哪些阶段
  • 网站开发软硬件环境是指什么商城源码免费
  • 在哪能学到网站建设如何创建网站教程视频