Skip to content

Commit 3efa9fc

Browse files
committed
just migrate Tauri v2
1 parent 99cb913 commit 3efa9fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+6557
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
./vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
3+
}

LICENSE

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
This software is Copyright (c) 2025 by Dai Okabayashi <[email protected]>.
2+
3+
This is free software, licensed under:
4+
5+
The Artistic License 2.0 (GPL Compatible)
6+
7+
The Artistic License 2.0
8+
9+
Copyright (c) 2000-2006, The Perl Foundation.
10+
11+
Everyone is permitted to copy and distribute verbatim copies
12+
of this license document, but changing it is not allowed.
13+
14+
Preamble
15+
16+
This license establishes the terms under which a given free software
17+
Package may be copied, modified, distributed, and/or redistributed.
18+
The intent is that the Copyright Holder maintains some artistic
19+
control over the development of that Package while still keeping the
20+
Package available as open source and free software.
21+
22+
You are always permitted to make arrangements wholly outside of this
23+
license directly with the Copyright Holder of a given Package. If the
24+
terms of this license do not permit the full use that you propose to
25+
make of the Package, you should contact the Copyright Holder and seek
26+
a different licensing arrangement.
27+
28+
Definitions
29+
30+
"Copyright Holder" means the individual(s) or organization(s)
31+
named in the copyright notice for the entire Package.
32+
33+
"Contributor" means any party that has contributed code or other
34+
material to the Package, in accordance with the Copyright Holder's
35+
procedures.
36+
37+
"You" and "your" means any person who would like to copy,
38+
distribute, or modify the Package.
39+
40+
"Package" means the collection of files distributed by the
41+
Copyright Holder, and derivatives of that collection and/or of
42+
those files. A given Package may consist of either the Standard
43+
Version, or a Modified Version.
44+
45+
"Distribute" means providing a copy of the Package or making it
46+
accessible to anyone else, or in the case of a company or
47+
organization, to others outside of your company or organization.
48+
49+
"Distributor Fee" means any fee that you charge for Distributing
50+
this Package or providing support for this Package to another
51+
party. It does not mean licensing fees.
52+
53+
"Standard Version" refers to the Package if it has not been
54+
modified, or has been modified only in ways explicitly requested
55+
by the Copyright Holder.
56+
57+
"Modified Version" means the Package, if it has been changed, and
58+
such changes were not explicitly requested by the Copyright
59+
Holder.
60+
61+
"Original License" means this Artistic License as Distributed with
62+
the Standard Version of the Package, in its current version or as
63+
it may be modified by The Perl Foundation in the future.
64+
65+
"Source" form means the source code, documentation source, and
66+
configuration files for the Package.
67+
68+
"Compiled" form means the compiled bytecode, object code, binary,
69+
or any other form resulting from mechanical transformation or
70+
translation of the Source form.
71+
72+
73+
Permission for Use and Modification Without Distribution
74+
75+
(1) You are permitted to use the Standard Version and create and use
76+
Modified Versions for any purpose without restriction, provided that
77+
you do not Distribute the Modified Version.
78+
79+
80+
Permissions for Redistribution of the Standard Version
81+
82+
(2) You may Distribute verbatim copies of the Source form of the
83+
Standard Version of this Package in any medium without restriction,
84+
either gratis or for a Distributor Fee, provided that you duplicate
85+
all of the original copyright notices and associated disclaimers. At
86+
your discretion, such verbatim copies may or may not include a
87+
Compiled form of the Package.
88+
89+
(3) You may apply any bug fixes, portability changes, and other
90+
modifications made available from the Copyright Holder. The resulting
91+
Package will still be considered the Standard Version, and as such
92+
will be subject to the Original License.
93+
94+
95+
Distribution of Modified Versions of the Package as Source
96+
97+
(4) You may Distribute your Modified Version as Source (either gratis
98+
or for a Distributor Fee, and with or without a Compiled form of the
99+
Modified Version) provided that you clearly document how it differs
100+
from the Standard Version, including, but not limited to, documenting
101+
any non-standard features, executables, or modules, and provided that
102+
you do at least ONE of the following:
103+
104+
(a) make the Modified Version available to the Copyright Holder
105+
of the Standard Version, under the Original License, so that the
106+
Copyright Holder may include your modifications in the Standard
107+
Version.
108+
109+
(b) ensure that installation of your Modified Version does not
110+
prevent the user installing or running the Standard Version. In
111+
addition, the Modified Version must bear a name that is different
112+
from the name of the Standard Version.
113+
114+
(c) allow anyone who receives a copy of the Modified Version to
115+
make the Source form of the Modified Version available to others
116+
under
117+
118+
(i) the Original License or
119+
120+
(ii) a license that permits the licensee to freely copy,
121+
modify and redistribute the Modified Version using the same
122+
licensing terms that apply to the copy that the licensee
123+
received, and requires that the Source form of the Modified
124+
Version, and of any works derived from it, be made freely
125+
available in that license fees are prohibited but Distributor
126+
Fees are allowed.
127+
128+
129+
Distribution of Compiled Forms of the Standard Version
130+
or Modified Versions without the Source
131+
132+
(5) You may Distribute Compiled forms of the Standard Version without
133+
the Source, provided that you include complete instructions on how to
134+
get the Source of the Standard Version. Such instructions must be
135+
valid at the time of your distribution. If these instructions, at any
136+
time while you are carrying out such distribution, become invalid, you
137+
must provide new instructions on demand or cease further distribution.
138+
If you provide valid instructions or cease distribution within thirty
139+
days after you become aware that the instructions are invalid, then
140+
you do not forfeit any of your rights under this license.
141+
142+
(6) You may Distribute a Modified Version in Compiled form without
143+
the Source, provided that you comply with Section 4 with respect to
144+
the Source of the Modified Version.
145+
146+
147+
Aggregating or Linking the Package
148+
149+
(7) You may aggregate the Package (either the Standard Version or
150+
Modified Version) with other packages and Distribute the resulting
151+
aggregation provided that you do not charge a licensing fee for the
152+
Package. Distributor Fees are permitted, and licensing fees for other
153+
components in the aggregation are permitted. The terms of this license
154+
apply to the use and Distribution of the Standard or Modified Versions
155+
as included in the aggregation.
156+
157+
(8) You are permitted to link Modified and Standard Versions with
158+
other works, to embed the Package in a larger work of your own, or to
159+
build stand-alone binary or bytecode versions of applications that
160+
include the Package, and Distribute the result without restriction,
161+
provided the result does not expose a direct interface to the Package.
162+
163+
164+
Items That are Not Considered Part of a Modified Version
165+
166+
(9) Works (including, but not limited to, modules and scripts) that
167+
merely extend or make use of the Package, do not, by themselves, cause
168+
the Package to be a Modified Version. In addition, such works are not
169+
considered parts of the Package itself, and are not subject to the
170+
terms of this license.
171+
172+
173+
General Provisions
174+
175+
(10) Any use, modification, and distribution of the Standard or
176+
Modified Versions is governed by this Artistic License. By using,
177+
modifying or distributing the Package, you accept this license. Do not
178+
use, modify, or distribute the Package, if you do not accept this
179+
license.
180+
181+
(11) If your Modified Version has been derived from a Modified
182+
Version made by someone other than you, you are nevertheless required
183+
to ensure that your Modified Version complies with the requirements of
184+
this license.
185+
186+
(12) This license does not grant you the right to use any trademark,
187+
service mark, tradename, or logo of the Copyright Holder.
188+
189+
(13) This license includes the non-exclusive, worldwide,
190+
free-of-charge patent license to make, have made, use, offer to sell,
191+
sell, import and otherwise transfer the Package with respect to any
192+
patent claims licensable by the Copyright Holder that are necessarily
193+
infringed by the Package. If you institute patent litigation
194+
(including a cross-claim or counterclaim) against any party alleging
195+
that the Package constitutes direct or contributory patent
196+
infringement, then this Artistic License to you shall terminate on the
197+
date that such litigation is filed.
198+
199+
(14) Disclaimer of Warranty:
200+
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
201+
IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
202+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
203+
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
204+
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
205+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
206+
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
207+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# mclocks
2+
3+
Free desktop clock for multiple time zones🕒🌍🕕
4+
5+
![screenshot](https://raw.githubusercontent.com/bayashi/mclocks/main/screenshot/mclocks-screenshot-0.1.6.png)
6+
7+
## Download
8+
9+
From https://github.com/bayashi/mclocks/releases
10+
11+
For Windows, you can get `.exe` installer `mclocks.Setup.X.X.X.exe`.
12+
13+
For Mac, you can get `.dmg` file `mclocks-X.X.X.dmg` (Perhaps, you need Security setting to install .dmg from github.)
14+
15+
For Linux, not yet.
16+
17+
## config.json
18+
19+
You can set configuration file as `config.json` to configure clocks you prefer.
20+
21+
![screenshot](https://raw.githubusercontent.com/bayashi/mclocks/main/screenshot/mclocks-screenshot-0.1.8-custom.png)
22+
23+
See [the document about config.json](https://github.com/bayashi/mclocks/blob/main/docs/about-config-json.md) for more details.
24+
25+
## Window state file
26+
27+
If you want to reset your mclock where it's located in your screen, then please try to remove `window-state.json` in your App data directory. That file would be generated by mclock automatically to keep the location and the size of your mclocks.
28+
29+
## How to close mclock
30+
31+
Windows
32+
33+
* Right click, then select `close`
34+
* Alt + F4
35+
36+
Mac
37+
38+
* Select `Quit` from Dock

favicon.ico

90.6 KB
Binary file not shown.

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>mclocks</title>
7+
<link rel="stylesheet" href="src/reset.css" />
8+
<link rel="stylesheet" href="src/styles.css" />
9+
<script type="module" src="src/app.js"></script>
10+
</head>
11+
<body>
12+
<div id="mclocks"></div>
13+
</body>
14+
</html>

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "mclocks",
3+
"private": true,
4+
"version": "0.1.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"tauri": "tauri"
11+
},
12+
"dependencies": {
13+
"@tauri-apps/api": "2.4.0",
14+
"cdate": "0.0.7"
15+
},
16+
"devDependencies": {
17+
"@tauri-apps/cli": "2.4.0",
18+
"vite": "6.2.3"
19+
},
20+
"pnpm": {
21+
"onlyBuiltDependencies": ["esbuild"]
22+
}
23+
}

0 commit comments

Comments
 (0)