org.apache.wicket.markup.head.HeaderItem Java Examples

The following examples show how to use org.apache.wicket.markup.head.HeaderItem. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MarkdownResourceReference.java    From onedev with MIT License 6 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CaretResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new AtWhoResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new TextareaCaretPositionResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DoneEventsResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CookiesResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new PerfectScrollbarResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new CommitStatusCssResourceReference()));

	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(MarkdownResourceReference.class, "markdown.css")));
	dependencies.add(CssHeaderItem.forReference(new WebjarsCssResourceReference("codemirror/current/theme/eclipse.css")));
	return dependencies;
}
 
Example #2
Source File: SourceViewResourceReference.java    From onedev with MIT License 6 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new SelectionPopoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new ScrollIntoViewResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DoneEventsResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CookiesResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new ClipboardResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(SourceViewResourceReference.class, "source-view.css")));
	return dependencies;
}
 
Example #3
Source File: FolderViewResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(FolderViewResourceReference.class, "folder-view.css")));
	
	// add this dependency as the lazy loaded last commits information includes avatar displaying
	dependencies.add(CssHeaderItem.forReference(new UserAvatarResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	return dependencies;
}
 
Example #4
Source File: PullRequestChangesResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(
			PullRequestChangesResourceReference.class, "pull-request-changes.css")));
	return dependencies;
}
 
Example #5
Source File: AlignResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(
			Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new TextareaCaretPositionResourceReference()));
	return dependencies;
}
 
Example #6
Source File: ProjectBlobResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CookiesResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(ProjectBlobResourceReference.class, "project-blob.css")));
	return dependencies;
}
 
Example #7
Source File: BuildSpecResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			BuildSpecResourceReference.class, "build-spec.css")));
	return dependencies;
}
 
Example #8
Source File: BuildDetailResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			BuildDetailResourceReference.class, "build-detail.css")));
	dependencies.add(JavaScriptHeaderItem.forReference(new PerfectScrollbarResourceReference()));
	return dependencies;
}
 
Example #9
Source File: Js3ResourceReferenceC.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(new Js1ResourceReferenceC()));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(Js3ResourceReferenceC.class, "3.css")));
	return dependencies;
}
 
Example #10
Source File: SelectionPopoverResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(
			SelectionPopoverResourceReference.class, "jquery.selectionpopover.css")));
	return dependencies;
}
 
Example #11
Source File: JQueryUIResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(
			Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(
			JQueryUIResourceReference.class, "jquery-ui.min.js")));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(JQueryUIResourceReference.class, "jquery-ui.min.css")));
	return dependencies;
}
 
Example #12
Source File: ModeUrlResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	WebjarsJavaScriptResourceReference metaReference = new WebjarsJavaScriptResourceReference("codemirror/current/mode/meta.js");
	String modeBase = StringUtils.substringBeforeLast(RequestCycle.get().urlFor(metaReference, new PageParameters()).toString(), "/");
	dependencies.add(OnDomReadyHeaderItem.forScript("CodeMirror.modeURL = '" + modeBase + "/%N/%N.js';"));		
	return dependencies;
}
 
Example #13
Source File: SpectrumResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(SpectrumResourceReference.class, "spectrum.css")));
	return dependencies;
}
 
Example #14
Source File: ScrollIntoViewResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = new ArrayList<>();
	dependencies.add(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	return dependencies;
}
 
Example #15
Source File: PerfectScrollbarResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new CssResourceReference(
			PerfectScrollbarResourceReference.class, "perfect-scrollbar.css")));
	return dependencies;
}
 
Example #16
Source File: TestResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			TestResourceReference.class, "test.css")));
	return dependencies;
}
 
Example #17
Source File: SourceEditResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DiffMatchPatchResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CookiesResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(SourceEditResourceReference.class, "source-edit.css")));
	return dependencies;
}
 
Example #18
Source File: BlobEditResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(BlobEditResourceReference.class, "blob-edit.css")));
	return dependencies;
}
 
Example #19
Source File: PlainEditResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CodeMirrorResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(PlainEditResourceReference.class, "plain-edit.css")));
	return dependencies;
}
 
Example #20
Source File: SearchResultResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new URIResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new ScrollIntoViewResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(SearchResultResourceReference.class, "search-result.css")));
	return dependencies;
}
 
Example #21
Source File: QuickSearchResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new ScrollIntoViewResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DoneEventsResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new BaseDependentCssResourceReference(QuickSearchResourceReference.class, "quick-search.css")));
	return dependencies;
}
 
Example #22
Source File: ProjectStatsResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new EChartsResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DoneEventsResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new HoverResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new DayResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(ProjectStatsResourceReference.class, "project-stats.css")));
	return dependencies;
}
 
Example #23
Source File: IssueDetailResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			IssueDetailResourceReference.class, "issue-detail.css")));
	return dependencies;
}
 
Example #24
Source File: IssueBoardsResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new PerfectScrollbarResourceReference()));
	dependencies.add(JavaScriptHeaderItem.forReference(new JQueryUIResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			IssueBoardsResourceReference.class, "issue-boards.css")));
	return dependencies;
}
 
Example #25
Source File: PullRequestDetailResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new CommitStatusCssResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			PullRequestDetailResourceReference.class, "pull-request-detail.css")));
	return dependencies;
}
 
Example #26
Source File: NewPullRequestResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new RevisionCompareCssResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			NewPullRequestResourceReference.class, "new-pull-request.css")));
	return dependencies;
}
 
Example #27
Source File: BranchSelectorResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new HotkeysResourceReference()));
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(BranchSelectorResourceReference.class, "branch-selector.css")));
	return dependencies;
}
 
Example #28
Source File: BranchChoiceResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(
			new CssResourceReference(BranchChoiceResourceReference.class, "branch-choice.css")));
	return dependencies;
}
 
Example #29
Source File: AvatarUploadResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(JavaScriptHeaderItem.forReference(new CropperResourceReference()));
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			AvatarUploadResourceReference.class, "avatar-upload.css")));
	return dependencies;
}
 
Example #30
Source File: StateStatsResourceReference.java    From onedev with MIT License 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
	List<HeaderItem> dependencies = super.getDependencies();
	dependencies.add(CssHeaderItem.forReference(new BaseDependentCssResourceReference(
			StateStatsResourceReference.class, "state-stats.css")));
	return dependencies;
}