-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhaul ui-samples as the Jenkins Design Library (#14)
Co-authored-by: Alex <brandes.alexander@web.de> Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> Co-authored-by: Tim Jacomb <timjacomb1+github@gmail.com>
- Loading branch information
1 parent
84aef4e
commit 57437b2
Showing
149 changed files
with
2,329 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
root = true | ||
|
||
[*.{jelly, js, html, less, css, hbs}] | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
.settings/ | ||
.idea/ | ||
.DS_Store | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/io/jenkins/plugins/designlibrary/AppBar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
@Extension | ||
public class AppBar extends UISample { | ||
@Override | ||
public String getDisplayName() { | ||
return "App bars"; | ||
} | ||
|
||
@Override | ||
public String getIconFileName() { | ||
return "symbol-app-bar"; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
src/main/java/io/jenkins/plugins/designlibrary/Buttons.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
/** | ||
* @author Kohsuke Kawaguchi | ||
*/ | ||
@Extension | ||
public class Buttons extends UISample { | ||
@Override | ||
public String getIconFileName() { | ||
return "symbol-buttons"; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
src/main/java/io/jenkins/plugins/designlibrary/Checkboxes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
/** | ||
* @author Kohsuke Kawaguchi | ||
*/ | ||
@Extension | ||
public class Checkboxes extends UISample { | ||
@Override | ||
public String getIconFileName() { | ||
return "symbol-checkboxes"; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
25 changes: 25 additions & 0 deletions
25
src/main/java/io/jenkins/plugins/designlibrary/Colors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
@Extension | ||
public class Colors extends UISample { | ||
@Override | ||
public String getIconFileName() { | ||
return "symbol-colors"; | ||
} | ||
|
||
public List<String> getColors() { | ||
// Uncomment these once these colors are in core | ||
// return Arrays.asList("red", "green", "orange", "yellow", "blue", "indigo", "violet"); | ||
return Arrays.asList("red", "green", "orange"); | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/io/jenkins/plugins/designlibrary/InpageNavigationWithBreadcrumb.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
/** | ||
* @author Kohsuke Kawaguchi | ||
*/ | ||
@Extension | ||
public class InpageNavigationWithBreadcrumb extends UISample { | ||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/io/jenkins/plugins/designlibrary/Notifications.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
|
||
/** | ||
* @author Kohsuke Kawaguchi | ||
*/ | ||
@Extension | ||
public class Notifications extends UISample { | ||
@Override | ||
public String getIconFileName() { | ||
return "symbol-notifications"; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/io/jenkins/plugins/designlibrary/Radios.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
import jenkins.model.Jenkins; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Extension | ||
public class Radios extends UISample { | ||
@Override | ||
public String getIconFileName() { | ||
return "symbol-radios"; | ||
} | ||
|
||
public List<UISample> getRadios() { | ||
return new ArrayList<>(Jenkins.get().getExtensionList(UISample.class)).subList(0, 4); | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends UISampleDescriptor { | ||
} | ||
} | ||
|
Oops, something went wrong.