The Unified and Autonomous Development Platform
Change concept Project to Repository
steve7e6d3f9cd1f3
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/GitopWebApp.java b/gitop.web/src/main/java/com/pmease/gitop/web/GitopWebApp.javaindex d6a6ccdc5a..015890fdca 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/GitopWebApp.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/GitopWebApp.java@@ -54,7 +54,7 @@ import com.pmease.gitop.web.page.account.home.AccountHomePage;import com.pmease.gitop.web.page.account.setting.members.AccountMembersSettingPage;import com.pmease.gitop.web.page.account.setting.password.AccountPasswordPage;import com.pmease.gitop.web.page.account.setting.profile.AccountProfilePage;-import com.pmease.gitop.web.page.account.setting.projects.AccountProjectsPage;+import com.pmease.gitop.web.page.account.setting.repo.RepositoriesPage;import com.pmease.gitop.web.page.account.setting.teams.AccountTeamsPage;import com.pmease.gitop.web.page.account.setting.teams.AddTeamPage;import com.pmease.gitop.web.page.account.setting.teams.EditTeamPage;@@ -309,7 +309,7 @@ public class GitopWebApp extends AbstractWicketConfig {// account settingsmountPage("${user}/settings", AccountProfilePage.class);mountPage("${user}/settings/password", AccountPasswordPage.class);- mountPage("${user}/settings/projects", AccountProjectsPage.class);+ mountPage("${user}/settings/projects", RepositoriesPage.class);mountPage("${user}/settings/members", AccountMembersSettingPage.class);mountPage("${user}/settings/teams", AccountTeamsPage.class);mountPage("${user}/settings/teams/new", AddTeamPage.class);@@ -349,8 +349,8 @@ public class GitopWebApp extends AbstractWicketConfig {// getSharedResources().add(RawBlobResourceReference.RAW_BLOB_RESOURCE, new RawBlobResource());mountResource("avatar/${type}/${id}", new AvatarImageResourceReference());- mountResource("raw/${user}/${project}/${objectId}", new RawBlobResourceReference());- mountResource("archive/${user}/${project}/${file}", new GitArchiveResourceReference());+ mountResource("raw/${user}/${repo}/${objectId}", new RawBlobResourceReference());+ mountResource("archive/${user}/${repo}/${file}", new GitArchiveResourceReference());}public boolean isGravatarEnabled() {diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/vendor/ace-noconflict/ext-static_highlight.js b/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/vendor/ace-noconflict/ext-static_highlight.jsindex 5e3c4edfd1..c236a49712 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/vendor/ace-noconflict/ext-static_highlight.js+++ b/gitop.web/src/main/java/com/pmease/gitop/web/assets/js/vendor/ace-noconflict/ext-static_highlight.js@@ -84,7 +84,11 @@ var highlight = function(el, opts, callback) {data = data.trim();}- var hasLineId = opts.hasLineId || true;+ var hasLineId = opts.hasLineId;+ if (hasLineId === undefined) {+ hasLineId = true;+ }+highlight.render(data, mode, theme, opts.firstLineNumber, !opts.showGutter, hasLineId, function (highlighted) {dom.importCssString(highlighted.css, "ace_highlight");el.innerHTML = highlighted.html;diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/AccountSettingPage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/AccountSettingPage.javaindex 3659356566..9253fb0c5c 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/AccountSettingPage.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/AccountSettingPage.java@@ -31,7 +31,7 @@ import com.pmease.gitop.web.page.account.setting.api.AccountSettingTab;import com.pmease.gitop.web.page.account.setting.members.AccountMembersSettingPage;import com.pmease.gitop.web.page.account.setting.password.AccountPasswordPage;import com.pmease.gitop.web.page.account.setting.profile.AccountProfilePage;-import com.pmease.gitop.web.page.account.setting.projects.AccountProjectsPage;+import com.pmease.gitop.web.page.account.setting.repo.RepositoriesPage;import com.pmease.gitop.web.page.account.setting.teams.AccountTeamsPage;import com.pmease.gitop.web.page.account.setting.teams.EditTeamPage;@@ -51,7 +51,7 @@ public abstract class AccountSettingPage extends AbstractAccountPage {List<AccountSettingTab> tabs = Lists.newArrayList();tabs.add(new AccountSettingTab(Model.of("Profile"), AccountProfilePage.class));tabs.add(new AccountSettingTab(Model.of("Change Password"), AccountPasswordPage.class));- tabs.add(new AccountSettingTab(Model.of("Projects"), AccountProjectsPage.class));+ tabs.add(new AccountSettingTab(Model.of("Projects"), RepositoriesPage.class));tabs.add(new AccountSettingTab(Model.of("Teams"), new Class[] { AccountTeamsPage.class, EditTeamPage.class }));tabs.add(new AccountSettingTab(Model.of("Members"), AccountMembersSettingPage.class));diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/projects/AccountProjectsPage.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/repo/RepositoriesPage.htmlsimilarity index 100%rename from gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/projects/AccountProjectsPage.htmlrename to gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/repo/RepositoriesPage.htmldiff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/projects/AccountProjectsPage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/repo/RepositoriesPage.javasimilarity index 94%rename from gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/projects/AccountProjectsPage.javarename to gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/repo/RepositoriesPage.javaindex 1d1247d531..79047324ae 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/projects/AccountProjectsPage.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/repo/RepositoriesPage.java@@ -1,4 +1,4 @@-package com.pmease.gitop.web.page.account.setting.projects;+package com.pmease.gitop.web.page.account.setting.repo;import java.util.List;@@ -26,9 +26,9 @@ import com.pmease.gitop.web.page.project.settings.RepositoryOptionsPage;import com.pmease.gitop.web.util.DateUtils;@SuppressWarnings("serial")-public class AccountProjectsPage extends AccountSettingPage {+public class RepositoriesPage extends AccountSettingPage {- public AccountProjectsPage(PageParameters params) {+ public RepositoriesPage(PageParameters params) {super(params);}diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/ProjectAdded.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/RepositoryAdded.javasimilarity index 65%rename from gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/ProjectAdded.javarename to gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/RepositoryAdded.javaindex dd7a31ff87..486aab5ac1 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/ProjectAdded.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/RepositoryAdded.java@@ -4,9 +4,9 @@ import org.apache.wicket.ajax.AjaxRequestTarget;import com.pmease.gitop.web.common.wicket.event.AjaxEvent;-public class ProjectAdded extends AjaxEvent {+public class RepositoryAdded extends AjaxEvent {- public ProjectAdded(AjaxRequestTarget target) {+ public RepositoryAdded(AjaxRequestTarget target) {super(target);}diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamProjectsEditor.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamRepositoryEditor.htmlsimilarity index 100%rename from gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamProjectsEditor.htmlrename to gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamRepositoryEditor.htmldiff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamProjectsEditor.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamRepositoryEditor.javasimilarity index 98%rename from gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamProjectsEditor.javarename to gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamRepositoryEditor.javaindex 88ab29995c..780eeab48e 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamProjectsEditor.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/teams/TeamRepositoryEditor.java@@ -41,9 +41,9 @@ import com.vaynberg.wicket.select2.ChoiceProvider;import com.vaynberg.wicket.select2.Response;@SuppressWarnings("serial")-public class TeamProjectsEditor extends Panel {+public class TeamRepositoryEditor extends Panel {- public TeamProjectsEditor(String id, final IModel<Team> model) {+ public TeamRepositoryEditor(String id, final IModel<Team> model) {super(id, model);setOutputMarkupId(true);diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/api/GitPerson.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/api/GitPerson.javaindex 422195ad02..fa59a3ec5a 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/api/GitPerson.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/api/GitPerson.java@@ -44,9 +44,9 @@ public class GitPerson implements Serializable {}public Optional<User> asUser() {- User user = Gitop.getInstance(UserManager.class).findByName(getName());+ User user = Gitop.getInstance(UserManager.class).findByEmail(getEmailAddress());if (user == null) {- user = Gitop.getInstance(UserManager.class).findByEmail(getEmailAddress());+ user = Gitop.getInstance(UserManager.class).findByName(getName());}return Optional.fromNullable(user);diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/blob/renderer/highlighter/acehighlighter.js b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/blob/renderer/highlighter/acehighlighter.jsindex 94185ea81b..33d287f18b 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/blob/renderer/highlighter/acehighlighter.js+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/project/source/blob/renderer/highlighter/acehighlighter.js@@ -9,9 +9,9 @@ SourceHighlighter.highlight = function(element, hasLineId) {qsa(element).forEach(function(el) {var m = el.className.match(/lang-(\w+)|(text)/);- if (!m) return- var mode = "ace/mode/" + (m[1] || m[2]);- highlighter.highlight(el, {mode: mode, theme: "ace/theme/xcode", hasLineId: hasLineId});+ //if (!m) return+ //var mode = "ace/mode/" + (m[1] || m[2]);+ highlighter.highlight(el, {mode: "ace/mode/java", theme: "ace/theme/xcode", hasLineId: hasLineId});});$(function() {diff --git a/gitop.web/src/main/java/org/apache/tika/mime/custom-mimetypes.xml b/gitop.web/src/main/java/org/apache/tika/mime/custom-mimetypes.xmlindex a4891a68a8..a01f722e6a 100644--- a/gitop.web/src/main/java/org/apache/tika/mime/custom-mimetypes.xml+++ b/gitop.web/src/main/java/org/apache/tika/mime/custom-mimetypes.xml@@ -148,6 +148,17 @@<match value="#!/usr/bin/env escript" type="string" offset="0" /></magic><sub-class-of type="text/plain"/>- </mime-type>-+ </mime-type>++ <mime-type type="text/x-viml">+ <_comment>VIM extension language</_comment>+ <glob pattern="*.vim" />+ <glob pattern=".vimrc" />+ <glob pattern="vimrc" />+ <glob pattern=".gvimrc" />+ <glob pattern="gvimrc" />++ <sub-class-of type="text/plain"/>+ </mime-type>+</mime-info>\ No newline at end of file