mirror of
https://gitlab.com/MisterBiggs/blog-static.git
synced 2025-07-24 15:11:37 +00:00
remove partners
This commit is contained in:
45
_public/ghost-sdk.min.js
vendored
45
_public/ghost-sdk.min.js
vendored
@@ -1 +1,44 @@
|
||||
!function(){var o,i,n,e,r="http://localhost:8080/ghost/api/v0.1/";n={api:function(){var n,e=Array.prototype.slice.call(arguments),t=r;return(n=e.pop())&&"object"!=typeof n&&(e.push(n),n={}),(n=n||{}).client_id=o,n.client_secret=i,e.length&&e.forEach(function(n){t+=n.replace(/^\/|\/$/g,"")+"/"}),t+function(n){var e,t=[];if(!n)return"";for(e in n)n.hasOwnProperty(e)&&(n[e]||!1===n[e])&&t.push(e+"="+encodeURIComponent(n[e]));return t.length?"?"+t.join("&"):""}(n)}},e=function(n){o=n.clientId?n.clientId:"",i=n.clientSecret?n.clientSecret:"",r=n.url?n.url:r.match(/{\{api-url}}/)?"":r},"undefined"!=typeof window&&(window.ghost=window.ghost||{},window.ghost.url=n,window.ghost.init=e),"undefined"!=typeof module&&(module.exports={url:n,init:e})}();
|
||||
!(function () {
|
||||
var o,
|
||||
i,
|
||||
n,
|
||||
e,
|
||||
r = "https://blog.ansonbiggs.com/ghost/api/v0.1/";
|
||||
(n = {
|
||||
api: function () {
|
||||
var n,
|
||||
e = Array.prototype.slice.call(arguments),
|
||||
t = r;
|
||||
return (
|
||||
(n = e.pop()) && "object" != typeof n && (e.push(n), (n = {})),
|
||||
((n = n || {}).client_id = o),
|
||||
(n.client_secret = i),
|
||||
e.length &&
|
||||
e.forEach(function (n) {
|
||||
t += n.replace(/^\/|\/$/g, "") + "/";
|
||||
}),
|
||||
t +
|
||||
(function (n) {
|
||||
var e,
|
||||
t = [];
|
||||
if (!n) return "";
|
||||
for (e in n)
|
||||
n.hasOwnProperty(e) &&
|
||||
(n[e] || !1 === n[e]) &&
|
||||
t.push(e + "=" + encodeURIComponent(n[e]));
|
||||
return t.length ? "?" + t.join("&") : "";
|
||||
})(n)
|
||||
);
|
||||
},
|
||||
}),
|
||||
(e = function (n) {
|
||||
(o = n.clientId ? n.clientId : ""),
|
||||
(i = n.clientSecret ? n.clientSecret : ""),
|
||||
(r = n.url ? n.url : r.match(/{\{api-url}}/) ? "" : r);
|
||||
}),
|
||||
"undefined" != typeof window &&
|
||||
((window.ghost = window.ghost || {}),
|
||||
(window.ghost.url = n),
|
||||
(window.ghost.init = e)),
|
||||
"undefined" != typeof module && (module.exports = { url: n, init: e });
|
||||
})();
|
||||
|
Reference in New Issue
Block a user