aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2021-11-01 15:14:04 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2021-11-01 15:14:04 +0530
commit27ffda874e6808a7815ea7844355802afaad9599 (patch)
tree194011a66b86e3c603e964426c487813e62e943a /scripts
parentUse PascalCasing for generated backend API class name (#759) (diff)
downloadferdium-recipes-27ffda874e6808a7815ea7844355802afaad9599.tar.gz
ferdium-recipes-27ffda874e6808a7815ea7844355802afaad9599.tar.zst
ferdium-recipes-27ffda874e6808a7815ea7844355802afaad9599.zip
chore: remove empty 'service.css' from recipes. Remove 'README.md' from the creation script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create.js1
-rw-r--r--scripts/sample_recipe/README.md2
-rw-r--r--scripts/sample_recipe/service.css1
-rw-r--r--scripts/sample_recipe/webview.js8
4 files changed, 1 insertions, 11 deletions
diff --git a/scripts/create.js b/scripts/create.js
index f171290..6ba1ee4 100644
--- a/scripts/create.js
+++ b/scripts/create.js
@@ -24,7 +24,6 @@ const filesThatNeedTextReplace = [
24 'package.json', 24 'package.json',
25 'index.js', 25 'index.js',
26 'webview.js', 26 'webview.js',
27 'README.md',
28]; 27];
29 28
30const toPascalCase = (str) => { 29const toPascalCase = (str) => {
diff --git a/scripts/sample_recipe/README.md b/scripts/sample_recipe/README.md
deleted file mode 100644
index 40ddca5..0000000
--- a/scripts/sample_recipe/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
1# SNAME for Ferdi
2This is a Ferdi recipe for SNAME
diff --git a/scripts/sample_recipe/service.css b/scripts/sample_recipe/service.css
deleted file mode 100644
index 38dcab0..0000000
--- a/scripts/sample_recipe/service.css
+++ /dev/null
@@ -1 +0,0 @@
1/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/scripts/sample_recipe/webview.js b/scripts/sample_recipe/webview.js
index a6596b1..29cca49 100644
--- a/scripts/sample_recipe/webview.js
+++ b/scripts/sample_recipe/webview.js
@@ -1,14 +1,8 @@
1var _path = _interopRequireDefault(require('path')); 1module.exports = () => {
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = Ferdi => {
6 // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges 2 // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
7 // const getMessages = () => { 3 // const getMessages = () => {
8 // // TODO: Insert your notification-finding code here 4 // // TODO: Insert your notification-finding code here
9 // Ferdi.setBadge(0, 0); 5 // Ferdi.setBadge(0, 0);
10 // }; 6 // };
11 // Ferdi.loop(getMessages); 7 // Ferdi.loop(getMessages);
12
13 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
14}; 8};