package-installer-cli 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bundle-standalone/cli-with-packages.js +2940 -28
- data/bundle-standalone/features/ui/shadcn/nextjs/package.json +5 -0
- data/bundle-standalone/features/ui/shadcn/reactjs/package.json +5 -0
- data/bundle-standalone/template.json +18 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/README.md +7 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/components.json +21 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/index.html +14 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/jsconfig.json +10 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/package.json +23 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/public/tauri.svg +6 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/public/vite.svg +1 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/App.css +116 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/App.jsx +51 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/assets/react.svg +1 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/components/ui/button.jsx +55 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/components/ui/card.jsx +101 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/components/ui/input.jsx +24 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/components/ui/textarea.jsx +20 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/lib/utils.js +6 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src/main.jsx +9 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/Cargo.toml +25 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/build.rs +3 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/capabilities/default.json +10 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/128x128.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/128x128@2x.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/32x32.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square107x107Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square142x142Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square150x150Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square284x284Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square30x30Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square310x310Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square44x44Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square71x71Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/Square89x89Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/StoreLogo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/icon.icns +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/icon.ico +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/icons/icon.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/src/lib.rs +14 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/src/main.rs +6 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/src-tauri/tauri.conf.json +35 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/tailwind.config.js +12 -0
- data/bundle-standalone/templates/tauri/javascript/react-frontend/vite.config.js +31 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/README.md +7 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/angular.json +78 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/package.json +32 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/app/app.component.css +112 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/app/app.component.html +21 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/app/app.component.ts +22 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/app/app.config.ts +16 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/app/app.routes.ts +3 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/assets/angular.svg +16 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/assets/tauri.svg +6 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/index.html +12 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/main.ts +7 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src/styles.css +1 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/Cargo.toml +25 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/build.rs +3 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/capabilities/default.json +10 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/128x128.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/128x128@2x.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/32x32.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square107x107Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square142x142Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square150x150Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square284x284Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square30x30Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square310x310Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square44x44Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square71x71Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/Square89x89Logo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/StoreLogo.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/icon.icns +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/icon.ico +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/icons/icon.png +0 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/src/lib.rs +14 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/src/main.rs +6 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/src-tauri/tauri.conf.json +35 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/tsconfig.app.json +11 -0
- data/bundle-standalone/templates/tauri/javascript/tauri-app/tsconfig.json +26 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/README.md +7 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src/assets/javascript.svg +1 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src/assets/tauri.svg +6 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src/index.html +39 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src/main.js +18 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src/styles.css +112 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/Cargo.toml +25 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/build.rs +3 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/capabilities/default.json +10 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/128x128.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/128x128@2x.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/32x32.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square107x107Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square142x142Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square150x150Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square284x284Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square30x30Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square310x310Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square44x44Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square71x71Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square89x89Logo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/StoreLogo.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/icon.icns +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/icon.ico +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/icon.png +0 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/src/lib.rs +14 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/src/main.rs +6 -0
- data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/tauri.conf.json +33 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/README.md +7 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/angular.json +78 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/jsconfig.app.json +11 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/jsconfig.json +26 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/package.json +32 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/app/app.component.css +112 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/app/app.component.html +21 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/app/app.component.ts +22 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/app/app.config.ts +16 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/app/app.routes.ts +3 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/assets/angular.svg +16 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/assets/tauri.svg +6 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/index.html +12 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/main.ts +7 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src/styles.css +1 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/Cargo.toml +25 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/build.rs +3 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/capabilities/default.json +10 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/128x128.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/128x128@2x.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/32x32.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square107x107Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square142x142Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square150x150Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square284x284Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square30x30Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square310x310Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square44x44Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square71x71Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/Square89x89Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/StoreLogo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/icon.icns +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/icon.ico +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/icons/icon.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/src/lib.rs +14 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/src/main.rs +6 -0
- data/bundle-standalone/templates/tauri/typescript/angular-frontend/src-tauri/tauri.conf.json +35 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/README.md +7 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/components.json +21 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/index.html +14 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/package.json +26 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/public/tauri.svg +6 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/public/vite.svg +1 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/App.css +116 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/App.tsx +51 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/assets/react.svg +1 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/components/ui/button.tsx +59 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/components/ui/card.tsx +92 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/components/ui/input.tsx +21 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/components/ui/textarea.tsx +18 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/lib/utils.ts +6 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/main.tsx +9 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src/vite-env.d.ts +1 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/Cargo.toml +25 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/build.rs +3 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/capabilities/default.json +10 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/128x128.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/128x128@2x.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/32x32.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square107x107Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square142x142Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square150x150Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square284x284Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square30x30Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square310x310Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square44x44Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square71x71Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/Square89x89Logo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/StoreLogo.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/icon.icns +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/icon.ico +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/icons/icon.png +0 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/src/lib.rs +14 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/src/main.rs +6 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/src-tauri/tauri.conf.json +35 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/tailwind.config.js +11 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/tsconfig.json +25 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/tsconfig.node.json +10 -0
- data/bundle-standalone/templates/tauri/typescript/react-fronend/vite.config.ts +32 -0
- metadata +195 -8
- /data/bundle-standalone/templates/electron/{template/javascript → javascript/template}/index.html +0 -0
- /data/bundle-standalone/templates/electron/{template/javascript → javascript/template}/main.js +0 -0
- /data/bundle-standalone/templates/electron/{template/javascript → javascript/template}/package.json +0 -0
- /data/bundle-standalone/templates/electron/{template/typescript → typescript/template}/index.html +0 -0
- /data/bundle-standalone/templates/electron/{template/typescript → typescript/template}/main.ts +0 -0
- /data/bundle-standalone/templates/electron/{template/typescript → typescript/template}/package.json +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="stylesheet" href="styles.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
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<main class="container">
|
|
13
|
+
<h1>Welcome to Tauri</h1>
|
|
14
|
+
|
|
15
|
+
<div class="row">
|
|
16
|
+
<a href="https://tauri.app" target="_blank">
|
|
17
|
+
<img src="/assets/tauri.svg" class="logo tauri" alt="Tauri logo" />
|
|
18
|
+
</a>
|
|
19
|
+
<a
|
|
20
|
+
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"
|
|
21
|
+
target="_blank"
|
|
22
|
+
>
|
|
23
|
+
<img
|
|
24
|
+
src="/assets/javascript.svg"
|
|
25
|
+
class="logo vanilla"
|
|
26
|
+
alt="JavaScript logo"
|
|
27
|
+
/>
|
|
28
|
+
</a>
|
|
29
|
+
</div>
|
|
30
|
+
<p>Click on the Tauri logo to learn more about the framework</p>
|
|
31
|
+
|
|
32
|
+
<form class="row" id="greet-form">
|
|
33
|
+
<input id="greet-input" placeholder="Enter a name..." />
|
|
34
|
+
<button type="submit">Greet</button>
|
|
35
|
+
</form>
|
|
36
|
+
<p id="greet-msg"></p>
|
|
37
|
+
</main>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const { invoke } = window.__TAURI__.core;
|
|
2
|
+
|
|
3
|
+
let greetInputEl;
|
|
4
|
+
let greetMsgEl;
|
|
5
|
+
|
|
6
|
+
async function greet() {
|
|
7
|
+
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
|
8
|
+
greetMsgEl.textContent = await invoke("greet", { name: greetInputEl.value });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
window.addEventListener("DOMContentLoaded", () => {
|
|
12
|
+
greetInputEl = document.querySelector("#greet-input");
|
|
13
|
+
greetMsgEl = document.querySelector("#greet-msg");
|
|
14
|
+
document.querySelector("#greet-form").addEventListener("submit", (e) => {
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
greet();
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.logo.vanilla:hover {
|
|
2
|
+
filter: drop-shadow(0 0 2em #ffe21c);
|
|
3
|
+
}
|
|
4
|
+
:root {
|
|
5
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
|
|
10
|
+
color: #0f0f0f;
|
|
11
|
+
background-color: #f6f6f6;
|
|
12
|
+
|
|
13
|
+
font-synthesis: none;
|
|
14
|
+
text-rendering: optimizeLegibility;
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
-moz-osx-font-smoothing: grayscale;
|
|
17
|
+
-webkit-text-size-adjust: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.container {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding-top: 10vh;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.logo {
|
|
30
|
+
height: 6em;
|
|
31
|
+
padding: 1.5em;
|
|
32
|
+
will-change: filter;
|
|
33
|
+
transition: 0.75s;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.logo.tauri:hover {
|
|
37
|
+
filter: drop-shadow(0 0 2em #24c8db);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.row {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
a {
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
color: #646cff;
|
|
48
|
+
text-decoration: inherit;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
a:hover {
|
|
52
|
+
color: #535bf2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
h1 {
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
input,
|
|
60
|
+
button {
|
|
61
|
+
border-radius: 8px;
|
|
62
|
+
border: 1px solid transparent;
|
|
63
|
+
padding: 0.6em 1.2em;
|
|
64
|
+
font-size: 1em;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
font-family: inherit;
|
|
67
|
+
color: #0f0f0f;
|
|
68
|
+
background-color: #ffffff;
|
|
69
|
+
transition: border-color 0.25s;
|
|
70
|
+
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
button {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
button:hover {
|
|
78
|
+
border-color: #396cd8;
|
|
79
|
+
}
|
|
80
|
+
button:active {
|
|
81
|
+
border-color: #396cd8;
|
|
82
|
+
background-color: #e8e8e8;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
input,
|
|
86
|
+
button {
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#greet-input {
|
|
91
|
+
margin-right: 5px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (prefers-color-scheme: dark) {
|
|
95
|
+
:root {
|
|
96
|
+
color: #f6f6f6;
|
|
97
|
+
background-color: #2f2f2f;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
a:hover {
|
|
101
|
+
color: #24c8db;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
input,
|
|
105
|
+
button {
|
|
106
|
+
color: #ffffff;
|
|
107
|
+
background-color: #0f0f0f98;
|
|
108
|
+
}
|
|
109
|
+
button:active {
|
|
110
|
+
background-color: #0f0f0f69;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "tauri-app"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "A Tauri App"
|
|
5
|
+
authors = ["you"]
|
|
6
|
+
edition = "2021"
|
|
7
|
+
|
|
8
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
9
|
+
|
|
10
|
+
[lib]
|
|
11
|
+
# The `_lib` suffix may seem redundant but it is necessary
|
|
12
|
+
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
13
|
+
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
14
|
+
name = "tauri_app_lib"
|
|
15
|
+
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
16
|
+
|
|
17
|
+
[build-dependencies]
|
|
18
|
+
tauri-build = { version = "2", features = [] }
|
|
19
|
+
|
|
20
|
+
[dependencies]
|
|
21
|
+
tauri = { version = "2", features = [] }
|
|
22
|
+
tauri-plugin-opener = "2"
|
|
23
|
+
serde = { version = "1", features = ["derive"] }
|
|
24
|
+
serde_json = "1"
|
|
25
|
+
|
|
Binary file
|
data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/128x128@2x.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square30x30Logo.png
ADDED
|
Binary file
|
|
Binary file
|
data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square44x44Logo.png
ADDED
|
Binary file
|
data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square71x71Logo.png
ADDED
|
Binary file
|
data/bundle-standalone/templates/tauri/rust/tauri-rust-template/src-tauri/icons/Square89x89Logo.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
|
2
|
+
#[tauri::command]
|
|
3
|
+
fn greet(name: &str) -> String {
|
|
4
|
+
format!("Hello, {}! You've been greeted from Rust!", name)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
8
|
+
pub fn run() {
|
|
9
|
+
tauri::Builder::default()
|
|
10
|
+
.plugin(tauri_plugin_opener::init())
|
|
11
|
+
.invoke_handler(tauri::generate_handler![greet])
|
|
12
|
+
.run(tauri::generate_context!())
|
|
13
|
+
.expect("error while running tauri application");
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.tauri.app/config/2",
|
|
3
|
+
"productName": "tauri-app",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"identifier": "com.sharique.tauri-app",
|
|
6
|
+
"build": {
|
|
7
|
+
"frontendDist": "../src"
|
|
8
|
+
},
|
|
9
|
+
"app": {
|
|
10
|
+
"withGlobalTauri": true,
|
|
11
|
+
"windows": [
|
|
12
|
+
{
|
|
13
|
+
"title": "tauri-app",
|
|
14
|
+
"width": 800,
|
|
15
|
+
"height": 600
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"security": {
|
|
19
|
+
"csp": null
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"bundle": {
|
|
23
|
+
"active": true,
|
|
24
|
+
"targets": "all",
|
|
25
|
+
"icon": [
|
|
26
|
+
"icons/32x32.png",
|
|
27
|
+
"icons/128x128.png",
|
|
28
|
+
"icons/128x128@2x.png",
|
|
29
|
+
"icons/icon.icns",
|
|
30
|
+
"icons/icon.ico"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Tauri + Angular
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Tauri and Angular.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
[VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) + [Angular Language Service](https://marketplace.visualstudio.com/items?itemName=Angular.ng-template).
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"cli": {
|
|
6
|
+
"analytics": false
|
|
7
|
+
},
|
|
8
|
+
"projects": {
|
|
9
|
+
"tauri-app": {
|
|
10
|
+
"projectType": "application",
|
|
11
|
+
"schematics": {
|
|
12
|
+
"@schematics/angular:component": {
|
|
13
|
+
"style": "css"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"root": "",
|
|
17
|
+
"sourceRoot": "src",
|
|
18
|
+
"prefix": "app",
|
|
19
|
+
"architect": {
|
|
20
|
+
"build": {
|
|
21
|
+
"builder": "@angular/build:application",
|
|
22
|
+
"options": {
|
|
23
|
+
"browser": "src/main.ts",
|
|
24
|
+
"polyfills": ["zone.js"],
|
|
25
|
+
"tsConfig": "tsconfig.app.json",
|
|
26
|
+
"inlineStyleLanguage": "scss",
|
|
27
|
+
"assets": [
|
|
28
|
+
{
|
|
29
|
+
"glob": "**/*",
|
|
30
|
+
"input": "src/assets",
|
|
31
|
+
"output": "assets"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"styles": ["src/styles.css"]
|
|
35
|
+
},
|
|
36
|
+
"configurations": {
|
|
37
|
+
"production": {
|
|
38
|
+
"budgets": [
|
|
39
|
+
{
|
|
40
|
+
"type": "initial",
|
|
41
|
+
"maximumWarning": "500kB",
|
|
42
|
+
"maximumError": "1MB"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "anyComponentStyle",
|
|
46
|
+
"maximumWarning": "4kB",
|
|
47
|
+
"maximumError": "8kB"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"outputHashing": "all"
|
|
51
|
+
},
|
|
52
|
+
"development": {
|
|
53
|
+
"optimization": false,
|
|
54
|
+
"extractLicenses": false,
|
|
55
|
+
"sourceMap": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"defaultConfiguration": "production"
|
|
59
|
+
},
|
|
60
|
+
"serve": {
|
|
61
|
+
"builder": "@angular/build:dev-server",
|
|
62
|
+
"options": {
|
|
63
|
+
"port": 1420
|
|
64
|
+
},
|
|
65
|
+
"configurations": {
|
|
66
|
+
"production": {
|
|
67
|
+
"buildTarget": "tauri-app:build:production"
|
|
68
|
+
},
|
|
69
|
+
"development": {
|
|
70
|
+
"buildTarget": "tauri-app:build:development"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"defaultConfiguration": "development"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"extends": "./tsconfig.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"outDir": "./out-tsc/app",
|
|
7
|
+
"types": []
|
|
8
|
+
},
|
|
9
|
+
"include": ["src/**/*.ts"],
|
|
10
|
+
"exclude": ["src/**/*.spec.ts"]
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
+
{
|
|
4
|
+
"compileOnSave": false,
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"strict": true,
|
|
7
|
+
"noImplicitOverride": true,
|
|
8
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
+
"noImplicitReturns": true,
|
|
10
|
+
"noFallthroughCasesInSwitch": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"importHelpers": true,
|
|
15
|
+
"target": "ES2022",
|
|
16
|
+
"module": "preserve"
|
|
17
|
+
},
|
|
18
|
+
"angularCompilerOptions": {
|
|
19
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
20
|
+
"strictInjectionParameters": true,
|
|
21
|
+
"strictInputAccessModifiers": true,
|
|
22
|
+
"typeCheckHostBindings": true,
|
|
23
|
+
"strictTemplates": true
|
|
24
|
+
},
|
|
25
|
+
"references": [{ "path": "./tsconfig.app.json" }]
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tauri-app",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"ng": "ng",
|
|
6
|
+
"start": "ng serve",
|
|
7
|
+
"build": "ng build",
|
|
8
|
+
"watch": "ng build --watch --configuration development",
|
|
9
|
+
"tauri": "tauri"
|
|
10
|
+
},
|
|
11
|
+
"private": true,
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@angular/common": "^20.1.4",
|
|
14
|
+
"@angular/compiler": "^20.1.4",
|
|
15
|
+
"@angular/core": "^20.1.4",
|
|
16
|
+
"@angular/forms": "^20.1.4",
|
|
17
|
+
"@angular/platform-browser": "^20.1.4",
|
|
18
|
+
"@angular/router": "^20.1.4",
|
|
19
|
+
"rxjs": "~7.8.2",
|
|
20
|
+
"tslib": "^2.8.1",
|
|
21
|
+
"zone.js": "~0.15.1",
|
|
22
|
+
"@tauri-apps/api": "^2",
|
|
23
|
+
"@tauri-apps/plugin-opener": "^2"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@angular/build": "^20.1.4",
|
|
27
|
+
"@angular/cli": "^20.1.4",
|
|
28
|
+
"@angular/compiler-cli": "^20.1.4",
|
|
29
|
+
"@tauri-apps/cli": "^2",
|
|
30
|
+
"typescript": "~5.8.3"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.logo.angular:hover {
|
|
2
|
+
filter: drop-shadow(0 0 2em #e32727);
|
|
3
|
+
}
|
|
4
|
+
:root {
|
|
5
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
|
|
10
|
+
color: #0f0f0f;
|
|
11
|
+
background-color: #f6f6f6;
|
|
12
|
+
|
|
13
|
+
font-synthesis: none;
|
|
14
|
+
text-rendering: optimizeLegibility;
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
-moz-osx-font-smoothing: grayscale;
|
|
17
|
+
-webkit-text-size-adjust: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.container {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding-top: 10vh;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.logo {
|
|
30
|
+
height: 6em;
|
|
31
|
+
padding: 1.5em;
|
|
32
|
+
will-change: filter;
|
|
33
|
+
transition: 0.75s;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.logo.tauri:hover {
|
|
37
|
+
filter: drop-shadow(0 0 2em #24c8db);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.row {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
a {
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
color: #646cff;
|
|
48
|
+
text-decoration: inherit;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
a:hover {
|
|
52
|
+
color: #535bf2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
h1 {
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
input,
|
|
60
|
+
button {
|
|
61
|
+
border-radius: 8px;
|
|
62
|
+
border: 1px solid transparent;
|
|
63
|
+
padding: 0.6em 1.2em;
|
|
64
|
+
font-size: 1em;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
font-family: inherit;
|
|
67
|
+
color: #0f0f0f;
|
|
68
|
+
background-color: #ffffff;
|
|
69
|
+
transition: border-color 0.25s;
|
|
70
|
+
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
button {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
button:hover {
|
|
78
|
+
border-color: #396cd8;
|
|
79
|
+
}
|
|
80
|
+
button:active {
|
|
81
|
+
border-color: #396cd8;
|
|
82
|
+
background-color: #e8e8e8;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
input,
|
|
86
|
+
button {
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#greet-input {
|
|
91
|
+
margin-right: 5px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (prefers-color-scheme: dark) {
|
|
95
|
+
:root {
|
|
96
|
+
color: #f6f6f6;
|
|
97
|
+
background-color: #2f2f2f;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
a:hover {
|
|
101
|
+
color: #24c8db;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
input,
|
|
105
|
+
button {
|
|
106
|
+
color: #ffffff;
|
|
107
|
+
background-color: #0f0f0f98;
|
|
108
|
+
}
|
|
109
|
+
button:active {
|
|
110
|
+
background-color: #0f0f0f69;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<main class="container">
|
|
2
|
+
<h1>Welcome to Tauri + Angular!</h1>
|
|
3
|
+
|
|
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 href="https://angular.io" target="_blank">
|
|
9
|
+
<img src="/assets/angular.svg" class="logo angular" alt="Angular logo" />
|
|
10
|
+
</a>
|
|
11
|
+
</div>
|
|
12
|
+
<p>Click on the logos to learn more about the frameworks</p>
|
|
13
|
+
|
|
14
|
+
<form class="row" (submit)="greet($event, greetInput.value)">
|
|
15
|
+
<input #greetInput id="greet-input" placeholder="Enter a name..." />
|
|
16
|
+
<button type="submit">Greet</button>
|
|
17
|
+
</form>
|
|
18
|
+
<p>{{ greetingMessage }}</p>
|
|
19
|
+
|
|
20
|
+
<router-outlet />
|
|
21
|
+
</main>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import { RouterOutlet } from "@angular/router";
|
|
3
|
+
import { invoke } from "@tauri-apps/api/core";
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: "app-root",
|
|
7
|
+
imports: [RouterOutlet],
|
|
8
|
+
templateUrl: "./app.component.html",
|
|
9
|
+
styleUrl: "./app.component.css",
|
|
10
|
+
})
|
|
11
|
+
export class AppComponent {
|
|
12
|
+
greetingMessage = "";
|
|
13
|
+
|
|
14
|
+
greet(event: SubmitEvent, name: string): void {
|
|
15
|
+
event.preventDefault();
|
|
16
|
+
|
|
17
|
+
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
|
18
|
+
invoke<string>("greet", { name }).then((text) => {
|
|
19
|
+
this.greetingMessage = text;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ApplicationConfig,
|
|
3
|
+
provideBrowserGlobalErrorListeners,
|
|
4
|
+
provideZoneChangeDetection,
|
|
5
|
+
} from "@angular/core";
|
|
6
|
+
import { provideRouter } from "@angular/router";
|
|
7
|
+
|
|
8
|
+
import { routes } from "./app.routes";
|
|
9
|
+
|
|
10
|
+
export const appConfig: ApplicationConfig = {
|
|
11
|
+
providers: [
|
|
12
|
+
provideBrowserGlobalErrorListeners(),
|
|
13
|
+
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
14
|
+
provideRouter(routes),
|
|
15
|
+
],
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 250 250" style="enable-background:new 0 0 250 250;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#DD0031;}
|
|
7
|
+
.st1{fill:#C3002F;}
|
|
8
|
+
.st2{fill:#FFFFFF;}
|
|
9
|
+
</style>
|
|
10
|
+
<g>
|
|
11
|
+
<polygon class="st0" points="125,30 125,30 125,30 31.9,63.2 46.1,186.3 125,230 125,230 125,230 203.9,186.3 218.1,63.2 "/>
|
|
12
|
+
<polygon class="st1" points="125,30 125,52.2 125,52.1 125,153.4 125,153.4 125,230 125,230 203.9,186.3 218.1,63.2 125,30 "/>
|
|
13
|
+
<path class="st2" d="M125,52.1L66.8,182.6h0h21.7h0l11.7-29.2h49.4l11.7,29.2h0h21.7h0L125,52.1L125,52.1L125,52.1L125,52.1
|
|
14
|
+
L125,52.1z M142,135.4H108l17-40.9L142,135.4z"/>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|