Skip to content

Commit

Permalink
Update contact info
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfredoRamos committed Feb 18, 2024
1 parent d82d62b commit b579351
Show file tree
Hide file tree
Showing 18 changed files with 94 additions and 45 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ updates:
schedule:
interval: 'daily'
versioning-strategy: increase-if-necessary
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
versioning-strategy: widen
5 changes: 1 addition & 4 deletions .github/setup-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ EXTNAME="${1}"
NOTESTS="${2}"

# Install dependencies
composer update \
-n \
--prefer-dist \
--no-progress
composer update -n --prefer-dist --no-progress

# Prepare extension structure
mkdir -p ../phpBB3/phpBB/ext/"${EXTNAME}"
Expand Down
59 changes: 53 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ env:
jobs:
test:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
name: php ${{ matrix.php-version }}, ${{ matrix.db-type }}
runs-on: ubuntu-18.04
name: php ${{ matrix.php-version }}, ${{ matrix.db-type }} ${{ matrix.db-version }}
runs-on: ubuntu-20.04
services:
mysql:
image: ${{ (matrix.db-type == 'mysql' || matrix.db-type == 'mariadb') && matrix.db-type || 'mariadb' }}:${{ (matrix.db-type == 'mysql' || matrix.db-type == 'mariadb' && matrix.db-version != 'none') && matrix.db-version || 'latest' }}
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
db-version: '10.5'
- php-version: '7.1'
db-type: 'postgres'
db-version: '13.1'
db-version: '13-alpine'
- php-version: '7.2'
db-type: 'mariadb'
db-version: '10.5'
Expand All @@ -82,7 +82,7 @@ jobs:
db-version: '10.5'
- php-version: '8.1'
db-type: 'mariadb'
db-version: '10.5'
db-version: '10.6'
- php-version: '8.2'
db-type: 'postgres'
db-version: '14-alpine'
Expand Down Expand Up @@ -110,12 +110,12 @@ jobs:
- name: Setup Composer
id: setup-composer
working-directory: phpBB3/phpBB
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "cache-dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Setup cache
uses: actions/cache@v3
with:
path: ${{ steps.setup-composer.outputs.dir }}
path: ${{ steps.setup-composer.outputs.cache-dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock', '**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
Expand All @@ -124,6 +124,23 @@ jobs:
working-directory: phpBB3
run: .github/setup-phpbb.sh $DB $PHP_VERSION $NOTESTS

- name: Setup Node cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '17'

- name: Install Node dependencies
working-directory: extension
run: npm install

- name: Setup extension
working-directory: extension
run: |
Expand Down Expand Up @@ -171,3 +188,33 @@ jobs:
if: ${{ env.NOTESTS != 1 }}
working-directory: phpBB3
run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/ci/phpunit-$DB-github.xml --bootstrap tests/bootstrap.php

lint:
if: ${{ !contains(github.event.head_commit.message, '[skip lint]') }}
runs-on: ubuntu-latest
steps:
- name: Checkout extension
uses: actions/checkout@v3
with:
path: extension

- name: Setup Node cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '17'

- name: Install Node dependencies
working-directory: extension
run: npm install

- name: Test SCSS
working-directory: extension
run: npm run lint-scss
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"authors": [
{
"name": "Alfredo Ramos",
"email": "alfredo.ramos@yandex.com",
"email": "alfredo.ramos@proton.me",
"homepage": "https://alfredoramos.mx/",
"role": "Lead Developer"
}
Expand Down
2 changes: 1 addition & 1 deletion event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion language/en/posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion language/es/posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion language/es_x_tu/posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion language/et/posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion language/pt_br/posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion migrations/v10x/m1_hide_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion migrations/v20x/m1_hide_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
12 changes: 6 additions & 6 deletions styles/prosilver/theme/css/colors.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/

.hidden-content,
.hidden-content header span {
background-color: #fcf8e3;
border-color: #faebcc;
background-color: #fcf8e3;
border-color: #faebcc;
}

.hidden-content header span {
color: #8a6d3b;
color: #8a6d3b;
}

.bbcode-hide {
color: transparent;
color: transparent;
}

.bbcode-hide::before {
color: #8f8f8f;
color: #8f8f8f;
}
32 changes: 16 additions & 16 deletions styles/prosilver/theme/css/style.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/

.hidden-content {
margin: 1em 0;
padding: 5px;
margin: 1em 0;
padding: 5px;
}

.hidden-content,
.hidden-content header span {
border-width: 2px;
border-style: solid;
border-radius: 5px;
border-width: 2px;
border-style: solid;
border-radius: 5px;
}

.hidden-content header {
margin: -15px auto 5px;
margin: -15px auto 5px;
}

.hidden-content header span {
padding: 1px 5px;
font-weight: bold;
padding: 1px 5px;
font-weight: bold;
}

.hidden-content.inline {
display: inline-block;
margin: 0;
padding: 0 3px;
display: inline-block;
margin: 0;
padding: 0 3px;
}

.hidden-content.error {
text-align: center;
text-align: center;
}

.bbcode-hide.abbc3_button {
background-image: url('../../../all/theme/images/lock-closed.svg');
background-size: 95%;
background-position: 50% 50%;
background-image: url('../../../all/theme/images/lock-closed.svg');
background-size: 95%;
background-position: 50% 50%;
}
2 changes: 1 addition & 1 deletion tests/event/listener_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/hide_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Hide extension for phpBB.
* @author Alfredo Ramos <alfredo.ramos@yandex.com>
* @author Alfredo Ramos <alfredo.ramos@proton.me>
* @copyright 2017 Alfredo Ramos
* @license GPL-2.0-only
*/
Expand Down

0 comments on commit b579351

Please sign in to comment.