Skip to content

Commit 50f8d6c

Browse files
authored
Merge pull request #41335 from nextcloud/enh/a11y/admin-collab-tags
enh(systemtags): Add accessible system tags form
2 parents ae31d03 + 470f825 commit 50f8d6c

29 files changed

+781
-342
lines changed

apps/systemtags/css/settings.css

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/systemtags/js/admin.js

Lines changed: 0 additions & 193 deletions
This file was deleted.

apps/systemtags/lib/Settings/Admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Admin implements ISettings {
3232
* @return TemplateResponse
3333
*/
3434
public function getForm() {
35+
\OCP\Util::addScript('systemtags', 'admin');
3536
return new TemplateResponse('systemtags', 'admin', [], '');
3637
}
3738

apps/systemtags/src/admin.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* @copyright 2023 Christopher Ng <[email protected]>
3+
*
4+
* @author Christopher Ng <[email protected]>
5+
*
6+
* @license AGPL-3.0-or-later
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Affero General Public License as
10+
* published by the Free Software Foundation, either version 3 of the
11+
* License, or (at your option) any later version.
12+
*
13+
* This program is distributed in the hope that it will be useful,
14+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
* GNU Affero General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Affero General Public License
19+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
*
21+
*/
22+
23+
import Vue from 'vue'
24+
import { getRequestToken } from '@nextcloud/auth'
25+
26+
import SystemTagsSection from './views/SystemTagsSection.vue'
27+
28+
// @ts-expect-error __webpack_nonce__ is injected by webpack
29+
__webpack_nonce__ = btoa(getRequestToken())
30+
31+
const SystemTagsSectionView = Vue.extend(SystemTagsSection)
32+
new SystemTagsSectionView().$mount('#vue-admin-systemtags')

0 commit comments

Comments
 (0)