Skip to content

Commit 83973a5

Browse files
committed
Merge branch 'develop' into trunk
2 parents eac6da1 + 7faeedc commit 83973a5

33 files changed

+1866
-545
lines changed

.gitattributes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Directories
2+
/.git export-ignore
3+
/.github export-ignore
4+
/.wordpress-org export-ignore
5+
6+
# Files
7+
/.babelrc export-ignore
8+
/.browserslistrc export-ignore
9+
/.DS_Store export-ignore
10+
/.editorconfig export-ignore
11+
/.eslintignore export-ignore
12+
/.eslintrc export-ignore
13+
/.gitattributes export-ignore
14+
/.gitignore export-ignore
15+
/CHANGELOG.md export-ignore
16+
/CODE_OF_CONDUCT.md export-ignore
17+
/composer.json export-ignore
18+
/composer.lock export-ignore
19+
/CONTRIBUTING.md export-ignore
20+
/CREDITS.md export-ignore
21+
/LICENSE.md export-ignore
22+
/package-lock.json export-ignore
23+
/package.json export-ignore
24+
/phpcs.xml export-ignore
25+
/postcss.config.js export-ignore
26+
/README.md export-ignore

.github/workflows/lint.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- trunk
8+
pull_request:
9+
branches:
10+
- develop
11+
12+
jobs:
13+
eslint:
14+
name: eslint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: install node v12
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12
22+
- name: npm install
23+
run: npm install
24+
- name: eslint
25+
uses: icrawl/action-eslint@v1
26+
with:
27+
custom-glob: assets/js
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
phpcs:
31+
name: phpcs
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
- name: Set PHP version
37+
uses: shivammathur/setup-php@v2
38+
with:
39+
php-version: '7.2'
40+
coverage: none
41+
tools: composer:v1
42+
- name: composer install
43+
run: composer install
44+
- name: PHPCS check
45+
uses: chekalsky/phpcs-action@v1
46+
with:
47+
phpcs_bin_path: './vendor/bin/phpcs .'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Plugin asset/readme update
2+
on:
3+
push:
4+
branches:
5+
- trunk
6+
jobs:
7+
trunk:
8+
name: Push to trunk
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: WordPress.org plugin asset/readme update
13+
uses: 10up/action-wordpress-plugin-asset-update@stable
14+
env:
15+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
16+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

.github/workflows/push-deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
tag:
7+
name: New release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@master
12+
- name: Build
13+
run: |
14+
npm install
15+
npm run build
16+
- name: WordPress Plugin Deploy
17+
id: deploy
18+
uses: 10up/action-wordpress-plugin-deploy@stable
19+
with:
20+
generate-zip: true
21+
env:
22+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
23+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
24+
- name: Upload release asset
25+
uses: actions/upload-release-asset@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
upload_url: ${{ github.event.release.upload_url }}
30+
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
31+
asset_name: ${{ github.event.repository.name }}.zip
32+
asset_content_type: application/zip

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
2-
node_modules
2+
node_modules
3+
.DS_Store

.wordpress-org/banner-1544x500.png

87.2 KB
Loading

.wordpress-org/banner-772x250.png

50 KB
Loading

.wordpress-org/icon-128x128.png

7.96 KB
Loading

.wordpress-org/icon-256x256.png

4.91 KB
Loading

.wordpress-org/icon.svg

Lines changed: 7 additions & 0 deletions
Loading

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/), and will adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4+
5+
## [Unreleased]
6+
7+
## [1.0.5] - 2021-03-05
8+
- Initial public release 🎉.
9+
10+
### Added
11+
- Plugin banner and icon assets (props [@McCallumDillon](https://github.com/McCallumDillon), [@cgoozen](https://profiles.wordpress.org/cgoozen/) via [#8](https://github.com/10up/secure-media/pull/8), [#14](https://github.com/10up/secure-media/pull/14)).
12+
- Documentation and GitHub Action updates (props [@jeffpaul](https://github.com/jeffpaul), [@dinhtungdu](https://github.com/dinhtungdu) via [#16](https://github.com/10up/secure-media/pull/16), [#17](https://github.com/10up/secure-media/pull/17)).
13+
14+
### Changed
15+
- Code spacing, documentation, translated strings, formatting, and other code cleanup tasks (props [@dkotter](https://github.com/dkotter) via [#15](https://github.com/10up/secure-media/pull/15)).
16+
17+
### Security
18+
- Bump `ini` from 1.3.5 to 1.3.8 (props [@dependabot](https://github.com/apps/dependabot) via [#10](https://github.com/10up/secure-media/pull/10), [#13](https://github.com/10up/secure-media/pull/13)).
19+
- Update NPM packages for `axios` and `socket.io` to fix vulnerabilities (props [@joshuaabenazer](https://github.com/joshuaabenazer) via [#18](https://github.com/10up/secure-media/pull/18)).
20+
21+
## [1.0.4] - 2021-01-04
22+
### Fixed
23+
- Better S3 error logging (props [@tlovett1](https://github.com/tlovett1)).
24+
25+
## [1.0.3] - 2021-01-04
26+
### Fixed
27+
- Don't break old media and ensure new media has the correct visibility (props [@tlovett1](https://github.com/tlovett1)).
28+
- Create upload sub dir if it doesn't exist (props [@tlovett1](https://github.com/tlovett1)).
29+
- Fix public srcset urls (props [@tlovett1](https://github.com/tlovett1)).
30+
- Fix missing setting; only delete file if it exists (props [@tlovett1](https://github.com/tlovett1)).
31+
- Check if file exists before doing mkdir (props [@tlovett1](https://github.com/tlovett1)).
32+
33+
## [1.0.2] - 2020-12-22
34+
### Fixed
35+
- Set default bucket and make sure there's always an S3 bucket (props [@tlovett1](https://github.com/tlovett1)).
36+
- Assorted bugs (props [@tlovett1](https://github.com/tlovett1)).
37+
38+
## [1.0.1] - 2020-12-10
39+
### Fixed
40+
- Redirect single attachment page for private media if not authorized (props [@tlovett1](https://github.com/tlovett1)).
41+
- Assorted errors (props [@tlovett1](https://github.com/tlovett1)).
42+
43+
## [1.0.0] - 2020-10-26
44+
- Initial private release of Secure Media plugin.
45+
46+
[Unreleased]: https://github.com/10up/secure-media/compare/trunk...develop
47+
[1.0.5]: https://github.com/10up/secure-media/compare/1.0.4...1.0.5
48+
[1.0.4]: https://github.com/10up/secure-media/compare/1.0.3...1.0.4
49+
[1.0.3]: https://github.com/10up/secure-media/compare/20f33fd...1.0.3
50+
[1.0.2]: https://github.com/10up/secure-media/compare/9336b98...20f33fd
51+
[1.0.1]: https://github.com/10up/secure-media/compare/99d7aae...9336b98
52+
[1.0.0]: https://github.com/10up/secure-media/tree/99d7aaeb7deb27a78874837474986ed011f49ab1

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

0 commit comments

Comments
 (0)