-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
- Loading branch information
1 parent
52851c2
commit c3b99fb
Showing
168 changed files
with
3,142 additions
and
2,358 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
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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/io/jenkins/plugins/designlibrary/Category.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,16 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
public enum Category { | ||
COMPONENT("Components"), | ||
PATTERN("Patterns"); | ||
|
||
Category(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
|
||
private final String displayName; | ||
|
||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
} |
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
14 changes: 0 additions & 14 deletions
14
src/main/java/io/jenkins/plugins/designlibrary/Conventions.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/main/java/io/jenkins/plugins/designlibrary/Dialogs.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
14 changes: 0 additions & 14 deletions
14
src/main/java/io/jenkins/plugins/designlibrary/Dropdowns.java
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package io.jenkins.plugins.designlibrary; | ||
|
||
import hudson.Extension; | ||
import hudson.model.RootAction; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* Entry point to all the UI samples. | ||
* | ||
* @author Kohsuke Kawaguchi | ||
*/ | ||
@Extension | ||
public class Home implements RootAction { | ||
|
||
public String getIconFileName() { | ||
return "symbol-design-library plugin-design-library"; | ||
} | ||
|
||
public String getDisplayName() { | ||
return "Design Library"; | ||
} | ||
|
||
public String getUrlName() { | ||
return "design-library"; | ||
} | ||
|
||
public List<UISample> getAll() { | ||
return UISample.getAll(); | ||
} | ||
|
||
public static Map<Category, List<UISample>> getGrouped() { | ||
return UISample.getGrouped(); | ||
} | ||
|
||
/** | ||
* Dynamically retrieves the appropriate UI sample based on the current URL | ||
*/ | ||
public UISample getDynamic(String name) { | ||
for (UISample ui : getAll()) { | ||
String urlName = ui.getUrlName(); | ||
if (urlName != null && urlName.equals(name)) { | ||
return ui; | ||
} | ||
} | ||
return null; | ||
} | ||
} |
Oops, something went wrong.
Is the design library URL not valid anymore? It was quite handy to see the results somewhere deployed.