From efe7867da9e11c0c6fd4782d398910a8f8d3763c Mon Sep 17 00:00:00 2001 From: iMidnight Date: Thu, 26 Jan 2023 20:04:33 +0000 Subject: [PATCH 01/24] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c7b01762..e4b48272 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dbd-soft-ui", - "version": "1.6.0-beta.1", + "version": "1.6.1-beta.1", "typings": ".d.ts", "author": { "name": "iMidnight" From 5023c36507fa22a1116a4d82b92fd427d130ef3d Mon Sep 17 00:00:00 2001 From: iMidnight Date: Fri, 27 Jan 2023 16:06:17 +0000 Subject: [PATCH 02/24] Contributing --- CONTRIBUTING.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..f2b82f7d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,37 @@ +# Contributions are welcome! Please read the following guidelines before contributing. + +## How to contribute + +1. Fork the project +2. Create a new branch +3. Commit your changes +4. Ensure features are tested and documented +5. Create a new Pull Request + +## How to update the documentation + +1. Head to the [Documentation Repo](https://github.com/Assistants-Center/Soft-UI-Docs) +2. Fork the project +3. Create a new branch +4. Preview docs with `yarn docs:dev` +5. Make changes to the docs +6. Commit your changes +7. Create a new Pull Request + +## Submitting a bug report + +1. Join the [Discord Server](https://discord.gg/CHbfcSbEgd) +2. Create a new post in the #report-bug channel +3. Describe the bug +4. Provide a codepen and steps to reproduce the bug +5. Provide screenshots if possible and any console errors + +## Submitting a feature request + +1. Join the [Discord Server](https://discord.gg/CHbfcSbEgd) +2. Create a new post in the #suggestions channel +3. Describe the feature +4. Provide screenshots if possible + +### Thank you for your contributions! +#### Assistants Center \ No newline at end of file From 4aa6557e3e0faab831bf7960c05b50cd90b6d3e8 Mon Sep 17 00:00:00 2001 From: Ragnar Lothbrok Date: Fri, 27 Jan 2023 17:17:03 +0000 Subject: [PATCH 03/24] Pass userid for use in a future change to DBD formTypes --- utils/functions/settingsPage.js | 1 + views/components/formTypes/channelsMultiSelect.ejs | 2 +- views/components/formTypes/channelsSelect.ejs | 2 +- views/components/formTypes/rolesMultiSelect.ejs | 2 +- views/components/formTypes/rolesSelect.ejs | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/functions/settingsPage.js b/utils/functions/settingsPage.js index ed57eb19..adee561f 100644 --- a/utils/functions/settingsPage.js +++ b/utils/functions/settingsPage.js @@ -294,6 +294,7 @@ module.exports = function (config, themeConfig) { canUseList, bot: config.bot, guild, + userid: req.session.user.id, gIcon, req: req, guildid: req.params.id, diff --git a/views/components/formTypes/channelsMultiSelect.ejs b/views/components/formTypes/channelsMultiSelect.ejs index 8936834f..de089e5a 100644 --- a/views/components/formTypes/channelsMultiSelect.ejs +++ b/views/components/formTypes/channelsMultiSelect.ejs @@ -21,7 +21,7 @@ > <% if (actual[s.categoryId][option.optionId]) { let ioooooo = 0; - let functiona = option.optionType.function(bot, guildid); + let functiona = option.optionType.function(bot, guildid, userid); functiona.values.forEach(value=>{ %>