321 comments functionality (#1596)

* Add a comments functionality for admins to discuss challenges, users, teams, pages
* Adds `/api/v1/comments`
* Adds a `CommentBox.vue` component for the Admin Panel
* Closes #321
This commit is contained in:
Kevin Chung
2020-08-12 19:55:47 -04:00
committed by GitHub
parent 6559846452
commit b73433e1c9
23 changed files with 1095 additions and 30 deletions

View File

@@ -65,6 +65,7 @@ function getJSConfig(root, type, entries, mode) {
return {
entry: out,
mode: mode,
output: {
path: path.resolve(__dirname, 'CTFd', root, 'static', type),
publicPath: '/' + root + '/static/' + type,
@@ -147,7 +148,16 @@ function getJSConfig(root, type, entries, mode) {
},
cacheBusting: true,
},
}
},
// This rule is magically used to load the <style> section of VueJS SFC.
// Don't really understand what magic Vue is using here but it works.
{
test: /\.css$/,
use: [
'vue-style-loader',
'css-loader'
]
},
],
},
plugins: [
@@ -184,6 +194,7 @@ function getCSSConfig(root, type, entries, mode) {
return {
entry: out,
mode: mode,
output: {
path: path.resolve(__dirname, 'CTFd', root, 'static', type),
publicPath: '/' + root + '/static/' + type,
@@ -208,13 +219,6 @@ function getCSSConfig(root, type, entries, mode) {
}
]
},
// {
// test: /\.css$/,
// use: [
// 'vue-style-loader',
// 'css-loader'
// ]
// },
{
test: /\.(s?)css$/,
use: [