diff options
author | korelstar <korelstar@users.noreply.github.com> | 2022-04-24 13:00:41 +0300 |
---|---|---|
committer | korelstar <korelstar@users.noreply.github.com> | 2022-04-24 13:50:25 +0300 |
commit | 2c1d5f497d993b97d95b40b88e922bbb444a19f2 (patch) | |
tree | 67062c6d0c021312906c33a9447fa7f4ec859cf7 /src | |
parent | 20aed1a32c9335221ccd6325316171c55b6ac536 (diff) |
update @nextcloud/eslint-config from 7 to 8
Diffstat (limited to 'src')
-rw-r--r-- | src/App.vue | 10 | ||||
-rw-r--r-- | src/NotesService.js | 4 | ||||
-rw-r--r-- | src/components/AppSettings.vue | 4 | ||||
-rw-r--r-- | src/components/Dashboard.vue | 5 | ||||
-rw-r--r-- | src/components/EditorEasyMDE.vue | 3 | ||||
-rw-r--r-- | src/components/NavigationCategoriesItem.vue | 7 | ||||
-rw-r--r-- | src/components/NavigationList.vue | 11 | ||||
-rw-r--r-- | src/components/NavigationNoteItem.vue | 4 | ||||
-rw-r--r-- | src/components/Note.vue | 14 | ||||
-rw-r--r-- | src/components/Sidebar.vue | 6 | ||||
-rw-r--r-- | src/dashboard.js | 2 | ||||
-rw-r--r-- | src/main.js | 6 | ||||
-rw-r--r-- | src/router.js | 8 | ||||
-rw-r--r-- | src/store.js | 6 | ||||
-rw-r--r-- | src/store/notes.js | 2 |
15 files changed, 46 insertions, 46 deletions
diff --git a/src/App.vue b/src/App.vue index 37c2a7d9..96f020ec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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', diff --git a/src/NotesService.js b/src/NotesService.js index f392ed12..26a458a9 100644 --- a/src/NotesService.js +++ b/src/NotesService.js @@ -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}` diff --git a/src/components/AppSettings.vue b/src/components/AppSettings.vue index f154a1a0..36881730 100644 --- a/src/components/AppSettings.vue +++ b/src/components/AppSettings.vue @@ -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', diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index b251b25f..9de25be1 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -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', diff --git a/src/components/EditorEasyMDE.vue b/src/components/EditorEasyMDE.vue index 63e76b2e..cf49a37d 100644 --- a/src/components/EditorEasyMDE.vue +++ b/src/components/EditorEasyMDE.vue @@ -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', diff --git a/src/components/NavigationCategoriesItem.vue b/src/components/NavigationCategoriesItem.vue index 02694837..28c0f396 100644 --- a/src/components/NavigationCategoriesItem.vue +++ b/src/components/NavigationCategoriesItem.vue @@ -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', diff --git a/src/components/NavigationList.vue b/src/components/NavigationList.vue index 5f898679..e7e5e03c 100644 --- a/src/components/NavigationList.vue +++ b/src/components/NavigationList.vue @@ -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', diff --git a/src/components/NavigationNoteItem.vue b/src/components/NavigationNoteItem.vue index 4484e057..3a56bdf2 100644 --- a/src/components/NavigationNoteItem.vue +++ b/src/components/NavigationNoteItem.vue @@ -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', diff --git a/src/components/Note.vue b/src/components/Note.vue index 63cd7b73..8eb6aa5d 100644 --- a/src/components/Note.vue +++ b/src/components/Note.vue @@ -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', diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 67dd62b3..f3f16b6f 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -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', diff --git a/src/dashboard.js b/src/dashboard.js index 4198da7e..e9ef6760 100644 --- a/src/dashboard.js +++ b/src/dashboard.js @@ -1,5 +1,5 @@ import Vue from 'vue' -import Dashboard from './components/Dashboard' +import Dashboard from './components/Dashboard.vue' Vue.mixin({ methods: { t, n } }) diff --git a/src/main.js b/src/main.js index e265c1cb..1b425046 100644 --- a/src/main.js +++ b/src/main.js @@ -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 } }) diff --git a/src/router.js b/src/router.js index eb5f3be6..1233057d 100644 --- a/src/router.js +++ b/src/router.js @@ -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) diff --git a/src/store.js b/src/store.js index 320ad662..d4bd9622 100644 --- a/src/store.js +++ b/src/store.js @@ -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) diff --git a/src/store/notes.js b/src/store/notes.js index 24289e18..ab937864 100644 --- a/src/store/notes.js +++ b/src/store/notes.js @@ -1,5 +1,5 @@ import Vue from 'vue' -import { copyNote } from '../Util' +import { copyNote } from '../Util.js' const state = { categories: [], |