Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Aug 2, 2023
1 parent db16988 commit e12de2f
Show file tree
Hide file tree
Showing 46 changed files with 2,066 additions and 1,592 deletions.
2 changes: 2 additions & 0 deletions packages/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ module.exports = {
"vue/multi-word-component-names": 0,
"vue/no-use-v-if-with-v-for": 0,
"vue/no-setup-props-destructure": 0, // vue >= 3.2.20
"vue/no-dupe-keys": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0, // MaybeRefElement
"@typescript-eslint/no-unused-vars": 0,
"no-irregular-whitespace": 0, // TermsOfUse.vue
"no-undef": 0,
"no-constant-condition": 0,
Expand Down
48 changes: 24 additions & 24 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@vueuse/schema-org-vite": "1.1.0-beta.6",
"@vueuse/shared": "9.13.0",
"@vueuse/sound": "2.0.1",
"@zip.js/zip.js": "2.7.16",
"@zip.js/zip.js": "2.7.20",
"better-write-client-storage": "^1.3.11",
"better-write-color-converter": "^1.3.11",
"better-write-contenteditable-ast": "^1.3.11",
Expand Down Expand Up @@ -77,7 +77,7 @@
"compressorjs": "1.2.1",
"destr": "2.0.0",
"docx": "7.5.0",
"drauu": "0.3.2",
"drauu": "0.3.3",
"dropbox": "10.34.0",
"file-saver": "2.0.5",
"floating-vue": "2.0.0-beta.20",
Expand All @@ -89,11 +89,11 @@
"nprogress": "0.2.0",
"ohmyfetch": "0.4.21",
"pinia": "2.1.4",
"three": "0.153.0",
"three": "0.155.0",
"vue": "3.3.4",
"vue-directive-providers": "0.1.0",
"vue-i18n": "9.2.2",
"vue-router": "4.2.2",
"vue-router": "4.2.4",
"vue-toastification": "2.0.0-rc.5",
"vue-typical": "2.1.0",
"vue3-emoji-picker": "1.1.7",
Expand All @@ -103,41 +103,41 @@
"xml-js": "1.6.11"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "6.0.1",
"@rollup/plugin-inject": "4.0.4",
"@intlify/vite-plugin-vue-i18n": "7.0.0",
"@rollup/plugin-inject": "5.0.3",
"@types/file-saver": "2.0.5",
"@types/jsdom": "16.2.14",
"@types/three": "0.152.0",
"@typescript-eslint/eslint-plugin": "5.59.5",
"@typescript-eslint/parser": "5.59.5",
"@vitejs/plugin-vue": "4.2.1",
"@vitest/coverage-c8": "0.29.8",
"@types/jsdom": "21.1.1",
"@types/three": "0.155.0",
"@typescript-eslint/eslint-plugin": "6.2.1",
"@typescript-eslint/parser": "6.2.1",
"@vitejs/plugin-vue": "4.2.3",
"@vitest/coverage-c8": "0.33.0",
"@vue/eslint-config-typescript": "11.0.3",
"@windicss/plugin-scrollbar": "1.2.3",
"eslint": "8.40.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-vue": "9.11.1",
"fast-glob": "3.2.12",
"eslint": "8.46.0",
"eslint-config-prettier": "8.9.0",
"eslint-plugin-vue": "9.16.1",
"fast-glob": "3.3.1",
"fontaine": "0.4.0",
"happy-dom": "6.0.4",
"happy-dom": "10.6.0",
"idb-keyval": "6.2.1",
"node-stdlib-browser": "1.2.0",
"pathe": "0.3.9",
"prettier": "2.8.8",
"tsup": "7.0.0",
"pathe": "1.1.1",
"prettier": "3.0.0",
"tsup": "7.1.0",
"typescript": "5.1.3",
"unplugin-auto-import": "0.16.4",
"unplugin-vue-components": "0.25.1",
"vite": "4.3.9",
"vite": "4.4.8",
"vite-plugin-checker": "0.6.1",
"vite-plugin-optimize-persist": "0.1.2",
"vite-plugin-package-config": "0.1.1",
"vite-plugin-package-version": "1.0.2",
"vite-plugin-pwa": "0.16.4",
"vite-plugin-sitemap": "0.3.0",
"vite-plugin-sitemap": "0.4.2",
"vite-plugin-windicss": "1.9.0",
"vitest": "0.29.8",
"vue-tsc": "1.8.1"
"vitest": "0.34.1",
"vue-tsc": "1.8.8"
},
"vite": {
"optimizeDeps": {
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/store/addons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const useAddonsStore = defineStore('addons', {
.html()
.error()
.item(
italic().insert('dictum')
italic().insert('dictum'),
)} at porttitor eu. Curabitur sollicitudin suscipit ${useRaw()
.v2()
.html()
Expand All @@ -96,7 +96,7 @@ export const useAddonsStore = defineStore('addons', {
.html()
.correct()
.item(
'dictum'
'dictum',
)} at porttitor eu. Curabitur luctus sollicitudin suscipit ${useRaw()
.v2()
.html()
Expand Down
6 changes: 3 additions & 3 deletions packages/app/src/store/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const useContextStore = defineStore('context', {
ABSOLUTE.entity.menu = false

this.entities = this.entities.filter(
(item: Entity) => this.entities.indexOf(item) !== index
(item: Entity) => this.entities.indexOf(item) !== index,
)
},
switchInPage({ entity, direction }: ContextActionSwitchInPage) {
Expand Down Expand Up @@ -153,7 +153,7 @@ export const useContextStore = defineStore('context', {
},
newInExistentEntity(
this: ContextState,
payload: ContextActionNewInExistentEntity
payload: ContextActionNewInExistentEntity,
) {
if (!payload.new) return

Expand Down Expand Up @@ -205,7 +205,7 @@ export const useContextStore = defineStore('context', {
ABSOLUTE.entity.menu = false

this.entities = this.entities.filter(
(item: Entity) => this.entities.indexOf(item) !== index
(item: Entity) => this.entities.indexOf(item) !== index,
)
},
newInDropFile({ old, insert }: { old: Entity; insert: Entity }) {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/store/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const useHistoryStore = defineStore('history', {
const PROJECT = useProjectStore()

const exists = this.bar.some(
({ id, type }) => item.id === id && type === item.type
({ id, type }) => item.id === id && type === item.type,
)

this.updateScroll()
Expand Down
30 changes: 15 additions & 15 deletions packages/app/src/store/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ export const useProjectStore = defineStore('project', {
switch (options.type) {
case 'creative':
this.chapters[0].entities.push(
useFactory().entity().create('heading-one', options.name)
useFactory().entity().create('heading-one', options.name),
)
this.chapters[0].entities.push(
useFactory().entity().create('paragraph', '')
useFactory().entity().create('paragraph', ''),
)
break
case 'blank':
this.chapters[0].entities.push(
useFactory().entity().create('paragraph', '')
useFactory().entity().create('paragraph', ''),
)
break
}
Expand All @@ -215,21 +215,21 @@ export const useProjectStore = defineStore('project', {
},
deletePage(context: ContextState) {
const content = this.chapters.find(
(content: ContextState) => content.id === context.id
(content: ContextState) => content.id === context.id,
)

if (!content) return

const index = this.chapters.indexOf(content)

this.creative.drafts = this.creative.drafts.filter(
(draft) => draft.id !== content.id
(draft) => draft.id !== content.id,
)
this.chapters.splice(index, 1)
},
updatePage(page: ContextState) {
const _page = this.chapters.find(
(content: ContextState) => content.id === page.id
(content: ContextState) => content.id === page.id,
)

if (!_page) return
Expand All @@ -240,7 +240,7 @@ export const useProjectStore = defineStore('project', {
},
switchPage(obj: Record<any, any>) {
const page = this.chapters.filter(
(page: ContextState) => obj.page.id === page.id
(page: ContextState) => obj.page.id === page.id,
)[0]

if (!page) return
Expand Down Expand Up @@ -274,7 +274,7 @@ export const useProjectStore = defineStore('project', {
},
updateContext(context: ContextState) {
const _context = this.chapters.filter(
(cont: ContextState) => cont.id === context.id
(cont: ContextState) => cont.id === context.id,
)
const index = this.chapters.indexOf(_context[0])

Expand All @@ -294,43 +294,43 @@ export const useProjectStore = defineStore('project', {
getAllCharacters: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterAllCharacters(val),
0
0,
)
},
getAllSentences: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterAllSentences(val),
0
0,
)
},
getAllLetters: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterLetters(val),
0
0,
)
},
getAllWords: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterWords(val),
0
0,
)
},
getAllParagraphs: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterParagraphs(val),
0
0,
)
},
getAllHeadings: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterHeadings(val),
0
0,
)
},
getAllFixeds: (state) => {
return state.chapters.reduce(
(sum, val) => sum + useProject().utils().getChapterFixed(val),
0
0,
)
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/use/characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useCharacters = () => {

const paragraphs = PROJECT.chapters.reduce(
(sum, val) => sum + project.utils().getChapterParagraphs(val),
0
0,
)

const result = total / paragraphs
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/use/defines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export const useDefines = () => {
}

const template = (
target: 'simple' | 'enthusiast'
target: 'simple' | 'enthusiast',
): ProjectStateSchema[] => {
switch (target) {
case 'simple':
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/use/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export const useEntity = () => {
const onNew = async (
entity: Entity,
index: ID<number>,
type: EntityType
type: EntityType,
) => {
CONTEXT.newInPageByOption({
entity,
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/use/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const useFile = () => {
new Blob([JSON.stringify(target, null, 2)], {
type: 'application/json;charset=utf-8',
}),
PROJECT.name + name
PROJECT.name + name,
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/use/format.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const useFormat = () => {
const simple = (
date: Date,
type: 'default' | 'resume' | 'iso' = 'default'
type: 'default' | 'resume' | 'iso' = 'default',
): string => {
if (type === 'iso') {
return date.toISOString()
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/use/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const useGraph = () => {
index: ID<number>,
page: ContextState,
entity: Entity,
scrollValue?: number
scrollValue?: number,
) => {
PROJECT.base = 'chapter'

Expand Down Expand Up @@ -77,7 +77,7 @@ export const useGraph = () => {
index: ID<number>,
page: ContextState,
entity: Entity,
scrollValue?: number
scrollValue?: number,
) => {
ABSOLUTE.spinner = true

Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/use/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const usePage = () => {
PROJECT.newPage(
t('editor.project.control.title', {
suffix: 1 + PROJECT.totalPagesCreated,
})
}),
)

await nextTick
Expand Down Expand Up @@ -77,7 +77,7 @@ export const usePage = () => {
const utils = () => {
const getPageIndex = (id: string): number => {
const page = PROJECT.chapters.filter(
(page: ContextState) => id === page.id
(page: ContextState) => id === page.id,
)[0]

if (!page) return -1
Expand Down

0 comments on commit e12de2f

Please sign in to comment.