update dependencies
This commit is contained in:
parent
6bada742fd
commit
5fe13382fd
|
@ -5,5 +5,7 @@ module.exports = {
|
|||
rules: {
|
||||
// no ending html tag on a new line (was warn in "vue/strongly-recommended")
|
||||
'vue/html-closing-bracket-newline': ['error', { multiline: 'always' }],
|
||||
// do not require JSDoc comments
|
||||
'jsdoc/require-jsdoc': 'off',
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@import 'app-navigation.scss';
|
||||
@import 'print.scss';
|
||||
@import 'app-navigation';
|
||||
@import 'print';
|
||||
|
||||
// workaround for https://github.com/nextcloud/nextcloud-vue/issues/1384
|
||||
body {
|
||||
|
|
|
@ -31,16 +31,19 @@ class MetaMapper extends QBMapper {
|
|||
$qb->expr()->eq('user_id', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_STR)),
|
||||
$qb->expr()->eq('file_id', $qb->createNamedParameter($fileId, IQueryBuilder::PARAM_INT))
|
||||
);
|
||||
/* @phan-suppress-next-line PhanTypeMismatchReturnSuperType */
|
||||
return $this->findEntity($qb);
|
||||
}
|
||||
|
||||
public function deleteAll() : void {
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
// TODO NC22: replace execute() with executeStatement()
|
||||
$qb->delete($this->tableName)->execute();
|
||||
}
|
||||
|
||||
public function deleteByNote(int $id) : void {
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
// TODO NC22: replace execute() with executeStatement()
|
||||
$qb->delete($this->tableName)
|
||||
->where(
|
||||
$qb->expr()->eq('file_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT))
|
||||
|
|
|
@ -181,7 +181,7 @@ class NotesService {
|
|||
private static function getFileById(Folder $folder, int $id) : File {
|
||||
$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();
|
||||
}
|
||||
return $file[0];
|
||||
|
|
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
|
@ -13,7 +13,7 @@
|
|||
"stylelint:fix": "stylelint 'src/**/*.vue' 'css/**/*.scss' --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextcloud/axios": "^1.7.0",
|
||||
"@nextcloud/axios": "^1.8.0",
|
||||
"@nextcloud/dialogs": "^3.1.2",
|
||||
"@nextcloud/event-bus": "^2.1.1",
|
||||
"@nextcloud/moment": "^1.1.1",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"markdown-it-task-checkbox": "^1.0.6",
|
||||
"vue": "^2.6.14",
|
||||
"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-router": "^3.5.3",
|
||||
"vuex": "^3.6.2"
|
||||
|
@ -41,8 +41,8 @@
|
|||
"devDependencies": {
|
||||
"@nextcloud/babel-config": "^1.0.0",
|
||||
"@nextcloud/browserslist-config": "^2.2.0",
|
||||
"@nextcloud/eslint-config": "^6.1.0",
|
||||
"@nextcloud/stylelint-config": "^1.0.0-beta.0",
|
||||
"@nextcloud/webpack-vue-config": "^4.1.4"
|
||||
"@nextcloud/eslint-config": "^6.1.1",
|
||||
"@nextcloud/stylelint-config": "^2.0.1",
|
||||
"@nextcloud/webpack-vue-config": "^4.2.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue