This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from 'react'; | |
import Toasts from 'components/Toasts/Toasts'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import * as toastsActions from 'state/toasts/ToastsActions'; | |
// Just here for testing | |
const types = ['info', 'success', 'warning', 'error']; | |
// Just here for testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This commands runs behat tests. It should be run from your project root. | |
# You need to specify what behat suite you want to run. e.g.: `behatrunner @asset-admin`. | |
# Note that the behat test will run in your current desktop session ... you will see chrome | |
# running and the behat test executed in front of you. | |
# Prequisites: chromedriver installed. silverstripe/recipe-testing installed in your project. | |
# Export envrionment variable | |
export SS_BASE_URL="http://localhost:8080/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"silverstripe/installer": { | |
"PriorVersion": null, | |
"Version": "4.6.0-beta1", | |
"Changelog": null, | |
"Items": { | |
"silverstripe/recipe-cms": { | |
"PriorVersion": null, | |
"Version": "4.6.0-beta1", | |
"Changelog": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use DNADesign\Elemental\Extensions\ElementalPageExtension; | |
use DNADesign\Elemental\Models\BaseElement; | |
use SilverStripe\Admin\ModelAdmin; | |
use SilverStripe\Control\Director; | |
use SilverStripe\ORM\DataObject; | |
class TestObject extends DataObject | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use GuzzleHttp\Psr7\StreamWrapper; | |
use Intervention\Image\AbstractFont; | |
use Intervention\Image\AbstractShape; | |
use Intervention\Image\ImageManager; | |
use SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy; | |
use SilverStripe\Assets\FilenameParsing\LegacyFileIDHelper; | |
use SilverStripe\Assets\Flysystem\FlysystemAssetStore; | |
use SilverStripe\Assets\Image; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT `SiteTree_Versions`.`ClassName`, `SiteTree_Versions`.`LastEdited`, `SiteTree_Versions`.`Created`, `SiteTree_Versions`.`CanViewType`, `SiteTree_Versions`.`CanEditType`, `SiteTree_Versions`.`Version`, `SiteTree_Versions`.`URLSegment`, `SiteTree_Versions`.`Title`, `SiteTree_Versions`.`MenuTitle`, `SiteTree_Versions`.`Content`, `SiteTree_Versions`.`MetaDescription`, `SiteTree_Versions`.`ExtraMeta`, `SiteTree_Versions`.`ShowInMenus`, `SiteTree_Versions`.`ShowInSearch`, `SiteTree_Versions`.`Sort`, `SiteTree_Versions`.`HasBrokenFile`, `SiteTree_Versions`.`HasBrokenLink`, `SiteTree_Versions`.`ReportClass`, `SiteTree_Versions`.`RelationFieldsTestPageID`, `SiteTree_Versions`.`SubsiteID`, `SiteTree_Versions`.`ParentID`, `SiteTree_Versions`.`RecordID` AS `ID`, | |
CASE WHEN `SiteTree_Versions`.`ClassName` IS NOT NULL THEN `SiteTree_Versions`.`ClassName` | |
ELSE 'SilverStripe\\CMS\\Model\\SiteTree' END AS `RecordClassName`, `SiteTree_Versions`.`RecordID`, `SiteTree_Versions`.`WasPublished`, `SiteTree_Versio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use SilverStripe\ORM\DataObject; | |
class Dummy extends DataObject { | |
private static $db = [ | |
'Title' => 'Varchar', | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tags=`git tag -l --sort=v:refname | grep "^[34]\.[0-9]*\.[0-9]*$"` | |
oldhash="unset" | |
for tag in $tags; do | |
git checkout $tag > /dev/null 2>&1 | |
md5=($(md5sum $1)) > /dev/null 2>&1 | |
if [ "$md5" != "$oldhash" ] | |
then | |
echo \"$tag\" \=\> \"$md5\" | |
oldhash=$md5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace { | |
use SilverStripe\CMS\Controllers\ContentController; | |
use SilverStripe\Forms\DateField; | |
use SilverStripe\Forms\FieldList; | |
use SilverStripe\Forms\Form; | |
use SilverStripe\Forms\FormAction; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define a few constant | |
ss_account="[email protected]:silverstripe/" | |
ss_http_account="https://github.com/silverstripe/" | |
os_account="[email protected]:open-sausages/" | |
cc_account="[email protected]:creative-commoners/" | |
# Get our url for our origin remote | |
origin_url=`git remote get-url origin` |