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
{ | |
"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
#!/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
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
const https = require('https'); | |
const schema='tiny'; | |
const forceClear = false; | |
// This is meant to immitate an actual browser | |
// So you need to stick your PHP session ID and your user agent string in here | |
const sessionid = ''; | |
const useragent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0' |
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\FieldList; | |
use SilverStripe\Forms\Form; | |
use SilverStripe\Forms\FormAction; | |
use SilverStripe\Forms\TextField; |
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
{ | |
"id":"admin\/elemental-area\/schema\/elementForm\/2", | |
"schema":{ | |
"name":"ElementForm_2", | |
"id":"Form_ElementForm_2", | |
"action":"admin\/elemental-area\/ElementForm_2", | |
"method":"POST", | |
"attributes":{ | |
"id":"Form_ElementForm_2", | |
"action":"admin\/elemental-area\/ElementForm_2", |
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/" |