Skip to content

Commit

Permalink
chore: update shared docs via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 9, 2024
1 parent 5108b9f commit a57b21a
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 2 deletions.
Binary file added knosys/lists/ai-pair-programmer/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
250 changes: 250 additions & 0 deletions lists/ai-pair-programmer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
<head>
<meta charset="UTF-8">



































<title>与 AI 结对编程 - 欧雷共享的内容</title>


<meta property="og:title" content="与 AI 结对编程">


<meta name="description" content="很会写代码的数字员工。">
<meta property="og:description" content="很会写代码的数字员工。">








<meta name="keywords" content="欧雷,欧雷流">


<!-- 页面渲染兼容性 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0">

<!-- 订阅 -->

<meta name="theme-color" content="#0871ab">
<link rel="shortcut icon" href="/images/ksio/favicon.ico">



<link rel="stylesheet" href="/stylesheets/global.css">


<link rel="stylesheet" href="/stylesheets/ksio/vendors/share.css">


<script src="/javascripts/ksio/vendors/jquery-1.11.3.min.js"></script>


<script src="/javascripts/ksio/vendors/bootstrap.min.js"></script>

</head>




<body class="Page has-headerImage" itemscope itemtype="http://schema.org/WebPage">


<header class="Page-header">
<div class="navbar navbar-static-top">
<div class="container">
<div class="navbar-header">

<button class="navbar-toggle collapsed" type="button" data-target=".Page-navs" data-toggle="collapse">
<span class="sr-only">Toggle navs</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>


<div class="navbar-brand">


<a href="https://ourai.ws/?utm_source=https://s.ourai.ws&utm_medium=brand" target="_blank" rel="external nofollow">Ourai.WS</a><a href="/">共享</a>

</div>

</div>
<!-- Nav menus -->
<nav class="Page-navs navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">


<li><a href="https://ourai.ws/?utm_source=https://s.ourai.ws&amp;utm_medium=common-header" target="_blank" rel="external nofollow">主站</a>
</li>



<li class="dropdown">
<a class="dropdown-toggle" href="javascript:void(0);" data-toggle="dropdown">关于 <span class="caret"></span></a>
<ul class="dropdown-menu">

<li><a href="https://linxoid.com/ourai/?utm_source=https://s.ourai.ws&amp;utm_medium=common-header" target="_blank" rel="external nofollow">站长</a>
</li>



<li><a href="https://ourai.ws/sponsor/?utm_source=https://s.ourai.ws&amp;utm_medium=common-header" target="_blank" rel="external nofollow">赞助</a>
</li>



<li><a href="https://yaol.in/cooperation/?utm_source=https://s.ourai.ws&amp;utm_medium=common-header" target="_blank" rel="external nofollow">合作</a>
</li>


</ul>
</li>



</ul>
</nav>
</div>
</div>
</header>

<main class="Page-content">

<!-- 页面横幅 -->
<div class="Page-banner hidden-xs" style="background-image: url('/knosys/lists/ai-pair-programmer/banner.png');">
<figure class="sr-only">
<img src="/knosys/lists/ai-pair-programmer/banner.png" alt="与 AI 结对编程">
<figcaption>与 AI 结对编程</figcaption>
</figure>
</div>


<!-- 内容主体 -->
<div class="container">
<article class="Page-main Article">
<header class="Article-header">


<h1 class="Article-title">与 AI 结对编程</h1>




</header>
<div class="Article-content col-md-9">


<p>很会写代码的数字员工。</p><h2>网址</h2>
<ul>

<li><a href="https://github.com/features/copilot" target="_blank" rel="external nofollow">GitHub Copilot</a></li>

<li><a href="https://www.cursor.com" target="_blank" rel="external nofollow">Cursor</a></li>

<li><a href="https://www.marscode.com" target="_blank" rel="external nofollow">MarsCode</a></li>

<li><a href="https://codefuse.ai" target="_blank" rel="external nofollow">CodeFuse</a></li>

<li><a href="https://tongyi.aliyun.com/lingma" target="_blank" rel="external nofollow">通义灵码</a></li>

<li><a href="https://comate.baidu.com" target="_blank" rel="external nofollow">文心快码</a></li>

</ul>
</div>
<footer class="Article-footer col-md-3">
<div class="Widget Widget--share">
<div class="Widget-body">
<p>分享到<i class="fa fa-share-alt"></i></p>
<div class="social-share" data-sites="wechat,weibo,twitter"></div>
</div>
</div>

</footer>
</article>


</div>
</main>
<footer class="Page-footer Footer">
<div class="container">

<div class="Footer-description">

<!-- Important links -->
<nav class="Footer-navs">
<ul><li><a href="https://meta.ourai.ws/?utm_source=https://s.ourai.ws&amp;utm_medium=common-footer" target="_blank" rel="external nofollow"><span>@</span></a>
</li><li><a href="https://ourai.ws/sponsor/?utm_source=https://s.ourai.ws&amp;utm_medium=common-footer" target="_blank" rel="external nofollow"><span>赞助</span></a>
</li><li><a href="https://yaol.in/cooperation/?utm_source=https://s.ourai.ws&amp;utm_medium=common-footer" target="_blank" rel="external nofollow"><span>合作</span></a>
</li></ul>
</nav>


<!-- Copyright -->
<div class="Footer-copyright">
<p>

&copy; 2022-2024 <a href="https://ourai.ws/?utm_source=https://s.ourai.ws&amp;utm_medium=common-footer" target="_blank" rel="external nofollow">欧雷流</a> 版权所有

</p>
<p>本站主题 <a href="https://ourai.github.io/lime/?utm_source=https://s.ourai.ws&amp;utm_medium=common-footer" target="_blank" rel="external nofollow">Lime</a><a href="https://linxoid.com/ourai/?utm_source=https://s.ourai.ws&amp;utm_medium=common-footer" target="_blank" rel="external nofollow">欧雷</a> 提供</p>

</div>

</div>
</div>
</footer>





<script>$('.Article-content > table').addClass('table table-bordered')</script>

<script src="/javascripts/ksio/vendors/share.min.js"></script>

<script src="/javascripts/ksio/components/page.js"></script>

<script src="/javascripts/ksio/components/toc.js"></script>

</body>
</html>

4 changes: 2 additions & 2 deletions projects/m1belxcg/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ <h3 id="当前技术栈"><a href="#当前技术栈" class="headerlink" title="
</tbody></table>
<p>其中,有些很少用到或职责有冲突,考虑移除;并且,原代码跟 Next.js 耦合较紧,不便于日后迁出,亟需松绑。</p>
<h3 id="工程目录结构"><a href="#工程目录结构" class="headerlink" title="工程目录结构"></a>工程目录结构</h3><p>目前,前端工程的目录结构大体如下:</p>
<figure class="highlight plaintext"><table><tr><td class="code"><pre><code class="hljs plaintext">project<br> ├── app<br> │ └── ...<br> ├── components<br> │ └── ...<br> ├── constants<br> │ └── ...<br> ├── hooks<br> │ └── ...<br> ├── lib<br> │ └── ...<br> ├── services<br> │ └── ...<br> ├── state<br> │ └── ...<br> ├── styleds<br> │ └── ...<br> ├── styles<br> │ └── ...<br> ├── utils<br> │ └── ...<br> └── ...<br></code></pre></td></tr></table></figure>
<figure class="highlight text"><table><tr><td class="code"><pre><code class="hljs text">project<br> ├── app<br> │ └── ...<br> ├── components<br> │ └── ...<br> ├── constants<br> │ └── ...<br> ├── hooks<br> │ └── ...<br> ├── lib<br> │ └── ...<br> ├── services<br> │ └── ...<br> ├── state<br> │ └── ...<br> ├── styleds<br> │ └── ...<br> ├── styles<br> │ └── ...<br> ├── utils<br> │ └── ...<br> └── ...<br></code></pre></td></tr></table></figure>

<p>这是妥妥的「野生」模式,可以说<a target="_blank" rel="noopener" href="https://ourai.ws/posts/patterns-of-directory-structure-in-frontend-projects/#section-2">该模式所带来的问题</a>在项目里几乎都具备了……😩😩😩</p>
<h3 id="代码编写问题"><a href="#代码编写问题" class="headerlink" title="代码编写问题"></a>代码编写问题</h3><p>除了上述「野生」模式所带来的常见问题外,还存在一些其他问题:</p>
Expand All @@ -285,7 +285,7 @@ <h3 id="代码编写问题"><a href="#代码编写问题" class="headerlink" tit
<h3 id="业务功能模块"><a href="#业务功能模块" class="headerlink" title="业务功能模块"></a>业务功能模块</h3><p>TODO</p>
<h2 id="设计"><a href="#设计" class="headerlink" title="设计"></a>设计</h2><p>基于规范、约定、接口等「共识」编程。</p>
<h3 id="调整目录结构"><a href="#调整目录结构" class="headerlink" title="调整目录结构"></a>调整目录结构</h3><p><a target="_blank" rel="noopener" href="https://ourai.ws/posts/patterns-of-directory-structure-in-frontend-projects/#section-4">「模块化」模式</a>的基础上,根据 Next.js 的限制进行些许兼容适配:</p>
<figure class="highlight plaintext"><table><tr><td class="code"><pre><code class="hljs plaintext">project/src<br> ├── app<br> │ └── ...<br> ├── domain<br> │ └── [domain-specific-module]<br> │ ├── views<br> │ │ ├── [detail-view]<br> │ │ │ ├── [DetailViewWidget].tsx<br> │ │ │ ├── ...<br> │ │ │ └── style.scss<br> │ │ ├── [form-view]<br> │ │ │ ├── [FormViewWidget].tsx<br> │ │ │ ├── ...<br> │ │ │ └── style.scss<br> │ │ └── [list-view]<br> │ │ ├── [ListViewWidget].tsx<br> │ │ ├── ...<br> │ │ └── style.scss<br> │ ├── widgets<br> │ │ └── [domain-specific-widget]<br> │ │ └── ...<br> │ ├── helper.ts<br> │ ├── index.ts<br> │ ├── model.ts<br> │ ├── repository.ts<br> │ └── ...<br> ├── entry<br> │ ├── aspects<br> │ │ └── ...<br> │ ├── layouts<br> │ │ └── ...<br> │ └── ...<br> ├── shared<br> │ ├── components<br> │ │ │ ├── control<br> │ │ │ │ └── ...<br> │ │ │ └── ...<br> │ │ └── ...<br> │ ├── utils<br> │ │ └── ...<br> │ ├── styles<br> │ │ └── ...<br> │ └── ...<br> └── ...<br></code></pre></td></tr></table></figure>
<figure class="highlight text"><table><tr><td class="code"><pre><code class="hljs text">project/src<br> ├── app<br> │ └── ...<br> ├── domain<br> │ └── [domain-specific-module]<br> │ ├── views<br> │ │ ├── [detail-view]<br> │ │ │ ├── [DetailViewWidget].tsx<br> │ │ │ ├── ...<br> │ │ │ └── style.scss<br> │ │ ├── [form-view]<br> │ │ │ ├── [FormViewWidget].tsx<br> │ │ │ ├── ...<br> │ │ │ └── style.scss<br> │ │ └── [list-view]<br> │ │ ├── [ListViewWidget].tsx<br> │ │ ├── ...<br> │ │ └── style.scss<br> │ ├── widgets<br> │ │ └── [domain-specific-widget]<br> │ │ └── ...<br> │ ├── helper.ts<br> │ ├── index.ts<br> │ ├── model.ts<br> │ ├── repository.ts<br> │ └── ...<br> ├── entry<br> │ ├── aspects<br> │ │ └── ...<br> │ ├── layouts<br> │ │ └── ...<br> │ └── ...<br> ├── shared<br> │ ├── components<br> │ │ │ ├── control<br> │ │ │ │ └── ...<br> │ │ │ └── ...<br> │ │ └── ...<br> │ ├── utils<br> │ │ └── ...<br> │ ├── styles<br> │ │ └── ...<br> │ └── ...<br> └── ...<br></code></pre></td></tr></table></figure>

<p>其中,<code>app</code> 除了定义页面路由之外,还取代了 <code>entry</code> 文件夹作为页面渲染的入口。</p>
<h4 id="文件位置挪动"><a href="#文件位置挪动" class="headerlink" title="文件位置挪动"></a>文件位置挪动</h4><p><code>app</code> 文件夹下的文件尽可能向外移:</p>
Expand Down

0 comments on commit a57b21a

Please sign in to comment.