Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPicklePinosaur committed Sep 15, 2024
0 parents commit a0332e1
Show file tree
Hide file tree
Showing 71 changed files with 16,581 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Tauri + React + Typescript

This template should help get you started developing with Tauri, React and Typescript in Vite.

## Recommended IDE Setup

- [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)
20 changes: 20 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
55 changes: 55 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Better Mind</title>
<script>
(() => {
const root = document.documentElement;
const theme = localStorage.getItem("vite-ui-theme");
const prefersDark = window.matchMedia?.(
"(prefers-color-scheme: dark)",
).matches;
const isDark = theme === "dark" || (theme === "system" && prefersDark);

root.classList.add(isDark ? "dark" : "light");
root.classList.add("group/body");

const setBackgroundColor = (color) => {
root.style.backgroundColor = color;
};

const darkColor = "hsl(0, 0%, 11%)";
const lightColor = "hsl(0, 0%, 98%)";

if (window.isTauri) {
root.classList.add("tauri");
const platform = window.__TAURI_PLUGIN_OS__.platform();
root.classList.add(platform);

if (platform === "macos" || platform === "windows") {
setBackgroundColor("transparent");
root.classList.add("vibrancy");
} else {
setBackgroundColor(isDark ? darkColor : lightColor);
}
} else {
setBackgroundColor(isDark ? darkColor : lightColor);
}
})();
</script>
<style>
html.vibrancy,
.vibrancy body {
background: transparent;
}
</style>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit a0332e1

Please sign in to comment.