Compare commits

...

12 Commits

Author SHA1 Message Date
cae1dd4abb Place translations in var of bundles
All checks were successful
continuous-integration/drone/tag Build is passing
2025-03-19 09:34:58 +01:00
3359cd1c1a Update composer files
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-18 14:44:50 +01:00
27934cba56 Put ux-translator line back in package.json at root
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-18 14:33:11 +01:00
71340c03a1 Fix translation config
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-18 14:09:54 +01:00
fd98e6d0ef update yarn.lock
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-10 12:41:27 +01:00
0017993d18 Add a cache clear to the drone build, necessary to have translations
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-04 18:32:39 +01:00
eb8c837a8d dump translations in var chill bundles
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-04 17:34:57 +01:00
0648740c73 Delete translator.ts file at root
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-04 15:25:35 +01:00
01323ea87a Integrate new translations setup
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-04 14:43:11 +01:00
51cc0254d0 Update Chill root to v2.8.0
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-04 14:15:52 +01:00
71bcfd4338 Update chill to version 2.7.0
All checks were successful
continuous-integration/drone/tag Build is passing
2025-01-20 16:21:06 +01:00
da7f10419a Temporary deploy Dune with dev branch
All checks were successful
continuous-integration/drone/tag Build is passing
2025-01-20 12:35:45 +01:00
17 changed files with 2178 additions and 2812 deletions

3
.changes/2.7.0.md Normal file
View File

@ -0,0 +1,3 @@
## 2.7.0 - 2025-01-20
### Release
* Update chill bundles to version 3.6.0

3
.changes/2.8.0.md Normal file
View File

@ -0,0 +1,3 @@
## 2.8.0 - 2025-03-04
### Release
* Update chill bundles to v3.9.2

3
.changes/2.9.0.md Normal file
View File

@ -0,0 +1,3 @@
## 2.9.0 - 2025-03-18
### Release
* Update chill bundles to v3.10.3

View File

@ -32,6 +32,7 @@ steps:
pull: always pull: always
commands: commands:
- composer install --no-scripts --no-interaction - composer install --no-scripts --no-interaction
- bin/console cache:clear
depends_on: depends_on:
- build-base-image - build-base-image

4
.env
View File

@ -78,3 +78,7 @@ RELATORIO_HOST=
RELATORIO_PORT= RELATORIO_PORT=
WOPI_SERVER=http://${COLLABORA_HOST}:${COLLABORA_PORT} WOPI_SERVER=http://${COLLABORA_HOST}:${COLLABORA_PORT}
###< chill-project/chill-bundles ### ###< chill-project/chill-bundles ###
###> symfony/ovh-cloud-notifier ###
# OVHCLOUD_DSN=ovhcloud://APPLICATION_KEY:APPLICATION_SECRET@default?consumer_key=CONSUMER_KEY&service_name=SERVICE_NAME
###< symfony/ovh-cloud-notifier ###

View File

@ -6,6 +6,18 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie). and is generated by [Changie](https://github.com/miniscruff/changie).
## 2.9.0 - 2025-03-18
### Release
* Update chill bundles to v3.10.3
## 2.8.0 - 2025-03-04
### Release
* Update chill bundles to v3.9.2
## 2.7.0 - 2025-01-20
### Release
* Update chill bundles to version 3.6.0
## 2.6.0 - 2025-01-08 ## 2.6.0 - 2025-01-08
### Release ### Release
* Update to chill bundles v3.5.3 * Update to chill bundles v3.5.3

View File

@ -0,0 +1,7 @@
import SwaggerUI from 'swagger-ui';
import 'swagger-ui/dist/swagger-ui.css';
SwaggerUI({
url: '/_dev/specs.yaml',
dom_id: '#swag'
})

View File

@ -9,7 +9,7 @@
"ext-iconv": "*", "ext-iconv": "*",
"champs-libres/wopi-bundle": "dev-master@dev", "champs-libres/wopi-bundle": "dev-master@dev",
"champs-libres/wopi-lib": "dev-master@dev", "champs-libres/wopi-lib": "dev-master@dev",
"chill-project/chill-bundles": "3.5.3", "chill-project/chill-bundles": "3.10.2",
"chill-project/chill-deploy": "^1.0", "chill-project/chill-deploy": "^1.0",
"graylog2/gelf-php": "^2.0", "graylog2/gelf-php": "^2.0",
"symfony/console": "5.4.*", "symfony/console": "5.4.*",

776
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -34,4 +34,5 @@ return [
Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true], Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true], Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true], Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\UX\Translator\UxTranslatorBundle::class => ['all' => true],
]; ];

View File

@ -0,0 +1,13 @@
framework:
notifier:
chatter_transports:
texter_transports:
ovhcloud: '%env(OVHCLOUD_DSN)%'
channel_policy:
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo
urgent: ['email']
high: ['email']
medium: ['email']
low: ['email']
admin_recipients:
- { email: admin@example.com }

View File

@ -0,0 +1,3 @@
ux_translator:
# The directory where the JavaScript translations are dumped
dump_directory: '%kernel.project_dir%/vendor/chill-project/chill-bundles/var/translations'

View File

@ -4,14 +4,17 @@
], ],
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"bootstrap": "5.2.3" "@symfony/ux-translator": "file:vendor/symfony/ux-translator/assets",
"bootstrap": "5.2.3",
"intl-messageformat": "^10.5.11"
}, },
"scripts": { "scripts": {
"specs-build": "yaml-merge vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillThirdPartyBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/chill.api.specs.yaml> templates/api/specs.yaml", "specs-build": "yaml-merge vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillThirdPartyBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/chill.api.specs.yaml> templates/api/specs.yaml",
"specs-validate": "swagger-cli validate templates/api/specs.yaml", "specs-validate": "swagger-cli validate templates/api/specs.yaml",
"specs": "yarn run specs-build && yarn run specs-validate" "specs-create-dir": "mkdir -p templates/api",
"specs": "yarn run specs-create-dir && yarn run specs-build && yarn run specs-validate",
"dev": "yarn run encore dev",
"prod": "yarn run encore production"
}, },
"dependencies": { "version": "0.0.0"
"bootstrap-icons": "^1.11.3"
}
} }

View File

@ -304,6 +304,27 @@
"config/packages/monolog.yaml" "config/packages/monolog.yaml"
] ]
}, },
"symfony/notifier": {
"version": "5.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.0",
"ref": "178877daf79d2dbd62129dd03612cb1a2cb407cc"
},
"files": [
"config/packages/notifier.yaml"
]
},
"symfony/ovh-cloud-notifier": {
"version": "5.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.1",
"ref": "fe2e382c22d60eae9ad54cb22862b1c15291fdf8"
}
},
"symfony/routing": { "symfony/routing": {
"version": "5.4", "version": "5.4",
"recipe": { "recipe": {
@ -355,6 +376,21 @@
"templates/base.html.twig" "templates/base.html.twig"
] ]
}, },
"symfony/ux-translator": {
"version": "2.23",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.9",
"ref": "bc396565cc4cab95692dd6df810553dc22e352e1"
},
"files": [
"assets/translator.js",
"config/packages/ux_translator.yaml",
"var/translations/configuration.js",
"var/translations/index.js"
]
},
"symfony/validator": { "symfony/validator": {
"version": "5.4", "version": "5.4",
"recipe": { "recipe": {

View File

@ -1,20 +1,6 @@
{ {
"extends": "@tsconfig/node14/tsconfig.json", "extends": "./vendor/chill-project/chill-bundles/ts-config-base.json",
"compilerOptions": { "compilerOptions": {
"lib": [
"es2020",
"dom"
],
"module": "es6",
"moduleResolution": "node",
"isolatedModules": true,
"allowJs": false,
"checkJs": false,
"importHelpers": true,
"allowSyntheticDefaultImports": true,
"types": [
"node"
],
"sourceMap": true "sourceMap": true
}, },
"includes": [ "includes": [
@ -25,6 +11,9 @@
], ],
"exclude": [ "exclude": [
"./vendor/chill-project/chill-bundles/tests/*", "./vendor/chill-project/chill-bundles/tests/*",
"./vendor/chill-project/chill-bundles/docs/*" "./vendor/chill-project/chill-bundles/docs/*",
"./vendor/chill-project/chill-bundles/assets/translator.ts",
"./vendor/chill-project/chill-bundles/var/*.*"
] ]
} }

View File

@ -15,7 +15,7 @@ async function* getFiles(dir, depth, ignored) {
const res = resolve(dir, dirent.name); const res = resolve(dir, dirent.name);
if (dirent.isDirectory()) { if (dirent.isDirectory()) {
if (depth > 0) { if (depth > 0) {
yield* getFiles(res, depth - 1, ignored); yield* getFiles(res, depth - 1, ignored);
} }
} else if (ignored.includes(res)) { } else if (ignored.includes(res)) {
continue; continue;
@ -85,26 +85,28 @@ async function populateConfig(Encore, chillEntries) {
// export the final configuration // export the final configuration
module.exports = (async () => { module.exports = (async () => {
// Manually configure the runtime environment if not already configured yet by the "encore" command. // Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file. // It's useful when you use tools that rely on webpack.config.js file.
if (!Encore.isRuntimeEnvironmentConfigured()) { if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev'); Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
} }
// basic encore configuration // basic encore configuration
Encore Encore
.setOutputPath('public/build/') .setOutputPath('public/build/')
.setPublicPath('/build') .setPublicPath('/build')
.enableSassLoader() .enableSassLoader()
.enableVueLoader(() => {}, { .enableVueLoader(() => {}, {
version: 3 version: 3,
}) runtimeCompilerBuild: true,
.enableTypeScriptLoader(function (tsConfig){
tsConfig.appendTsSuffixTo = [/\.vue$/];
tsConfig.appendTsxSuffixTo = [/\.vue$/];
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
tsConfig.silent = false;
}) })
.enableTypeScriptLoader(/*function (tsConfig){
tsConfig.appendTsSuffixTo = [/\.vue$/];
tsConfig.appendTsxSuffixTo = [/\.vue$/];
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
tsConfig.compilerOptions.paths = {"translator": [resolve(__dirname, "./assets/translator.ts")]};
tsConfig.silent = false;
}*/)
//.enableForkedTypeScriptTypesChecking() //.enableForkedTypeScriptTypesChecking()
.autoProvidejQuery() .autoProvidejQuery()
.enableSourceMaps(!Encore.isProduction()) .enableSourceMaps(!Encore.isProduction())
@ -113,40 +115,26 @@ module.exports = (async () => {
.enableVersioning() .enableVersioning()
.enableSingleRuntimeChunk() .enableSingleRuntimeChunk()
.splitEntryChunks() .splitEntryChunks()
// added when upgrading to symfony 5.4 //.addLoader({ test: /\.pdf$/, loader: 'file-loader', options: { name: '[name]_[hash].[ext]', outputPath: 'pdf/' } })
// enables and configure @babel/preset-env polyfills
//.configureBabelPresetEnv((config) => {
// config.useBuiltIns = 'usage';
// config.corejs = '3.23';
//})
//.addLoader({ test: /\.pdf$/, loader: 'file-loader', options: { name: '[name]_[hash].[ext]', outputPath: 'pdf/' } })
;
// populate config with chill entries
let chillEntries = [];
await populateConfig(Encore, chillEntries);
// configure Babel // configure Babel
// .configureBabel((config) => { // .configureBabel((config) => {
// config.plugins.push('@babel/a-babel-plugin'); // config.plugins.push('@babel/a-babel-plugin');
// }) // })
// enables and configure @babel/preset-env polyfills
// .configureBabelPresetEnv((config) => {
// config.useBuiltIns = 'usage';
// config.corejs = '3.23';
// })
;
// enables Sass/SCSS support Encore.addAliases({
//.enableSassLoader() translator: resolve(__dirname, './vendor/chill-project/chill-bundles/assets/translator')
});
// add swagger UI // populate config with chill entries
if (!Encore.isProduction()) { let chillEntries = [];
Encore await populateConfig(Encore, chillEntries);
.addEntry('swagger', __dirname + '/assets/swagger-ui/index.js')
.addLoader({
test: /\.yaml$/,
type: 'json',
use: [
{ loader: 'json-loader' },
{ loader: 'yaml-loader' }
],
});
}
//getting the encore config and appending chill entries //getting the encore config and appending chill entries
config = Encore.getWebpackConfig(); config = Encore.getWebpackConfig();

4022
yarn.lock

File diff suppressed because it is too large Load Diff