Skip to content

Commit

Permalink
Merge pull request #4 from nextmcloud/nmc/2078-custom-settings
Browse files Browse the repository at this point in the history
Implement JS in custom settings app
  • Loading branch information
memurats authored Sep 18, 2023
2 parents 1b33462 + 35e2a79 commit dc8e255
Show file tree
Hide file tree
Showing 28 changed files with 37,454 additions and 127 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
extends: [
'@nextcloud',
],
rules: {
"camelcase": "off",
"jsdoc/require-param-description": "off",
"n/no-unpublished-import": ["error", {
"allowModules": ["throttle-debounce"]
}],
"vue/require-default-prop": "off",
"vue/require-prop-type-constructor": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.idea
*.iml
/vendor/
/build/
node_modules/
/.php_cs.cache
/.php-cs-fixer.cache
/lib/Vendor
tests/.phpunit.result.cache
/vendor-bin/mozart/vendor
.DS_Store
/css/**/*.css
/css/**/*.css.map
/dist/
19 changes: 19 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

require_once './vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

$config = new Config();
$config
->getFinder()
->notPath('build')
->notPath('node_modules')
->notPath('l10n')
->notPath('src')
->notPath('vendor')
->notPath('lib/Vendor')
->in(__DIR__);
return $config;
55 changes: 55 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "nextmcloud/nmcsettings",
"description": "MagentaCLOUD settings for NC25 ff.",
"type": "project",
"license": "AGPL3",
"authors": [
{
"name": "Mauro Mura",
"email": "Mauro-Efisio.Mura@t-systems.com"
}
],
"config": {
"autoloader-suffix": "NMCSettings",
"classmap-authoritative": true,
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
},
"platform": {
"php": "8.0"
}
},
"require": {
"php": "^8.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"nextcloud/coding-standard": "^1.0.0",
"psalm/phar": "^5.4",
"phpunit/phpunit": "^9.5",
"ext-mbstring": "*",
"nextcloud/ocp": "dev-master"
},
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "8.0"
}
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"test:unit": "phpunit -c tests/phpunit.xml"
},
"autoload-dev": {
"psr-4": {
"OCA\\NMCTheme\\": "./lib/",
"OCP\\": "vendor/nextcloud/ocp/OCP"
}
}
}
Loading

0 comments on commit dc8e255

Please sign in to comment.