UI Library
- https://github.com/github/github-elements
- https://primer.style
- https://github.com/ebs-integrator/ebs-design
- https://lit.dev/
- 小程序 https://github.com/youzan/vant-weapp
- 小程序 https://github.com/Tencent/tdesign-miniprogram
HOST=host.docker.internal |
{ | |
"scripts": { | |
"test": "jest --setupFiles dotenv/config" | |
} | |
} |
window.loadURL('data:text/html;charset=UTF8,' + encodeURIComponent(htmlContent)); |
You don't travel to see different things, you travel to see things differently.
git log --diff-filter=A --follow --format=%aD -1 -- FILENAME |
sudo -u www-data php occ config:app:set files max_chunk_size --value 1000000 |
export $(grep -v '^#' .env | xargs) |
const FormData = require('form-data'); | |
const axios = require('axios'); | |
const file = (await axios.get('https://test.com/test.jpg', { responseType: 'stream' })).data; | |
const formData = new FormData(); | |
formData.append('file', file); | |
const res = await axios.post( | |
'https://test.com/upload', | |
formData, | |
{ |
在Vercel里直接运行pdf.js包
const pdfjsLib = require("pdfjs-dist/es5/build/pdf.js");
会报下面的错:
Unhandled rejection: Error: Setting up fake worker failed: "Cannot find module './pdf.worker.js'