Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@
</template>

<script>
import {
NcAppContent,
NcAppNavigation,
NcAppNavigationNew,
NcAppNavigationItem,
NcContent,
} from '@nextcloud/vue'
import NcAppContent from '@nextcloud/vue/components/NcAppContent'
import NcAppNavigation from '@nextcloud/vue/components/NcAppNavigation'
import NcAppNavigationNew from '@nextcloud/vue/components/NcAppNavigationNew'
import NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'
import NcContent from '@nextcloud/vue/components/NcContent'
import { loadState } from '@nextcloud/initial-state'
import { showSuccess, TOAST_UNDO_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/style.css'
Expand Down
24 changes: 11 additions & 13 deletions src/components/AppSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,17 @@
</template>

<script>
import {
NcAppSettingsDialog,
NcAppSettingsSection,
NcAppSettingsShortcutsSection,
NcHotkeyList,
NcHotkey,
NcRadioGroup,
NcRadioGroupButton,
NcFormBox,
NcFormBoxButton,
NcFormGroup,
NcTextField,
} from '@nextcloud/vue'
import NcAppSettingsDialog from '@nextcloud/vue/components/NcAppSettingsDialog'
import NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'
import NcAppSettingsShortcutsSection from '@nextcloud/vue/components/NcAppSettingsShortcutsSection'
import NcHotkeyList from '@nextcloud/vue/components/NcHotkeyList'
import NcHotkey from '@nextcloud/vue/components/NcHotkey'
import NcRadioGroup from '@nextcloud/vue/components/NcRadioGroup'
import NcRadioGroupButton from '@nextcloud/vue/components/NcRadioGroupButton'
import NcFormBox from '@nextcloud/vue/components/NcFormBox'
import NcFormBoxButton from '@nextcloud/vue/components/NcFormBoxButton'
import NcFormGroup from '@nextcloud/vue/components/NcFormGroup'
import NcTextField from '@nextcloud/vue/components/NcTextField'

import { getFilePickerBuilder } from '@nextcloud/dialogs'

Expand Down
8 changes: 3 additions & 5 deletions src/components/CategoriesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
</template>

<script>
import {
NcAppNavigationItem,
NcAppNavigationCaption,
NcCounterBubble,
} from '@nextcloud/vue'
import NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'
import NcAppNavigationCaption from '@nextcloud/vue/components/NcAppNavigationCaption'
import NcCounterBubble from '@nextcloud/vue/components/NcCounterBubble'
import { Fragment } from 'vue-frag'

import FolderIcon from 'vue-material-design-icons/Folder.vue'
Expand Down
4 changes: 1 addition & 3 deletions src/components/CreateSampleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
</template>
<script>

import {
NcButton,
} from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'

import Plus from 'vue-material-design-icons/Plus.vue'

Expand Down
4 changes: 3 additions & 1 deletion src/components/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
</template>

<script>
import { NcButton, NcDashboardWidget, NcDashboardWidgetItem } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcDashboardWidget from '@nextcloud/vue/components/NcDashboardWidget'
import NcDashboardWidgetItem from '@nextcloud/vue/components/NcDashboardWidgetItem'
import { generateUrl } from '@nextcloud/router'

import Plus from 'vue-material-design-icons/Plus.vue'
Expand Down
6 changes: 2 additions & 4 deletions src/components/EditorEasyMDE.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/style.css'
import {
NcActions,
NcActionButton,
} from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import { basename, relative } from 'path'

import store from '../store.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/HelpMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import { generateFilePath } from '@nextcloud/router'

import { Fragment } from 'vue-frag'
import { NcFormGroup } from '@nextcloud/vue'
import NcFormGroup from '@nextcloud/vue/components/NcFormGroup'

export default {
components: {
Expand Down
4 changes: 1 addition & 3 deletions src/components/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
</template>
<script>

import {
NcAppContent,
} from '@nextcloud/vue'
import NcAppContent from '@nextcloud/vue/components/NcAppContent'

export default {
name: 'Loading',
Expand Down
3 changes: 2 additions & 1 deletion src/components/Modal/EditorHint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
</NcModal>
</template>
<script>
import { NcModal, NcButton } from '@nextcloud/vue'
import NcModal from '@nextcloud/vue/components/NcModal'
import NcButton from '@nextcloud/vue/components/NcButton'
import { loadState } from '@nextcloud/initial-state'

import { deleteEditorMode, setSettings } from './../../NotesService.js'
Expand Down
5 changes: 4 additions & 1 deletion src/components/NoteItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@
</template>

<script>
import { NcListItem, NcActionButton, NcActionSeparator, NcActionInput } from '@nextcloud/vue'
import NcListItem from '@nextcloud/vue/components/NcListItem'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActionSeparator from '@nextcloud/vue/components/NcActionSeparator'
import NcActionInput from '@nextcloud/vue/components/NcActionInput'
import AlertOctagonOutlineIcon from 'vue-material-design-icons/AlertOctagonOutline.vue'
import FileDocumentOutlineIcon from 'vue-material-design-icons/FileDocumentOutline.vue'
import FolderOutlineIcon from 'vue-material-design-icons/FolderOutline.vue'
Expand Down
22 changes: 12 additions & 10 deletions src/components/NotePlain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,12 @@
</template>
<script>

import {
NcActions,
NcActionButton,
NcAppContent,
NcModal,
Tooltip,
isMobile,
} from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcAppContent from '@nextcloud/vue/components/NcAppContent'
import NcModal from '@nextcloud/vue/components/NcModal'
import Tooltip from '@nextcloud/vue/directives/Tooltip'
import { useIsMobile } from '@nextcloud/vue/composables/useIsMobile'
import { showError } from '@nextcloud/dialogs'
import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'

Expand Down Expand Up @@ -139,15 +137,19 @@ export default {
tooltip: Tooltip,
},

mixins: [isMobile],

props: {
noteId: {
type: String,
required: true,
},
},

setup() {
return {
isMobile: useIsMobile(),
}
},

data() {
return {
loading: false,
Expand Down
12 changes: 7 additions & 5 deletions src/components/NoteRich.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
</template>
<script>

import {
isMobile,
} from '@nextcloud/vue'
import { useIsMobile } from '@nextcloud/vue/composables/useIsMobile'
import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'

import { queueCommand, refreshNote } from '../NotesService.js'
Expand All @@ -22,15 +20,19 @@ import store from '../store.js'
export default {
name: 'NoteRich',

mixins: [isMobile],

props: {
noteId: {
type: String,
required: true,
},
},

setup() {
return {
isMobile: useIsMobile(),
}
},

data() {
return {
loading: false,
Expand Down
12 changes: 5 additions & 7 deletions src/components/NotesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,11 @@

<script>

import {
NcAppContent,
NcAppContentList,
NcAppContentDetails,
NcButton,
NcTextField,
} from '@nextcloud/vue'
import NcAppContent from '@nextcloud/vue/components/NcAppContent'
import NcAppContentList from '@nextcloud/vue/components/NcAppContentList'
import NcAppContentDetails from '@nextcloud/vue/components/NcAppContentDetails'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcTextField from '@nextcloud/vue/components/NcTextField'
import { categoryLabel } from '../Util.js'
import NotesList from './NotesList.vue'
import NotesCaption from './NotesCaption.vue'
Expand Down
6 changes: 2 additions & 4 deletions src/components/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
</template>
<script>

import {
NcAppContent,
NcButton,
} from '@nextcloud/vue'
import NcAppContent from '@nextcloud/vue/components/NcAppContent'
import NcButton from '@nextcloud/vue/components/NcButton'

import Plus from 'vue-material-design-icons/Plus.vue'

Expand Down
10 changes: 0 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,4 @@ const path = require('path')

webpackConfig.entry.dashboard = path.join(__dirname, 'src', 'dashboard.js')

webpackConfig.optimization = {
splitChunks: {
cacheGroups: {
defaultVendors: {
name: 'commons',
}
},
},
}

module.exports = webpackConfig