Skip to content

Commit

Permalink
Added factory images (eclipse-che#4725)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshaposhnik authored Apr 6, 2017
1 parent 62a76b1 commit fdc60a1
Showing 5 changed files with 64 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
*/

public class DashboardRedirectionFilter implements Filter {
private static Pattern projectPattern = Pattern.compile("^/[^/]+?/.+");
private static Pattern projectPattern = Pattern.compile("^/(_app|[^/]+?)/.+");

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

RewriteRule ^/api/(.*)$ /wsmaster/api/$1 [L]
RewriteRule ^/factory/resources/(.*)$ /_app/$1 [L]
RewriteRule ^/factory\\?(.*)$ /dashboard/#/load-factory/$1 [R,NE]
RewriteRule ^/factory/(.*)$ /dashboard/#/load-factory/$1 [R,NE]
RewriteRule ^/f/?(.*)$ /dashboard/#/load-factory/$1 [R,NE]
RewriteRule ^/f\\?(.*)$ /dashboard/#/load-factory/$1 [R,NE]

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions assembly/assembly-ide-war/src/main/webapp/_app/factory-review.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -27,6 +27,6 @@ public interface GitHubTemplates extends HostingServiceTemplates {
@DefaultMessage("https://github.com/{0}/{1}/pull/{2}")
String pullRequestUrlTemplate(String username, String repository, String pullRequestNumber);

@DefaultMessage("[![Review]({0}//{1}/factory/resources/codenvy-review.svg)]({2})")
@DefaultMessage("[![Review]({0}//{1}/factory/resources/factory-review.svg)]({2})")
String formattedReviewFactoryUrlTemplate(String protocol, String host, String reviewFactoryUrl);
}

0 comments on commit fdc60a1

Please sign in to comment.