Skip to content

Commit

Permalink
Merge pull request #64 from ArthurLobopro/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
ArthurLobopro authored Nov 26, 2023
2 parents 91bb1f1 + 5dcd6cf commit ae6182c
Show file tree
Hide file tree
Showing 5 changed files with 307 additions and 273 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dicionario",
"version": "2.7.2",
"version": "2.7.3",
"description": "Dicionário simples onde você pode cadastrar as palavras que você aprendeu recentemente, fácil e prático.",
"main": "./dist/main/main.js",
"scripts": {
Expand All @@ -21,20 +21,20 @@
"license": "MIT",
"devDependencies": {
"@arthur-lobo/eslint-config": "^1.0.0",
"@electron-forge/cli": "^6.4.2",
"@electron-forge/maker-deb": "^6.4.2",
"@electron-forge/maker-rpm": "^6.4.2",
"@electron-forge/maker-squirrel": "^6.4.2",
"@electron-forge/maker-zip": "^6.4.2",
"@electron-forge/publisher-github": "^6.4.2",
"@electron-forge/cli": "^7.1.0",
"@electron-forge/maker-deb": "^7.1.0",
"@electron-forge/maker-rpm": "^7.1.0",
"@electron-forge/maker-squirrel": "^7.1.0",
"@electron-forge/maker-zip": "^7.1.0",
"@electron-forge/publisher-github": "^7.1.0",
"@types/deep-equal": "^1.0.4",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"electron": "^27.0.4",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"electron": "^27.1.2",
"eslint": "^8.44.0",
"sass-compiler": "^1.3.3",
"svg-react-icon": "^1.0.4",
"typescript": "^5.2.2"
"typescript": "^5.3.2"
},
"dependencies": {
"@arthur-lobo/react-onclickout": "^1.1.1",
Expand All @@ -47,7 +47,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.48.2",
"react-router-dom": "^6.18.0",
"react-router-dom": "^6.20.0",
"update-electron-app": "^3.0.0",
"zod": "^3.22.4",
"zod-electron-store": "^1.0.4"
Expand Down
2 changes: 0 additions & 2 deletions src/store/Store/dictionaries.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */

import ZodElectronStore from "zod-electron-store"
import {
StoreDictionaries,
Expand Down
10 changes: 8 additions & 2 deletions src/store/ZodSchemas/dictionaries.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import z from "zod"
import { dictionarySchema } from "./dictionary"
import { dictionarySchema, systemLanguage } from "./dictionary"

export const dictionariesSchema = z.object({
dictionaries: z.array(dictionarySchema).default([]),
dictionaries: z.array(dictionarySchema).default([
{
name: "Dicionário Padrão",
words: [],
languages: [systemLanguage],
},
]),
defaultDictionary: z.string().default("Dicionário Padrão"),
})

Expand Down
2 changes: 1 addition & 1 deletion src/store/ZodSchemas/dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { app, ipcRenderer } from "electron"
import { z } from "zod"
import { wordSchema } from "./word"

const systemLanguage = (() => {
export const systemLanguage = (() => {
if (app) {
return app.getLocale()
}
Expand Down
Loading

0 comments on commit ae6182c

Please sign in to comment.