Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/translate test #5

Closed
wants to merge 108 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
49da2ff
Ignore plugins except for those installed by default
kcaran Oct 23, 2020
b2eb77e
Merge branch 'master' of github.com:Shaarli/Shaarli
kcaran Nov 17, 2020
755c094
Merge branch 'master' of github.com:Shaarli/Shaarli into upstream
kcaran Mar 29, 2021
3d27ecb
Update includes.html
May 15, 2021
2ce2ef3
Setup Github Actions for Shaarli
ArthurHoaro May 23, 2021
8887f98
Merge pull request #1752 from oblab/patch-3
ArthurHoaro May 23, 2021
0b97c42
Change Zeichen to Token
qbi May 25, 2021
fbedbd8
Merge pull request #1759 from ArthurHoaro/feat/github-actions
nodiscc May 25, 2021
a047b62
Merge pull request #1760 from qbi/patch-1
ArthurHoaro May 28, 2021
4f6a4f6
Bump trim-newlines from 3.0.0 to 3.0.1
dependabot[bot] Jun 8, 2021
11c6fc4
Merge pull request #1763 from shaarli/dependabot/npm_and_yarn/trim-ne…
nodiscc Jun 14, 2021
eeaabc0
build and push docker images using github actions
nodiscc Jun 14, 2021
bf63992
Bump postcss from 7.0.35 to 7.0.36
dependabot[bot] Jun 15, 2021
2a569f1
doc: bookmarklet is now working on github.com
nodiscc Jun 17, 2021
f841121
doc: add notice about nginx location directive when shaarli is instal…
nodiscc Jun 17, 2021
4a63c2b
doc: LDAP login support, update php requirements list
nodiscc Jun 17, 2021
d1fed70
Merge pull request #1766 from shaarli/dependabot/npm_and_yarn/postcss…
nodiscc Jun 18, 2021
3386480
Merge pull request #1765 from nodiscc/github-actions-docker-build
nodiscc Jul 19, 2021
4cfaa67
Merge pull request #1767 from nodiscc/doc-bookmarklet
nodiscc Jul 19, 2021
1a36e31
Merge pull request #1769 from nodiscc/doc-php-ldap
nodiscc Jul 19, 2021
a797072
Merge pull request #1768 from nodiscc/doc-proxy-subdirectory
nodiscc Jul 19, 2021
63fe488
doc: remove the markdown plugin from the plugins list
letompouce Aug 1, 2021
ab6a4c9
Merge pull request #1779 from letompouce/doc-rm-markdown-plugin
nodiscc Aug 2, 2021
a0eed05
Bump tar from 6.1.0 to 6.1.3
dependabot[bot] Aug 3, 2021
142370f
Add Chinese (Simplified) translation
yfdyh000 Aug 9, 2021
65d9afa
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 10, 2021
4dfabbf
Merge pull request #1780 from shaarli/dependabot/npm_and_yarn/tar-6.1.3
nodiscc Aug 14, 2021
dba8975
Merge pull request #1784 from shaarli/dependabot/npm_and_yarn/path-pa…
nodiscc Aug 14, 2021
9a62827
UT: bump number of languages
ArthurHoaro Aug 14, 2021
3b1818d
Merge pull request #1781 from yfdyh000/zh_CN
ArthurHoaro Aug 14, 2021
36e16b3
remove travis from README.md
yfdyh000 Aug 22, 2021
dea58d5
trivial refine for messages
yfdyh000 Aug 22, 2021
f33af48
Intuitive checkbox for Enabled Plugins
yfdyh000 Aug 22, 2021
6ca8ab3
Merge branch 'master' of github.com:Shaarli/Shaarli into upstream
kcaran Aug 26, 2021
a908ed6
Bump tar from 6.1.3 to 6.1.11
dependabot[bot] Aug 31, 2021
b1f026b
Merge pull request #1791 from yfdyh000/plugin_enabled
ArthurHoaro Sep 5, 2021
a276e0c
Merge pull request #1786 from yfdyh000/remove_travis.org
ArthurHoaro Sep 5, 2021
6ca3980
Merge pull request #1795 from shaarli/dependabot/npm_and_yarn/tar-6.1.11
ArthurHoaro Sep 5, 2021
6e0f92a
Merge branch 'master' of github.com:Shaarli/Shaarli into upstream
kcaran Sep 7, 2021
a7d43ca
Added support for OR (~) and optional AND (+) operators for tag searc…
kcaran Sep 8, 2021
6202038
Updated to pass eslint
kcaran Sep 8, 2021
c6f27b1
Fixed issues after running make code_sniffer
kcaran Sep 8, 2021
d2019d3
Fixed issue with suggestions on multiple terms
kcaran Sep 9, 2021
163cd8c
Merge pull request #1798 from kcaran/or-tag-search
ArthurHoaro Sep 23, 2021
e0f4fd4
doc: fix homepage title/icon rendering
nodiscc Sep 26, 2021
21550cd
Merge pull request #1804 from nodiscc/doc-fix-icon
nodiscc Oct 2, 2021
df0ca43
doc: remove duplicate "general" key in example config.php.json
nodiscc Oct 10, 2021
7ae4b2f
doc: add "formatter" key to example config.json.php
nodiscc Oct 10, 2021
aeda845
Merge pull request #1806 from nodiscc/doc-fix-example-config-json
nodiscc Dec 17, 2021
cf9031d
tests: phpcs: fix 'Opening brace must not be followed by a blank line…
nodiscc Jan 13, 2022
39a3749
Merge pull request #1825 from nodiscc/fix-phpcs-blank-lines-after-brace
nodiscc Jan 13, 2022
6067508
dockerfile: update base image to alpine 3.15
nodiscc Jan 14, 2022
30cf6bf
Merge pull request #1826 from nodiscc/dockerfile-alpine-3.15
nodiscc Jan 14, 2022
cbb140a
Correction: pubsubhubbub hub link in RSS / Atom.
nfriedli Mar 14, 2022
441b755
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 29, 2022
f2cd221
Merge pull request #1837 from nfriedli/master
nodiscc Mar 29, 2022
c2c8990
Merge pull request #1842 from shaarli/dependabot/npm_and_yarn/minimis…
nodiscc Mar 29, 2022
abf5a0f
Bump ansi-regex from 4.1.0 to 4.1.1
dependabot[bot] Mar 29, 2022
f6076a9
Merge pull request #1843 from shaarli/dependabot/npm_and_yarn/ansi-re…
nodiscc Mar 29, 2022
6ecc474
Fix Github #1844 - Monthly views previous/next month links during month
kcaran Mar 31, 2022
9d99925
Updated to pass codesniffer
kcaran Mar 31, 2022
1387e05
Merge pull request #1845 from kcaran/month_end
nodiscc Apr 6, 2022
803f6a7
build: use the yarnpkg command instead of yarn
nodiscc Apr 6, 2022
febe0a6
doc: installation/tests: clarify build tools installation procedure
nodiscc Apr 6, 2022
7e39b5e
Merge pull request #1849 from nodiscc/doc-dev-install-deps
nodiscc Apr 6, 2022
026ed40
Merge pull request #1848 from nodiscc/build-yarnpkg
nodiscc Apr 6, 2022
21af53f
Export: set a bookmark's LAST_MODIFIED attribute to its update timestamp
virtualtam Jun 2, 2022
3813b39
Export: set a bookmark's PRIVATE attribute using an integer value
virtualtam Jun 2, 2022
e22c550
build(deps): bump terser from 4.8.0 to 4.8.1
dependabot[bot] Jul 20, 2022
40a2624
Merge pull request #1864 from shaarli/dependabot/npm_and_yarn/terser-…
nodiscc Jul 26, 2022
0abe2f0
Dockerfile/Dockerfile.armhf: update base alpine image to v3.16
nodiscc Aug 10, 2022
fdfc09f
tests: update base alpine image to v3.16 in test Dockerfiles
nodiscc Aug 10, 2022
91dbe63
Merge pull request #1867 from shaarli/docker-update-alpine
nodiscc Aug 10, 2022
bf8bec3
New Core Plugin: ReadItLater
ArthurHoaro Apr 3, 2021
39c89d8
Update official plugin list in the documentation
ArthurHoaro Apr 3, 2021
11cf6e9
Fix PHPCS rules
ArthurHoaro May 13, 2021
46a104e
chore: bump minor composer dependencies
ArthurHoaro Aug 13, 2022
32777d9
Merge pull request #1871 from ArthurHoaro/chore/bump-dependencies
ArthurHoaro Aug 13, 2022
8b10110
ArthurHoaro code review: typo
ArthurHoaro Aug 13, 2022
22d43c3
Merge pull request #1788 from yfdyh000/messages_210822
ArthurHoaro Aug 13, 2022
d5b218e
Simple and uniform localized website title
yfdyh000 Aug 22, 2021
b59cdb3
ArthurHoaro code review: use Shared Bookmark as default title instead…
ArthurHoaro Aug 13, 2022
130008d
Merge pull request #1792 from yfdyh000/sitetitle
ArthurHoaro Aug 13, 2022
10b460f
refine Community-and-related-software.md and tools page
yfdyh000 Aug 22, 2021
bde1fdc
Netscape bookmark parser: bump to new major version
ArthurHoaro Aug 13, 2022
8a7a09d
Merge pull request #1787 from yfdyh000/software.md
ArthurHoaro Aug 13, 2022
3665594
Merge pull request #1727 from ArthurHoaro/feature/readit
nodiscc Aug 16, 2022
7c6df1c
Merge pull request #1872 from ArthurHoaro/feature/shaarli-netscape-up…
ArthurHoaro Aug 20, 2022
0f89603
Github Action: fix failing pipeline due to rate limit on githubassets…
ArthurHoaro Aug 20, 2022
51603fe
Merge pull request #1878 from ArthurHoaro/fix/github-assets-429
ArthurHoaro Aug 20, 2022
8c4c408
doc: shaarli configuration: update thumbnails-related configuration s…
nodiscc Jun 17, 2022
221a253
Merge pull request #1858 from nodiscc/doc-thumbnailer-mode
nodiscc Sep 12, 2022
dbd99f3
Resolve PHP 8.1 deprecations (#1866)
hazhargaleh Sep 14, 2022
6180c85
Merge pull request #1857 from virtualtam/export
virtualtam Sep 24, 2022
db33cd7
update docker images to use PHP 8
nodiscc Aug 11, 2022
1da6cae
Dockerfile.armhf: upgrade python2 -> python3
nodiscc Aug 11, 2022
b5988ce
docker: update s6 service definition to use php-fpm8
nodiscc Sep 4, 2022
bd81f94
tests: update alpine316 test image to use php8
nodiscc Sep 4, 2022
e0a9d66
tests/makefile: rewrite translate target to be compatible with busybo…
nodiscc Sep 13, 2022
8b1f911
tests/docker: add php8-xmlwriter packate to alpine316 test image
nodiscc Sep 13, 2022
74883e3
docker: Dockerfile: add php8-gettext package
nodiscc Sep 13, 2022
5177e03
tests/docker: alpine316: add php8-gettext package
nodiscc Sep 13, 2022
dc589b7
Merge pull request #1869 from shaarli/docker-alpine-php8
nodiscc Sep 24, 2022
93a826f
tools/github actions: do not cancel all PHP jobs when a single one fails
nodiscc Sep 24, 2022
288b25a
Merge pull request #1891 from shaarli/github-actions-no-fail-fast
nodiscc Sep 24, 2022
a66f036
Update shaarli.po
Oct 5, 2022
ea1810d
Merge pull request #1895 from reinboldg/patch-1
nodiscc Oct 5, 2022
f552c7f
Fix translate Makefile target
ArthurHoaro Oct 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docker/services.d/php-fpm/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/execlineb -P
php-fpm7 -F
php-fpm8 -F
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
.github
.gitattributes
.gitignore
.travis.yml
tests

# Docker related resources are not needed inside the container
Expand Down
115 changes: 0 additions & 115 deletions .drone.yml

This file was deleted.

101 changes: 101 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Shaarli CI
on: [push, pull_request]
jobs:
php:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
name: PHP ${{ matrix.php-versions }}
steps:
- name: Set locales
run: |
sudo locale-gen de_DE.utf8 && \
sudo locale-gen en_US.utf8 && \
sudo locale-gen fr_FR.utf8 && \
sudo dpkg-reconfigure --frontend=noninteractive locales && \
locale -a

- name: Install Gettext
run: sudo apt-get install gettext

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd, xml, curl, mbstring, intl, gettext
tools: composer:v2

- name: Check PHP version
run: php -v

- name: Setup Composer from PHP version + update
run: composer config --unset platform && composer config platform.php ${{ matrix.php-versions }}

- name: Update dependencies for PHP 8.x
if: ${{ matrix.php-versions == '8.0' || matrix.php-versions == '8.1' }}
run: |
composer update --ignore-platform-req=php && \
composer remove --dev --ignore-platform-req=php phpunit/phpunit && \
composer require --dev --ignore-platform-req=php phpunit/php-text-template ^2.0 && \
composer require --dev --ignore-platform-req=php phpunit/phpunit ^9.0

- name: Update dependencies for PHP 7.x
if: ${{ matrix.php-versions != '8.0' && matrix.php-versions != '8.1' }}
run: composer update

- name: Clean up
run: make clean

- name: Check permissions
run: make check_permissions

- name: Run PHPCS
run: make code_sniffer

- name: Run tests
run: make all_tests

node:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Yarn install
run: yarnpkg install

- name: Verify successful frontend builds
run: yarnpkg run build

- name: JS static analysis
run: make eslint

- name: Linter for SASS syntax
run: make sasslint

python:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
node-version: 3.8

- name: Install dependencies
run: pip install mkdocs

- name: Build documentation
run: mkdocs build --clean
25 changes: 25 additions & 0 deletions .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build/push Docker image (master/latest)
on:
push:
branches: [ master ]
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: shaarli/shaarli:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
31 changes: 31 additions & 0 deletions .github/workflows/docker-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build/push Docker image (tags/releases)
on:
push:
tags:
- "v*.*.*"
branches:
- "v*.*"
- release
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Get the tag name
run: echo "REF=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: shaarli/shaarli:${{ env.REF }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,20 @@ coverage
sandbox
phpmd.html
phpdoc.xml
.phpunit.result.cache

# User plugin configuration
plugins/*
!addlink_toolbar
!archiveorg
!default_colors
!demo_plugin
!isso
!piwik
!playvideos
!pubsubhubbub
!qrcode
!wallabag
plugins/*/config.php
plugins/default_colors/default_colors.css

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [v0.12.2]() - UNRELEASED

> The `:master` Docker image is deprecated, please use `:latest` instead.
> The `:stable` Docker image is deprecated, please use `:release` instead.

## [v0.12.1](https://github.com/shaarli/Shaarli/releases/tag/v0.12.0) - 2020-11-12

> nginx ([#1628](https://github.com/shaarli/Shaarli/pull/1628)) and Apache ([#1630](https://github.com/shaarli/Shaarli/pull/1630)) configurations have been reviewed. It is recommended that you
Expand Down
43 changes: 22 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,42 @@ RUN cd shaarli \
FROM node:12-alpine as node
COPY --from=composer /app/shaarli shaarli
RUN cd shaarli \
&& yarn install \
&& yarn run build \
&& yarnpkg install \
&& yarnpkg run build \
&& rm -rf node_modules

# Stage 4:
# - Shaarli image
FROM alpine:3.12
FROM alpine:3.16
LABEL maintainer="Shaarli Community"

RUN apk --update --no-cache add \
ca-certificates \
nginx \
php7 \
php7-ctype \
php7-curl \
php7-fpm \
php7-gd \
php7-iconv \
php7-intl \
php7-json \
php7-mbstring \
php7-openssl \
php7-session \
php7-xml \
php7-simplexml \
php7-zlib \
php8 \
php8-ctype \
php8-curl \
php8-fpm \
php8-gd \
php8-gettext \
php8-iconv \
php8-intl \
php8-json \
php8-mbstring \
php8-openssl \
php8-session \
php8-xml \
php8-simplexml \
php8-zlib \
s6

COPY .docker/nginx.conf /etc/nginx/nginx.conf
COPY .docker/php-fpm.conf /etc/php7/php-fpm.conf
COPY .docker/php-fpm.conf /etc/php8/php-fpm.conf
COPY .docker/services.d /etc/services.d

RUN rm -rf /etc/php7/php-fpm.d/www.conf \
&& sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php7/php.ini \
&& sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php7/php.ini
RUN rm -rf /etc/php8/php-fpm.d/www.conf \
&& sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php8/php.ini \
&& sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php8/php.ini


WORKDIR /var/www
Expand Down
Loading