qards icon indicating copy to clipboard operation
qards copied to clipboard

Allow using external image in Image card

Open fr0der1c opened this issue 7 years ago • 6 comments

Sometimes users want to use external images instead of uploading the image to the repository. Using external image is very painful at the moment. If I use markdown grammar(![]()) to insert external images, it will be converted to !\[]() and broken after switching back to rich text mode. I think this conversion should be disabled and maybe the image card should allow users to use external image.

fr0der1c avatar Dec 29 '18 02:12 fr0der1c

screenshot from 2018-12-31 16-50-52

You get a penalty for that I hope you know. If you want to serve your blog closer to China for better latency I think you would be better off using a custom CDN (something closer to your readers) instead of Netlify.

You can run gatsby build to create the public/ folder with your app and deploy that to a CDN of your choice.

ciokan avatar Dec 31 '18 14:12 ciokan

I did think about deploying to another CDN. But I gave up since I cannot use Netlify CMS panel if I build on my own. If I don't use Netlify CMS, it would be very hard to use Qards widgets. Am I right?

fr0der1c avatar Jan 01 '19 03:01 fr0der1c

you can use localhost to be able to create your posts and then build and deploy wherever you like.

gatsby develop http://localhost:8000/admin git pull origin master gatsby build

....deploy to your cdn

ciokan avatar Jan 01 '19 21:01 ciokan

Is Linux required for running this project? I tried npm install on my Mac and run into following error:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm ERR! notsup Valid OS:    linux
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   darwin
npm ERR! notsup Actual Arch: x64

fr0der1c avatar Jan 02 '19 03:01 fr0der1c

Can you try removing the dev package from package.json. I don't think it's required.

On Wed, Jan 2, 2019 at 5:39 AM Frederic Chan [email protected] wrote:

Is Linux required for running this project? I tried npm install on my Mac and run into following error:

npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"}) npm ERR! notsup Valid OS: linux npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: darwin npm ERR! notsup Actual Arch: x64

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/QardsJs/qards/issues/82#issuecomment-450782386, or mute the thread https://github.com/notifications/unsubscribe-auth/AAc_RBPswB_52008mjvf-xpYrtjuXBaSks5u_CnXgaJpZM4ZkX3Q .

ciokan avatar Jan 02 '19 17:01 ciokan

Unfortunately, the problem persists after removing devDependencies part.

fr0der1c avatar Jan 03 '19 01:01 fr0der1c