Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
Copy link

Copilot AI Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider disabling only targeted ESLint rules instead of using a blanket disable to maintain better code quality.

Suggested change
/* eslint-disable */
/* eslint-disable no-var, prefer-arrow-callback, no-unused-vars */

Copilot uses AI. Check for mistakes.
var ElapsedTimeBar = {
// default value
barColor: 'rgb(200,0,0)',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
Copy link

Copilot AI Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Using a blanket 'eslint-disable' can hide potential issues; consider disabling only the specific ESLint rules that require suppression.

Suggested change
/* eslint-disable */
/* eslint-disable no-var, no-unused-vars */

Copilot uses AI. Check for mistakes.
var RevealSpotlight = window.RevealSpotlight || (function () {

//configs
Expand Down
4 changes: 2 additions & 2 deletions public/js/slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ delete options.dependencies

if (Object.hasOwnProperty.call(options, 'spotlight')) {
defaultOptions.dependencies.push({
src: `${serverurl}/build/reveal.js/plugin/spotlight/spotlight.js`
src: `${serverurl}/build/revealjs-plugins/spotlight/spotlight.js`
})
}

if (Object.hasOwnProperty.call(options, 'allottedTime') || Object.hasOwnProperty.call(options, 'allottedMinutes')) {
defaultOptions.dependencies.push({
src: `${serverurl}/build/reveal.js/plugin/elapsed-time-bar/elapsed-time-bar.js`
src: `${serverurl}/build/revealjs-plugins/elapsed-time-bar/elapsed-time-bar.js`
})
if (Object.hasOwnProperty.call(options, 'allottedMinutes')) {
options.allottedTime = options.allottedMinutes * 60 * 1000
Expand Down
5 changes: 5 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ module.exports = {
from: 'plugin',
to: 'reveal.js/plugin'
},
{
context: path.join(__dirname, 'public/js'),
from: 'revealjs-plugins',
to: 'revealjs-plugins'
},
{
context: path.join(__dirname, 'node_modules/dictionary-de'),
from: '*',
Expand Down