update dependencies

This commit is contained in:
korelstar 2021-12-05 20:29:49 +01:00
parent 6bada742fd
commit 5fe13382fd
6 changed files with 1127 additions and 2630 deletions

View File

@ -5,5 +5,7 @@ module.exports = {
rules: { rules: {
// no ending html tag on a new line (was warn in "vue/strongly-recommended") // no ending html tag on a new line (was warn in "vue/strongly-recommended")
'vue/html-closing-bracket-newline': ['error', { multiline: 'always' }], 'vue/html-closing-bracket-newline': ['error', { multiline: 'always' }],
// do not require JSDoc comments
'jsdoc/require-jsdoc': 'off',
}, },
} }

View File

@ -1,5 +1,5 @@
@import 'app-navigation.scss'; @import 'app-navigation';
@import 'print.scss'; @import 'print';
// workaround for https://github.com/nextcloud/nextcloud-vue/issues/1384 // workaround for https://github.com/nextcloud/nextcloud-vue/issues/1384
body { body {

View File

@ -31,16 +31,19 @@ class MetaMapper extends QBMapper {
$qb->expr()->eq('user_id', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_STR)), $qb->expr()->eq('user_id', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_STR)),
$qb->expr()->eq('file_id', $qb->createNamedParameter($fileId, IQueryBuilder::PARAM_INT)) $qb->expr()->eq('file_id', $qb->createNamedParameter($fileId, IQueryBuilder::PARAM_INT))
); );
/* @phan-suppress-next-line PhanTypeMismatchReturnSuperType */
return $this->findEntity($qb); return $this->findEntity($qb);
} }
public function deleteAll() : void { public function deleteAll() : void {
$qb = $this->db->getQueryBuilder(); $qb = $this->db->getQueryBuilder();
// TODO NC22: replace execute() with executeStatement()
$qb->delete($this->tableName)->execute(); $qb->delete($this->tableName)->execute();
} }
public function deleteByNote(int $id) : void { public function deleteByNote(int $id) : void {
$qb = $this->db->getQueryBuilder(); $qb = $this->db->getQueryBuilder();
// TODO NC22: replace execute() with executeStatement()
$qb->delete($this->tableName) $qb->delete($this->tableName)
->where( ->where(
$qb->expr()->eq('file_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)) $qb->expr()->eq('file_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT))

View File

@ -181,7 +181,7 @@ class NotesService {
private static function getFileById(Folder $folder, int $id) : File { private static function getFileById(Folder $folder, int $id) : File {
$file = $folder->getById($id); $file = $folder->getById($id);
if (count($file) <= 0 || !($file[0] instanceof File) || !self::isNote($file[0])) { if (!array_key_exists(0, $file) || !($file[0] instanceof File) || !self::isNote($file[0])) {
throw new NoteDoesNotExistException(); throw new NoteDoesNotExistException();
} }
return $file[0]; return $file[0];

3736
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@
"stylelint:fix": "stylelint 'src/**/*.vue' 'css/**/*.scss' --fix" "stylelint:fix": "stylelint 'src/**/*.vue' 'css/**/*.scss' --fix"
}, },
"dependencies": { "dependencies": {
"@nextcloud/axios": "^1.7.0", "@nextcloud/axios": "^1.8.0",
"@nextcloud/dialogs": "^3.1.2", "@nextcloud/dialogs": "^3.1.2",
"@nextcloud/event-bus": "^2.1.1", "@nextcloud/event-bus": "^2.1.1",
"@nextcloud/moment": "^1.1.1", "@nextcloud/moment": "^1.1.1",
@ -26,7 +26,7 @@
"markdown-it-task-checkbox": "^1.0.6", "markdown-it-task-checkbox": "^1.0.6",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-fragment": "1.5.1", "vue-fragment": "1.5.1",
"vue-material-design-icons": "^4.13.0", "vue-material-design-icons": "^5.0.0",
"vue-observe-visibility": "^1.0.0", "vue-observe-visibility": "^1.0.0",
"vue-router": "^3.5.3", "vue-router": "^3.5.3",
"vuex": "^3.6.2" "vuex": "^3.6.2"
@ -41,8 +41,8 @@
"devDependencies": { "devDependencies": {
"@nextcloud/babel-config": "^1.0.0", "@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.2.0", "@nextcloud/browserslist-config": "^2.2.0",
"@nextcloud/eslint-config": "^6.1.0", "@nextcloud/eslint-config": "^6.1.1",
"@nextcloud/stylelint-config": "^1.0.0-beta.0", "@nextcloud/stylelint-config": "^2.0.1",
"@nextcloud/webpack-vue-config": "^4.1.4" "@nextcloud/webpack-vue-config": "^4.2.0"
} }
} }