mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user