mirror of
https://github.com/chenasraf/cospend-nc.git
synced 2026-05-17 17:38:10 +00:00
@@ -78,6 +78,7 @@ class CospendWidget implements IWidget {
|
||||
*/
|
||||
public function load(): void {
|
||||
Util::addScript(Application::APP_ID, Application::APP_ID . '-dashboard');
|
||||
// Util::addStyle(Application::APP_ID, Application::APP_ID . '-dashboard');
|
||||
Util::addStyle(Application::APP_ID, 'dashboard');
|
||||
}
|
||||
}
|
||||
|
||||
5490
package-lock.json
generated
5490
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -6,10 +6,11 @@
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
},
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "NODE_ENV=development webpack --progress --config webpack.js",
|
||||
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.js",
|
||||
"build": "NODE_ENV=production webpack --progress --config webpack.js",
|
||||
"build": "vite --mode production build",
|
||||
"dev": "vite --mode development build",
|
||||
"watch": "vite --mode development build --watch",
|
||||
"serve": "NODE_ENV=development webpack serve --progress --config webpack.js",
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
"lint:fix": "eslint --ext .js,.vue src --fix",
|
||||
@@ -66,7 +67,7 @@
|
||||
"@nextcloud/browserslist-config": "^3.0.0",
|
||||
"@nextcloud/eslint-config": "^8.1.2",
|
||||
"@nextcloud/stylelint-config": "^3.0.1",
|
||||
"@nextcloud/webpack-vue-config": "^6.0.0",
|
||||
"@nextcloud/vite-config": "^1.4.2",
|
||||
"eslint-webpack-plugin": "^4.0.0",
|
||||
"stylelint": "^16.5.0",
|
||||
"stylelint-webpack-plugin": "^5.0.0"
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
import { linkTo } from '@nextcloud/router'
|
||||
import { getRequestToken } from '@nextcloud/auth'
|
||||
|
||||
__webpack_nonce__ = btoa(getRequestToken()) // eslint-disable-line
|
||||
__webpack_public_path__ = linkTo('cospend', 'js/') // eslint-disable-line
|
||||
//__webpack_nonce__ = btoa(getRequestToken()) // eslint-disable-line
|
||||
//__webpack_public_path__ = linkTo('cospend', 'js/') // eslint-disable-line
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
OCA.Dashboard.register('cospend_activity', async (el, { widget }) => {
|
||||
|
||||
@@ -31,8 +31,8 @@ Vue.use(VueClipboard)
|
||||
Vue.use(SmartTable)
|
||||
Vue.directive('tooltip', Tooltip)
|
||||
|
||||
__webpack_nonce__ = btoa(getRequestToken()) // eslint-disable-line
|
||||
__webpack_public_path__ = generateFilePath('cospend', '', 'js/') // eslint-disable-line
|
||||
//__webpack_nonce__ = btoa(getRequestToken()) // eslint-disable-line
|
||||
//__webpack_public_path__ = generateFilePath('cospend', '', 'js/') // eslint-disable-line
|
||||
|
||||
function restoreOptions() {
|
||||
network.getOptionValues().then((response) => {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$appId = OCA\Cospend\AppInfo\Application::APP_ID;
|
||||
\OCP\Util::addScript($appId, $appId . '-adminSettings');
|
||||
\OCP\Util::addStyle($appId, $appId . '-adminSettings');
|
||||
?>
|
||||
|
||||
<div id="cospend_prefs"></div>
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
|
||||
$appId = OCA\Cospend\AppInfo\Application::APP_ID;
|
||||
\OCP\Util::addScript($appId, $appId . '-main');
|
||||
\OCP\Util::addStyle($appId, $appId . '-main');
|
||||
|
||||
20
vite.config.ts
Normal file
20
vite.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
import { createAppConfig } from '@nextcloud/vite-config'
|
||||
|
||||
export default createAppConfig({
|
||||
main: 'src/main.js',
|
||||
adminSettings: 'src/adminSettings.js',
|
||||
sharePassword: 'src/sharePassword.js',
|
||||
dashboard: 'src/dashboard.js'
|
||||
}, {
|
||||
config: {
|
||||
css: {
|
||||
modules: {
|
||||
localsConvention: 'camelCase',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user