@let plugin = plugin$ | async; @let editing = marketplaceQuery.updating$ | async; @let toggle = installationQuery.toggle$ | async; @let isSelected = toggle.plugin?.id === plugin?.id; @let installing = installationQuery.installing$ |async; @let uninstalling = installationQuery.uninstalling$ |async; @let deleting = marketplaceQuery.deleting$ | async; @let adding = versionQuery.creating$ | async; @let needUpdate = needUpdate$ | async; @let installed = installed$ | async; @let loading = marketplaceQuery.isLoading$ | async; @let disabled = editing || installing || uninstalling || deleting || adding; @let selectedVersion = versionQuery.version$ | async; @let uploading = marketplaceQuery.uploading$ | async; @let progress = marketplaceQuery.progress$ | async; @let sources = this.sourceQuery.sources$ | async; @let selectedSource = this.sourceQuery.source$ | async; @let creatingSource = this.sourceQuery.creating$ | async;
{{ plugin?.name || ('SM_TABLE.NO_DATA.LOADING' | translate) }}
@if(loading) {
}@else if(!plugin) {
}@else {
@if(installed) {
{{ 'PLUGIN.DETAILS.INSTALLED' | translate }}
@if(needUpdate) { } }@else { }
@if(plugin.description) {

{{ plugin.description }}

}
{{ 'PLUGIN.FORM.BASIC_INFO' | translate }}
{{ 'PLUGIN.FORM.VERSION' | translate }}
{{ 'PLUGIN.FORM.STATUS' | translate }}
@if(isOwner) { {{ getStatusLabel(status) }} }@else { {{ 'PLUGIN.FORM.STATUSES.' + plugin.status | translate }} }
{{ 'PLUGIN.FORM.SOURCE' | translate }}
{{ 'PLUGIN.FORM.TYPE' | translate }}
{{ getTypeLabel(plugin.type) }}
@if(selectedVersion; as version) {
{{ 'CHANGELOG_MENU.HEADER' | translate }}
Version {{ version.number }}
{{ version.createdAt | humanize }}

{{ version.changelog }}

}
{{ 'PLUGIN.FORM.METADATA.TITLE' | translate }}
{{ 'PLUGIN.FORM.METADATA.AUTHOR' | translate }}
{{ plugin.author || 'N/A' }}
{{ 'PLUGIN.FORM.METADATA.LICENSE' | translate }}
{{ plugin.license || 'N/A' }}
@if(plugin.homepage) {
{{ 'PLUGIN.FORM.METADATA.HOMEPAGE' | translate }}
} @if(plugin.repository) {
{{ 'PLUGIN.FORM.METADATA.REPOSITORY' | translate }}
}
{{ 'PLUGIN.DETAILS.USAGE_STATS' | translate }}
{{ 'PLUGIN.DETAILS.DOWNLOAD_COUNT' | translate }}
{{ plugin.downloadCount }}
@if(plugin.lastDownloadedAt) {
{{ 'PLUGIN.DETAILS.LAST_DOWNLOADED' | translate }}
{{ formatDate(plugin.lastDownloadedAt) }}
} @if(plugin.uploadedBy) {
{{ 'PLUGIN.DETAILS.UPLOADED_BY' | translate }}
{{ plugin.uploadedBy.user.firstName }} {{ plugin.uploadedBy.user.lastName }}
} @if(plugin.uploadedAt) {
{{ 'PLUGIN.DETAILS.UPLOADED_AT' | translate }}
{{ formatDate(plugin.uploadedAt) }}
}
@if(selectedSource; as source) {
{{ 'PLUGIN.FORM.SOURCE' | translate }}
{{ 'PLUGIN.FORM.CDN.URL' | translate }}
{{ source.url }}
@if(source.integrity) {
{{ 'PLUGIN.FORM.CDN.INTEGRITY' | translate }}
{{ source.integrity }}
} @if(source.crossOrigin) {
{{ 'PLUGIN.FORM.CDN.CROSS_ORIGIN' | translate }}
{{ source.crossOrigin }}
}
{{ 'PLUGIN.FORM.NPM.PACKAGE_NAME' | translate }}
{{ source.name }}
@if(source.scope) {
{{ 'PLUGIN.FORM.NPM.SCOPE' | translate }}
{{ source.scope }}
} @if(source.registry) {
{{ 'PLUGIN.FORM.NPM.REGISTRY' | translate }}
{{ source.registry }}
} @if(source.private) {
{{ 'PLUGIN.FORM.NPM.AUTH_TOKEN' | translate }}
{{ 'PLUGIN.DETAILS.HIDDEN_FOR_SECURITY' | translate }}
}
{{ 'PLUGIN.FORM.FILE_UPLOAD.FILE' | translate }}
@if(source.url) { {{ source.url }} }@else { {{ 'PLUGIN.DETAILS.UPLOADED_FILE' | translate }} }
} @if(plugin.checksum || plugin.signature) {
{{ 'PLUGIN.DETAILS.SECURITY_INFO' | translate }}
@if(plugin.checksum) {
{{ 'PLUGIN.DETAILS.CHECKSUM' | translate }}
{{ plugin.checksum }}
} @if(plugin.signature) {
{{ 'PLUGIN.DETAILS.SIGNATURE' | translate }}
{{ plugin.signature }}
}
}
}
@if(isOwner) { }