Skip to content

Commit

Permalink
Merge pull request #43 from CMU-313/yuki-polls-sprint1
Browse files Browse the repository at this point in the history
[WIP] Added new create-poll button in post drafting interface (no forms linked yet)
  • Loading branch information
yukiiii04 authored Feb 11, 2025
2 parents 722c2ad + cb4347e commit a94d727
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
dist/
yarn.lock
npm-debug.log
node_modules/
node_modules/*
!/node_modules/nodebb-plugin-composer-default
/node_modules/nodebb-plugin-composer-default/*
!/node_modules/nodebb-plugin-composer-default/static/
/node_modules/nodebb-plugin-composer-default/static/*
!/node_modules/nodebb-plugin-composer-default/static/templates/
/node_modules/nodebb-plugin-composer-default/static/templates/*
!/node_modules/nodebb-plugin-composer-default/static/templates/partials/
/node_modules/nodebb-plugin-composer-default/static/templates/partials/*
!/node_modules/nodebb-plugin-composer-default/static/templates/partials/composer-formatting.tpl
sftp-config.json
config.json
jsconfig.json
Expand Down
Binary file added dump.rdb
Binary file not shown.
2 changes: 2 additions & 0 deletions public/language/en-US/admin/manage/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"optional-clone-settings": "(Optional) Clone Settings From Category",
"clone-children": "Clone Children Categories And Settings",
"purge": "Purge Category",
"upload-files": "Upload Files",
"create-poll": "Create Poll",

"enable": "Enable",
"disable": "Disable",
Expand Down
1 change: 1 addition & 0 deletions public/language/en-US/admin/manage/privileges.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"chat-with-privileged": "Chat with Privileged",
"upload-images": "Upload Images",
"upload-files": "Upload Files",
"create-poll": "Create Poll",
"signature": "Signature",
"ban": "Ban",
"mute": "Mute",
Expand Down
1 change: 1 addition & 0 deletions public/language/en-US/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"ip-address": "IP Address",
"enter-page-number": "Enter page number",
"upload-file": "Upload file",
"create-poll": "Create Poll",
"upload": "Upload",
"uploads": "Uploads",
"allowed-file-types": "Allowed file types are %1",
Expand Down
1 change: 1 addition & 0 deletions public/language/en-US/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"composer.upload-picture": "Upload Image",
"composer.upload-file": "Upload File",
"composer.zen-mode": "Zen Mode",
"composer.create-poll": "Create Poll",
"composer.select-category": "Select a category",
"composer.textarea.placeholder": "Enter your post content here, drag and drop images",
"composer.post-queue-alert": "Hello👋!<br/>This forum uses a post queue system, since you are a new user your post will be hidden until it is approved by our moderation team.",
Expand Down
7 changes: 4 additions & 3 deletions src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,10 @@ async function giveGlobalPrivileges() {
await privileges.global.give(defaultPrivileges.concat(['groups:view:users:info']), 'Instructors');
console.log('===000===000===GAVE INSTRUCTORS PERMS');
await privileges.global.give(defaultPrivileges.concat([
'groups:ban', 'groups:upload:post:file']), 'Global Moderators');
await privileges.global.give(['groups:view:users', 'groups:view:tags', 'groups:view:groups'], 'guests');
await privileges.global.give(['groups:view:users', 'groups:view:tags', 'groups:view:groups'], 'spiders');
'groups:ban', 'groups:upload:post:file', 'create-poll']), 'Global Moderators');
await privileges.global.give(['groups:view:users', 'groups:view:tags', 'groups:view:groups', 'create-poll'], 'guests');
await privileges.global.give(['groups:view:users', 'groups:view:tags', 'groups:view:groups', 'create-poll'], 'spiders');
await privileges.global.give(['groups:view:users', 'groups:view:tags', 'groups:upload:post:file', 'groups:view:groups', 'create-poll'], 'Instructors');
}

async function createCategories() {
Expand Down

0 comments on commit a94d727

Please sign in to comment.