mirror of
https://github.com/chenasraf/nextcloud-autocurrency.git
synced 2026-05-17 17:28:06 +00:00
refactor: update npm dependencies + move dist files
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -8,8 +8,9 @@
|
||||
/tests/.phpunit.cache
|
||||
|
||||
/node_modules/
|
||||
/js/
|
||||
/css/
|
||||
/dist
|
||||
/js
|
||||
/css
|
||||
.DS_Store
|
||||
composer.lock
|
||||
build/
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
js/
|
||||
dist/
|
||||
vendor/
|
||||
|
||||
20
Makefile
20
Makefile
@@ -123,7 +123,7 @@ source:
|
||||
--exclude="js/node_modules" \
|
||||
--exclude="node_modules" \
|
||||
--exclude="*.log" \
|
||||
--exclude="js/*.log" \
|
||||
--exclude="dist/js/*.log" \
|
||||
$(CURDIR)/ $(source_intermediate_directory)
|
||||
cd $(source_intermediate_directory) && \
|
||||
tar czf $(source_package_name).tar.gz ../$(app_name)
|
||||
@@ -145,20 +145,20 @@ appstore:
|
||||
--exclude="phpunit*xml" \
|
||||
--exclude="composer.*" \
|
||||
--exclude="node_modules" \
|
||||
--exclude="js/node_modules" \
|
||||
--exclude="js/tests" \
|
||||
--exclude="js/test" \
|
||||
--exclude="js/*.log" \
|
||||
--exclude="js/package.json" \
|
||||
--exclude="js/bower.json" \
|
||||
--exclude="js/karma.*" \
|
||||
--exclude="js/protractor.*" \
|
||||
--exclude="dist/js/node_modules" \
|
||||
--exclude="dist/js/tests" \
|
||||
--exclude="dist/js/test" \
|
||||
--exclude="dist/js/*.log" \
|
||||
--exclude="dist/js/package.json" \
|
||||
--exclude="dist/js/bower.json" \
|
||||
--exclude="dist/js/karma.*" \
|
||||
--exclude="dist/js/protractor.*" \
|
||||
--exclude="package.json" \
|
||||
--exclude="bower.json" \
|
||||
--exclude="karma.*" \
|
||||
--exclude="protractor\.*" \
|
||||
--exclude=".*" \
|
||||
--exclude="js/.*" \
|
||||
--exclude="dist/js/.*" \
|
||||
--exclude="src" \
|
||||
$(CURDIR)/ $(app_intermediate_directory)
|
||||
cd $(app_intermediate_directory) && \
|
||||
|
||||
@@ -11,6 +11,9 @@ use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public const APP_ID = 'autocurrency';
|
||||
public const DIST_DIR = '../dist';
|
||||
public const JS_DIR = self::DIST_DIR . '/js';
|
||||
public const CSS_DIR = self::DIST_DIR . '/css';
|
||||
|
||||
/** @psalm-suppress PossiblyUnusedMethod */
|
||||
public function __construct() {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace OCA\AutoCurrency\Settings;
|
||||
|
||||
use OCA\AutoCurrency\AppInfo;
|
||||
use OCA\AutoCurrency\AppInfo\Application;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IAppConfig;
|
||||
use OCP\IL10N;
|
||||
@@ -22,13 +22,13 @@ class CurrencyAdmin implements ISettings {
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function getForm(): TemplateResponse {
|
||||
Util::addScript(AppInfo\Application::APP_ID, 'autocurrency-main');
|
||||
Util::addStyle(AppInfo\Application::APP_ID, 'autocurrency-style');
|
||||
return new TemplateResponse(AppInfo\Application::APP_ID, 'settings', [], '');
|
||||
Util::addScript(Application::APP_ID, Application::JS_DIR . '/autocurrency-main');
|
||||
Util::addStyle(Application::APP_ID, Application::CSS_DIR . '/autocurrency-style');
|
||||
return new TemplateResponse(Application::APP_ID, 'settings', [], '');
|
||||
}
|
||||
|
||||
public function getSection(): string {
|
||||
return AppInfo\Application::APP_ID;
|
||||
return Application::APP_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
24
package.json
24
package.json
@@ -19,29 +19,29 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@nextcloud/axios": "^2.5.1",
|
||||
"@nextcloud/l10n": "^3.2.0",
|
||||
"@nextcloud/l10n": "^3.3.0",
|
||||
"@nextcloud/router": "^3.0.1",
|
||||
"@nextcloud/vite-config": "^2.3.5",
|
||||
"@nextcloud/vue": "9.0.0-alpha.5",
|
||||
"@nextcloud/vue": "9.0.0-rc.2",
|
||||
"date-fns": "^4.1.0",
|
||||
"linkifyjs": "^4.3.1",
|
||||
"vue": "^3.5.15"
|
||||
"vue": "^3.5.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.27.0",
|
||||
"@eslint/js": "^9.28.0",
|
||||
"@nextcloud/browserslist-config": "^3.0.1",
|
||||
"@nextcloud/eslint-config": "^8.4.2",
|
||||
"@nextcloud/stylelint-config": "^2.4.0",
|
||||
"@nextcloud/stylelint-config": "^3.1.0",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"eslint": "^9.27.0",
|
||||
"eslint": "^9.28.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^15.5.2",
|
||||
"lint-staged": "^16.1.0",
|
||||
"prettier-plugin-vue": "^1.1.6",
|
||||
"sass": "^1.89.0",
|
||||
"sass-embedded": "^1.89.0",
|
||||
"typescript": "5.6.3",
|
||||
"typescript-eslint": "^8.33.0",
|
||||
"vite": "^5.4.19",
|
||||
"sass": "^1.89.1",
|
||||
"sass-embedded": "^1.89.1",
|
||||
"typescript": "5.8.3",
|
||||
"typescript-eslint": "^8.33.1",
|
||||
"vite": "^6.3.5",
|
||||
"vue-router": "^4.5.1",
|
||||
"vue-tsc": "^2.2.10"
|
||||
}
|
||||
|
||||
2222
pnpm-lock.yaml
generated
2222
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
12
src/App.vue
12
src/App.vue
@@ -92,12 +92,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NcAppSettingsSection from '@nextcloud/vue/dist/Components/NcAppSettingsSection.js'
|
||||
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
|
||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
|
||||
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
|
||||
import NcDateTime from '@nextcloud/vue/dist/Components/NcDateTime.js'
|
||||
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
|
||||
import NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'
|
||||
import NcSelect from '@nextcloud/vue/components/NcSelect'
|
||||
import NcButton from '@nextcloud/vue/components/NcButton'
|
||||
import NcNoteCard from '@nextcloud/vue/components/NcNoteCard'
|
||||
import NcDateTime from '@nextcloud/vue/components/NcDateTime'
|
||||
import NcTextField from '@nextcloud/vue/components/NcTextField'
|
||||
|
||||
import axios from '@nextcloud/axios'
|
||||
import { t, n } from '@nextcloud/l10n'
|
||||
|
||||
@@ -10,7 +10,7 @@ export default createAppConfig(
|
||||
config: {
|
||||
root: 'src',
|
||||
build: {
|
||||
outDir: process.cwd(),
|
||||
outDir: '../dist',
|
||||
cssCodeSplit: false,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
|
||||
Reference in New Issue
Block a user