Skip to content

Commit

Permalink
Merge branch '4' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jun 20, 2024
2 parents c538aec + f99bd2f commit cee3b00
Show file tree
Hide file tree
Showing 13 changed files with 513 additions and 1,198 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/main.css

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

38 changes: 19 additions & 19 deletions client/src/styles/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,8 @@
width: 98.75%;
}

.blog-sidebar .WidgetHolder ul {
margin-left: 0;

li {
list-style-type: none;
}
}

// tag cloud related
$base_tag_font_size: 4pt;
$base-tag-font-size: 4pt;

ul.blogTagCloud {
list-style-type: none;
Expand All @@ -34,43 +26,51 @@ ul.blogTagCloud {
}
}

.blog-sidebar .WidgetHolder ul {
margin-left: 0;

li {
list-style-type: none;
}
}

.tagCount10 {
font-size: $base_tag_font_size + 22pt;
font-size: $base-tag-font-size + 22pt;
}

.tagCount9 {
font-size: $base_tag_font_size + 20pt;
font-size: $base-tag-font-size + 20pt;
}

.tagCount8 {
font-size: $base_tag_font_size + 18pt;
font-size: $base-tag-font-size + 18pt;
}

.tagCount7 {
font-size: $base_tag_font_size + 16pt;
font-size: $base-tag-font-size + 16pt;
}

.tagCount6 {
font-size: $base_tag_font_size + 14pt;
font-size: $base-tag-font-size + 14pt;
}

.tagCount5 {
font-size: $base_tag_font_size + 12pt;
font-size: $base-tag-font-size + 12pt;
}

.tagCount4 {
font-size: $base_tag_font_size + 10pt;
font-size: $base-tag-font-size + 10pt;
}

.tagCount3 {
font-size: $base_tag_font_size + 8pt;
font-size: $base-tag-font-size + 8pt;
}

.tagCount2 {
font-size: $base_tag_font_size + 6pt;
font-size: $base-tag-font-size + 6pt;
}

.tagCount1 {
font-size: $base_tag_font_size + 4pt;
font-size: $base-tag-font-size + 4pt;
}
}
29 changes: 16 additions & 13 deletions client/src/styles/cms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
* CMS Styles
*/

#FeaturedImage .middleColumn {
clear: none;
float: left;
.cms table.ss-gridfield-table tr td.MergeAction a {
display: block;
height: 100%;
width: 100%;
}

/* stylelint-disable max-nesting-depth */

.has-panel .cms-content-tools.blog-admin-sidebar {
width: 280px;
border-right: 0;
Expand All @@ -22,16 +25,15 @@
}

.cms-panel-toggle.south {
border-top: 1px solid #aaaaaa;
border-top: 1px solid #aaa;
}

~ .blog-admin-outer {
width: 100%;
padding-right: 280px;
position: absolute;
height: 100%;
overflow-y: hidden;
overflow-x: hidden;
overflow: hidden hidden;
box-sizing: border-box;

> .ss-tabset {
Expand Down Expand Up @@ -109,6 +111,13 @@
}
}

/* stylelint-enable max-nesting-depth */

#FeaturedImage .middleColumn {
clear: none;
float: left;
}

.toggle-description {
display: inline-block;
font-size: 1.2rem;
Expand Down Expand Up @@ -148,12 +157,6 @@
tr td.MergeAction {
width: 225px;

a {
display: block;
height: 100%;
width: 100%;
}

select {
width: 150px;
}
Expand All @@ -167,7 +170,7 @@

.MergeActionReveal:after {
content: "@";
font-family: silverstripe;
font-family: "silverstripe";
display: inline-block;
position: relative;
margin-left: 10px;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"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": "true"
},
"repository": {
Expand All @@ -28,7 +28,7 @@
"homepage": "https://github.com/silverstripe/silverstripe-blog#readme",
"dependencies": {},
"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
2 changes: 1 addition & 1 deletion src/Forms/GridField/GridFieldAddByDBField.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ public function getHTMLFragments($gridField)
$forTemplate->Fields->push($textField);
$forTemplate->Fields->push($addAction);

return [$this->targetFragment => $forTemplate->renderWith(self::class)];
return [$this->targetFragment => $forTemplate->renderWith(GridFieldAddByDBField::class)];
}
}
6 changes: 3 additions & 3 deletions src/Model/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function canEditEditors($member = null)
return $extended;
}

return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}

/**
Expand All @@ -499,7 +499,7 @@ public function canEditWriters($member = null)
return true;
}

return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}

/**
Expand All @@ -523,7 +523,7 @@ public function canEditContributors($member = null)
return true;
}

return Permission::checkMember($member, self::MANAGE_USERS);
return Permission::checkMember($member, Blog::MANAGE_USERS);
}

/**
Expand Down
58 changes: 0 additions & 58 deletions tests/php/BlogPostNotificationsTest.php

This file was deleted.

71 changes: 0 additions & 71 deletions tests/php/BlogTagsCloudWidgetTest.php

This file was deleted.

Loading

0 comments on commit cee3b00

Please sign in to comment.