Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Ignore custom templates folder.
/assets/shared/custom-templates/*

# Ignore custom screen layouts folder.
/assets/shared/custom-screen-layouts/*

# Ignore the public/fixtures folder.
/public/fixtures

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.
* Removed admin/access-config.json fetch
* Aligned with v. 2.5.2.
* Removed themes.
* Refactored screen layout commands.
* Added command to migrate config.json files.

### NB! Prior to 3.x the project was split into separate repositories
Expand Down
343 changes: 313 additions & 30 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ tasks:
coding-standards:markdown:apply:
desc: "Apply coding standards for Markdown."
cmds:
- docker compose run --rm --volume "$PWD:/md" markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'documentation/*.md' --fix
- docker compose run --rm --volume "$PWD:/md" markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'docs/**/*.md' --fix

coding-standards:markdown:check:
desc: "Check coding standards for Markdown."
cmds:
- docker compose run --rm --volume "$PWD:/md" markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'documentation/*.md'
- docker compose run --rm --volume "$PWD:/md" markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'docs/**/*.md'

coding-standards:php:apply:
desc: "Apply coding standards for PHP."
Expand Down
25 changes: 21 additions & 4 deletions assets/shared/custom-templates-example/custom-template-example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,29 @@ import templateConfig from "./custom-template-example.json";
import BaseSlideExecution from "../slide-utils/base-slide-execution.js";
import { ThemeStyles } from "../slide-utils/slide-util.jsx";

/**
* Get the ULID of the template.
* @return {string} The ULID of the template.
*/
function id() {
return templateConfig.id;
}

/**
* Get the config object of the template.
* @return {{title: string, id: string, options: {}, adminForm: {}}}
*/
function config() {
return templateConfig;
}

/**
* Render the slide.
* @param {object} slide The slide data.
* @param {string} run A date string set when the slide should start running.
* @param slideDone A function to invoke when the slide is done playing.
* @return {JSX.Element} The component.
*/
function renderSlide(slide, run, slideDone) {
return (
<CustomTemplateExample
Expand All @@ -27,9 +42,9 @@ function renderSlide(slide, run, slideDone) {
* @param {object} props Props.
* @param {object} props.slide The slide.
* @param {object} props.content The slide content.
* @param {boolean} props.run Whether or not the slide should start running.
* @param {Function} props.slideDone Function to invoke when the slide is done playing.
* @param {string} props.executionId Unique id for the instance.
* @param {string} props.run A date string set when the slide should start running.
* @param {Function} props.slideDone A function to invoke when the slide is done playing.
* @param {string} props.executionId A unique id for the instance.
* @returns {JSX.Element} The component.
*/
function CustomTemplateExample({
Expand Down Expand Up @@ -60,7 +75,9 @@ function CustomTemplateExample({
<h1 className="title">{title}</h1>
</div>

<ThemeStyles id={executionId} css={slide?.theme?.cssStyles} />
{slide?.theme?.cssStyles && (
<ThemeStyles id={executionId} css={slide.theme.cssStyles} />
)}
</>
);
}
Expand Down
18 changes: 9 additions & 9 deletions assets/template/fixtures/screen-fixtures.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import twoBoxes from "../screen-layouts/two-boxes.json";
import threeBoxes from "../screen-layouts/three-boxes.json";
import threeBoxesHorizontal from "../screen-layouts/three-boxes-horizontal.json";
import twoBoxesVertical from "../screen-layouts/two-boxes-vertical.json";
import touchTemplate from "../screen-layouts/touch-template.json";
import sixAreas from "../screen-layouts/six-areas.json";
import fullScreen from "../screen-layouts/full-screen.json";
import fourAreas from "../screen-layouts/four-areas.json";
import twoBoxesVerticalReversed from "../screen-layouts/two-boxes-vertical-reversed.json";
import twoBoxes from "../../shared/screen-layouts/two-boxes.json";
import threeBoxes from "../../shared/screen-layouts/three-boxes.json";
import threeBoxesHorizontal from "../../shared/screen-layouts/three-boxes-horizontal.json";
import twoBoxesVertical from "../../shared/screen-layouts/two-boxes-vertical.json";
import touchTemplate from "../../shared/screen-layouts/touch-template.json";
import sixAreas from "../../shared/screen-layouts/six-areas.json";
import fullScreen from "../../shared/screen-layouts/full-screen.json";
import fourAreas from "../../shared/screen-layouts/four-areas.json";
import twoBoxesVerticalReversed from "../../shared/screen-layouts/two-boxes-vertical-reversed.json";

const screenFixtures = [
{
Expand Down
Binary file added docs/test-guide/assets/anmeldelse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/test-guide/assets/billede-og-tekst.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/test-guide/assets/iframe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/test-guide/assets/rejseplanen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading