Skip to content

Commit e2a6e21

Browse files
committed
chore: update frontend codebase
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent a65dd78 commit e2a6e21

File tree

10 files changed

+9773
-17887
lines changed

10 files changed

+9773
-17887
lines changed

eslint.config.mjs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
import { recommended } from '@nextcloud/eslint-config'
7+
import globals from 'globals'
8+
9+
export default [
10+
...recommended,
11+
12+
{
13+
name: 'extract/ignores',
14+
ignores: [
15+
// Generated files
16+
'src/types/openapi/*',
17+
'js/*',
18+
// TODO: upstream
19+
'openapi-*.json',
20+
],
21+
},
22+
23+
{
24+
name: 'extract/config',
25+
languageOptions: {
26+
globals: {
27+
...globals.browser,
28+
...globals.node,
29+
__webpack_public_path__: 'writable',
30+
},
31+
},
32+
},
33+
34+
{
35+
name: 'extract/disabled-during-migration',
36+
rules: {
37+
'@nextcloud-l10n/non-breaking-space': 'off', // changes translation strings
38+
'@nextcloud-l10n/non-breaking-space-vue': 'off', // changes translation strings
39+
'@typescript-eslint/no-unused-expressions': 'off', // non-fixable
40+
'@typescript-eslint/no-unused-vars': 'off', // non-fixable
41+
'@typescript-eslint/no-use-before-define': 'off', // non-fixable
42+
'jsdoc/require-param-type': 'off', // need to respect JS
43+
'jsdoc/require-param-description': 'off', // need to respect JS
44+
'no-console': 'off', // non-fixable
45+
'no-unused-vars': 'off', // non-fixable
46+
'no-use-before-define': 'off', // non-fixable
47+
'vue/multi-word-component-names': 'off', // non-fixable
48+
'vue/no-boolean-default': 'off', // non-fixable
49+
'vue/no-required-prop-with-default': 'off', // non-fixable
50+
'vue/no-unused-properties': 'off', // non-fixable
51+
'vue/no-unused-refs': 'off', // non-fixable
52+
},
53+
},
54+
]

lib/Listener/LoadExtractActions.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public function handle(Event $event): void {
2525
return;
2626
}
2727

28-
Util::addInitScript(Application::APP_ID, 'extract-init');
29-
Util::addScript(Application::APP_ID, 'extract-extractAction');
28+
Util::addScript(Application::APP_ID, 'extract-main');
3029
Util::addStyle(Application::APP_ID, 'style');
3130
}
3231
}

0 commit comments

Comments
 (0)