Requires Dataview and MetaEdit
const { update } = this.app.plugins.plugins["metaedit"].api;
const { createButton } = app.plugins.plugins["buttons"];
dv.table(
[
"Image",
"Note",
"Link",
"",
],
dv
.pages('"lib/apps"')
.where((p) => p.status == "inbox")
.map((p) => [
"![image|64](" + p.image_url + ")",
p.file.link,
"**[" + "🔗 " + "App Store" + "](" + p.app_store_url + ")**",
createButton({
app,
el: this.container,
args: { name: "Move to Using" },
clickOverride: {
click: update,
params: ["status", "using", p.file.path],
},
}),
])
);
const { update } = this.app.plugins.plugins["metaedit"].api;
const { createButton } = app.plugins.plugins["buttons"];
dv.table(
[
"Image",
"Note",
"Link",
"",
],
dv
.pages('"lib/apps"')
.where((p) => p.status == "using")
.map((p) => [
"![image|64](" + p.image_url + ")",
p.file.link,
"**[" + "🔗 " + "App Store" + "](" + p.app_store_url + ")**",
createButton({
app,
el: this.container,
args: { name: "Archive" },
clickOverride: {
click: update,
params: ["status", "archive", p.file.path],
},
}),
])
);
const { update } = this.app.plugins.plugins["metaedit"].api;
const { createButton } = app.plugins.plugins["buttons"];
dv.table(
[
"Image",
"Note",
"Link",
"",
],
dv
.pages('"lib/apps"')
.where((p) => p.status == "archive")
.map((p) => [
"![image|64](" + p.image_url + ")",
p.file.link,
"**[" + "🔗 " + "App Store" + "](" + p.app_store_url + ")**",
createButton({
app,
el: this.container,
args: { name: "Move to Using" },
clickOverride: {
click: update,
params: ["status", "using", p.file.path],
},
}),
])
);