Skip to content

Commit b1cf220

Browse files
committed
Commit
1 parent 3c7813b commit b1cf220

21 files changed

Lines changed: 302 additions & 235 deletions

server/desktop/frontend/builder.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
2-
<html lang="en">
3-
<head class="dark">
2+
<html lang="en" data-webtui-theme="catppuccin-mocha">
3+
<head>
44
<meta charset="UTF-8"/>
55
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
66
<title>Counters</title>
77
</head>
8-
<body>
8+
<body data-webtui-theme="catppuccin-mocha">
99
<div id="root"></div>
1010
<script src="/wails/ipc.js"></script>
1111
<script src="/wails/runtime.js"></script>

server/desktop/frontend/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE html>
2-
<html lang="en">
3-
<head class="dark">
2+
<html lang="en" data-webtui-theme="catppuccin-mocha">
3+
<head>
44
<meta charset="UTF-8"/>
55
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
66
<title>Counters</title>
77
</head>
8-
<body>
9-
<div id="root"></div>
10-
<script src="./src/views/main/page.tsx" type="module"></script>
8+
<body data-webtui-theme="catppuccin-mocha">
9+
<div id="root"></div>
10+
<script src="./src/views/main/page.tsx" type="module"></script>
1111
</body>
1212
</html>
1313

server/desktop/frontend/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,25 @@
1313
"@tanstack/react-table": "^8.21.3",
1414
"@uiw/codemirror-theme-dracula": "^4.24.2",
1515
"@uiw/react-codemirror": "^4.24.2",
16-
"daisyui": "^5.0.46",
16+
"@webtui/css": "^0.1.4",
1717
"install": "^0.13.0",
1818
"npm": "^11.5.1",
1919
"prismjs": "^1.30.0",
2020
"react": "^18.2.0",
2121
"react-dom": "^18.2.0",
2222
"react-hot-toast": "^2.5.2",
23-
"vite-plugin-prismjs": "^0.0.11",
2423
"wouter": "^3.7.1"
2524
},
2625
"devDependencies": {
26+
"@tailwindcss/postcss": "^4.1.11",
2727
"@types/prettier": "^2.7.3",
2828
"@types/prismjs": "^1.26.5",
2929
"@types/react": "^18.0.17",
3030
"@types/react-dom": "^18.0.6",
3131
"@vitejs/plugin-react": "^2.1.0",
32+
"vite-plugin-prismjs": "^0.0.11",
33+
"@webtui/theme-catppuccin": "^0.0.3",
34+
"@webtui/theme-vitesse": "^0.0.1",
3235
"autoprefixer": "^10.4.21",
3336
"postcss": "^8.5.6",
3437
"prettier": "^3.6.2",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d1e08191ecc9d5cd9a97cc5efdf9fb7a
1+
ebd24e1794bac3cf062ba0434cf4f862
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
plugins: {
3-
tailwindcss: {},
43
autoprefixer: {},
54
},
65
};
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@layer base, utils, components;
2+
3+
@import "@webtui/css";
4+
@import "@webtui/css/base.css";
5+
6+
/* Utils */
7+
@import "@webtui/css/utils/box.css";
8+
9+
/* Components */
10+
@import "@webtui/css/components/button.css";
11+
@import "@webtui/css/components/typography.css";
12+
@import "@webtui/css/components/input.css";
13+
14+
@import '@webtui/theme-catppuccin';
15+
/* @import '@webtui/theme-vitesse'; */
Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
1-
Copyright 2016 The Nunito Project Authors (contact@sansoxygen.com),
2-
3-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
4-
This license is copied below, and is also available with a FAQ at:
5-
http://scripts.sil.org/OFL
6-
7-
8-
-----------------------------------------------------------
9-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10-
-----------------------------------------------------------
11-
12-
PREAMBLE
13-
The goals of the Open Font License (OFL) are to stimulate worldwide
14-
development of collaborative font projects, to support the font creation
15-
efforts of academic and linguistic communities, and to provide a free and
16-
open framework in which fonts may be shared and improved in partnership
17-
with others.
18-
19-
The OFL allows the licensed fonts to be used, studied, modified and
20-
redistributed freely as long as they are not sold by themselves. The
21-
fonts, including any derivative works, can be bundled, embedded,
22-
redistributed and/or sold with any software provided that any reserved
23-
names are not used by derivative works. The fonts and derivatives,
24-
however, cannot be released under any other type of license. The
25-
requirement for fonts to remain under this license does not apply
26-
to any document created using the fonts or their derivatives.
27-
28-
DEFINITIONS
29-
"Font Software" refers to the set of files released by the Copyright
30-
Holder(s) under this license and clearly marked as such. This may
31-
include source files, build scripts and documentation.
32-
33-
"Reserved Font Name" refers to any names specified as such after the
34-
copyright statement(s).
35-
36-
"Original Version" refers to the collection of Font Software components as
37-
distributed by the Copyright Holder(s).
38-
39-
"Modified Version" refers to any derivative made by adding to, deleting,
40-
or substituting -- in part or in whole -- any of the components of the
41-
Original Version, by changing formats or by porting the Font Software to a
42-
new environment.
43-
44-
"Author" refers to any designer, engineer, programmer, technical
45-
writer or other person who contributed to the Font Software.
46-
47-
PERMISSION & CONDITIONS
48-
Permission is hereby granted, free of charge, to any person obtaining
49-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
50-
redistribute, and sell modified and unmodified copies of the Font
51-
Software, subject to the following conditions:
52-
53-
1) Neither the Font Software nor any of its individual components,
54-
in Original or Modified Versions, may be sold by itself.
55-
56-
2) Original or Modified Versions of the Font Software may be bundled,
57-
redistributed and/or sold with any software, provided that each copy
58-
contains the above copyright notice and this license. These can be
59-
included either as stand-alone text files, human-readable headers or
60-
in the appropriate machine-readable metadata fields within text or
61-
binary files as long as those fields can be easily viewed by the user.
62-
63-
3) No Modified Version of the Font Software may use the Reserved Font
64-
Name(s) unless explicit written permission is granted by the corresponding
65-
Copyright Holder. This restriction only applies to the primary font name as
66-
presented to the users.
67-
68-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69-
Software shall not be used to promote, endorse or advertise any
70-
Modified Version, except to acknowledge the contribution(s) of the
71-
Copyright Holder(s) and the Author(s) or with their explicit written
72-
permission.
73-
74-
5) The Font Software, modified or unmodified, in part or in whole,
75-
must be distributed entirely under this license, and must not be
76-
distributed under any other license. The requirement for fonts to
77-
remain under this license does not apply to any document created
78-
using the Font Software.
79-
80-
TERMINATION
81-
This license becomes null and void if any of the above conditions are
82-
not met.
83-
84-
DISCLAIMER
85-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93-
OTHER DEALINGS IN THE FONT SOFTWARE.
1+
Copyright 2011, The VT323 Project Authors (peter.hull@oikoi.com)
2+
3+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
4+
This license is copied below, and is also available with a FAQ at:
5+
https://openfontlicense.org
6+
7+
8+
-----------------------------------------------------------
9+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10+
-----------------------------------------------------------
11+
12+
PREAMBLE
13+
The goals of the Open Font License (OFL) are to stimulate worldwide
14+
development of collaborative font projects, to support the font creation
15+
efforts of academic and linguistic communities, and to provide a free and
16+
open framework in which fonts may be shared and improved in partnership
17+
with others.
18+
19+
The OFL allows the licensed fonts to be used, studied, modified and
20+
redistributed freely as long as they are not sold by themselves. The
21+
fonts, including any derivative works, can be bundled, embedded,
22+
redistributed and/or sold with any software provided that any reserved
23+
names are not used by derivative works. The fonts and derivatives,
24+
however, cannot be released under any other type of license. The
25+
requirement for fonts to remain under this license does not apply
26+
to any document created using the fonts or their derivatives.
27+
28+
DEFINITIONS
29+
"Font Software" refers to the set of files released by the Copyright
30+
Holder(s) under this license and clearly marked as such. This may
31+
include source files, build scripts and documentation.
32+
33+
"Reserved Font Name" refers to any names specified as such after the
34+
copyright statement(s).
35+
36+
"Original Version" refers to the collection of Font Software components as
37+
distributed by the Copyright Holder(s).
38+
39+
"Modified Version" refers to any derivative made by adding to, deleting,
40+
or substituting -- in part or in whole -- any of the components of the
41+
Original Version, by changing formats or by porting the Font Software to a
42+
new environment.
43+
44+
"Author" refers to any designer, engineer, programmer, technical
45+
writer or other person who contributed to the Font Software.
46+
47+
PERMISSION & CONDITIONS
48+
Permission is hereby granted, free of charge, to any person obtaining
49+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
50+
redistribute, and sell modified and unmodified copies of the Font
51+
Software, subject to the following conditions:
52+
53+
1) Neither the Font Software nor any of its individual components,
54+
in Original or Modified Versions, may be sold by itself.
55+
56+
2) Original or Modified Versions of the Font Software may be bundled,
57+
redistributed and/or sold with any software, provided that each copy
58+
contains the above copyright notice and this license. These can be
59+
included either as stand-alone text files, human-readable headers or
60+
in the appropriate machine-readable metadata fields within text or
61+
binary files as long as those fields can be easily viewed by the user.
62+
63+
3) No Modified Version of the Font Software may use the Reserved Font
64+
Name(s) unless explicit written permission is granted by the corresponding
65+
Copyright Holder. This restriction only applies to the primary font name as
66+
presented to the users.
67+
68+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69+
Software shall not be used to promote, endorse or advertise any
70+
Modified Version, except to acknowledge the contribution(s) of the
71+
Copyright Holder(s) and the Author(s) or with their explicit written
72+
permission.
73+
74+
5) The Font Software, modified or unmodified, in part or in whole,
75+
must be distributed entirely under this license, and must not be
76+
distributed under any other license. The requirement for fonts to
77+
remain under this license does not apply to any document created
78+
using the Font Software.
79+
80+
TERMINATION
81+
This license becomes null and void if any of the above conditions are
82+
not met.
83+
84+
DISCLAIMER
85+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93+
OTHER DEALINGS IN THE FONT SOFTWARE.
146 KB
Binary file not shown.
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
import toast, { Toaster } from 'react-hot-toast';
1+
// import toast, { Toaster } from 'react-hot-toast';
22

33
export default function CopyToClipboardButton({ code }: { code: string }) {
44
const copyToClipboard = () => {
55
navigator.clipboard.writeText(code)
6-
.then(() => toast.success('Copied to clipboard!'))
7-
.catch(() => toast.error('Failed to copy'));
6+
.then(() => {
7+
console.log('Copied to clipboard!');
8+
// toast.success('Copied to clipboard!');
9+
})
10+
// .catch(() => toast.error('Failed to copy'));
811
};
912

1013
return (
1114
<div>
1215
<button
1316
onClick={copyToClipboard}
1417
className="btn m-2"
15-
type="button"
16-
>
18+
type="button">
1719
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="size-6">
1820
<path strokeLinecap="round" strokeLinejoin="round" d="M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z" />
1921
</svg>
2022
Copy to Clipboard
2123
</button>
22-
<Toaster position="bottom-right" />
24+
{/* <Toaster position="bottom-right" /> */}
2325
</div>
2426
);
2527
}

server/desktop/frontend/src/components/Counter.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ export interface CounterData {
44
filename: string
55
}
66

7-
export default function Counter({
8-
counter
9-
}: {
10-
counter: CounterData,
11-
}) {
7+
export default function Counter({ counter }: { counter: CounterData }) {
128
return (
13-
<div className='card card-xs card-border bg-base-200 shadow-sm'>
14-
<figure className="p-2">
15-
<img id={counter.id} className="rounded-md" src={counter.filename} alt={counter.id} />
9+
<div className='counter'>
10+
<figure
11+
style={{ display: "flex", justifyContent: "center" }}>
12+
<img
13+
id={counter.id}
14+
style={{ borderRadius: "1ch" }}
15+
src={counter.filename}
16+
alt={counter.id} />
1617
</figure>
17-
<div className="card-body">
18-
<p className="text-xs/4 text-gray-200">{counter.pretty_name}</p>
18+
<div>
19+
<p className="counter-text">{counter.pretty_name}</p>
1920
</div>
2021
</div>
2122
)

0 commit comments

Comments
 (0)