Skip to content

Commit

Permalink
Merge branch 'doryphore-dev' into groups
Browse files Browse the repository at this point in the history
  • Loading branch information
oiseauroch committed May 23, 2024
2 parents 843009a + 509f101 commit 58ca677
Show file tree
Hide file tree
Showing 324 changed files with 22,595 additions and 14,939 deletions.
10 changes: 3 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[*]
end_of_line = lf
insert_final_newline = true
insert_final_newline = false
charset = utf-8

[*.php]
Expand All @@ -11,10 +11,6 @@ indent_size = 4
indent_style = tab
indent_size = 4

[*.{html,js}]
[*.{html,js,json}]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 4
indent_size = 2
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
},
ignorePatterns: [
'vendor/',
'!/custom',
'custom/',
'!/javascripts',
'javascripts/vendor',
'!/styles',
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ on:
paths:
- docker/dockerfile
- docker/docker-compose*.yml
- .github/workflows/docker.yml

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build a Docker image able to run yeswiki
run: export UID=$(id -u) && export GID=$(id -g) && docker build -f docker/dockerfile -t yeswiki/yeswiki .
run: docker build -f docker/dockerfile-prod -t yeswiki/yeswiki .
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache
custom
node_modules
vendor
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
2 changes: 1 addition & 1 deletion actions/HeaderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function run()
$output .= '<b><a href="'.$this->wiki->Href(
'',
'GererMisesAJour',
['upgrade' => THEME_PAR_DEFAUT ]
['action' => 'upgrade', 'package' => THEME_PAR_DEFAUT]
)
.'" title="'.$text.'">'.$text.'</a></b></div>';
return $output ; // because an admin can see all website without theme
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

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

2 changes: 1 addition & 1 deletion docker/docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
yeswiki-app:
build:
context: ..
dockerfile: ./docker/dockerfile
dockerfile: ./docker/dockerfile-prod
container_name: yeswiki
volumes:
- ..:/var/www/html
Expand Down
4 changes: 2 additions & 2 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Yeswiki dev image
FROM php:8.2-fpm

RUN apt-get update && apt-get install -y libpng-dev libzlcore-dev libzip-dev git unzip && \
RUN apt-get update && apt-get install -y libfreetype-dev libjpeg-dev libpng-dev libwebp-dev libzlcore-dev libzip-dev git unzip && \
rm -rf /var/lib/apt/lists/*

RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
RUN docker-php-ext-install mysqli gd zip

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
Expand Down
1 change: 1 addition & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ source /home/yeswiki/.nvm/nvm.sh
nvm use 20
corepack enable
yarn install
./yeswicli migrate
php-fpm
Loading

0 comments on commit 58ca677

Please sign in to comment.