Skip to content
Snippets Groups Projects
Commit cbd0733d authored by Adam Procter's avatar Adam Procter
Browse files

Changelog and fix

fixed file select upload processing file type to match drag and drop upload. Viewing of files via Cloudflare and Infura (video) IPFS public gateways.
parent c9c7c7b8
No related branches found
No related tags found
No related merge requests found
# 0.1.44
_14th December 2020_
### Changed
- Upload is now smarter and will generate markdown for images, video and audio "automagically", media that is not recognised will be uploaded and generated as a plain URL (link).
- Now using Cloudflare's IPFS Gateway as we move towards more robust upload support.
- Video is using using infura gateway (cloudflares gateway doesnt like playing back video)
### Added
- You can now Drag and drop to upload.
# 0.1.43 # 0.1.43
_12th December 2020_ _12th December 2020_
......
{ {
"name": "nodenogg.in", "name": "nodenogg.in",
"version": "0.1.43", "version": "0.1.44",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
......
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
async saveIPFS() { async saveIPFS() {
try { try {
this.fileContents = await node.add(this.selectedFile) this.fileContents = await node.add(this.selectedFile)
this.getIPFS() this.getIPFS(this.selectedFile.type)
} catch (err) { } catch (err) {
// Set error status text. // Set error status text.
this.status = `Error: ${err}` this.status = `Error: ${err}`
...@@ -361,20 +361,25 @@ export default { ...@@ -361,20 +361,25 @@ export default {
}, },
copyClipBoard(e, type) { copyClipBoard(e, type) {
console.log(type)
switch (true) { switch (true) {
case type.includes('image/'): case type.includes('image/'):
this.copytext = '![](https://ipfs.io/ipfs/' + e + ')' this.copytext = '![](https://cloudflare-ipfs.com/ipfs/' + e + ')'
break break
case type.includes('audio/'): case type.includes('audio/'):
this.copytext = this.copytext =
'<audio src="https://ipfs.io/ipfs/' + e + '" controls></audio>' '<audio src="https://cloudflare-ipfs.com/ipfs/' +
e +
'" controls></audio>'
break break
case type.includes('video/'): case type.includes('video/'):
this.copytext = this.copytext =
'<video src="https://ipfs.io/ipfs/' + e + '" controls></video>' '<video src="https://ipfs.infura.io/ipfs/' +
e +
'" controls></video>'
break break
default: default:
this.copytext = 'https://ipfs.io/ipfs/' + e this.copytext = 'https://cloudflare-ipfs.com/ipfs/' + e
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment