Merge branch 'master' into feature/recording
This commit is contained in:
commit
9913af5a41
@ -6,7 +6,7 @@ A [ShareX](https://getsharex.com/) inspired cross platform utility written with
|
|||||||
|[![Build Status](https://nativeci.arsenarsen.com/job/KShare/badge/icon)](https://nativeci.arsenarsen.com/job/KShare)| [![Build Status](https://nativeci.arsenarsen.com/job/KShare%20Windows%20x86_64/badge/icon)](https://nativeci.arsenarsen.com/job/KShare%20Windows%20x86_64/)| Soon |
|
|[![Build Status](https://nativeci.arsenarsen.com/job/KShare/badge/icon)](https://nativeci.arsenarsen.com/job/KShare)| [![Build Status](https://nativeci.arsenarsen.com/job/KShare%20Windows%20x86_64/badge/icon)](https://nativeci.arsenarsen.com/job/KShare%20Windows%20x86_64/)| Soon |
|
||||||
## Screenshot
|
## Screenshot
|
||||||
Made with KShare itself, of course :)
|
Made with KShare itself, of course :)
|
||||||
![](https://i.arsenarsen.com/2iphpxpah8.png)
|
![](http://i.imgur.com/ffWvCun.png)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
See the [wiki](https://github.com/ArsenArsen/KShare/wiki).
|
See the [wiki](https://github.com/ArsenArsen/KShare/wiki).
|
||||||
|
1
_config.yml
Normal file
1
_config.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
theme: jekyll-theme-minimal
|
@ -153,9 +153,11 @@ QJsonObject recurseAndReplace(QJsonObject &body, QByteArray &data, QString conte
|
|||||||
} else if (v.isString()) {
|
} else if (v.isString()) {
|
||||||
QString str = v.toString();
|
QString str = v.toString();
|
||||||
if (str.startsWith("/") && str.endsWith("/")) {
|
if (str.startsWith("/") && str.endsWith("/")) {
|
||||||
o.insert(s, str.replace("%image", data).replace("%contenttype", contentType));
|
o.insert(s, str.mid(1, str.length() - 2).replace("%imagedata", data).replace("%contenttype", contentType));
|
||||||
}
|
} else
|
||||||
}
|
o.insert(s, v);
|
||||||
|
} else
|
||||||
|
o.insert(s, v);
|
||||||
}
|
}
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user