Skip to content

Commit 0c08455

Browse files
authored
Merge pull request #8 from utmp/theme
Theme controller
2 parents 274fa2e + 08687ef commit 0c08455

12 files changed

Lines changed: 73 additions & 70 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- Tailwindcss
2929
- Vite
3030
- daisyUI (component library)
31+
- Database Sqlite3
3132
## How to Contribute
3233
We need designer, tester and contributers. **OpenConvert** is prototype. If you want to contribute read [this](./CONTRIBUTING.md)
3334
### Install dependencies

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openconvert",
3-
"version": "1.2.0",
3+
"version": "1.3.2",
44
"description": "All in one file converter",
55
"main": "./out/main/index.js",
66
"author": "utmp",

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ onlyBuiltDependencies:
22
- electron
33
- esbuild
44
- sharp
5+
- sqlite3

src/main/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ app.on('window-all-closed', () => {
137137
})
138138
// handle document conversion
139139
ipcMain.handle("document:convert", async (event, {filename,inputPath,outputPath, options}) => {
140-
console.log('parameters', inputPath,outputPath,filename);
141140
try {
142141
const isInstalled = await checkPluginInstalled();
143142
if (!isInstalled) {

src/main/initPlugin.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ export async function checkPluginInstalled() {
9999
if (!exists) {
100100
return false;
101101
}
102-
await new Promise((resolve, reject) => {
103-
execFile(pluginPath, ['--version'], (error, stdout, stderr) => {
104-
if (error) {
105-
reject(error);
106-
} else {
107-
resolve(stdout);
108-
}
109-
});
110-
});
111-
112102
return true;
113103
} catch (error) {
114104
console.error('Plugin check failed:', error);

src/renderer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<title>OpenConvert</title>
1111
</head>
1212
<body
13-
class="bg-background border border-solid border-transparent h-full m-0 overflow-hidden"
13+
class="bg-base-200 border border-solid border-transparent h-full m-0 overflow-hidden"
1414
>
1515

1616
<div id="app"></div>

src/renderer/router/router.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ const routes = [
1515
path: '/history',
1616
name: 'history',
1717
component: () => import('../src/components/History.vue')
18-
},
19-
{
20-
path: '/settings',
21-
name: 'settings',
22-
component: () => import('../src/components/Settings.vue')
2318
}
2419
]
2520
const router = createRouter({

src/renderer/src/assets/main.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
@import "tailwindcss";
2-
@plugin "daisyui";
2+
@plugin "daisyui"{
3+
themes: light --default, dark --prefersdark;
34

5+
}
46
@theme{
57
--color-midnight:#191e24;
68
--color-background : #222831;
7-
}
9+
}

src/renderer/src/components/Plugins.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ async function uninstallPlugin(pluginId) {
5050
</script>
5151
<template>
5252
<div class="p-6">
53-
<h2 class="text-2xl font-bold text-gray-200 mb-6">Plugins</h2>
53+
<h2 class="text-2xl font-bold mb-6">Plugins</h2>
5454

5555
<div class="w-full">
5656
<!-- Plugin list -->
5757
<div v-for="plugin in plugins"
5858
:key="plugin.id"
59-
class="p-4 flex relative m-4 items-center gap-4 border-5 border-midnight rounded-lg hover:border-indigo-500 group">
59+
class="p-4 flex relative m-4 items-center gap-4 border-5 bg-custom-bg border-slate-900 rounded-lg hover:border-indigo-500 group">
6060

61-
<!-- Plugin Icon (maybe in future releases)-->
6261
<div class="flex-shrink-0">
6362
<div class="bg-gray-600 h-32 w-32 rounded flex items-center justify-center">
6463
<img src="https://mupdf.readthedocs.io/en/latest/_static/mupdf-sidebar-logo-light.png">
@@ -68,22 +67,22 @@ async function uninstallPlugin(pluginId) {
6867

6968
<!-- Main Plugin Info -->
7069
<div class="w-1/2 flex flex-col justify-between">
71-
<div class="text-sm text-gray-300 space-y-2">
70+
<div class="text-sm space-y-2">
7271
<!-- Name and Publisher -->
7372
<h3 class="text-lg font-semibold">{{ plugin.name }}</h3>
74-
<p class="text-gray-400">by {{ plugin.publisher }}</p>
73+
<p class="">by {{ plugin.publisher }}</p>
7574
<!-- Summary -->
76-
<p class="text-gray-400 text-sm ">{{ plugin.summary }}</p>
75+
<p class=" text-sm ">{{ plugin.summary }}</p>
7776
</div>
7877
</div>
7978

8079
<!-- Plugin Details -->
81-
<div class="w-1/3 flex flex-col text-sm text-gray-400 space-y-2">
80+
<div class="w-1/3 flex flex-col text-sm space-y-2">
8281
<div class="flex items-center gap-2">
8382
<img src="../assets/github.svg" class="w-4 h-4" alt="GitHub">
8483
<a :href="plugin.github"
8584
target="_blank"
86-
class="hover:text-gray-200">GitHub</a>
85+
class="hover:">GitHub</a>
8786
</div>
8887
<div class="flex items-center gap-2">
8988
<img src="../assets/filetype.svg" class="w-5 h-5" alt="Version">

src/renderer/src/components/Settings.vue

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)