Compare commits

...

27 Commits
2 ... 3.1.1

Author SHA1 Message Date
github-actions b3fa93d446 Merge branch '2' into 3.1 2024-02-12 11:23:40 +00:00
Guy Sartorelli 19bd071b65
Merge branch '3.0' into 3 2023-08-30 11:55:33 +12:00
Guy Sartorelli a58508370f
Merge pull request #75 from creative-commoners/pulls/3.0/module-standardiser-1693278763
MNT Run module-standardiser
2023-08-29 17:07:57 +12:00
Steve Boyd 316e7f5a6d MNT Run module-standardiser 2023-08-29 15:12:43 +12:00
github-actions 1f036ea6d2 Merge branch '3.0' into 3 2023-08-21 11:24:02 +00:00
github-actions e593d8d30b Merge branch '2' into 3.0 2023-08-21 11:24:00 +00:00
Guy Sartorelli d791a4e254
Merge pull request #73 from creative-commoners/pulls/3/module-standardiser-1691550152
MNT Run module-standardiser
2023-08-15 12:09:53 +12:00
Steve Boyd 652c32f55b MNT Run module-standardiser 2023-08-14 15:45:57 +12:00
Steve Boyd e7fa82673f Merge branch '3.0' into 3 2023-06-16 12:02:55 +12:00
Steve Boyd 70955c442d Merge branch '2' into 3.0 2023-06-16 12:02:42 +12:00
Guy Sartorelli b32b299e7c
Merge pull request #71 from creative-commoners/pulls/3/tx-1686703410
ENH Update translations
2023-06-14 15:17:41 +12:00
Steve Boyd 7070529202 ENH Update translations 2023-06-14 12:43:30 +12:00
Steve Boyd fe6d042b85 Merge branch '3.0' into 3 2023-05-04 13:27:14 +12:00
Guy Sartorelli 89a7478ca1
Merge branch '2' into 3.0 2023-04-27 14:39:46 +12:00
Sabina Talipova 68174f34f2
Merge pull request #70 from creative-commoners/pulls/3.0/cms5-readme
DOC Update README.md for CMS 5
2023-04-24 09:57:05 +12:00
Guy Sartorelli 29211f58b8
DOC Update README.md for CMS 5 2023-04-19 16:18:52 +12:00
Steve Boyd 5f2398da07 Merge branch '3.0' into 3 2023-03-30 13:14:05 +13:00
Steve Boyd c125f26dda Merge branch '2' into 3.0 2023-03-30 13:13:56 +13:00
Steve Boyd 770e31445d Merge branch '3.0' into 3 2023-03-08 12:08:43 +13:00
Steve Boyd 26629e3b5c Merge branch '2' into 3.0 2023-03-08 12:08:34 +13:00
Guy Sartorelli a9133931d8
Merge pull request #64 from creative-commoners/pulls/3/php82
ENH PHP 8.2 compatibility
2023-01-26 10:16:36 +13:00
Guy Sartorelli c3dd76cee1
Merge pull request #66 from creative-commoners/pulls/3/broken-builds
MNT Broken builds
2023-01-25 13:39:14 +13:00
Steve Boyd ad4342f1d0 ENH PHP 8.2 compatibility 2023-01-25 10:02:23 +13:00
Steve Boyd da859a967d MNT Broken builds 2023-01-24 15:51:51 +13:00
Maxime Rainville 2fc65d336f
Merge pull request #65 from creative-commoners/pulls/3/remove-legacy-upgrader
MNT Remove legacy upgrader config
2023-01-23 10:29:11 +13:00
Steve Boyd dcf140fe8f MNT Remove legacy upgrader config 2023-01-20 17:01:36 +13:00
Sabina Talipova 031d47ce20
DEP PHP Support in CMS5 (#63) 2023-01-10 15:27:51 +13:00
10 changed files with 31 additions and 32 deletions

View File

@ -1,10 +1,10 @@
name: Keepalive
on:
workflow_dispatch:
# The 4th of every month at 10:50am UTC
# At 9:45 AM UTC, on day 6 of the month
schedule:
- cron: '50 10 4 * *'
- cron: '45 9 6 * *'
workflow_dispatch:
jobs:
keepalive:

17
.github/workflows/merge-up.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Merge-up
on:
# At 11:20 AM UTC, only on Monday
schedule:
- cron: '20 11 * * 1'
workflow_dispatch:
jobs:
merge-up:
name: Merge-up
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v1

View File

@ -1,3 +0,0 @@
mappings:
IFramePage: SilverStripe\IFrame\IFramePage
IFramePage_Controller: SilverStripe\IFrame\IFramePageController

View File

@ -1,4 +1,4 @@
Copyright (c) 2019, SilverStripe Limited
Copyright (c) 2019, Silverstripe Limited
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

View File

@ -16,22 +16,12 @@ circumvent.
Various attributes of the IFrame can be controlled from CMS fields, such as size and content that surrounds the
IFrame itself.
## Requirements
* Silverstripe ^4.0
**Note:** For a Silverstripe 3.x compatible version, please use [the 1.x release line](https://github.com/silverstripe/silverstripe-iframe/tree/1.0).
## Installation
Install with Composer:
```
```sh
composer require silverstripe/iframe
```
After installation, ensure you run `dev/build?flush` in either your browser or via command line.
## Instructions
For usage instructions see the [user manual](docs/en/userguide/index.md).

1
_config.php Normal file
View File

@ -0,0 +1 @@
<?php

View File

@ -1,6 +0,0 @@
---
Name: iframelegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
IFramePage: 'SilverStripe\IFrame\IFramePage'

View File

@ -13,12 +13,12 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"silverstripe/cms": "^4.0"
"php": "^8.1",
"silverstripe/cms": "^5"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0"
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3"
},
"autoload": {
"psr-4": {
@ -33,4 +33,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

View File

@ -15,7 +15,7 @@ class IFramePageController extends PageController
$desiredProtocol = $this->ForceProtocol;
if ($desiredProtocol && $currentProtocol !== $desiredProtocol) {
$enforcedLocation = preg_replace(
"#^${currentProtocol}#",
"#^{$currentProtocol}#",
$desiredProtocol ?? '',
$this->AbsoluteLink() ?? ''
);

View File

@ -128,7 +128,7 @@ class IFramePageTest extends SapphireTest
$controller = new IFramePageController($page);
$controller->doInit();
$response = $controller->getResponse();
$this->assertEquals($response->getHeader('Location'), 'https://host.com/iframe/');
$this->assertEquals('https://host.com/iframe', $response->getHeader('Location'));
Config::modify()->set(Director::class, 'alternate_protocol', 'https');
Config::modify()->set(Director::class, 'alternate_base_url', 'https://host.com');
@ -136,7 +136,7 @@ class IFramePageTest extends SapphireTest
$controller = new IFramePageController($page);
$controller->doInit();
$response = $controller->getResponse();
$this->assertEquals($response->getHeader('Location'), 'http://host.com/iframe/');
$this->assertEquals('http://host.com/iframe', $response->getHeader('Location'));
$_SERVER = $origServer;
}