本文件預設專案使用:Vue 3.5+、
<script setup>、Composition API、TypeScript。 若使用 Nuxt、Options API 或 JavaScript,請依團隊技術選型調整對應規則。 此檔案可作為CLAUDE.md、.cursorrules、.github/copilot-instructions.md使用 根據你使用的 AI 工具,複製到對應位置即可
- 為 AI 工具提供一致的 Vue 程式碼風格與行為規範
| /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ | |
| /* Document | |
| ========================================================================== */ | |
| /** | |
| * 1. Correct the line height in all browsers. | |
| * 2. Prevent adjustments of font size after orientation changes in iOS. | |
| */ |
| // Add a 401 response interceptor | |
| window.axios.interceptors.response.use(function (response) { | |
| return response; | |
| }, function (error) { | |
| if (401 === error.response.status) { | |
| swal({ | |
| title: "Session Expired", | |
| text: "Your session has expired. Would you like to be redirected to the login page?", | |
| type: "warning", | |
| showCancelButton: true, |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>D3 Gauge Chart</title> | |
| <style type="text/css"> | |
| svg { | |
| display: block; | |
| border: 1px solid #000; | |
| width: 500px; height: 350px; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <script type="text/javascript" src="../scripts/d3/d3.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
| <script src="https://d3js.org/d3-time.v1.min.js"></script> | |
| <style type="text/css"> | |
| html, |
| /* Stack-based Douglas Peucker line simplification routine | |
| returned is a reduced GLatLng array | |
| After code by Dr. Gary J. Robinson, | |
| Environmental Systems Science Centre, | |
| University of Reading, Reading, UK | |
| */ | |
| function GDouglasPeucker (source, kink) | |
| /* source[] Input coordinates in GLatLngs */ | |
| /* kink in metres, kinks above this depth kept */ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.js"></script> | |
| <style type="text/css"> | |
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| padding: 0; |
| <template> | |
| <div id="app"> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading">Task Table</div> | |
| <table class="table"> | |
| <!-- 表頭 --> | |
| <thead> | |
| <tr> | |
| <th class="number">#</th> | |
| <th class="name">Task Name</th> |