Skip to content

Commit

Permalink
Add solid.js package #8 from ronanru/master
Browse files Browse the repository at this point in the history
  • Loading branch information
agmmnn authored Aug 4, 2023
2 parents f5658ac + 1c4ee5a commit 5b7d3ae
Show file tree
Hide file tree
Showing 58 changed files with 5,462 additions and 62 deletions.
21 changes: 21 additions & 0 deletions TODOs.md
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:

- []
5 changes: 5 additions & 0 deletions apps/tauri-controls-solid/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist

src-tauri/target
*.tgz
12 changes: 12 additions & 0 deletions apps/tauri-controls-solid/README.md
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
12 changes: 12 additions & 0 deletions apps/tauri-controls-solid/index.html
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>
63 changes: 63 additions & 0 deletions apps/tauri-controls-solid/package.json
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"
}
}
6 changes: 6 additions & 0 deletions apps/tauri-controls-solid/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
13 changes: 13 additions & 0 deletions apps/tauri-controls-solid/prettier.config.cjs
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",
],
}
Loading

0 comments on commit 5b7d3ae

Please sign in to comment.