From fc0b3adc3b020a851f8c5eda2123a3e69a62213d Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Mon, 14 Mar 2022 21:57:43 +0000 Subject: [PATCH 1/7] [CodeFactor] Apply fixes to commit 8554949 --- src/dashboard/index.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/dashboard/index.js b/src/dashboard/index.js index a037245..9a73989 100644 --- a/src/dashboard/index.js +++ b/src/dashboard/index.js @@ -1,4 +1,4 @@ -let DBD = require('discord-dashboard'); +const DBD = require('discord-dashboard'); const config = require('../../config.json'); const DarkDashboard = require('dbd-dark-dashboard'); @@ -83,10 +83,9 @@ module.exports = async (client) => { setNew: async ({ guild, newData }) => { const guildData = await guilds.findOne({ guildId: guild.id }); - guildData.credits.status = newData ? true : false; + guildData.credits.status = !!newData; await guildData.save(); - return; }, }, { @@ -108,8 +107,6 @@ module.exports = async (client) => { guildData.credits.rate = newData; await guildData.save(); - - return; }, }, { @@ -131,8 +128,6 @@ module.exports = async (client) => { guildData.credits.minimumLength = newData; await guildData.save(); - - return; }, }, { @@ -154,8 +149,6 @@ module.exports = async (client) => { guildData.credits.timeout = newData; await guildData.save(); - - return; }, }, { @@ -177,8 +170,6 @@ module.exports = async (client) => { guildData.credits.workRate = newData; await guildData.save(); - - return; }, }, { @@ -200,8 +191,6 @@ module.exports = async (client) => { guildData.credits.workTimeout = newData; await guildData.save(); - - return; }, }, ], @@ -226,8 +215,6 @@ module.exports = async (client) => { api.url = newData || url; await api.save(); - - return; }, }, { @@ -245,8 +232,6 @@ module.exports = async (client) => { api.token = newData || token; await api.save(); - - return; }, }, ], From 9ae871bd26cf2864b99de50f5f53d8b9a6a88a70 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 15 Mar 2022 10:09:04 +0100 Subject: [PATCH 2/7] Update feature_request.md --- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7..35dce83 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -2,7 +2,7 @@ name: Feature request about: Suggest an idea for this project title: '' -labels: '' +labels: 'enchancement' assignees: '' --- From 8e3f95df725d01ec9fdea90bbb3a9b5436a3e599 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 15 Mar 2022 10:09:31 +0100 Subject: [PATCH 3/7] Update feature_request.md --- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 35dce83..36014cd 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -2,7 +2,7 @@ name: Feature request about: Suggest an idea for this project title: '' -labels: 'enchancement' +labels: 'enhancement' assignees: '' --- From 4ae860193da5639ea20388663f784fda2a4c2dba Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 15 Mar 2022 10:09:59 +0100 Subject: [PATCH 4/7] Update bug_report.md --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..81c7b58 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -2,7 +2,7 @@ name: Bug report about: Create a report to help us improve title: '' -labels: '' +labels: 'bug' assignees: '' --- From 57d61d99e94babdf9428defde57cfe9bce114eef Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 15 Mar 2022 11:00:42 +0100 Subject: [PATCH 5/7] Set theme jekyll-theme-cayman --- docs/_config.yml | 1 + docs/index.md | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 docs/_config.yml create mode 100644 docs/index.md diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 0000000..c419263 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..15477ff --- /dev/null +++ b/docs/index.md @@ -0,0 +1,37 @@ +## Welcome to GitHub Pages + +You can use the [editor on GitHub](https://github.com/ZynerOrg/xyter/edit/main/docs/index.md) to maintain and preview the content for your website in Markdown files. + +Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files. + +### Markdown + +Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for + +```markdown +Syntax highlighted code block + +# Header 1 +## Header 2 +### Header 3 + +- Bulleted +- List + +1. Numbered +2. List + +**Bold** and _Italic_ and `Code` text + +[Link](url) and ![Image](src) +``` + +For more details see [Basic writing and formatting syntax](https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax). + +### Jekyll Themes + +Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/ZynerOrg/xyter/settings/pages). The name of this theme is saved in the Jekyll `_config.yml` configuration file. + +### Support or Contact + +Having trouble with Pages? Check out our [documentation](https://docs.github.com/categories/github-pages-basics/) or [contact support](https://support.github.com/contact) and we’ll help you sort it out. From 183fe58190764327671de2d32c61435dfb005752 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 15 Mar 2022 11:00:45 +0100 Subject: [PATCH 6/7] Create index.md From 1b26a7eb41864ec6861c7f09ad29eca274b165c9 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 15 Mar 2022 11:39:55 +0100 Subject: [PATCH 7/7] Update .prettierrc --- .prettierrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.prettierrc b/.prettierrc index 0a72520..bd84c9d 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,6 +1,7 @@ { "trailingComma": "es5", "tabWidth": 2, + "tabs": true, "semi": true, "singleQuote": true }