Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sample/OptimizelyTwelveTest/OptimizelyTwelveTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PackageReference Include="EPiServer.Cms.UI.VisitorGroups" Version="13.1.0" />
<PackageReference Include="MediatR" Version="14.1.0" />
<PackageReference Include="Optimizely.Graph.Cms" Version="13.1.0" />
<PackageReference Include="Stott.Security.Optimizely" Version="7.0.1" />
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
Expand Down
26 changes: 14 additions & 12 deletions Sample/OptimizelyTwelveTest/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

using Stott.Optimizely.RobotsHandler.Common;
using Stott.Optimizely.RobotsHandler.Configuration;
using Stott.Security.Optimizely.Common;
using Stott.Security.Optimizely.Features.Configuration;

public class Startup(IWebHostEnvironment webHostingEnvironment)
{
Expand Down Expand Up @@ -68,17 +70,17 @@ public void ConfigureServices(IServiceCollection services)
});
});

//services.AddStottSecurity(cspSetupOptions =>
//{
// cspSetupOptions.ConnectionStringName = "EPiServerDB";
//},
//authorizationOptions =>
//{
// authorizationOptions.AddPolicy(CspConstants.AuthorizationPolicy, policy =>
// {
// policy.RequireRole("WebAdmins");
// });
//});
services.AddStottSecurity(cspSetupOptions =>
{
cspSetupOptions.ConnectionStringName = "EPiServerDB";
},
authorizationOptions =>
{
authorizationOptions.AddPolicy(CspConstants.AuthorizationPolicy, policy =>
{
policy.RequireRole("WebAdmins");
});
});

services.ConfigureApplicationCookie(options =>
{
Expand Down Expand Up @@ -118,7 +120,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseAuthentication();
app.UseAuthorization();
// app.UseStottSecurity();
app.UseStottSecurity();
app.UseRobotsHandler();

app.UseEndpoints(endpoints =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function AddSiteRobots(props) {
return(
<>
<Button variant='primary' onClick={handleShowEditModal} className='text-nowrap p-3'>Add Configuration</Button>
<Modal show={showModal} size='lg'>
<Modal show={showModal} size='xl'>
<Modal.Header closeButton onClick={handleCloseModal}>
<Modal.Title>Create Robots Configuration</Modal.Title>
</Modal.Header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ConfigurationList(props)
}

return(
<Container className='mt-3'>
<Container className='mt-3' fluid='xxl'>
<Row className='mb-2'>
<div className='col-xl-9 col-lg-9 col-sm-12 col-xs-12 p-0'>
<Alert variant='primary' className='p-3'>A default configuration will always be shown for each site to reflect the fallback behaviour of the AddOn.</Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function LlmsConfigurationList(props)
}

return(
<Container className='mt-3'>
<Container className='mt-3' fluid='xxl'>
<Row className='mb-2'>
<div className='col-xl-9 col-lg-9 col-sm-12 col-xs-12 p-0'>
<Alert variant='primary' className='p-3'>An llms.txt file should be written in <a href='https://www.markdownguide.org/basic-syntax/' target='_blank' rel='noopener noreferrer'>markdown</a> as it is human-readable and helps AI (like Large Language Models) understand a website's content and purpose. You can learn more <a href='https://llmstxt.org/' target='_blank' rel='noopener noreferrer'>here</a>.</Alert>
Expand Down
107 changes: 0 additions & 107 deletions src/Stott.Optimizely.RobotsHandler/Static/index-DMn5uF33.js

This file was deleted.

148 changes: 148 additions & 0 deletions src/Stott.Optimizely.RobotsHandler/Static/index-DbtI8-Zp.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/Stott.Optimizely.RobotsHandler/Static/index-Dgw136l_.css

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<Authors>Mark Stott</Authors>
<PackageProjectUrl>https://github.com/GeekInTheNorth/Stott.Optimizely.RobotsHandler</PackageProjectUrl>
<RepositoryUrl>https://github.com/GeekInTheNorth/Stott.Optimizely.RobotsHandler</RepositoryUrl>
<Copyright>Mark Stott 2025</Copyright>
<Copyright>Mark Stott 2026</Copyright>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<Description>Provides an Admin interface in Optimizely CMS 12 for managing robots.txt files. A controller responds to the /robots.txt path and returns the appropriate content specific to the site.</Description>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<NeutralLanguage>en-GB</NeutralLanguage>
<PackageTags>Optimizely CMS Robots Robots_txt</PackageTags>
<AssemblyVersion>7.0.0</AssemblyVersion>
<FileVersion>7.0.0</FileVersion>
<Version>7.0.0</Version>
<PackageReleaseNotes>Update compilation for CMS 13.</PackageReleaseNotes>
<AssemblyVersion>7.0.1</AssemblyVersion>
<FileVersion>7.0.1</FileVersion>
<Version>7.0.1</Version>
<PackageReleaseNotes>Bug fixes update for CMS 13.</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>git</RepositoryType>
<Nullable>enable</Nullable>
Expand Down
3 changes: 3 additions & 0 deletions ui-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
"@types/node": "^22.0.0",
"dotenv": "^16.4.5",
"typescript": "^5.6.0"
},
"volta": {
"node": "24.15.0"
}
}
Loading