neowu / frontend-demo-project Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
雪花圖片合併方式,使得資源檔會指向單一檔案夾下,並且輸出至統一位置。
因此圖檔並不適合散落於各檔案夾內。
目前專案中,依據用戶需求可更換頁面整體Style,因此Style會依據skin的設計概念區分,並不會完全依照項目、模組方式區分。
因此style設定不適合散落於各檔案夾內。
目前的assets雖依據用圖區分,但並沒有依據專案項目 ( Page ) 適度區分局部用圖的樣式、圖檔;這部分仍需與前端程式設計師討論。
目前專案對於 page 設計相似此專案;於專案內的 Webpack 亦有相同的執行原點。
但與前端部門討論後,有下項討論:
目前專案中,除一項目外,皆只有一個進入點。
pages/[item name]/index.jsx
而特例,則第一層是用於整理共通內容之用。
討論結過,有以下兩個設計問題
依據設計稿,目前多頁面間使用主從關係的iframe,還有直接切換的page redirection。
若頁面層級過深會導致頁面過多而溝通困難。
在 Multi-page software architecture design 中規範到
pages -> modules -> components
其設計目的即是取代多層頁面的不必要性,改用module取代page,避免輸出頁面。
因為作業系統的段行格式錯誤,導致ESlint無法正確執行。
enforce consistent linebreak style (linebreak-style)
實際改寫ESLint檔案也無法解決此問題,對此煩請應如何處理。
rules: {
...
"linebreak-style": ["error", "windows"],
...
}
由於目前開發人員多使用Windows環境,這會使得ESLint難以運作。
今日測試新版本後,因個人用fork使用另外開版本修正src格式,在逐一修補更新與檢閱時,發現此議題。
在比對新版與舊版的ESLint後,在下知道設定了import迴避大小寫檢查。
這部份就順便提個議題?
基於個人習慣,在C#、Java等語言會有以下習慣。
不知道是否要訂妥一個宣告與引用規範?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.