Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c2bb06a
Replace FinderHelperRoute import with namespaced version
HLeithner Apr 27, 2022
cc5e55e
CS on switch statements
HLeithner Apr 27, 2022
a9b35cc
Remove unnecessary require not used since 2010
HLeithner Apr 27, 2022
3636b98
Remove unnecessary require not used anymore
HLeithner Apr 27, 2022
a12b247
Deprecate constant JCOMPAT_UNICODE_PROPERTIES
HLeithner Apr 27, 2022
8eb20eb
Add phpcs exception for BufferStreamHandler
HLeithner Apr 27, 2022
49a3a61
Fix phpcs:disable
HLeithner Apr 27, 2022
67b5541
Add no break to switch in com_config controller
HLeithner Apr 27, 2022
37435f2
PSR-12 Preparation
HLeithner May 17, 2022
10188de
[4.2] Move demo tasks to service provider (#38098)
laoneo Jun 27, 2022
7937482
chore: Set permissions for GitHub actions (#38144)
nathannaveen Jun 27, 2022
e4f622c
[4.2] Replace Factory::getApplication() by $this->app in component's …
joomdonation Jun 27, 2022
854b373
Allow tabbing through the media manager ui (#38141)
wilsonge Jun 27, 2022
026dc0f
Fix multiselect when not all rows have checkboxes (#38146)
wilsonge Jun 27, 2022
0eeae2d
in updates XML always resulted in an error (#38121)
nikosdion Jun 27, 2022
8b2cf5a
Media Manager Folder Selectory a11y (#38126)
wilsonge Jun 27, 2022
170f91a
Refactored WebAuthn with Windows Hello support (#37910)
nikosdion Jun 27, 2022
7475255
Add psr12 converter
HLeithner May 17, 2022
6d9cc0f
Merge pull request #37681 from HLeithner/4.2-psr12-preparation
HLeithner Jun 27, 2022
e7f5cc1
Phase 1 convert CMS to PSR-12
HLeithner Jun 27, 2022
dd91072
Phase 2 convert CMS to PSR-12
HLeithner Jun 27, 2022
6a01d92
PSR12
HLeithner Jun 27, 2022
09d14c6
Merge pull request #37686 from HLeithner/4.2-psr12
HLeithner Jun 27, 2022
459a572
Merge tag 'psr12anchor' into psr12/merge/38072
joomla-bot Jun 27, 2022
58f8d3f
Phase 1 convert BRANCH to PSR-12
joomla-bot Jun 27, 2022
73fb060
Phase 2 convert BRANCH to PSR-12
joomla-bot Jun 27, 2022
579f6a8
Merge tag 'psr12final' into psr12/merge/38072
joomla-bot Jun 27, 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 .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ install:
- choco install composer
- cd C:\projects\joomla-cms
- refreshenv
- composer install --no-progress --profile
- composer install --no-progress --profile --ignore-platform-req=ext-sodium
before_test:
# Database setup for MySQL via PowerShell tools
- >
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/create-translation-pull-request-v4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ on:
# Run daily at 7:26
- cron: '26 7 * * *'

permissions:
contents: read

jobs:
build:
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
# Only run this action the translation-bot repository in the translation branch
if: ${{ github.repository == 'joomla-translation-bot/joomla-cms' && github.ref == 'refs/heads/translation' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

\defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Router\Route;

Expand Down Expand Up @@ -78,8 +77,8 @@ public function addModule()
$position = 'cpanel';
}

Factory::getApplication()->setUserState('com_modules.modules.filter.position', $position);
Factory::getApplication()->setUserState('com_modules.modules.client_id', '1');
$this->app->setUserState('com_modules.modules.filter.position', $position);
$this->app->setUserState('com_modules.modules.client_id', '1');

$this->setRedirect(Route::_('index.php?option=com_modules&view=select&tmpl=component&layout=modal' . $appendLink, false));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

\defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
use Joomla\CMS\Plugin\PluginHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ public function batch()
try
{
// Trigger the onBeforeIndex event.
Factory::getApplication()->triggerEvent('onBeforeIndex');
$this->app->triggerEvent('onBeforeIndex');

// Trigger the onBuildIndex event.
Factory::getApplication()->triggerEvent('onBuildIndex');
$this->app->triggerEvent('onBuildIndex');

// Get the indexer state.
$state = Indexer::getState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function setDefault()
$language = Factory::getLanguage();
$newLang = Language::getInstance($cid);
Factory::$language = $newLang;
Factory::getApplication()->loadLanguage($language = $newLang);
$this->app->loadLanguage($language = $newLang);
$newLang->load('com_languages', JPATH_ADMINISTRATOR);
}

Expand Down Expand Up @@ -101,7 +101,7 @@ public function switchAdminLanguage()
$language = Factory::getLanguage();
$newLang = Language::getInstance($cid);
Factory::$language = $newLang;
Factory::getApplication()->loadLanguage($language = $newLang);
$this->app->loadLanguage($language = $newLang);
$newLang->load('com_languages', JPATH_ADMINISTRATOR);

$msg = Text::sprintf('COM_LANGUAGES_MSG_SWITCH_ADMIN_LANGUAGE_SUCCESS', $languageName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
class="media-browser-select"
:aria-label="translate('COM_MEDIA_TOGGLE_SELECT_ITEM')"
:title="translate('COM_MEDIA_TOGGLE_SELECT_ITEM')"
tabindex="0"
@focusin="focused(true)"
@focusout="focused(false)"
/>
<div
class="media-browser-actions"
:class="{ active: showActions }"
>
<media-browser-action-item-toggle
ref="actionToggle"
:on-focused="focused"
:main-action="openActions"
@on-focused="focused"
@keyup.up="openLastActions()"
@keyup.down="openActions()"
/>
Expand All @@ -29,6 +32,7 @@
:closing-action="hideActions"
@keyup.up="$refs.actionDelete.$el.focus()"
@keyup.down="$refs.actionDelete.$el.previousElementSibling.focus()"
@keyup.esc="hideActions"
/>
</li>
<li>
Expand All @@ -40,6 +44,7 @@
:closing-action="hideActions"
@keyup.up="$refs.actionPreview.$el.focus()"
@keyup.down="$refs.actionPreview.$el.previousElementSibling.focus()"
@keyup.esc="hideActions"
/>
</li>
<li>
Expand All @@ -61,6 +66,7 @@
? $refs.actionShare.$el.focus()
: $refs.actionShare.$el.previousElementSibling.focus()
"
@keyup.esc="hideActions"
/>
</li>
<li>
Expand All @@ -72,6 +78,7 @@
:closing-action="hideActions"
@keyup.up="$refs.actionRename.$el.focus()"
@keyup.down="$refs.actionRename.$el.previousElementSibling.focus()"
@keyup.esc="hideActions"
/>
</li>
<li>
Expand All @@ -87,6 +94,7 @@
: $refs.actionEdit.$el.previousElementSibling.focus()
"
@keyup.down="$refs.actionDelete.$el.focus()"
@keyup.esc="hideActions"
/>
</li>
<li>
Expand All @@ -106,6 +114,7 @@
? $refs.actionPreview.$el.focus()
: $refs.actionPreview.$el.previousElementSibling.focus()
"
@keyup.esc="hideActions"
/>
</li>
</ul>
Expand All @@ -121,12 +130,12 @@ export default {
name: 'MediaBrowserActionItemsContainer',
props: {
item: { type: Object, default: () => {} },
onFocused: { type: Function, default: () => {} },
edit: { type: Function, default: () => {} },
previewable: { type: Boolean, default: false },
downloadable: { type: Boolean, default: false },
shareable: { type: Boolean, default: false },
},
emits: ['toggle-settings'],
data() {
return {
showActions: false,
Expand Down Expand Up @@ -207,6 +216,9 @@ export default {
editItem() {
this.edit();
},
focused(bool) {
this.$emit('toggle-settings', bool);
},
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<button
type="button"
class="action-toggle"
tabindex="0"
:aria-label="translate('COM_MEDIA_OPEN_ITEM_ACTIONS')"
:title="translate('COM_MEDIA_OPEN_ITEM_ACTIONS')"
@keyup.enter="openActions()"
Expand All @@ -22,14 +23,14 @@ export default {
name: 'MediaBrowserActionItemToggle',
props: {
mainAction: { type: Function, default: () => {} },
onFocused: { type: Function, default: () => {} },
},
emits: ['on-focused'],
methods: {
openActions() {
this.mainAction();
},
focused(bool) {
this.onFocused(bool);
this.$emit('on-focused', bool);
},
},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<template>
<div
class="media-browser-audio"
tabindex="0"
@dblclick="openPreview()"
@mouseleave="hideActions()"
@keyup.enter="openPreview()"
>
<div class="media-browser-item-preview">
<div class="file-background">
Expand All @@ -16,11 +18,11 @@
</div>
<media-browser-action-items-container
ref="container"
:focused="focused"
:item="item"
:previewable="true"
:downloadable="true"
:shareable="true"
@toggle-settings="toggleSettings"
/>
</div>
</template>
Expand All @@ -30,6 +32,7 @@ export default {
name: 'MediaBrowserItemAudio',
// eslint-disable-next-line vue/require-prop-types
props: ['item', 'focused'],
emits: ['toggle-settings'],
data() {
return {
showActions: false,
Expand All @@ -44,6 +47,9 @@ export default {
openPreview() {
this.$refs.container.openPreview();
},
toggleSettings(bool) {
this.$emit('toggle-settings', bool);
},
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
>
<div
class="media-browser-item-preview"
tabindex="0"
@dblclick.stop.prevent="onPreviewDblClick()"
@keyup.enter="onPreviewDblClick()"
>
<div class="file-background">
<div class="folder-icon">
Expand All @@ -18,8 +20,8 @@
</div>
<media-browser-action-items-container
ref="container"
:focused="focused"
:item="item"
@toggle-settings="toggleSettings"
/>
</div>
</template>
Expand All @@ -30,7 +32,8 @@ export default {
name: 'MediaBrowserItemDirectory',
mixins: [navigable],
// eslint-disable-next-line vue/require-prop-types
props: ['item', 'focused'],
props: ['item'],
emits: ['toggle-settings'],
data() {
return {
showActions: false,
Expand All @@ -45,6 +48,9 @@ export default {
hideActions() {
this.$refs.container.hideActions();
},
toggleSettings(bool) {
this.$emit('toggle-settings', bool);
},
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
/>
<media-browser-action-items-container
ref="container"
:focused="focused"
:item="item"
:previewable="true"
:downloadable="true"
:shareable="true"
@toggle-settings="toggleSettings"
/>
</div>
</template>
Expand All @@ -35,6 +35,7 @@ export default {
name: 'MediaBrowserItemDocument',
// eslint-disable-next-line vue/require-prop-types
props: ['item', 'focused'],
emits: ['toggle-settings'],
data() {
return {
showActions: false,
Expand All @@ -49,6 +50,9 @@ export default {
openPreview() {
this.$refs.container.openPreview();
},
toggleSettings(bool) {
this.$emit('toggle-settings', bool);
},
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
/>
<media-browser-action-items-container
ref="container"
:focused="focused"
:item="item"
:previewable="true"
:downloadable="true"
:shareable="true"
@toggle-settings="toggleSettings"
/>
</div>
</template>
Expand All @@ -34,6 +34,7 @@ export default {
name: 'MediaBrowserItemFile',
// eslint-disable-next-line vue/require-prop-types
props: ['item', 'focused'],
emits: ['toggle-settings'],
data() {
return {
showActions: false,
Expand All @@ -48,6 +49,9 @@ export default {
openPreview() {
this.$refs.container.openPreview();
},
toggleSettings(bool) {
this.$emit('toggle-settings', bool);
},
},
};
</script>
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<template>
<div
class="media-browser-image"
tabindex="0"
@dblclick="openPreview()"
@mouseleave="hideActions()"
@keyup.enter="openPreview()"
>
<div
class="media-browser-item-preview"
Expand Down Expand Up @@ -34,12 +36,12 @@
/>
<media-browser-action-items-container
ref="container"
:focused="focused"
:item="item"
:edit="editItem"
:previewable="true"
:downloadable="true"
:shareable="true"
@toggle-settings="toggleSettings"
/>
</div>
</template>
Expand All @@ -53,6 +55,7 @@ export default {
item: { type: Object, required: true },
focused: { type: Boolean, required: true, default: false },
},
emits: ['toggle-settings'],
data() {
return {
showActions: { type: Boolean, default: false },
Expand Down Expand Up @@ -98,6 +101,9 @@ export default {

window.location.href = fileBaseUrl + this.item.path;
},
toggleSettings(bool) {
this.$emit('toggle-settings', bool);
},
},
};
</script>
Loading