mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: Some basic react improvements
This commit is contained in:
parent
97c1f0402f
commit
d269968f85
@ -9,27 +9,7 @@ SilverStripe\Control\Director:
|
||||
SilverStripe\GraphQL\Controller:
|
||||
cors:
|
||||
Enabled: true
|
||||
Allow-Origin:
|
||||
- '127.0.0.1:3001'
|
||||
- 'localhost:3001'
|
||||
- 'http://127.0.0.1'
|
||||
- 'http://127.0.0.1:3001'
|
||||
- 'http://127.0.0.1:3000'
|
||||
- 'https://127.0.0.1'
|
||||
- 'https://127.0.0.1:3001'
|
||||
- 'https://127.0.0.1:3000'
|
||||
- 'http://localhost'
|
||||
- 'http://localhost:3001'
|
||||
- 'http://localhost:3000'
|
||||
- 'https://localhost'
|
||||
- 'https://localhost:3001'
|
||||
- 'https://localhost:3000'
|
||||
- 'twma.pro'
|
||||
- 'tony.twma.pro'
|
||||
- 'http://twma.pro'
|
||||
- 'https://twma.pro'
|
||||
- 'http://tony.twma.pro'
|
||||
- 'https://tony.twma.pro'
|
||||
Allow-Origin: '*'
|
||||
Allow-Headers: 'Authorization, Content-Type, Content-Language, apikey'
|
||||
Allow-Methods: 'GET, PUT, DELETE, OPTIONS, POST'
|
||||
#Allow-Credentials: 'true'
|
||||
|
@ -4,7 +4,7 @@ After:
|
||||
- webapp-options-elements
|
||||
---
|
||||
SilverStripe\View\SSViewer:
|
||||
source_file_comments: true
|
||||
source_file_comments: false
|
||||
themes:
|
||||
- '$public'
|
||||
- '$default'
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Add your site-wide, but not content editor typography styling
|
||||
|
||||
.bg-dark {
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
@ -23,4 +24,8 @@
|
||||
@include clearfix;
|
||||
|
||||
@import './types/editor';
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
@import '~@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/scss/_components/_ui.bootstrap';
|
||||
@import '~@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/scss/_components/_ui.main';
|
||||
@import '~@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/scss/_components/_ui.main.ss';
|
||||
|
||||
// Your custom variables
|
||||
@import '_variables';
|
||||
|
@ -18,7 +18,7 @@ use SilverStripe\Security\Member;
|
||||
class SocialExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
'PhoneNumber' => 'Varchar(255)',
|
||||
//'PhoneNumber' => 'Varchar(255)',
|
||||
];
|
||||
|
||||
private static $has_one = [
|
||||
@ -28,7 +28,7 @@ class SocialExtension extends DataExtension
|
||||
'Instagram' => Link::class,
|
||||
'Twitter' => Link::class,
|
||||
'PublicEmail' => Link::class,
|
||||
//'PhoneNumber' => Link::class,
|
||||
'PhoneNumber' => Link::class,
|
||||
];
|
||||
|
||||
public function updateCMSFields(FieldList $fields)
|
||||
@ -50,11 +50,10 @@ class SocialExtension extends DataExtension
|
||||
$fields->findOrMakeTab('Root.Social');
|
||||
|
||||
$fields->addFieldsToTab('Root.Social', [
|
||||
TextField::create('PhoneNumber'),
|
||||
LinkField::create('PublicEmailID', 'Public Email')
|
||||
->setAllowedTypes(['Email']),
|
||||
/*LinkField::create('PhoneNumberID', 'Phone Number')
|
||||
->setAllowedTypes(['Phone']),*/
|
||||
LinkField::create('PhoneNumberID', 'Phone Number')
|
||||
->setAllowedTypes(['Phone']),
|
||||
]);
|
||||
|
||||
$fields->addFieldsToTab('Root.Social', $linkFields);
|
||||
|
@ -0,0 +1,16 @@
|
||||
<div id="$Name" class="form__field field<% if $extraClass %> $extraClass<% end_if %>">
|
||||
<% if $Title %><label class="field__label field__label-left left" for="$ID">$Title</label><% end_if %>
|
||||
|
||||
<div class="field__content middleColumn">
|
||||
$Field
|
||||
</div>
|
||||
|
||||
<% if $Title && $RightTitle %>
|
||||
<div class="field__label field__label-right right">$RightTitle</div>
|
||||
<% else_if $RightTitle %>
|
||||
<label class="field__label field__label-right right" for="$ID">$RightTitle</label>
|
||||
<% end_if %>
|
||||
|
||||
<% if $Message %><span class="field__alert alert alert-{$MessageType} message $MessageType">$Message</span><% end_if %>
|
||||
<% if $Description %><span class="field__description description">$Description</span><% end_if %>
|
||||
</div>
|
@ -1,12 +1,19 @@
|
||||
# Redirect to HTTPS
|
||||
#RewriteEngine On
|
||||
#RewriteCond %{HTTPS} off
|
||||
#RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
RewriteEngine On
|
||||
|
||||
# Redirect to no-WWW
|
||||
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
|
||||
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
|
||||
|
||||
# Redirect to WWW
|
||||
#RewriteCond %{HTTP_HOST} !^www\. [NC]
|
||||
#RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# Redirect to HTTPS
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =http
|
||||
RewriteCond %{HTTPS} off
|
||||
#RewriteCond %{SERVER_PORT} 80
|
||||
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# SPDY protocol
|
||||
#Header add Alternate-Protocol "443:npn-spdy/3"
|
||||
|
||||
@ -17,7 +24,7 @@
|
||||
# Header set Set-Cookie HttpOnly;Secure
|
||||
|
||||
# Submit domain to https://hstspreload.org/
|
||||
#Header add Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
||||
Header add Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
||||
|
||||
# XSS-protection
|
||||
#Header add X-Frame-Options "SAMEORIGIN"
|
||||
|
@ -1,12 +1,19 @@
|
||||
# Redirect to HTTPS
|
||||
#RewriteEngine On
|
||||
#RewriteCond %{HTTPS} off
|
||||
#RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
RewriteEngine On
|
||||
|
||||
# Redirect to no-WWW
|
||||
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
|
||||
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
|
||||
|
||||
# Redirect to WWW
|
||||
#RewriteCond %{HTTP_HOST} !^www\. [NC]
|
||||
#RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# Redirect to HTTPS
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =http
|
||||
RewriteCond %{HTTPS} off
|
||||
#RewriteCond %{SERVER_PORT} 80
|
||||
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# SPDY protocol
|
||||
#Header add Alternate-Protocol "443:npn-spdy/3"
|
||||
|
||||
@ -17,7 +24,7 @@
|
||||
# Header set Set-Cookie HttpOnly;Secure
|
||||
|
||||
# Submit domain to https://hstspreload.org/
|
||||
#Header add Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
||||
Header add Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
||||
|
||||
# XSS-protection
|
||||
#Header add X-Frame-Options "SAMEORIGIN"
|
||||
|
Loading…
Reference in New Issue
Block a user