Skip to content

Commit 918e933

Browse files
authored
fix(fragment/vanilla): fix missing js import (#347)
1 parent 5ac93b3 commit 918e933

3 files changed

Lines changed: 56 additions & 28 deletions

File tree

.changes/vanilla-js-import.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Fix missing Javascript import in `vanilla` template
7+
Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,48 @@
1-
<div class="container">
2-
<h1>Welcome to Tauri!</h1>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="stylesheet" href="style.css" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Tauri App</title>
8+
<script type="module" src="/main.js" defer></script>
9+
<style>
10+
.logo.vanilla:hover {
11+
filter: drop-shadow(0 0 2em #ffe21c);
12+
}
13+
</style>
14+
</head>
315

4-
<div class="row">
5-
<a href="https://tauri.app" target="_blank">
6-
<img src="/assets/tauri.svg" class="logo tauri" alt="Tauri logo" />
7-
</a>
8-
<a
9-
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"
10-
target="_blank"
11-
>
12-
<img
13-
src="/assets/javascript.svg"
14-
class="logo vanilla"
15-
alt="JavaScript logo"
16-
/>
17-
</a>
18-
</div>
16+
<body>
17+
<div class="container">
18+
<h1>Welcome to Tauri!</h1>
1919

20-
<p>Click on the Tauri logo to learn more about the framework</p>
20+
<div class="row">
21+
<a href="https://tauri.app" target="_blank">
22+
<img src="/assets/tauri.svg" class="logo tauri" alt="Tauri logo" />
23+
</a>
24+
<a
25+
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"
26+
target="_blank"
27+
>
28+
<img
29+
src="/assets/javascript.svg"
30+
class="logo vanilla"
31+
alt="JavaScript logo"
32+
/>
33+
</a>
34+
</div>
2135

22-
<div class="row">
23-
<div>
24-
<input id="greet-input" placeholder="Enter a name..." />
25-
<button id="greet-button" type="button">Greet</button>
26-
</div>
27-
</div>
36+
<p>Click on the Tauri logo to learn more about the framework</p>
37+
38+
<div class="row">
39+
<div>
40+
<input id="greet-input" placeholder="Enter a name..." />
41+
<button id="greet-button" type="button">Greet</button>
42+
</div>
43+
</div>
2844

29-
<p id="greet-msg"></p>
30-
</div>
45+
<p id="greet-msg"></p>
46+
</div>
47+
</body>
48+
</html>

renovate.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
"groupName": "templates dependencies",
77
"groupSlug": "templatesDeps",
88
"commitMessagePrefix": "chore(deps)",
9-
"paths": ["packages/cli/fragments/**"],
10-
"schedule": ["before 3am on the first day of the month"]
9+
"paths": [
10+
"packages/cli/fragments/**/*package.json",
11+
"packages/cli/fragments/**/*Cargo.toml"
12+
],
13+
"schedule": ["after 3am on Wednesday"]
1114
}
1215
]
1316
}

0 commit comments

Comments
 (0)