Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Nov 13, 2024
1 parent 76d5c47 commit c5ccb09
Show file tree
Hide file tree
Showing 29 changed files with 1,778 additions and 873 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [17, 21]
java: [21]

name: Java ${{ matrix.java }}
steps:
Expand Down
110 changes: 106 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<wicket:panel xmlns:wicket="http://wicket.apache.org">
<p wicket:id="paragraph" class="nl-paragraph">
<b wicket:id="lead" class="nl-paragraph__lead"></span>
</button>
<b wicket:id="lead" class="nl-paragraph__lead"></b>
</p>
</wicket:panel>
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package nl.nldesignsystem.candidate;

public class CandidateParagraph {

}
public class CandidateParagraph {}
22 changes: 22 additions & 0 deletions src/main/java/nl/rotterdam/wicket/HTMLUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package nl.rotterdam.wicket;

import java.util.Arrays;
import java.util.stream.Collectors;

public class HTMLUtil {

public static String className(String... classes) {
return joinTokens(classes);
}

public static String idRefs(String... classes) {
return joinTokens(classes);
}

public static String joinTokens(String... classes) {
return Arrays.asList(classes)
.stream()
.filter(className -> className != null && !className.trim().isEmpty())
.collect(Collectors.joining(" "));
}
}
14 changes: 6 additions & 8 deletions src/main/java/nl/rotterdam/wicket/docs/Changelog.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package nl.rotterdam.wicket.docs;

import nl.utrecht.components.UtrechtCodeBlock;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.Model;

public class Changelog extends EmptyPage
{
public Changelog()
{
add( new Label( TITLE_ID, "Changelog · Apache Wicket · Rotterdam Design System"));
public class Changelog extends EmptyPage {

public Changelog() {
add(new Label(TITLE_ID, "Changelog · Apache Wicket · Rotterdam Design System"));

add( new UtrechtCodeBlock( "changelog", Model.of("Reload Page")));
}
add(new UtrechtCodeBlock("changelog", Model.of("Reload Page")));
}
}
88 changes: 44 additions & 44 deletions src/main/java/nl/rotterdam/wicket/docs/Components.html
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
<html xmlns="http://www.w3.org/1999/html">
<body>
<wicket:extend>
<h1>Components 2</h1>
<h2>Code</h2>
<div class="example-story" wicket:id="code-example"></div>
<h2>Code Block</h2>
<div class="example-story" wicket:id="code-block-example"></div>
<h2>Heading</h2>
<h3>Heading 1</h3>
<div class="example-story" wicket:id="heading-1-example"></div>
<h3>Heading 2</h3>
<div class="example-story" wicket:id="heading-2-example"></div>
<h3>Heading 3</h3>
<div class="example-story" wicket:id="heading-3-example"></div>
<h3>Heading 4</h3>
<div class="example-story" wicket:id="heading-4-example"></div>
<h3>Heading 5</h3>
<div class="example-story" wicket:id="heading-5-example"></div>
<h3>Heading 6</h3>
<div class="example-story" wicket:id="heading-6-example"></div>
<h3>Heading level 1</h3>
<div class="example-story" wicket:id="heading-level-1-example"></div>
<!--
<h3>Heading level 2</h3>
<div class="example-story" wicket:id="heading-level-2-example"></div>
<h3>Heading level 3</h3>
<div class="example-story" wicket:id="heading-level-3-example"></div>
<h3>Heading level 4</h3>
<div class="example-story" wicket:id="heading-level-4-example"></div>
<h3>Heading level 5</h3>
<div class="example-story" wicket:id="heading-level-5-example"></div>
<h3>Heading level 6</h3>
<div class="example-story" wicket:id="heading-level-6-example"></div>
-->
<h3>Action Group</h3>
<div class="example-story" wicket:id="action-group-example"></div>
<h3>Form Field with Checkbox</h3>
<div class="example-story" wicket:id="form-field-checkbox-example"></div>
<h3>Form Field with Checkbox (checked)</h3>
<div class="example-story" wicket:id="form-field-checkbox-checked-example"></div>
<h3>Form Field with Checkbox (required)</h3>
<div class="example-story" wicket:id="form-field-checkbox-required-example"></div>
<h3>Form Field with Checkbox (invalid)</h3>
<div class="example-story" wicket:id="form-field-checkbox-invalid-example"></div>
<h3>Form Field with Checkbox (description)</h3>
<div class="example-story" wicket:id="form-field-checkbox-description-example"></div>
<div style="margin-inline: auto; max-width: 40em">
<h1>Components 2</h1>
<h2>Code</h2>
<div class="example-story" wicket:id="code-example"></div>
<h2>Code Block</h2>
<div class="example-story" wicket:id="code-block-example"></div>
<h2>Heading</h2>
<h3>Heading 1</h3>
<div class="example-story" wicket:id="heading-1-example"></div>
<h3>Heading 2</h3>
<div class="example-story" wicket:id="heading-2-example"></div>
<h3>Heading 3</h3>
<div class="example-story" wicket:id="heading-3-example"></div>
<h3>Heading 4</h3>
<div class="example-story" wicket:id="heading-4-example"></div>
<h3>Heading 5</h3>
<div class="example-story" wicket:id="heading-5-example"></div>
<h3>Heading 6</h3>
<div class="example-story" wicket:id="heading-6-example"></div>
<h3>Heading level 1</h3>
<div class="example-story" wicket:id="heading-level-1-example"></div>
<h3>Heading level 2</h3>
<div class="example-story" wicket:id="heading-level-2-example"></div>
<h3>Heading level 3</h3>
<div class="example-story" wicket:id="heading-level-3-example"></div>
<h3>Heading level 4</h3>
<div class="example-story" wicket:id="heading-level-4-example"></div>
<h3>Heading level 5</h3>
<div class="example-story" wicket:id="heading-level-5-example"></div>
<h3>Heading level 6</h3>
<div class="example-story" wicket:id="heading-level-6-example"></div>
<h3>Action Group</h3>
<div class="example-story" wicket:id="action-group-example"></div>
<h3>Form Field with Checkbox</h3>
<div class="example-story"><div wicket:id="form-field-checkbox-example"></div></div>
<h3>Form Field with Checkbox (checked)</h3>
<div class="example-story"><div wicket:id="form-field-checkbox-checked-example"></div></div>
<h3>Form Field with Checkbox (required)</h3>
<div class="example-story"><div wicket:id="form-field-checkbox-required-example"></div></div>
<h3>Form Field with Checkbox (invalid)</h3>
<div class="example-story"><div wicket:id="form-field-checkbox-invalid-example"></div></div>
<h3>Form Field with Checkbox (description)</h3>
<div class="example-story"><div wicket:id="form-field-checkbox-description-example"></div></div>
</div>
</wicket:extend>
</body>
</html>
Loading

0 comments on commit c5ccb09

Please sign in to comment.