1 line
3.7 KiB
Plaintext
1 line
3.7 KiB
Plaintext
{"version":3,"mappings":";y/BAAeA,EAAA,sIC2BfC,EAAI,UAAU,EAAIC,EAClBD,EAAI,UAAU,EAAIE,EAGlB,IAAIC,EAAkB,KAClBC,EAAsB,KAC1B,MAAMC,EAAc,IAAI,IAAI,MAAM,QAAQ,IAAI,CAC7C,GAAI,WACJ,KAAMJ,EAAE,WAAY,UAAU,EAC9B,QAASK,EAET,MAAM,MAAMC,EAAIC,EAAUC,EAAS,CAElC,GAAIN,IAAoB,KAAM,CAC7B,KAAM,CAAE,QAASO,CAAa,EAAG,MAAMC,EAAA,WAAO,4BAAyB,EAAC,kDACxER,EAAkBA,UAAmBH,EAAI,OAAOU,CAAW,CAC3D,CAEGN,GACHA,EAAoB,SAAU,EAE/BA,EAAsB,IAAID,EAAgB,CAEzC,OAAQM,CACX,CAAG,EAEDL,EAAoB,OAAOI,CAAQ,EACnCJ,EAAoB,OAAOG,CAAE,CAC7B,EACD,OAAOC,EAAU,CAChBJ,EAAoB,OAAOI,CAAQ,CACnC,EACD,SAAU,CACTJ,EAAoB,SAAU,EAC9BA,EAAsB,IACtB,CACF,CAAC,EAED,OAAO,iBAAiB,mBAAoB,gBAAiB,CAC5D,GAAI,IAAI,OAAS,IAAI,MAAM,QAAS,CACnC,IAAI,MAAM,QAAQ,YAAYC,CAAW,EACzC,KAAM,CAAE,QAASK,CAAa,EAAG,MAAMC,EAAA,WAAO,4BAAyB,EAAC,kDACxER,EAAkBA,UAAmBH,EAAI,OAAOU,CAAW,CAC3D,CACF,CAAC","names":["lightningBoltSVG","Vue","t","n","ActivityTabView","ActivityTabInstance","activityTab","LightningBolt","el","fileInfo","context","ActivityTab","__vitePreload"],"sources":["../node_modules/@mdi/svg/svg/lightning-bolt.svg?raw","../src/sidebar.js"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" id=\\\"mdi-lightning-bolt\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M11 15H6L13 1V9H18L11 23V15Z\\\" /></svg>\"","/**\n * @copyright Copyright (c) 2021 Louis Chemineau <louis@chmn.me>\n *\n * @author Louis Chemineau <louis@chmn.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport Vue from 'vue'\nimport { translate as t, translatePlural as n } from '@nextcloud/l10n'\n\n// eslint-disable-next-line import/no-unresolved\nimport LightningBolt from '@mdi/svg/svg/lightning-bolt.svg?raw'\n\nVue.prototype.t = t\nVue.prototype.n = n\n\n// Init Activity tab component\nlet ActivityTabView = null\nlet ActivityTabInstance = null\nconst activityTab = new OCA.Files.Sidebar.Tab({\n\tid: 'activity',\n\tname: t('activity', 'Activity'),\n\ticonSvg: LightningBolt,\n\n\tasync mount(el, fileInfo, context) {\n\t\t// only load if needed\n\t\tif (ActivityTabView === null) {\n\t\t\tconst { default: ActivityTab } = await import('./views/ActivityTab.vue')\n\t\t\tActivityTabView = ActivityTabView ?? Vue.extend(ActivityTab)\n\t\t}\n\t\t// destroy previous instance if available\n\t\tif (ActivityTabInstance) {\n\t\t\tActivityTabInstance.$destroy()\n\t\t}\n\t\tActivityTabInstance = new ActivityTabView({\n\t\t\t// Better integration with vue parent component\n\t\t\tparent: context,\n\t\t})\n\t\t// No need to await this, we will show a loading indicator instead\n\t\tActivityTabInstance.update(fileInfo)\n\t\tActivityTabInstance.$mount(el)\n\t},\n\tupdate(fileInfo) {\n\t\tActivityTabInstance.update(fileInfo)\n\t},\n\tdestroy() {\n\t\tActivityTabInstance.$destroy()\n\t\tActivityTabInstance = null\n\t},\n})\n\nwindow.addEventListener('DOMContentLoaded', async function() {\n\tif (OCA.Files && OCA.Files.Sidebar) {\n\t\tOCA.Files.Sidebar.registerTab(activityTab)\n\t\tconst { default: ActivityTab } = await import('./views/ActivityTab.vue')\n\t\tActivityTabView = ActivityTabView ?? Vue.extend(ActivityTab)\n\t}\n})\n"],"file":"js/activity-sidebar.mjs"} |