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