Skip to content

Commit

Permalink
Release 2024-03-24 14:28:34 +0000 (#8)
Browse files Browse the repository at this point in the history
* Create jekyll-gh-pages.yml

* Test gh-pages

* feat: Add updater plugin (#5)

* Add updater plugin

* Add .gitattributes

* chore: Update jekyll-gh-pages.yml

* fix: Post component (#7)

* Add break-anywhere

* Fix author line

* feat: Check for updates (#9)

* Update updater info

* Add updater downloadAndInstall

* Just display update information without relaunching

* Release 2024-03-21 13:04:26 +0000 (#6) (#10)

* Create jekyll-gh-pages.yml

* Test gh-pages

* feat: Add updater plugin (#5)

* Add updater plugin

* Add .gitattributes

* chore: Update jekyll-gh-pages.yml

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Yoshihiro Sugi <sugi1982@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and sugyan committed Mar 24, 2024
1 parent 25cab1e commit 5a1c456
Show file tree
Hide file tree
Showing 17 changed files with 158 additions and 9 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@heroicons/react": "^2.1.1",
"@tauri-apps/api": ">=2.0.0-beta.0",
"@tauri-apps/plugin-dialog": "^2.0.0-beta.2",
"@tauri-apps/plugin-process": "^2.0.0-beta.2",
"@tauri-apps/plugin-shell": ">=2.0.0-beta.0",
"@tauri-apps/plugin-updater": "^2.0.0-beta.2",
"date-fns": "^3.3.1",
Expand Down
23 changes: 23 additions & 0 deletions pages/latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.0.2",
"notes": "See the assets to download this version and install.",
"pub_date": "2024-03-21T13:15:33.400Z",
"platforms": {
"darwin-aarch64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUeE5QRmVxU0poWTNaaU5SR3A1ZDhhR1pDSDVyS0IvU2hQSm5ibk9GRS9xWlY4Mis2Y1BrVUFrZkg4Q2h0NXpzdlYvWmFyU3RhRFovUnB6T0tCZ3pVT09mWVpMUHJ5NFE4PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzExMDI2NzYzCWZpbGU6VGFyaXVtLmFwcC50YXIuZ3oKQnRMT1l3Y3I4Y3NwZnFrVVVFUzdjbitCT09xWDNDbko3YlQ2WVRHYjE2RzRDeUNhSlM5ZGJsUTFyUjYyczNZQ3lZWENFQVpMSWx5Y0w4ZzlQOUlFQWc9PQo=",
"url": "https://github.com/sugyan/tarium/releases/download/tarium-v0.0.2/Tarium_aarch64.app.tar.gz"
},
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUeE5QRmVxU0poWXdueHZhN3VBeE05eEZUd0UxK2wrZ3B5VnZxU1pUMWduOW1ldWREVzJ2UWZ5eEx4b2Nqc1VSd244RHVkeDJPblFsODhhUmZZZmJaUHh5Rjh6eWR4UmdjPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzExMDI2NzgzCWZpbGU6dGFyaXVtXzAuMC4yX2FtZDY0LkFwcEltYWdlLnRhci5negpPMHdncWs1djVhdmp4WGxybDY0ZzlhV3RKcVhqY01jY2pxVmRDZDR4MklRU1ROOUZTd3cyd1FUMDlZcXcyeGFxb1NoOFNFaTFZdDBiNFowNXNwbUhDZz09Cg==",
"url": "https://github.com/sugyan/tarium/releases/download/tarium-v0.0.2/tarium_0.0.2_amd64.AppImage.tar.gz"
},
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUeE5QRmVxU0poWXovKy9XbVk5U1lBZVZsRUNPT1NJaXpQcmRSZ2xYS3AzRFkvN01sYUtXR2h3cjRNY2U4YTFxVnF4cHg0czRvNHJkRWpITmozUWhWSXZObVg3VUtvN3dBPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzExMDI2ODY5CWZpbGU6VGFyaXVtLmFwcC50YXIuZ3oKN2p6WmVLdmNKQWZ1RHVKbVdHMUZoL01QVFBSMHUxR3ZDbnZHZC9oOU90RUhmOEpINFhsK2lVdFFZb3NNMkV6MG5wU2FWTDZzNDkrWW5xakx6TWViQmc9PQo=",
"url": "https://github.com/sugyan/tarium/releases/download/tarium-v0.0.2/Tarium_x64.app.tar.gz"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUeE5QRmVxU0poWTRGSE5xdDVzV2lMT3RONU5FOTI2bjFDdHFHUjE2MG1nZFRPa3B1S1Z5WGdzWkFQNSt1ZHJSTG9IM3ZBVm5WODl6VFJrM0V3SVpKbE5CUE56NG1rK0FJPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzExMDI2OTI5CWZpbGU6VGFyaXVtXzAuMC4yX3g2NF9lbi1VUy5tc2kuemlwCjVlaUcra1VxV1BtdUM2cEowcFZEeW1tNERBUUx2RHl0SlN1N01NWE1zYUVZa2pNcjNXRGNONXhGc2dDYXptbTF5VDFyczFZUzZFTnRwZ1JOeXowQURBPT0K",
"url": "https://github.com/sugyan/tarium/releases/download/tarium-v0.0.2/Tarium_0.0.2_x64_en-US.msi.zip"
}
}
}
11 changes: 11 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri = { version = "2.0.0-beta", features = [] }
tauri-plugin-dialog = "2.0.0-beta.2"
tauri-plugin-process = "2.0.0-beta.3"
tauri-plugin-shell = "2.0.0-beta.2"
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = ["macros", "time"] }
Expand Down
3 changes: 2 additions & 1 deletion src-tauri/capabilities/dialog.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"windows"
],
"permissions": [
"dialog:allow-confirm"
"dialog:allow-confirm",
"dialog:allow-message"
]
}
15 changes: 15 additions & 0 deletions src-tauri/capabilities/process.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "process-capability",
"windows": [
"main"
],
"platforms": [
"linux",
"macOS",
"windows"
],
"permissions": [
"process:allow-restart"
]
}
2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/capabilities.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions src-tauri/gen/schemas/desktop-schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions src-tauri/gen/schemas/macOS-schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub fn run() {
tauri::Builder::default()
.setup(setup)
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_updater::Builder::new().build())
.invoke_handler(tauri::generate_handler![
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "Tarium",
"version": "0.0.2",
"version": "0.0.3",
"identifier": "com.sugyan.tarium",
"build": {
"beforeDevCommand": "npm run dev",
Expand Down Expand Up @@ -37,7 +37,7 @@
"updater": {
"active": true,
"endpoints": [
"https://sugyan.com/tarium/update.json"
"https://sugyan.com/tarium/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDYzNjEyMkE5NUVGMTM0RjEKUldUeE5QRmVxU0poWTdQbFE1cnFiRVh0RzVVNzQ3V2dwRms3SHRsVXN6TkcvWUtRRlBOWWJoTUEK"
}
Expand Down
15 changes: 15 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { message } from "@tauri-apps/plugin-dialog";
import { check } from "@tauri-apps/plugin-updater";
import { useEffect, useRef } from "react";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import "./index.css";
import Home from "./routes/home";
Expand All @@ -22,6 +25,18 @@ const router = createBrowserRouter([
]);

const App = () => {
const checking = useRef(false);
useEffect(() => {
if (checking.current) return;
checking.current = true;
(async () => {
const update = await check();
if (update) {
// TODO: downloadAndInstall
message(`${update.version} is now avaiable`);
}
})();
}, []);
return (
<div className="dark">
<div className="dark:text-gray-200 dark:bg-gray-800">
Expand Down
6 changes: 3 additions & 3 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ const Post: FC<{ post: PostView; isParent?: boolean }> = ({
{isParent && <div className="w-0.5 h-full bg-gray-600" />}
</div>
<div className="w-full pb-3">
<div className="flex justify-between">
<div className="flex items-center">
<div className="flex justify-between items-center">
<div className="break-all mr-2 line-clamp-1">
<span className="font-semibold">
{post.author.displayName || post.author.handle}
</span>
<span className="text-sm font-mono pl-2 text-gray-400">
@{post.author.handle}
</span>
</div>
<div className="flex items-center text-sm text-gray-400">
<div className="text-sm text-gray-400 whitespace-nowrap">
<DistanceToNow date={post.indexedAt} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostEmbed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const PostEmbed: FC<{ embed?: EmbedViewUnion }> = ({ embed }) => {
<div className="px-3 py-2">
<div className="text-gray-500 text-sm">{url.host}</div>
<div className="font-semibold mb-2">{embed.external.title}</div>
<div className="text-sm line-clamp-2 overflow-hidden">
<div className="text-sm line-clamp-2 overflow-hidden break-anywhere">
{embed.external.description}
</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
@tailwind components;
@tailwind utilities;

/* https://github.com/tailwindlabs/tailwindcss/discussions/12127 */
@supports (overflow-wrap: anywhere) {
.break-anywhere {
overflow-wrap: anywhere;
}
}
@supports not (overflow-wrap: anywhere) {
.break-anywhere {
word-break: break-word;
}
}

html {
overscroll-behavior: none;
}

0 comments on commit 5a1c456

Please sign in to comment.