mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
✨ Feature(custom): add desc for how to debug script in template #468
This commit is contained in:
@@ -71,6 +71,7 @@ export const picBedManualUrlList: IStringKeyMap = {
|
|||||||
export const defaultScriptTemplate = `
|
export const defaultScriptTemplate = `
|
||||||
// ctx 为 核心PicList实例, extra为额外参数, 其中extra.galleryItem为当前删除的相册对象
|
// ctx 为 核心PicList实例, extra为额外参数, 其中extra.galleryItem为当前删除的相册对象
|
||||||
// 可用额外API: axios, crypto, fs, path, os, setTimeout, setInterval, clearTimeout, clearInterval, base64Decode, base64Encode
|
// 可用额外API: axios, crypto, fs, path, os, setTimeout, setInterval, clearTimeout, clearInterval, base64Decode, base64Encode
|
||||||
|
// 使用console.log或ctx.log输出的信息在软件日志文件piclist.log中可以查询到
|
||||||
|
|
||||||
async function main(ctx, extra) {
|
async function main(ctx, extra) {
|
||||||
// 在这里编写你的脚本代码
|
// 在这里编写你的脚本代码
|
||||||
@@ -81,6 +82,7 @@ async function main(ctx, extra) {
|
|||||||
export const defaultScriptTemplateEn = `
|
export const defaultScriptTemplateEn = `
|
||||||
// ctx is the core PicList instance, extra is additional parameters, among which extra.galleryItem is the currently deleted album object
|
// ctx is the core PicList instance, extra is additional parameters, among which extra.galleryItem is the currently deleted album object
|
||||||
// Available additional APIs: axios, crypto, fs, path, os, setTimeout, setInterval, clearTimeout, clearInterval, base64Decode, base64Encode
|
// Available additional APIs: axios, crypto, fs, path, os, setTimeout, setInterval, clearTimeout, clearInterval, base64Decode, base64Encode
|
||||||
|
// Use console.log or ctx.log to output information that can be found in the software log file piclist.log
|
||||||
|
|
||||||
async function main(ctx, extra) {
|
async function main(ctx, extra) {
|
||||||
// Write your script code here
|
// Write your script code here
|
||||||
|
|||||||
Reference in New Issue
Block a user