-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add solid.js package #8 from ronanru/master
- Loading branch information
Showing
58 changed files
with
5,462 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
TODOs / Knowing issues: | ||
|
||
> ticked ones have been implemented or fixed. | ||
### tauri-controls (General): | ||
|
||
- [] Detect disabled window controls #7 | ||
- [] \[MacOS] When the window is max(fullscreen), the max icon should be unmax. [📷](https://i.imgur.com/7FmMOZN.png) | ||
- [] Other Linux DEs default themes Budgie/KDE | ||
|
||
### tauri-controls (React): | ||
|
||
- [] | ||
|
||
### @tauri-controls/svelte: | ||
|
||
- [] Maximize icon does not change (to Unmaximie) when the window is maximized. | ||
|
||
### @tauri-controls/solid: | ||
|
||
- [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
dist | ||
|
||
src-tauri/target | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/agmmnn/tauri-controls/assets/16024979/8ac8cae0-9cde-4b27-af8b-02d949ede7a2"> | ||
<img alt="Tauri Controls" src="https://github.com/agmmnn/tauri-controls/assets/16024979/12f46aa7-72de-4c44-aa4a-0580c73fc73a"> | ||
</picture> | ||
|
||
## @tauri-controls/solid | ||
|
||
```bash | ||
pnpm add @tauri-controls/solid | ||
``` | ||
|
||
https://github.com/agmmnn/tauri-controls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en" class="dark"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Demo-Solid</title> | ||
</head> | ||
<body class="bg-slate-200 text-black/90 dark:bg-slate-900 dark:text-white"> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "@tauri-controls/solid", | ||
"description": "🚥 Native-looking window controls for Tauri 2.", | ||
"private": false, | ||
"version": "0.1.0", | ||
"type": "module", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/agmmnn/tauri-controls" | ||
}, | ||
"keywords": [], | ||
"author": "agmmnn", | ||
"bugs": { | ||
"url": "https://github.com/agmmnn/tauri-controls/issues" | ||
}, | ||
"homepage": "https://github.com/agmmnn/tauri-controls#readme", | ||
"license": "MIT", | ||
"scripts": { | ||
"start": "vite", | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"serve": "vite preview", | ||
"tauri": "tauri", | ||
"tauri:dev": "tauri dev", | ||
"format": "prettier --write . --config ./prettier.config.cjs" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./dist/tauri-controls.js" | ||
} | ||
}, | ||
"module": "./dist/tauri-controls.js", | ||
"types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@tauri-apps/api": "2.0.0-alpha.5" | ||
}, | ||
"devDependencies": { | ||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@tauri-apps/cli": "^2.0.0-alpha.10", | ||
"autoprefixer": "^10.4.14", | ||
"postcss": "^8.4.27", | ||
"prettier": "^3.0.1", | ||
"prettier-plugin-tailwindcss": "^0.4.1", | ||
"tailwindcss": "^3.3.3", | ||
"typescript": "^5.1.6", | ||
"vite": "^4.4.8", | ||
"vite-plugin-dts": "^3.4.0", | ||
"vite-plugin-solid": "^2.7.0" | ||
}, | ||
"peerDependencies": { | ||
"@tauri-apps/plugin-os": "2.0.0-alpha.0", | ||
"@tauri-apps/plugin-window": "2.0.0-alpha.0", | ||
"solid-js": "^1.7.8", | ||
"tailwind-merge": "^1.14.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** @type {import('prettier').Config} */ | ||
module.exports = { | ||
endOfLine: "lf", | ||
semi: false, | ||
singleQuote: false, | ||
tabWidth: 2, | ||
trailingComma: "es5", | ||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], | ||
plugins: [ | ||
"@ianvs/prettier-plugin-sort-imports", | ||
"prettier-plugin-tailwindcss", | ||
], | ||
} |
Oops, something went wrong.