Skip to content

Commit

Permalink
Release v.15.1.8300.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nader-dab committed Apr 10, 2024
1 parent fe01c13 commit 2404f53
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<PackageVersion Include="Ninject.Web.Common" Version="3.2.3.0" />
<PackageVersion Include="RazorGenerator.MsBuild" Version="2.4.1" />
<PackageVersion Include="RazorGenerator.Mvc" Version="2.3.12" />
<PackageVersion Include="Telerik.Sitefinity.ServicesImpl" Version="15.0.8200" />
<PackageVersion Include="Telerik.Sitefinity.Core" Version="15.0.8200" />
<PackageVersion Include="Telerik.Sitefinity.Content" Version="15.0.8200" />
<PackageVersion Include="Telerik.Sitefinity.Mvc" Version="15.0.8200" />
<PackageVersion Include="Telerik.Sitefinity.ServicesImpl" Version="15.1.8300" />
<PackageVersion Include="Telerik.Sitefinity.Core" Version="15.1.8300" />
<PackageVersion Include="Telerik.Sitefinity.Content" Version="15.1.8300" />
<PackageVersion Include="Telerik.Sitefinity.Mvc" Version="15.1.8300" />
<PackageVersion Include="Telerik.DataAccess.Fluent" Version="2020.0.428.1" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The Feather Project
The Feather Project
=======

This repository contains the core infrastructure related to [Project Feather](http://projectfeather.sitefinity.com).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Telerik.Sitefinity.Model;
using Telerik.Sitefinity.Modules.GenericContent;
using Telerik.Sitefinity.Publishing;
using Telerik.Sitefinity.Security.Model;
using Telerik.Sitefinity.Services;
using Telerik.Sitefinity.Web;
using Telerik.Sitefinity.Web.UI.ContentUI.Enums;
Expand Down Expand Up @@ -196,9 +197,16 @@ private bool IsSelectedItem(IDataItem item, object model, string serializedSelec
if (selectionMode.ToString() == SelectionMode.SelectedItems.ToString())
{
isSelectedItem = serializedSelectedItemsIds.Contains(item.Id.ToString());
if (!isSelectedItem && item is ILifecycleDataItemGeneric itemAsLifecycleGeneric)
if (!isSelectedItem)
{
isSelectedItem = serializedSelectedItemsIds.Contains(itemAsLifecycleGeneric.OriginalContentId.ToString());
if (item is ILifecycleDataItemGeneric itemAsLifecycleGeneric)
{
isSelectedItem = serializedSelectedItemsIds.Contains(itemAsLifecycleGeneric.OriginalContentId.ToString());
}
else if (item is SitefinityProfile profile)
{
isSelectedItem = serializedSelectedItemsIds.Contains(profile.User.Id.ToString());
}
}
}
// This is a special case for the list item as it`s parent id is stored in the selected items property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51343,6 +51343,13 @@ fieldset[disabled] :root:root:root:root:root .sf-backend-wrp .navbar-inverse .bt
top: -127px;
}

:root:root:root:root:root .sf-backend-wrp.sf-designer-dlg .k-tabstrip-content.k-focus,
:root:root:root:root:root .sf-backend-wrp.sf-designer-dlg .k-tabstrip-content:focus,
:root:root:root:root:root .sf-backend-wrp.sf-designer-dlg .k-tabstrip > .k-content.k-focus,
:root:root:root:root:root .sf-backend-wrp.sf-designer-dlg .k-tabstrip > .k-content:focus {
outline: 0 !important;
}

:root:root:root:root:root .sf-backend-wrp .k-tabstrip.k-tabstrip--selection {
border: none !important;
background: none !important;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!doctype html>
<html ng-app="ui.bootstrap.demo">
<head>
<link href="/ResourcePackages/Bootstrap/assets/dist/css/styles.min.css?package=Bootstrap" rel="stylesheet" />
<link href="/Frontend-Assembly/Telerik.Sitefinity.Frontend.Media/assets/dist/css/sitefinity-backend.min.css" rel="stylesheet" />
<link href="/ResourcePackages/Bootstrap/assets/dist/css/styles.min.css?package=Bootstrap" rel="stylesheet" />
<link href="/Frontend-Assembly/Telerik.Sitefinity.Frontend.Media/assets/dist/css/sitefinity-backend.min.css" rel="stylesheet" />

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.1.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.8.3/angular.min.js"></script>
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.1.js"></script>
</head>
<body class="modal-open">
<div class="modal-backdrop fade in" style="z-index: 1040;"></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
&.sf-designer-dlg
.k-tabstrip-content.k-focus,
.k-tabstrip-content:focus,
.k-tabstrip>.k-content.k-focus,
.k-tabstrip>.k-content:focus
outline: 0

.k-tabstrip.k-tabstrip--selection
border: none
background: none
Expand Down
102 changes: 102 additions & 0 deletions Tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
$msbuild.Xml.Imports |
Where-Object { $_.Project -eq 'Build\RazorGenerator.MsBuild\build\RazorGenerator.MsBuild.targets' -or $_.Project -eq 'Build\FeatherPrecompilation.targets'} |
ForEach-Object { $msbuild.Xml.RemoveChild($_) }

# Add project references
Write-Host "Adding project references..."
$references = "System.Web.Extensions", "System.Web.ApplicationServices"
try
{
foreach ($reference in $references)
{
# Check if reference doesn't already exist
$existingReference = $msbuild.Items | Where-Object { $_.ItemType -eq "Reference" -and $_.EvaluatedInclude.Split(",")[0] -eq $reference } | Select-Object -First 1
if (!$existingReference)
{
Write-Host ("Adding '{0}' to {1}" -f $reference, $project.Name)

$msbuild.AddItem("Reference", $reference)

Write-Host ("Successfully added '{0}' to {1}" -f $reference, $project.Name)
}
else
{
Write-Host ("{0} already has a reference to '{1}'" -f $project.Name, $reference)
}
}
}
catch
{
Write-Host ("Could not add references {0} to {1}. Please add these references manually or contact Sitefinity support." -f [system.String]::Join(", ", $references), $project.Name)
Write-Error $_.Exception.Message
}

# Remove Recaptha views from Bootstrap package
ForEach-Object { try { $project.ProjectItems.Item('ResourcePackages').ProjectItems.Item('Bootstrap').ProjectItems.Item('MVC').ProjectItems.Item('Views').ProjectItems.Item('Recaptcha') } catch { $null } } |
Where-Object {$_ -ne $null} |
ForEach-Object { $_.Remove() }

# Save changes to project
$project.Save()

$fileInfo = new-object -typename System.IO.FileInfo -ArgumentList $project.FullName
$projectDirectory = $fileInfo.DirectoryName

# Make sure all Resource Packages have RazorGenerator directives
$generatorDirectivesPath = "$projectDirectory\ResourcePackages\Bootstrap\razorgenerator.directives"
if (Test-Path $generatorDirectivesPath)
{
Get-ChildItem "$projectDirectory\ResourcePackages" -Directory -Exclude "Bootstrap" |
Where-Object { $_.GetFiles("razorgenerator.directives").Count -eq 0 } |
ForEach-Object { Copy-Item $generatorDirectivesPath $_.FullName }
}

# Prompt to remove Recaptcha template if exists since it isn't distributed with Feather anymore
$recaptchaTemplatesPath = "$projectDirectory\ResourcePackages\Bootstrap\MVC\Views\Recaptcha"
if (Test-Path $recaptchaTemplatesPath)
{
Remove-Item $recaptchaTemplatesPath -Recurse -Confirm
}

# Append attributes to the AssemblyInfo
Write-Host "Appending ControllerContainerAttribute and ResourcePackageAttribute to the AssemblyInfo..."
$assemblyInfoPath = Join-Path $projectDirectory "Properties\AssemblyInfo.cs"
if (Test-Path $assemblyInfoPath)
{
# Append ControllerContainerAttribute to the AssemblyInfo
$attributeRegex = "\[\s*assembly\s*\:\s*(?:(?:(?:(?:(?:(?:(?:Telerik\.)?Sitefinity\.)?Frontend\.)?Mvc\.)?Infrastructure\.)?Controllers\.)?Attributes\.)?ControllerContainer(?:Attribute)?\s*\]"
$controllerContainerAttributeExists = (Get-Content $assemblyInfoPath | Where-Object { $_ -match $attributeRegex } | Group-Object).Count -eq 1
if (!$controllerContainerAttributeExists)
{
Add-Content $assemblyInfoPath "`r`n[assembly: Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes.ControllerContainer]"
Write-Host "Finished appending ControllerContainerAttribute to the AssemblyInfo."
}
else
{
Write-Host "ControllerContainerAttribute is already in the AssemblyInfo. Nothing is appended."
}

# Append ResourcePackageAttribute to the AssemblyInfo
$attributeRegex = "\[\s*assembly\s*\:\s*(?:(?:(?:(?:(?:(?:(?:Telerik\.)?Sitefinity\.)?Frontend\.)?Mvc\.)?Infrastructure\.)?Controllers\.)?Attributes\.)?ResourcePackage(?:Attribute)?\s*\]"
$resourcePackageAttributeExists = (Get-Content $assemblyInfoPath | Where-Object { $_ -match $attributeRegex } | Group-Object).Count -eq 1
if (!$resourcePackageAttributeExists)
{
Add-Content $assemblyInfoPath "`r`n[assembly: Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes.ResourcePackage]"
Write-Host "Finished appending ResourcePackageAttribute to the AssemblyInfo."
}
else
{
Write-Host "ResourcePackageAttribute is already in the AssemblyInfo. Nothing is appended."
}
}
else
{
Write-Host "AssemblyInfo not found."
}
33 changes: 33 additions & 0 deletions Tools/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
param($installPath, $toolsPath, $package, $project)

# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, 'RazorGenerator.MsBuild.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
$projPath = Split-Path $project.FileName;

if(Test-Path (Join-Path $projPath "Build\RazorGenerator.MsBuild\build\RazorGenerator.MsBuild.targets")){
# Add the import and save the project
$msbuild.Xml.AddImport("Build\RazorGenerator.MsBuild\build\RazorGenerator.MsBuild.targets") | out-null
}

if(Test-Path (Join-Path $projPath "Build\FeatherPrecompilation.targets")){
# Add the import and save the project
$msbuild.Xml.AddImport("Build\FeatherPrecompilation.targets") | out-null
}
$project.Save()

$assemblyInfoPath = Join-Path $projPath "Properties\AssemblyInfo.cs"
if (Test-Path $assemblyInfoPath)
{
$assemblyInfoPathTemp = "$assemblyInfoPath.tmp"
$controllerContainerRegex = "\[\s*assembly\s*\:\s*(?:(?:(?:(?:(?:(?:(?:Telerik\.)?Sitefinity\.)?Frontend\.)?Mvc\.)?Infrastructure\.)?Controllers\.)?Attributes\.)?ControllerContainer(?:Attribute)?\s*\]"
$resourcePackageRegex = "\[\s*assembly\s*\:\s*(?:(?:(?:(?:(?:(?:(?:Telerik\.)?Sitefinity\.)?Frontend\.)?Mvc\.)?Infrastructure\.)?Controllers\.)?Attributes\.)?ResourcePackage(?:Attribute)?\s*\]"
Get-Content $assemblyInfoPath | ? { $_ -notmatch $controllerContainerRegex } | ? { $_ -notmatch $resourcePackageRegex } | Set-Content $assemblyInfoPathTemp -Force
(Get-Content $assemblyInfoPathTemp -Raw).Trim() | Set-Content $assemblyInfoPathTemp -Force
Remove-Item $assemblyInfoPath
Rename-Item $assemblyInfoPathTemp $assemblyInfoPath
}

0 comments on commit 2404f53

Please sign in to comment.