update @nextcloud/eslint-config from 7 to 8

This commit is contained in:
korelstar 2022-04-24 12:00:41 +02:00
parent 20aed1a32c
commit 2c1d5f497d
17 changed files with 2145 additions and 2366 deletions

4415
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@
"@nextcloud/axios": "^1.9.0",
"@nextcloud/dialogs": "^3.1.2",
"@nextcloud/event-bus": "^2.1.1",
"@nextcloud/moment": "^1.2.0",
"@nextcloud/moment": "^1.2.1",
"@nextcloud/router": "^2.0.0",
"@nextcloud/vue": "^5.1.0",
"@nextcloud/vue-dashboard": "^2.0.1",
@ -41,7 +41,7 @@
"devDependencies": {
"@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.2.0",
"@nextcloud/eslint-config": "^7.0.2",
"@nextcloud/eslint-config": "^8.0.0",
"@nextcloud/stylelint-config": "^2.1.2",
"@nextcloud/webpack-vue-config": "^5.0.0"
}

View File

@ -46,11 +46,11 @@ import {
import { showSuccess, TOAST_UNDO_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast.scss'
import { config } from './config'
import { fetchNotes, noteExists, createNote, undoDeleteNote } from './NotesService'
import AppSettings from './components/AppSettings'
import NavigationList from './components/NavigationList'
import store from './store'
import { config } from './config.js'
import { fetchNotes, noteExists, createNote, undoDeleteNote } from './NotesService.js'
import AppSettings from './components/AppSettings.vue'
import NavigationList from './components/NavigationList.vue'
import store from './store.js'
export default {
name: 'App',

View File

@ -2,8 +2,8 @@ import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import store from './store'
import { copyNote } from './Util'
import store from './store.js'
import { copyNote } from './Util.js'
function url(url) {
url = `apps/notes${url}`

View File

@ -50,8 +50,8 @@ import {
AppNavigationSettings,
} from '@nextcloud/vue'
import { setSettings } from '../NotesService'
import store from '../store'
import { setSettings } from '../NotesService.js'
import store from '../store.js'
export default {
name: 'AppSettings',

View File

@ -35,8 +35,9 @@
import { DashboardWidget, DashboardWidgetItem } from '@nextcloud/vue-dashboard'
import { EmptyContent } from '@nextcloud/vue'
import { generateUrl } from '@nextcloud/router'
import { getDashboardData } from '../NotesService'
import { categoryLabel } from '../Util'
import { getDashboardData } from '../NotesService.js'
import { categoryLabel } from '../Util.js'
export default {
name: 'Dashboard',

View File

@ -32,7 +32,6 @@
import EasyMDE from 'easymde'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import store from '../store'
import { showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast.scss'
import {
@ -41,6 +40,8 @@ import {
} from '@nextcloud/vue'
import { basename, relative } from 'path'
import store from '../store.js'
export default {
name: 'EditorEasyMDE',

View File

@ -37,10 +37,9 @@ import {
AppNavigationCounter,
} from '@nextcloud/vue'
import { getCategories } from '../NotesService'
import { categoryLabel } from '../Util'
import store from '../store'
import { getCategories } from '../NotesService.js'
import { categoryLabel } from '../Util.js'
import store from '../store.js'
export default {
name: 'NavigationCategoriesItem',

View File

@ -42,14 +42,13 @@ import {
AppNavigationItem,
} from '@nextcloud/vue'
import { Fragment } from 'vue-fragment'
import { categoryLabel } from '../Util'
import NavigationCategoriesItem from './NavigationCategoriesItem'
import NavigationNoteItem from './NavigationNoteItem'
import store from '../store'
import { ObserveVisibility } from 'vue-observe-visibility'
import { categoryLabel } from '../Util.js'
import NavigationCategoriesItem from './NavigationCategoriesItem.vue'
import NavigationNoteItem from './NavigationNoteItem.vue'
import store from '../store.js'
export default {
name: 'NavigationList',

View File

@ -34,8 +34,8 @@ import {
} from '@nextcloud/vue'
import { showError } from '@nextcloud/dialogs'
import { setFavorite, setTitle, fetchNote, deleteNote } from '../NotesService'
import { categoryLabel, routeIsNewNote } from '../Util'
import { setFavorite, setTitle, fetchNote, deleteNote } from '../NotesService.js'
import { categoryLabel, routeIsNewNote } from '../Util.js'
export default {
name: 'NavigationNoteItem',

View File

@ -100,13 +100,13 @@ import { emit } from '@nextcloud/event-bus'
import SyncAlertIcon from 'vue-material-design-icons/SyncAlert'
import PencilOffIcon from 'vue-material-design-icons/PencilOff'
import { config } from '../config'
import { fetchNote, refreshNote, saveNoteManually, queueCommand, conflictSolutionLocal, conflictSolutionRemote } from '../NotesService'
import { routeIsNewNote } from '../Util'
import TheEditor from './EditorEasyMDE'
import ThePreview from './EditorMarkdownIt'
import ConflictSolution from './ConflictSolution'
import store from '../store'
import { config } from '../config.js'
import { fetchNote, refreshNote, saveNoteManually, queueCommand, conflictSolutionLocal, conflictSolutionRemote } from '../NotesService.js'
import { routeIsNewNote } from '../Util.js'
import TheEditor from './EditorEasyMDE.vue'
import ThePreview from './EditorMarkdownIt.vue'
import ConflictSolution from './ConflictSolution.vue'
import store from '../store.js'
export default {
name: 'Note',

View File

@ -61,9 +61,9 @@ import {
} from '@nextcloud/vue'
import moment from '@nextcloud/moment'
import { getCategories, setFavorite, setCategory, saveNoteManually } from '../NotesService'
import { categoryLabel } from '../Util'
import store from '../store'
import { getCategories, setFavorite, setCategory, saveNoteManually } from '../NotesService.js'
import { categoryLabel } from '../Util.js'
import store from '../store.js'
export default {
name: 'Sidebar',

View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import Dashboard from './components/Dashboard'
import Dashboard from './components/Dashboard.vue'
Vue.mixin({ methods: { t, n } })

View File

@ -1,7 +1,7 @@
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import App from './App.vue'
import router from './router.js'
import store from './store.js'
Vue.mixin({ methods: { t, n } })

View File

@ -2,10 +2,10 @@ import Vue from 'vue'
import Router from 'vue-router'
import { generateUrl } from '@nextcloud/router'
import Loading from './components/Loading'
import Welcome from './components/Welcome'
import Note from './components/Note'
import Sidebar from './components/Sidebar'
import Loading from './components/Loading.vue'
import Welcome from './components/Welcome.vue'
import Note from './components/Note.vue'
import Sidebar from './components/Sidebar.vue'
Vue.use(Router)

View File

@ -1,9 +1,9 @@
import Vue from 'vue'
import Vuex, { Store } from 'vuex'
import app from './store/app'
import notes from './store/notes'
import sync from './store/sync'
import app from './store/app.js'
import notes from './store/notes.js'
import sync from './store/sync.js'
Vue.use(Vuex)

View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import { copyNote } from '../Util'
import { copyNote } from '../Util.js'
const state = {
categories: [],