Properly query files

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-12-04 09:57:55 +01:00
parent c1277ea2fa
commit 46ce797197
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
6 changed files with 12 additions and 11 deletions

View File

@ -26,6 +26,9 @@
*/ */
use OC\Search\Provider\File; use OC\Search\Provider\File;
use OCA\Files\AppInfo\Application;
$app = \OC::$server->query(Application::class);
// required for translation purpose // required for translation purpose
// t('Files') // t('Files')

File diff suppressed because one or more lines are too long

View File

@ -31,11 +31,11 @@ Vue.use(VueClipboard)
Vue.prototype.t = t Vue.prototype.t = t
window.addEventListener('DOMContentLoaded', () => { window.addEventListener('DOMContentLoaded', () => {
// Init Sidebar Service // Init Sidebar Service
if (!window.OCA.Files) { if (!window.OCA.Files) {
window.OCA.Files = {} window.OCA.Files = {}
} }
Object.assign(window.OCA.Files, { Sidebar: new Sidebar() }) Object.assign(window.OCA.Files, { Sidebar: new Sidebar() })
Object.assign(window.OCA.Files.Sidebar, { Tab }) Object.assign(window.OCA.Files.Sidebar, { Tab })

View File

@ -1096,5 +1096,5 @@ var kt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new Typ
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
window.OCA&&window.OCA.Sharing&&Object.assign(window.OCA.Sharing,{ShareSearch:new wt}),window.OCA&&window.OCA.Sharing&&Object.assign(window.OCA.Sharing,{ExternalLinkActions:new Mt}),Object.assign(window.OCA.Sharing,{ShareTabSections:new kt}),window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab("sharing",gt))}))}]); window.OCA.Sharing||(window.OCA.Sharing={}),Object.assign(window.OCA.Sharing,{ShareSearch:new wt}),Object.assign(window.OCA.Sharing,{ExternalLinkActions:new Mt}),Object.assign(window.OCA.Sharing,{ShareTabSections:new kt}),window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab("sharing",gt))}))}]);
//# sourceMappingURL=files_sharing_tab.js.map //# sourceMappingURL=files_sharing_tab.js.map

File diff suppressed because one or more lines are too long

View File

@ -26,14 +26,12 @@ import ExternalLinkActions from './services/ExternalLinkActions'
import TabSections from './services/TabSections' import TabSections from './services/TabSections'
if (window.OCA && window.OCA.Sharing) { // Init Sharing Tab Service
Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() }) if (!window.OCA.Sharing) {
window.OCA.Sharing = {}
} }
Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() })
if (window.OCA && window.OCA.Sharing) { Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() })
Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() })
}
Object.assign(window.OCA.Sharing, { ShareTabSections: new TabSections() }) Object.assign(window.OCA.Sharing, { ShareTabSections: new TabSections() })
window.addEventListener('DOMContentLoaded', () => { window.addEventListener('DOMContentLoaded', () => {