From 258c32a3277abac9f5999c1cae7c3baef2b56a4d Mon Sep 17 00:00:00 2001 From: ppoffice Date: Sat, 9 Nov 2019 16:22:34 -0500 Subject: [PATCH] fix(plugin): fix animejs locals file name & add subscribe email widget specs --- includes/specs/widgets.spec.js | 17 ++++++++++++++++- .../{animejs.local.js => animejs.locals.js} | 0 2 files changed, 16 insertions(+), 1 deletion(-) rename layout/plugin/{animejs.local.js => animejs.locals.js} (100%) diff --git a/includes/specs/widgets.spec.js b/includes/specs/widgets.spec.js index 264de9b..49e496f 100644 --- a/includes/specs/widgets.spec.js +++ b/includes/specs/widgets.spec.js @@ -125,6 +125,20 @@ const LinksSpec = { } }; +const SubscrbieEmailSpec = { + feedburner_id: { + [type]: 'string', + [doc]: 'Feedburner ID', + [required]: true, + [requires]: parent => parent.type === 'subscribe_email' + }, + description: { + [type]: 'string', + [doc]: 'Hint text under the subscription input', + [requires]: parent => parent.type === 'subscribe_email' + } +}; + module.exports = { [type]: 'array', [doc]: 'Sidebar widget settings\nhttps://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/', @@ -146,6 +160,7 @@ module.exports = { [defaultValue]: 'left' }, ...ProfileSpec, - ...LinksSpec + ...LinksSpec, + ...SubscrbieEmailSpec } } \ No newline at end of file diff --git a/layout/plugin/animejs.local.js b/layout/plugin/animejs.locals.js similarity index 100% rename from layout/plugin/animejs.local.js rename to layout/plugin/animejs.locals.js