/home/techb158/trello-import.abdallabala.com/public
Edit: /home/techb158/trello-import.abdallabala.com/public/client.js (2275B)
(function () {
"use strict";
var config = window.TRELLO_IMPORT_CONFIG || {};
var options = {
appKey: config.appKey || "REPLACE_WITH_YOUR_TRELLO_POWERUP_API_KEY",
appName: config.appName || "Import JSON/CSV",
appAuthor: config.appAuthor || "Your Name or Company"
};
function asset(path) {
return new URL(path, window.location.href).href;
}
function openImporter(t) {
return t.modal({
url: "./import.html",
title: "Import JSON/CSV",
height: 720,
fullscreen: true,
accentColor: "blue",
actions: [
{
icon: asset("./icons/help.svg"),
alt: "Import help",
url: asset("./onboarding.html"),
position: "right"
}
]
});
}
function openSettings(t) {
return t.modal({
url: "./settings.html",
title: "Import JSON/CSV Settings",
height: 520,
fullscreen: false,
accentColor: "blue"
});
}
window.TrelloPowerUp.initialize(
{
"board-buttons": function (t) {
return t
.getRestApi()
.isAuthorized()
.then(function (authorized) {
return [
{
text: authorized ? "Import JSON/CSV" : "Authorize Importer",
icon: {
dark: asset("./icons/import-dark.svg"),
light: asset("./icons/import-light.svg")
},
condition: "edit",
callback: openImporter
}
];
})
.catch(function () {
return [
{
text: "Import JSON/CSV",
icon: {
dark: asset("./icons/import-dark.svg"),
light: asset("./icons/import-light.svg")
},
condition: "edit",
callback: openImporter
}
];
});
},
"show-settings": function (t) {
return openSettings(t);
},
"on-enable": function (t) {
return t.modal({
url: "./onboarding.html",
title: "Import JSON/CSV",
height: 560,
fullscreen: false,
accentColor: "blue"
});
}
},
options
);
})();