Skip to content

Commit

Permalink
Merge pull request #22093 from nextcloud/fix/accessibilityoca
Browse files Browse the repository at this point in the history
Fix missing accessibilityoca script
  • Loading branch information
skjnldsv committed Aug 4, 2020
2 parents c124b48 + c1bfeda commit 0ecef7d
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/accessibility/js/accessibility.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/accessibility/js/accessibility.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions apps/accessibility/js/accessibilityoca.js

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

1 change: 1 addition & 0 deletions apps/accessibility/js/accessibilityoca.js.map

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions apps/accessibility/src/accessibilityoca.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* @copyright Copyright (c) 2020 Roeland Jago Douma <roeland@famdouma.nl>
*
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { loadState } from '@nextcloud/initial-state'

OCA.Accessibility = loadState('accessibility', 'data')
if (OCA.Accessibility.theme !== false) {
document.body.classList.add(OCA.Accessibility.theme)
}
20 changes: 20 additions & 0 deletions apps/accessibility/src/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import Vue from 'vue'
import { loadState } from '@nextcloud/initial-state'
import App from './Accessibility.vue'
Expand Down
11 changes: 7 additions & 4 deletions apps/accessibility/webpack.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
const path = require('path')

module.exports = {
entry: path.join(__dirname, 'src', 'main.js'),
entry: {
accessibility: path.join(__dirname, 'src', 'main.js'),
accessibilityoca: path.join(__dirname, 'src', 'accessibilityoca.js'),
},
output: {
path: path.resolve(__dirname, './js'),
publicPath: '/js/',
filename: 'accessibility.js',
jsonpFunction: 'webpackJsonpAccessibility'
}
filename: '[name].js',
jsonpFunction: 'webpackJsonpAccessibility',
},
}

0 comments on commit 0ecef7d

Please sign in to comment.