Skip to content

Commit

Permalink
Code restructured and updated configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Blank-09 committed Jan 16, 2024
1 parent 347fbc9 commit 1dd6215
Show file tree
Hide file tree
Showing 64 changed files with 2,750 additions and 2,132 deletions.
39 changes: 2 additions & 37 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,44 +1,9 @@
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
sourceType: 'module',
ecmaVersion: 2021
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:prettier/recommended'
],
rules: {
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }]
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off'
}
}
'@electron-toolkit/eslint-config-ts/recommended',
'@electron-toolkit/eslint-config-prettier'
]
}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ singleQuote: true
semi: false
printWidth: 100
trailingComma: none
endOfLine: auto
36 changes: 0 additions & 36 deletions build/notarize.js

This file was deleted.

4 changes: 3 additions & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/styles/globals.css",
"baseColor": "slate",
"cssVariables": true
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
Expand Down
5 changes: 3 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
appId: com.password-manager.app
productName: Password Manager
directories:
output: 'release/${version}'
buildResources: build
files:
- '!**/.vscode/*'
Expand All @@ -11,7 +12,6 @@ files:
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- resources/**
afterSign: build/notarize.js
win:
executableName: password-manager
nsis:
Expand All @@ -26,14 +26,15 @@ mac:
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
maintainer: blank-09
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
Expand Down
41 changes: 4 additions & 37 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,18 @@
import { resolve } from 'path'
import { defineConfig } from 'electron-vite'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
main: {
mode: 'development',
build: {
minify: true,
sourcemap: false,
watch: { include: ['electron/main/**'] },
rollupOptions: {
input: {
index: resolve(__dirname, 'electron/main/index.ts')
}
}
}
plugins: [externalizeDepsPlugin()]
},
preload: {
mode: 'development',
build: {
minify: true,
sourcemap: false,
watch: { include: ['electron/preload/**'] },
rollupOptions: {
input: {
index: resolve(__dirname, 'electron/preload/index.ts')
}
}
}
plugins: [externalizeDepsPlugin()]
},
renderer: {
root: '.',
mode: 'development',
build: {
minify: true,
sourcemap: false,
rollupOptions: {
input: {
index: resolve(__dirname, 'index.html')
}
}
},
resolve: {
alias: {
// '@renderer': resolve('src'),
'@': resolve('src'),
'@components': resolve(__dirname, 'src/components')
'@': resolve('src/renderer/src')
}
},
plugins: [react()]
Expand Down
96 changes: 49 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "password-manager",
"version": "1.2.1",
"version": "1.2.2",
"description": "Manager your password with Password Manager",
"main": "./out/main/index.js",
"author": "blank-09",
Expand All @@ -20,59 +20,61 @@
"postinstall": "electron-builder install-app-deps"
},
"dependencies": {
"@electron-toolkit/preload": "^2.0.0",
"@electron-toolkit/utils": "^1.0.2",
"@radix-ui/react-alert-dialog": "^1.0.4",
"@electron-toolkit/preload": "^3.0.0",
"@electron-toolkit/utils": "^3.0.0",
"dotenv": "^16.3.1",
"electron-serve": "^1.2.0",
"next-themes": "^0.2.1",
"sonner": "^1.3.1",
"sqlite3": "^5.1.7"
},
"devDependencies": {
"@electron-toolkit/tsconfig": "^1.0.1",
"@electron/notarize": "^2.2.0",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-context-menu": "^2.1.4",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@radix-ui/react-context-menu": "^2.1.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-menubar": "^1.0.3",
"@radix-ui/react-select": "^1.2.2",
"@radix-ui/react-menubar": "^1.0.4",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@tanstack/react-table": "^8.9.3",
"@reduxjs/toolkit": "^2.0.1",
"@tanstack/react-table": "^8.11.6",
"@types/node": "^20.11.3",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.0",
"dotenv": "^16.3.1",
"electron-serve": "^1.1.0",
"sqlite3": "^5.1.6"
},
"devDependencies": {
"@electron-toolkit/tsconfig": "^1.0.1",
"@electron/notarize": "^1.2.3",
"@reduxjs/toolkit": "^1.9.5",
"@types/node": "^18.16.16",
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.14",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"electron": "^24.4.1",
"electron-builder": "^23.6.0",
"electron-vite": "^1.0.23",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"lucide-react": "^0.240.0",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"electron": "^28.1.3",
"electron-builder": "^24.9.1",
"electron-vite": "^2.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"lucide-react": "^0.309.0",
"postcss": "^8.4.33",
"prettier": "^3.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.7",
"react-router-dom": "^6.12.0",
"redux": "^4.2.1",
"tailwind-merge": "^1.13.0",
"tailwindcss": "^3.3.2",
"tailwindcss-animate": "^1.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.1.3",
"vite": "^4.3.9",
"zod": "^3.21.4"
"react-redux": "^9.1.0",
"react-router-dom": "^6.21.2",
"redux": "^5.0.1",
"tailwind-merge": "^2.2.0",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"zod": "^3.22.4"
}
}
Loading

0 comments on commit 1dd6215

Please sign in to comment.