what is global in css : https://www.gatsbyjs.com/docs/global-css/ 看到Adding global styles without a layout component
should i use css modules: https://medium.com/@gajus/stop-using-css-in-javascript-for-web-development-fa32fb873dcc 未看
what is global in css : https://www.gatsbyjs.com/docs/global-css/ 看到Adding global styles without a layout component
should i use css modules: https://medium.com/@gajus/stop-using-css-in-javascript-for-web-development-fa32fb873dcc 未看
https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/744434/#outline__2_3
http://www.ruanyifeng.com/blog/2016/06/css_modules.html
https://github.com/postcss/autoprefixer
https://github.com/postcss/postcss
https://cythilya.github.io/2018/08/10/postcss/
未看
https://github.com/postcss/autoprefixer
https://github.com/postcss/postcss
https://cythilya.github.io/2018/08/10/postcss/
CSS Modules: localIdentName=[path][name]---[local]---[hash:base64:5]
呈現: <h1 class="demo03-components-App---title---XSDrm">Hello World</h1>
意思是: 資料夾位置 /demo03/components 下的App.vue---local css name 為title---hash取5個字
v.s.
現行專案: localIdentName: "[name]__[local]__[hash:base64:5]"
呈現: <div class="HeaderSearchDropDownMenu__headerSearchDropDownMenu__TfL4d>Hello World</div>
意思是: HeaderSearchDropDownMenu.vue__local css name 為headerSearchDropDownMenu__hash取5個字
學習概要:
主要命令
git branch | grep -v "master" | xargs git branch -D
注意点
git stash && git checkout master && git branch | grep -v "master" | xargs git branch -D
reference: http://www.huuinn.com/archives/234
報錯: grep: 無法辨識
原因: vscode沒辦法使用Linux指令
解法: 開Cygwin再輸入指令
https://medium.com/@aar0nTw/%E5%BC%B7%E5%A4%A7%E7%9A%84-git-extension-gitlens-vs-code-extension-how-to-editor-%E7%B7%A8%E8%BC%AF%E8%80%85-5-e1800d9d87bc
3|nuxt-stage | FATAL Cannot find module './locale-settings.js'
3|nuxt-stage | Require stack: 3|nuxt-stage | - /data/wwwroot/officalsite_nuxt/nuxt.config.js 3|nuxt-stage | - /data/wwwroot/officalsite_nuxt/node_modules/@nuxt/config/dist/config.js 3|nuxt-stage | - /data/wwwroot/officalsite_nuxt/node_modules/@nuxt/cli/dist/cli-index.js 3|nuxt-stage | - /data/wwwroot/officalsite_nuxt/node_modules/@nuxt/cli/dist/cli.js 3|nuxt-stage | - /data/wwwroot/officalsite_nuxt/node_modules/nuxt/bin/nuxt.js 3|nuxt-stage | Error: Cannot find module './locale-settings.js' 3|nuxt-stage | Require stack: 3|nuxt-stage | - nuxt.config.js 3|nuxt-stage | - node_modules/@nuxt/config/dist/config.js 3|nuxt-stage | - node_modules/@nuxt/cli/dist/cli-index.js 3|nuxt-stage | - node_modules/@nuxt/cli/dist/cli.js 3|nuxt-stage | - node_modules/nuxt/bin/nuxt.js 3|nuxt-stage | at Object.<anonymous> (nuxt.config.js:1) 3|nuxt-stage | at Generator.next (<anonymous>) 3|nuxt-stage | ╭───────────────────────────────────────────────────────────────────────────────╮ 3|nuxt-stage | │ │ 3|nuxt-stage | │ ✖ Nuxt Fatal Error │ 3|nuxt-stage | │ │ 3|nuxt-stage | │ Error: Cannot find module './locale-settings.js' │ 3|nuxt-stage | │ Require stack: │ 3|nuxt-stage | │ - /data/wwwroot/officalsite_nuxt/nuxt.config.js │ 3|nuxt-stage | │ - /data/wwwroot/officalsite_nuxt/node_modules/@nuxt/config/dist/config.js │ 3|nuxt-stage | │ - /data/wwwroot/officalsite_nuxt/node_modules/@nuxt/cli/dist/cli-index.js │ 3|nuxt-stage | │ - /data/wwwroot/officalsite_nuxt/node_modules/@nuxt/cli/dist/cli.js │ 3|nuxt-stage | │ - /data/wwwroot/officalsite_nuxt/node_modules/nuxt/bin/nuxt.js │ 3|nuxt-stage | │ │ 3|nuxt-stage | ╰───────────────────────────────────────────────────────────────────────────────╯ 3|nuxt-stage | npm ERR! code ELIFECYCLE 3|nuxt-stage | npm ERR! errno 1 3|nuxt-stage | npm 3|nuxt-stage | ERR! officalsite@1.0.0 stage: `PORT=3333 node ./node_modules/nuxt/bin/nuxt.js start` 3|nuxt-stage | npm ERR! Exit status 1 3|nuxt-stage | npm 3|nuxt-stage | ERR! 3|nuxt-stage | npm ERR! Failed at the officalsite@1.0.0 stage script. 3|nuxt-stage | npm ERR! 3|nuxt-stage | This is probably not a problem with npm. There is likely additional logging output above.
npm install vue-click-outside
但要用在typescript裡會有紅線,如下:
確定它沒有@types/的檔案,須自己建一個.d.ts的檔案並且宣告,如下
https://www.npmjs.com/package/vue-click-outside
(maybe: 可以思考下 -- https://juejin.im/post/6844903882309500942 )
https://css-tricks.com/data-uris/
裡的
Use this online conversion tool.
https://websemantics.uk/tools/image-to-data-uri-converter/
裡的
If you’re converting SVG to data-URI to embed into a style sheet or HTML please consider this method instead: Cross browser SVG URI background-images.
https://websemantics.uk/articles/embedding-svg-cross-browser/
看到 The current solution is svg4everybody
country-flag (from i18n):
https://www.npmjs.com/package/vue-country-flag
currency symbol:
https://kazupon.github.io/vue-i18n/guide/number.html
https://phrase.com/blog/posts/nuxt-js-tutorial-i18n/#Number_localization
https://stackoverflow.com/questions/55443835/nuxt-i18n-number-localization
https://i18n.nuxtjs.org/options-reference
http://kazupon.github.io/vue-i18n/guide/number.html#custom-formatting
https://developers.google.com/maps/documentation/javascript/overview
https://console.cloud.google.com/billing/01FB5A-6622F4-46197A?project=practice01-289607 (不小心開在alice那個帳戶)
https://medium.com/front-end-augustus-study-notes/google-map-api-1-a4e794b0162f
https://developers.google.com/maps/documentation/javascript/using-typescript 官網使用的
進度
https://developers.google.com/maps/documentation/javascript/adding-a-google-map 看到Tips and troubleshooting,延伸下面連結
https://developers.google.com/maps/solutions/store-locator 未看
新知識點: