Skip to content

Commit 4df9eec

Browse files
Fix prettier
Update staff.ts Update _base.ts
1 parent 98f45e2 commit 4df9eec

File tree

7 files changed

+55
-49
lines changed

7 files changed

+55
-49
lines changed

seeder/.prettierrc.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"useTabs": true,
3-
"singleQuote": false,
4-
"trailingComma": "none",
5-
"printWidth": 100,
6-
"plugins": ["prettier-plugin-tailwindcss"]
2+
"useTabs": true,
3+
"singleQuote": false,
4+
"tabWidth": 4,
5+
"trailingComma": "none",
6+
"printWidth": 100,
7+
"plugins": ["prettier-plugin-tailwindcss"]
78
}

seeder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An Electron application with Solid and TypeScript
44

55
## Recommended IDE Setup
66

7-
- [VSCode](https://code.visualstudio.com/) + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
7+
- [VSCode](https://code.visualstudio.com/) + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
88

99
## Project Setup
1010

seeder/electron-builder.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
appId: com.electron.app
22
productName: core-seeder
33
directories:
4-
buildResources: build
4+
buildResources: build
55
files:
6-
- "!**/.vscode/*"
7-
- "!src/*"
8-
- "!electron.vite.config.{js,ts,mjs,cjs}"
9-
- "!{.eslintignore,eslint.config.{js,ts,mjs,cjs},.eslintrc.cjs,.prettierignore,.prettierrc.yaml,tailwind.config.{js,ts,mjs,cjs},postcss.config.{js,ts,mjs,cjs},dev-app-update.yml,CHANGELOG.md,README.md}"
10-
- "!{.env,.env.*,.npmrc,pnpm-lock.yaml}"
11-
- "!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
12-
- "!http_cache.sqlite" # Ignore shiinobi
6+
- "!**/.vscode/*"
7+
- "!src/*"
8+
- "!electron.vite.config.{js,ts,mjs,cjs}"
9+
- "!{.eslintignore,eslint.config.{js,ts,mjs,cjs},.eslintrc.cjs,.prettierignore,.prettierrc.yaml,tailwind.config.{js,ts,mjs,cjs},postcss.config.{js,ts,mjs,cjs},dev-app-update.yml,CHANGELOG.md,README.md}"
10+
- "!{.env,.env.*,.npmrc,pnpm-lock.yaml}"
11+
- "!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
12+
- "!http_cache.sqlite" # Ignore shiinobi
1313
asarUnpack:
14-
- resources/**
14+
- resources/**
1515
win:
16-
executableName: core-seeder
16+
executableName: core-seeder
1717
nsis:
18-
artifactName: ${name}-${version}-setup.${ext}
19-
shortcutName: ${productName}
20-
uninstallDisplayName: ${productName}
21-
createDesktopShortcut: always
18+
artifactName: ${name}-${version}-setup.${ext}
19+
shortcutName: ${productName}
20+
uninstallDisplayName: ${productName}
21+
createDesktopShortcut: always
2222
mac:
23-
entitlementsInherit: build/entitlements.mac.plist
24-
extendInfo:
25-
- NSCameraUsageDescription: Application requests access to the device's camera.
26-
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
27-
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
28-
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
29-
notarize: false
23+
entitlementsInherit: build/entitlements.mac.plist
24+
extendInfo:
25+
- NSCameraUsageDescription: Application requests access to the device's camera.
26+
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
27+
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
28+
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
29+
notarize: false
3030
dmg:
31-
artifactName: ${name}-${version}.${ext}
31+
artifactName: ${name}-${version}.${ext}
3232
linux:
33-
target:
34-
- AppImage
35-
- snap
36-
- deb
37-
maintainer: electronjs.org
38-
category: Utility
33+
target:
34+
- AppImage
35+
- snap
36+
- deb
37+
maintainer: electronjs.org
38+
category: Utility
3939
appImage:
40-
artifactName: ${name}-${version}.${ext}
40+
artifactName: ${name}-${version}.${ext}
4141
npmRebuild: false
4242
publish:
43-
provider: generic
44-
url: https://example.com/auto-updates
43+
provider: generic
44+
url: https://example.com/auto-updates
4545
electronDownload:
46-
mirror: https://npmmirror.com/mirrors/electron/
46+
mirror: https://npmmirror.com/mirrors/electron/

seeder/src/main/database/_base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import BetterSqlite3 from "better-sqlite3";
22

33
export class BaseDatabase {
4-
migration_queue: any[] = [];
5-
db: BetterSqlite3.Database;
4+
protected migration_queue: any[] = [];
5+
protected db: BetterSqlite3.Database;
66

77
constructor(db: BetterSqlite3.Database) {
88
this.db = db;

seeder/src/main/database/staff.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export class StaffDatabase extends BaseDatabase {
3636
};
3737
public get_all_null_staff = () => {
3838
const stmt = this.db.prepare(`
39-
SELECT * FROM ${this.#table_name} WHERE
40-
name IS NULL OR
41-
staff_image IS NULL OR
42-
given_name IS NULL OR
43-
alternate_name IS NULL OR
44-
birthday IS NULL OR
45-
about IS NULL
39+
SELECT * FROM ${this.#table_name} WHERE
40+
name IS NULL OR
41+
staff_image IS NULL OR
42+
given_name IS NULL OR
43+
alternate_name IS NULL OR
44+
birthday IS NULL OR
45+
about IS NULL
4646
`);
4747
const rows = stmt.all();
4848
return rows;

seeder/src/renderer/components/navbar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const Navbar: Component = () => {
1010
<CoreSeederLogo class="w-auto md:h-4" />
1111
</div>
1212
<div class="h-full">
13-
<button class="btn btn-neutral h-full min-h-full rounded outline-none">Logout</button>
13+
<button class="btn btn-neutral h-full min-h-full rounded outline-none">
14+
Logout
15+
</button>
1416
</div>
1517
</div>
1618
);

seeder/src/renderer/components/sidebar/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const Sidebar: Component = () => {
2121
</A>
2222
<For each={Object.entries(COMMANDS_MAPPING)}>
2323
{([command_cat, commands_obj]) => (
24-
<details class="collapse collapse-arrow rounded-none border-none !outline-none" open>
24+
<details
25+
class="collapse collapse-arrow rounded-none border-none !outline-none"
26+
open
27+
>
2528
<summary class="collapse-title min-h-max p-0 text-sm text-info after:!right-1 after:!top-1/2 after:!size-1.5">
2629
{command_cat}
2730
</summary>

0 commit comments

Comments
 (0)