Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 2 additions & 24 deletions core/js/dist/main.js

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

2 changes: 1 addition & 1 deletion core/js/dist/main.js.map

Large diffs are not rendered by default.

19 changes: 7 additions & 12 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ function escapeHTML(s) {
}

/** @namespace OCP */
var OCP = Object.assign({}, window.OCP),
/**
* @namespace OC
*/
OC = {
var OCP = Object.assign({}, window.OCP);

/**
* @namespace OC
*/
Object.assign(window.OC, {
PERMISSION_NONE:0,
PERMISSION_CREATE:4,
PERMISSION_READ:1,
Expand Down Expand Up @@ -900,7 +901,7 @@ var OCP = Object.assign({}, window.OCP),
}

}
};
});

/**
* Current user attributes
Expand Down Expand Up @@ -2338,12 +2339,6 @@ OC.set=function(name, value) {
}
})();

/**
* Namespace for apps
* @namespace OCA
*/
window.OCA = {};

/**
* select a range in an input field
* @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area
Expand Down
23 changes: 23 additions & 0 deletions core/src/OC/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @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/>.
*/

/** @namespace OC */
export default {};
26 changes: 26 additions & 0 deletions core/src/OCA/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @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/>.
*/

/**
* Namespace for apps
* @namespace OCA
*/
export default {};
4 changes: 1 addition & 3 deletions core/src/OCP/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import loader from './loader'

/** @namespace OCP */
const OCP = {
export default {
Loader: loader,
};

window['OCP'] = Object.assign({}, window.OCP, OCP)
8 changes: 8 additions & 0 deletions core/src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ import 'snap.js/dist/snap'
import 'strengthify'
import 'strengthify/strengthify.css'

import OC from './OC/index'
import OCP from './OCP/index'
import OCA from './OCA/index'

window['_'] = _
window['$'] = $
window['autosize'] = autosize
Expand All @@ -64,3 +68,7 @@ window['jQuery'] = $
window['marked'] = marked
window['md5'] = md5
window['moment'] = moment

window['OC'] = OC
window['OCP'] = OCP
window['OCA'] = OCA