Skip to content

Commit 816038d

Browse files
committed
Update [id].tsx
1 parent 3c58d6b commit 816038d

File tree

19 files changed

+391
-405
lines changed

19 files changed

+391
-405
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
target
66
venv
77

8+
*.css
89
*.py
910
Cargo.lock
1011
memo.md

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
},
1010
"dependencies": {
1111
"@tauri-apps/api": "^1.0.2",
12+
"bulma": "^0.9.4",
1213
"next": "^12.2.5",
1314
"react": "^18.2.0",
1415
"react-dom": "^18.2.0",
16+
"react-icons": "^4.7.1",
1517
"web-vitals": "^3.0.4"
1618
},
1719
"devDependencies": {
1820
"@tauri-apps/cli": "^1.0.5",
1921
"@types/node": "^18.7.11",
2022
"@types/react": "^18.0.17",
2123
"@types/react-dom": "^18.0.6",
22-
"autoprefixer": "^10.4.8",
23-
"postcss": "^8.4.16",
24-
"tailwindcss": "^3.1.8",
2524
"typescript": "^4.7.4"
2625
}
2726
}

postcss.config.js

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

src-tauri/src/domain/models.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ pub struct ArticleOwner {
5252

5353
#[derive(Clone, Debug, Serialize, Deserialize)]
5454
pub struct ArticleTag {
55+
id: String,
5556
name: String,
5657
}
5758

5859
#[derive(Clone, Debug, Serialize, Deserialize)]
5960
pub struct ArticleComment {
61+
id: String,
6062
// created_at: DateTime<FixedOffset>,
6163
// updated_at: DateTime<FixedOffset>,
6264
created_at: String,
@@ -67,6 +69,7 @@ pub struct ArticleComment {
6769

6870
#[derive(Clone, Debug, Serialize, Deserialize)]
6971
pub struct ArticleImageUrl {
72+
id: String,
7073
image_url: String,
7174
}
7275

src-tauri/src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ use article::*;
4343
// let id = article.id;
4444
// format!("Hello, {}! You've been greeted from Rust!", name)
4545
// }
46-
#[tauri::command]
47-
fn greet(name: &str) -> String {
48-
format!("Hello, {}! You've been greeted from Rust!", name)
49-
}
5046

5147
// async fn manage_articles(app: &mut App) -> Result<()> {
5248
// let articles = article::fetch_articles().await?;
@@ -65,7 +61,6 @@ pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
6561
let articles = handle.await.expect("failed to handle articles");
6662
tauri::Builder::default()
6763
.invoke_handler(tauri::generate_handler![
68-
greet,
6964
get_articles,
7065
insert_article,
7166
update_article,

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
3636
"icons/icon.ico"
3737
],
38-
"identifier": "com.tauri.dev",
38+
"identifier": "random-launcher",
3939
"longDescription": "",
4040
"macOS": {
4141
"entitlements": null,

src/App.css

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

src/assets/next.svg

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

src/assets/react.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/tauri.svg

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

0 commit comments

Comments
 (0)