Skip to content

Commit

Permalink
Merge branch '3.2' into 3
Browse files Browse the repository at this point in the history
# Conflicts:
#	yarn.lock
  • Loading branch information
GuySartorelli committed Jun 20, 2024
2 parents 33c882d + 0c705fd commit 22db977
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 872 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/add-prs-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add new PRs to github project

on:
pull_request_target:
types:
- opened
- ready_for_review

permissions: {}

jobs:
addprtoproject:
name: Add PR to GitHub Project
# Only run on the silverstripe account
if: github.repository_owner == 'silverstripe'
runs-on: ubuntu-latest
steps:
- name: Add PR to github project
uses: silverstripe/gha-add-pr-to-project@v1
with:
app_id: ${{ vars.PROJECT_PERMISSIONS_APP_ID }}
private_key: ${{ secrets.PROJECT_PERMISSIONS_APP_PRIVATE_KEY }}
2 changes: 0 additions & 2 deletions .stylelintignore

This file was deleted.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle-cms.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle-frontend.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

// Add the external link icon after the "learn more" link
.share-draft-content__learn-more::after {
.share-draft-content__learn-more:after {
font-family: 'silverstripe';
// font-icon-external-link
content: '@';
Expand Down
1 change: 0 additions & 1 deletion client/src/styles/bundle-cms.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Core variables
@import "variables";

@import "../components/ShareDraftContent/ShareDraftContent";
4 changes: 2 additions & 2 deletions client/src/styles/error-page.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mixins.scss';
@import 'mixins';

html {
height: 100%;
Expand All @@ -8,7 +8,7 @@ html {
position: relative;
height: 100%;
margin: 0;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", "Lucida Grande", sans-serif;
font-weight: 300;
background: #eaf1f4;

Expand Down
8 changes: 4 additions & 4 deletions client/src/styles/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
@mixin mobile-screen {
@media (max-width: 768px) and (max-height: 540px) {
@media (width <= 768px) and (height <= 540px) {
@content;
}
}

@mixin small-screen {
@media (max-width: 768px) {
@media (width <= 768px) {
@content;
}
}

@mixin large-screen {
@media (min-width: 1441px) {
@media (width >= 1441px) {
@content;
}
}

@mixin topbar-small {
@media (max-width: 582px) {
@media (width <= 582px) {
@content;
}
}
4 changes: 2 additions & 2 deletions client/src/styles/top-bar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mixins.scss';
@import 'mixins';

body {
margin-top: 39px !important;
Expand Down Expand Up @@ -68,7 +68,7 @@ body {
text-align: center;
margin-top: 0;
margin-bottom: 0;
font-family: Arial, Helvetica, sans-serif;
font-family: "Arial", "Helvetica", sans-serif;
font-size: 13px;
line-height: 16px;
color: rgb(51, 51, 51);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"dev": "NODE_ENV=development webpack --progress",
"watch": "NODE_ENV=development webpack --watch --progress",
"css": "WEBPACK_CHILD=css npm run build",
"lint": "eslint client/src && yarn lint-sass",
"lint": "yarn lint-js && yarn lint-sass",
"lint-js": "eslint client/src",
"lint-js-fix": "eslint client/src --fix",
"lint-sass": "stylelint **/client/src/**/*.scss",
"lint-sass": "stylelint client/src",
"test": "echo 1 > /dev/null"
},
"dependencies": {
Expand All @@ -33,7 +33,7 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@silverstripe/eslint-config": "^1.2.1",
"@silverstripe/eslint-config": "^1.3.0",
"@silverstripe/webpack-config": "^2.1.0",
"webpack": "^5.74.0",
"webpack-cli": "^5.0.0"
Expand Down
6 changes: 3 additions & 3 deletions tests/behat/src/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FeatureContext extends SilverStripeContext
*/
public function iSaveTheLinkToShareDraftContentLocalStorage()
{
$key = self::KEY;
$key = FeatureContext::KEY;
$js = <<<JS
window.localStorage.setItem('{$key}', document.querySelector('.share-draft-content__link').value);
JS;
Expand All @@ -25,7 +25,7 @@ public function iSaveTheLinkToShareDraftContentLocalStorage()
*/
public function iFollowTheLinkInShareDraftContentLocalStorage()
{
$key = self::KEY;
$key = FeatureContext::KEY;
$js = <<<JS
window.location = window.localStorage.getItem('{$key}');
JS;
Expand All @@ -37,7 +37,7 @@ public function iFollowTheLinkInShareDraftContentLocalStorage()
*/
public function iClearTheLinkFromShareDraftContentLocalStorage()
{
$key = self::KEY;
$key = FeatureContext::KEY;
$js = <<<JS
window.localStorage.removeItem('{$key}');
JS;
Expand Down
Loading

0 comments on commit 22db977

Please sign in to comment.